arm: dts: ipq5018: Add support for new board variants

This change is to add device-tree files and Makefile changes
to support the following board variants
- MP02.1
- MP03.1
- MP03.3

The device tree files are copies of emulation-dts
along with RDP specific changes
. Disabled eMMC support for MP02.1
. Timer frequency to be used from soc-dtsi
. Removed 'emulation' flag from xhci

Change-Id: I0d5e776c98770e61fa2ab6009fd78ff5cc8127c3
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
This commit is contained in:
Pavithra Palanisamy 2020-02-26 17:13:41 +05:30 committed by Gerrit - the friendly Code Review server
parent aebe8534e2
commit 5f9274fbec
7 changed files with 362 additions and 1 deletions

View file

@ -62,7 +62,13 @@ dtb-$(CONFIG_ARCH_IPQ40xx) += ipq40xx-dk01-c1.dtb \
ipq40xx-dk01-s1.dtb \
ipq40xx-dk06-c1.dtb
dtb-$(CONFIG_ARCH_IPQ5018) += ipq5018-emulation.dtb
dtb-$(CONFIG_ARCH_IPQ5018) += ipq5018-emulation.dtb \
ipq5018-mp02.1.dtb \
ipq5018-mp03.1.dtb \
ipq5018-mp03.3.dtb \
ipq5018-db-mp02.1.dtb \
ipq5018-db-mp03.1.dtb \
ipq5018-db-mp03.3.dtb
dtb-$(CONFIG_ARCH_IPQ6018) += ipq6018-cp01-c1.dtb \
ipq6018-cp01-c3.dtb \

View file

@ -0,0 +1,60 @@
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/dts-v1/;
#include "ipq5018-soc.dtsi"
/ {
model ="QCA, IPQ5018/DB-MP02.1";
compatible = "qca,ipq5018", "qca,ipq5018-db-mp02.1";
machid = <0x1040000>;
config_name = "config@db-mp02.1";
aliases {
console = "/serial@78AF000";
mmc = "/sdhci@7804000";
i2c0 = "/i2c@78b6000";
gmac_gpio = "/gmac_gpio";
usb0 = "/xhci@8a00000";
pci0 = "/pci@80000000";
};
mmc: sdhci@7804000 {
status = "disabled";
};
nand: nand-controller@79B0000 {
status = "ok";
nand_gpio {};
};
gmac_cfg {
gmac_count = <2>;
gmac1_cfg {
unit = <0>;
base = <0x39C00000>;
phy_address = <7>;
phy_name = "IPQ MDIO0";
};
gmac2_cfg {
unit = <1>;
base = <0x39D00000>;
phy_address = <1>;
phy_name = "IPQ MDIO1";
};
};
gmac_gpio{};
};

View file

@ -0,0 +1,59 @@
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/dts-v1/;
#include "ipq5018-soc.dtsi"
/ {
model ="QCA, IPQ5018/DB-MP03.1";
compatible = "qca,ipq5018", "qca,ipq5018-db-mp03.1";
machid = <0x1040100>;
config_name = "config@db-mp03.1";
aliases {
console = "/serial@78AF000";
mmc = "/sdhci@7804000";
i2c0 = "/i2c@78b6000";
gmac_gpio = "/gmac_gpio";
usb0 = "/xhci@8a00000";
pci0 = "/pci@80000000";
};
mmc: sdhci@7804000 {
compatible = "qcom,sdhci-msm";
};
nand: nand-controller@79B0000 {
status = "ok";
nand_gpio {};
};
gmac_cfg {
gmac_count = <2>;
gmac1_cfg {
unit = <0>;
base = <0x39C00000>;
phy_address = <7>;
phy_name = "IPQ MDIO0";
};
gmac2_cfg {
unit = <1>;
base = <0x39D00000>;
phy_address = <1>;
phy_name = "IPQ MDIO1";
};
};
gmac_gpio{};
};

View file

