From a05866dad963e3b49568649d5cf563589b18c4ca Mon Sep 17 00:00:00 2001 From: Nikhil Prakash V Date: Thu, 7 Jun 2018 12:38:36 +0530 Subject: [PATCH] ipq807x: Device tree support in u-boot for HK08 Adding device tree support for HK08 in u-boot-2016. Change-Id: I30d653e0dcb5a0f2da453360f7255edd153c6606 Signed-off-by: Nikhil Prakash V --- arch/arm/dts/Makefile | 1 + arch/arm/dts/ipq807x-hk08.dts | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 arch/arm/dts/ipq807x-hk08.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 4041f33046..fe1e33c3ad 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -25,6 +25,7 @@ dtb-$(CONFIG_ARCH_IPQ807x) += ipq807x-hk01.dtb \ ipq807x-hk05.dtb \ ipq807x-hk06.dtb \ ipq807x-hk07.dtb \ + ipq807x-hk08.dtb \ ipq807x-db-hk01.dtb \ ipq807x-db-hk02.dtb \ ipq807x-hk01-c2.dtb \ diff --git a/arch/arm/dts/ipq807x-hk08.dts b/arch/arm/dts/ipq807x-hk08.dts new file mode 100644 index 0000000000..fc47e2746b --- /dev/null +++ b/arch/arm/dts/ipq807x-hk08.dts @@ -0,0 +1,36 @@ +/* + * 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-HK08"; + compatible = "qca,ipq807x", "qca,ipq807x-hk08"; + machid = <0x08010007>; + config_name = "config@hk08"; + + aliases { + console = "/serial@78B3000"; + pci0 = "/pci@20000000"; + pci1 = "/pci@10000000"; + }; + ess-switch { + switch_mac_mode = <0x0>; + switch_mac_mode1 = <0xFF>; + switch_mac_mode2 = <0x2>; + aquantia_port = <5>; + aquantia_gpio = <63>; + }; +}; +