From a2391434fb2beb19731ca887a3e36d7a96f68d2d Mon Sep 17 00:00:00 2001 From: Nikhil Prakash V Date: Mon, 16 Jul 2018 16:01:30 +0530 Subject: [PATCH] ipq807x: DTS Support for HK01.C4 Change-Id: If8141c52a6965311d80764fbd389a0fca1c5e14e Signed-off-by: Nikhil Prakash V --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/ipq807x-hk01-c4.dts | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/ipq807x-hk01-c4.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 801cb5d79d..089d4589a9 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -32,7 +32,8 @@ dtb-$(CONFIG_ARCH_IPQ807x) += ipq807x-hk01.dtb \ ipq807x-db-hk01.dtb \ ipq807x-db-hk02.dtb \ ipq807x-hk01-c2.dtb \ - ipq807x-hk01-c3.dtb + ipq807x-hk01-c3.dtb \ + ipq807x-hk01-c4.dtb dtb-$(CONFIG_ARCH_IPQ806x) += ipq806x-ap148.dtb \ ipq806x-ap160.dtb \ diff --git a/arch/arm/dts/ipq807x-hk01-c4.dts b/arch/arm/dts/ipq807x-hk01-c4.dts new file mode 100644 index 0000000000..5bfeea86d7 --- /dev/null +++ b/arch/arm/dts/ipq807x-hk01-c4.dts @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2017 - 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-HK01.C4"; + compatible = "qca,ipq807x", "qca,ipq807x-hk01.c4"; + machid = <0x08010300>; + config_name = "config@hk01.c4"; + + aliases { + console = "/serial@78B3000"; + uart2 = "/serial@78B0000"; + i2c0 = "/i2c@78b6000"; + pci0 = "/pci@20000000"; + pci1 = "/pci@10000000"; + mmc = "/sdhci@07824000"; + }; + ess-switch { + switch_mac_mode = <0x5>; + switch_mac_mode1 = <0xFF>; + switch_mac_mode2 = <0x2>; + aquantia_port = <5>; + aquantia_gpio = <44>; + }; +}; +