@ -0,0 +1,59 @@
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/dts-v1/;
#include "ipq5018-soc.dtsi"
/ {
model ="QCA, IPQ5018/DB-MP03.3";
compatible = "qca,ipq5018", "qca,ipq5018-db-mp03.3";
machid = <0x1040200>;
config_name = "config@db-mp03.3";
aliases {
console = "/serial@78AF000";
mmc = "/sdhci@7804000";
i2c0 = "/i2c@78b6000";
gmac_gpio = "/gmac_gpio";
usb0 = "/xhci@8a00000";
pci0 = "/pci@80000000";
};
mmc: sdhci@7804000 {
compatible = "qcom,sdhci-msm";
};
nand: nand-controller@79B0000 {
status = "ok";
nand_gpio {};
};
gmac_cfg {
gmac_count = <2>;
gmac1_cfg {
unit = <0>;
base = <0x39C00000>;
phy_address = <7>;
phy_name = "IPQ MDIO0";
};
gmac2_cfg {
unit = <1>;
base = <0x39D00000>;
phy_address = <1>;
phy_name = "IPQ MDIO1";
};
};
gmac_gpio{};
};

View file

@ -0,0 +1,59 @@
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/dts-v1/;
#include "ipq5018-soc.dtsi"
/ {
model ="QCA, IPQ5018-MP02.1";
compatible = "qca,ipq5018", "qca,ipq5018-mp02.1";
machid = <0x8040000>;
config_name = "config@mp02.1";
aliases {
console = "/serial@78AF000";
mmc = "/sdhci@7804000";
i2c0 = "/i2c@78b6000";
gmac_gpio = "/gmac_gpio";
usb0 = "/xhci@8a00000";
pci0 = "/pci@80000000";
};
mmc: sdhci@7804000 {
status = "disabled";
};
nand: nand-controller@79B0000 {
status = "ok";
nand_gpio {};
};
gmac_cfg {
gmac_count = <2>;
gmac1_cfg {
unit = <0>;
base = <0x39C00000>;
phy_address = <7>;
phy_name = "IPQ MDIO0";
};
gmac2_cfg {
unit = <1>;
base = <0x39D00000>;
phy_address = <1>;
phy_name = "IPQ MDIO1";
};
};
gmac_gpio{};
};

View file

@ -0,0 +1,59 @@
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/dts-v1/;
#include "ipq5018-soc.dtsi"
/ {
model ="QCA, IPQ5018-MP03.1";
compatible = "qca,ipq5018", "qca,ipq5018-mp03.1";
machid = <0x8040100>;
config_name = "config@mp03.1";
aliases {
console = "/serial@78AF000";
mmc = "/sdhci@7804000";
i2c0 = "/i2c@78b6000";
gmac_gpio = "/gmac_gpio";
usb0 = "/xhci@8a00000";
pci0 = "/pci@80000000";
};
mmc: sdhci@7804000 {
compatible = "qcom,sdhci-msm";
};
nand: nand-controller@79B0000 {
status = "ok";
nand_gpio {};
};
gmac_cfg {
gmac_count = <2>;
gmac1_cfg {
unit = <0>;
base = <0x39C00000>;
phy_address = <7>;
phy_name = "IPQ MDIO0";
};
gmac2_cfg {
unit = <1>;
base = <0x39D00000>;
phy_address = <1>;
phy_name = "IPQ MDIO1";
};
};
gmac_gpio{};
};

View file

@ -0,0 +1,59 @@
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/dts-v1/;
#include "ipq5018-soc.dtsi"
/ {
model ="QCA, IPQ5018-MP03.3";
compatible = "qca,ipq5018", "qca,ipq5018-mp03.3";
machid = <0x08040200>;
config_name = "config@mp03.3";
aliases {
console = "/serial@78AF000";
mmc = "/sdhci@7804000";
i2c0 = "/i2c@78b6000";
gmac_gpio = "/gmac_gpio";
usb0 = "/xhci@8a00000";
pci0 = "/pci@80000000";
};
mmc: sdhci@7804000 {
compatible = "qcom,sdhci-msm";
};
nand: nand-controller@79B0000 {
status = "ok";
nand_gpio {};
};
gmac_cfg {
gmac_count = <2>;
gmac1_cfg {
unit = <0>;
base = <0x39C00000>;
phy_address = <7>;
phy_name = "IPQ MDIO0";
};
gmac2_cfg {
unit = <1>;
base = <0x39D00000>;
phy_address = <1>;
phy_name = "IPQ MDIO1";
};
};
gmac_gpio{};
};