From 1b5ee1dd8a9a02b0ac0cc200b4ac24692f4b5835 Mon Sep 17 00:00:00 2001 From: Vandhiadevan Karunamoorthy Date: Fri, 8 May 2020 13:21:22 +0530 Subject: [PATCH 1/2] ipq5018: Add dts file for sod bring up This new dts file contain uart support for sod bring up purpose Signed-off-by: Vandhiadevan Karunamoorthy Change-Id: I994e041363702febc40ed3c7632f76468483f8ca --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/ipq5018-sod.dts | 46 ++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/ipq5018-sod.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index d3fbaddd41..8e1ce6c0a5 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -74,7 +74,8 @@ dtb-$(CONFIG_ARCH_IPQ5018) += ipq5018-emulation.dtb \ ipq5018-db-mp03.1.dtb \ ipq5018-db-mp03.1-c2.dtb \ ipq5018-db-mp03.3.dtb \ - ipq5018-db-mp03.3-c2.dtb + ipq5018-db-mp03.3-c2.dtb \ + ipq5018-sod.dtb else dtb-$(CONFIG_ARCH_IPQ5018) += ipq5018-emulation.dtb endif diff --git a/arch/arm/dts/ipq5018-sod.dts b/arch/arm/dts/ipq5018-sod.dts new file mode 100644 index 0000000000..522c0a1d70 --- /dev/null +++ b/arch/arm/dts/ipq5018-sod.dts @@ -0,0 +1,46 @@ +/* + * 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-SOD"; + compatible = "qca,ipq5018", "qca,ipq5018-sod"; + machid = <0x0F040100>; + config_name = "config@mp03.1"; + + aliases { + console = "/serial@78AF000"; + }; + + console: serial@78AF000 { + status = "ok"; + serial_gpio { + blsp0_uart_rx { + gpio = <20>; + func = <1>; + pull = ; + drvstr = ; + od_en = ; + }; + blsp0_uart_tx { + gpio = <21>; + func = <1>; + pull = ; + drvstr = ; + od_en = ; + }; + }; + }; + +}; From a95f6f7ce010fc28c4e5c18cd343c65151118de1 Mon Sep 17 00:00:00 2001 From: Vandhiadevan Karunamoorthy Date: Tue, 12 May 2020 11:35:00 +0530 Subject: [PATCH 2/2] ipq5018: Add support for BT-RAM dump collection Signed-off-by: Vandhiadevan Karunamoorthy Change-Id: I0a59fe50e45d06f394b9b16e97cf281e41504ecc --- board/qca/arm/ipq5018/ipq5018.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/qca/arm/ipq5018/ipq5018.c b/board/qca/arm/ipq5018/ipq5018.c index ae721bd199..cdf89dc4b9 100644 --- a/board/qca/arm/ipq5018/ipq5018.c +++ b/board/qca/arm/ipq5018/ipq5018.c @@ -68,10 +68,16 @@ struct dumpinfo_t dumpinfo_n[] = { * | (192k) | * | | * ------------------------ + * | | + * | BTRAM Copy | + * | (352k) | + * | | + * ------------------------ */ { "EBICS0.BIN", 0x40000000, 0x10000000, 0 }, { "IMEM.BIN", 0x08600000, 0x00001000, 0 }, { "NSSUTCM.BIN", 0x08600658, 0x00030000, 0, 1, 0x2000 }, + { "BTRAM.BIN", 0x08600658, 0x00058000, 0, 1, 0x00032000 }, { "UNAME.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, { "CPU_INFO.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, { "DMESG.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, @@ -85,6 +91,7 @@ struct dumpinfo_t dumpinfo_s[] = { { "EBICS_S1.BIN", CONFIG_TZ_END_ADDR, 0x10000000, 0 }, { "IMEM.BIN", 0x08600000, 0x00001000, 0 }, { "NSSUTCM.BIN", 0x08600658, 0x00030000, 0, 1, 0x2000 }, + { "BTRAM.BIN", 0x08600658, 0x00058000, 0, 1, 0x00032000 }, { "UNAME.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, { "CPU_INFO.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, { "DMESG.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP },