From 9bddf3451b5a048ffda42666a5745cb2f9971023 Mon Sep 17 00:00:00 2001 From: Nikhil Prakash V Date: Mon, 11 Jun 2018 13:09:28 +0530 Subject: [PATCH] ipq807x: DTS support for HK09, AC01.1, AC01.2 Change-Id: Id74932004e2844a503237dee30b6655264d06748 Signed-off-by: Nikhil Prakash V --- arch/arm/dts/Makefile | 3 +++ arch/arm/dts/ipq807x-ac01.1.dts | 34 +++++++++++++++++++++++++++++++++ arch/arm/dts/ipq807x-ac01.2.dts | 34 +++++++++++++++++++++++++++++++++ arch/arm/dts/ipq807x-hk09.dts | 34 +++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 arch/arm/dts/ipq807x-ac01.1.dts create mode 100644 arch/arm/dts/ipq807x-ac01.2.dts create mode 100644 arch/arm/dts/ipq807x-hk09.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index e7ef65d609..5bf6d85639 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -26,6 +26,9 @@ dtb-$(CONFIG_ARCH_IPQ807x) += ipq807x-hk01.dtb \ ipq807x-hk06.dtb \ ipq807x-hk07.dtb \ ipq807x-hk08.dtb \ + ipq807x-hk09.dtb \ + ipq807x-ac01.1.dtb \ + ipq807x-ac01.2.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.1.dts new file mode 100644 index 0000000000..66ea3c0f7b --- /dev/null +++ b/arch/arm/dts/ipq807x-ac01.1.dts @@ -0,0 +1,34 @@ +/* + * 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-AC01.1"; + compatible = "qca,ipq807x", "qca,ipq807x-ac01.1"; + machid = <0x08010009>; + config_name = "config@ac01.1"; + + aliases { + console = "/serial@78B3000"; + uart2 = "/serial@78B0000"; + pci0 = "/pci@20000000"; + }; + ess-switch { + switch_mac_mode = <0x0>; + switch_mac_mode1 = <0xFF>; + switch_mac_mode2 = <0xFF>; + }; +}; + diff --git a/arch/arm/dts/ipq807x-ac01.2.dts b/arch/arm/dts/ipq807x-ac01.2.dts new file mode 100644 index 0000000000..3a44ef01da --- /dev/null +++ b/arch/arm/dts/ipq807x-ac01.2.dts @@ -0,0 +1,34 @@ +/* + * 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-AC01.2"; + compatible = "qca,ipq807x", "qca,ipq807x-ac01.2"; + machid = <0x0801000A>; + config_name = "config@ac01.2"; + + aliases { + console = "/serial@78B3000"; + uart2 = "/serial@78B0000"; + pci0 = "/pci@20000000"; + }; + ess-switch { + switch_mac_mode = <0x0>; + switch_mac_mode1 = <0xFF>; + switch_mac_mode2 = <0xFF>; + }; +}; + diff --git a/arch/arm/dts/ipq807x-hk09.dts b/arch/arm/dts/ipq807x-hk09.dts new file mode 100644 index 0000000000..63f5ef3857 --- /dev/null +++ b/arch/arm/dts/ipq807x-hk09.dts @@ -0,0 +1,34 @@ +/* + * 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-HK09"; + compatible = "qca,ipq807x", "qca,ipq807x-hk09"; + machid = <0x08010008>; + config_name = "config@hk09"; + + aliases { + console = "/serial@78B3000"; + uart2 = "/serial@78B0000"; + pci0 = "/pci@20000000"; + }; + ess-switch { + switch_mac_mode = <0x0>; + switch_mac_mode1 = <0xFF>; + switch_mac_mode2 = <0xFF>; + }; +}; +