diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 489ea07d6b..3023c72124 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -27,8 +27,11 @@ dtb-$(CONFIG_ARCH_IPQ807x) += ipq807x-hk01.dtb \ ipq807x-hk07.dtb \ ipq807x-hk08.dtb \ ipq807x-hk09.dtb \ - ipq807x-ac01.1.dtb \ - ipq807x-ac01.2.dtb \ + ipq807x-ac01.dtb \ + ipq807x-ac02.dtb \ + ipq807x-oak01.dtb \ + ipq807x-oak02.dtb \ + ipq807x-oak03.dtb \ ipq807x-db-hk01.dtb \ ipq807x-db-hk02.dtb \ ipq807x-hk01-c2.dtb \ diff --git a/arch/arm/dts/ipq807x-ac01.1.dts b/arch/arm/dts/ipq807x-ac01.dts similarity index 91% rename from arch/arm/dts/ipq807x-ac01.1.dts rename to arch/arm/dts/ipq807x-ac01.dts index 4fb2aa36c2..e4832cb324 100644 --- a/arch/arm/dts/ipq807x-ac01.1.dts +++ b/arch/arm/dts/ipq807x-ac01.dts @@ -15,10 +15,10 @@ #include "ipq807x-soc.dtsi" #include / { - model ="QCA, IPQ807x-AC01.1"; - compatible = "qca,ipq807x", "qca,ipq807x-ac01.1"; + model ="QCA, IPQ807x-AC01"; + compatible = "qca,ipq807x", "qca,ipq807x-ac01"; machid = <0x08010009>; - config_name = "config@ac01.1"; + config_name = "config@ac01"; aliases { console = "/serial@78B3000"; diff --git a/arch/arm/dts/ipq807x-ac01.2.dts b/arch/arm/dts/ipq807x-ac02.dts similarity index 91% rename from arch/arm/dts/ipq807x-ac01.2.dts rename to arch/arm/dts/ipq807x-ac02.dts index 6c7d069bf4..951d6bc23a 100644 --- a/arch/arm/dts/ipq807x-ac01.2.dts +++ b/arch/arm/dts/ipq807x-ac02.dts @@ -15,10 +15,10 @@ #include "ipq807x-soc.dtsi" #include / { - model ="QCA, IPQ807x-AC01.2"; - compatible = "qca,ipq807x", "qca,ipq807x-ac01.2"; + model ="QCA, IPQ807x-AC02"; + compatible = "qca,ipq807x", "qca,ipq807x-ac02"; machid = <0x0801000A>; - config_name = "config@ac01.2"; + config_name = "config@ac02"; aliases { console = "/serial@78B3000"; diff --git a/arch/arm/dts/ipq807x-oak01.dts b/arch/arm/dts/ipq807x-oak01.dts new file mode 100644 index 0000000000..2e08ceed04 --- /dev/null +++ b/arch/arm/dts/ipq807x-oak01.dts @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2016 - 2018, 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 "ipq807x-soc.dtsi" +#include +/ { + model ="QCA, IPQ807x-OAK01"; + compatible = "qca,ipq807x", "qca,ipq807x-oak01"; + machid = <0x0801000B>; + config_name = "config@oak01"; + + aliases { + console = "/serial@78B3000"; + uart2 = "/serial@78B0000"; + i2c0 = "/i2c@78b6000"; + pci0 = "/pci@20000000"; + pci1 = "/pci@10000000"; + mmc = "/sdhci@07824000"; + }; + ess-switch { + switch_mac_mode = <0x0>; + switch_mac_mode1 = <0xFF>; + switch_mac_mode2 = <0x2>; + aquantia_port = <5>; + aquantia_gpio = <44>; + }; + +}; + diff --git a/arch/arm/dts/ipq807x-oak02.dts b/arch/arm/dts/ipq807x-oak02.dts new file mode 100644 index 0000000000..4f17034f76 --- /dev/null +++ b/arch/arm/dts/ipq807x-oak02.dts @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2016 - 2018, 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 "ipq807x-soc.dtsi" +#include +/ { + model ="QCA, IPQ807x-OAK02"; + compatible = "qca,ipq807x", "qca,ipq807x-oak02"; + machid = <0x0801000C>; + config_name = "config@oak02"; + + aliases { + console = "/serial@78B3000"; + uart2 = "/serial@78B0000"; + i2c0 = "/i2c@78b6000"; + pci0 = "/pci@20000000"; + pci1 = "/pci@10000000"; + mmc = "/sdhci@07824000"; + }; + ess-switch { + switch_mac_mode = <0x0>; + switch_mac_mode1 = <0xFF>; + switch_mac_mode2 = <0x2>; + aquantia_port = <5>; + aquantia_gpio = <44>; + }; + +}; + diff --git a/arch/arm/dts/ipq807x-oak03.dts b/arch/arm/dts/ipq807x-oak03.dts new file mode 100644 index 0000000000..b1b237a467 --- /dev/null +++ b/arch/arm/dts/ipq807x-oak03.dts @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2016 - 2018, 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 "ipq807x-soc.dtsi" +#include +/ { + model ="QCA, IPQ807x-OAK03"; + compatible = "qca,ipq807x", "qca,ipq807x-oak03"; + machid = <0x0801000D>; + config_name = "config@oak03"; + + aliases { + console = "/serial@78B3000"; + uart2 = "/serial@78B0000"; + pci0 = "/pci@20000000"; + }; + ess-switch { + switch_mac_mode = <0x0>; + switch_mac_mode1 = <0x6>; + switch_mac_mode2 = <0x6>; + napa_gpio = <25 44>; + napa_gpio_cnt = <2>; + port_phyinfo { + port@0 { + phy_address = <0>; + phy_type = <1>; + }; + port@1 { + phy_address = <1>; + phy_type = <1>; + }; + port@2 { + phy_address = <2>; + phy_type = <1>; + }; + port@3 { + phy_address = <3>; + phy_type = <1>; + }; + port@4 { + phy_address = <24>; + phy_type = <2>; + }; + port@5 { + phy_address = <28>; + phy_type = <2>; + }; + }; + }; +}; +