diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 6ae69372f0..8ba7bdda67 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -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 \ diff --git a/arch/arm/dts/ipq5018-db-mp02.1.dts b/arch/arm/dts/ipq5018-db-mp02.1.dts new file mode 100644 index 0000000000..3bd99d5403 --- /dev/null +++ b/arch/arm/dts/ipq5018-db-mp02.1.dts @@ -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{}; + +}; diff --git a/arch/arm/dts/ipq5018-db-mp03.1.dts b/arch/arm/dts/ipq5018-db-mp03.1.dts new file mode 100644 index 0000000000..f8b09caeb1 --- /dev/null +++ b/arch/arm/dts/ipq5018-db-mp03.1.dts @@ -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{}; +}; diff --git a/arch/arm/dts/ipq5018-db-mp03.3.dts b/arch/arm/dts/ipq5018-db-mp03.3.dts new file mode 100644 index 0000000000..aa9c60a666 --- /dev/null +++ b/arch/arm/dts/ipq5018-db-mp03.3.dts @@ -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{}; +}; diff --git a/arch/arm/dts/ipq5018-mp02.1.dts b/arch/arm/dts/ipq5018-mp02.1.dts new file mode 100644 index 0000000000..a7decd243f --- /dev/null +++ b/arch/arm/dts/ipq5018-mp02.1.dts @@ -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{}; +}; diff --git a/arch/arm/dts/ipq5018-mp03.1.dts b/arch/arm/dts/ipq5018-mp03.1.dts new file mode 100644 index 0000000000..c86c4b79d5 --- /dev/null +++ b/arch/arm/dts/ipq5018-mp03.1.dts @@ -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{}; +}; diff --git a/arch/arm/dts/ipq5018-mp03.3.dts b/arch/arm/dts/ipq5018-mp03.3.dts new file mode 100644 index 0000000000..aafcc29876 --- /dev/null +++ b/arch/arm/dts/ipq5018-mp03.3.dts @@ -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{}; +};