* [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes
@ 2018-11-05 15:45 Vinod Koul
2018-11-05 15:45 ` [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files Vinod Koul
` (16 more replies)
0 siblings, 17 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
This series adds support for various nodes for QCS404-EVB.
Based on v4.20-rc1
Changes in v2:
Fix cpu binding
Bjorn Andersson (7):
arm64: dts: qcom: qcs404: Add reserved-memory regions
arm64: dts: qcom: qcs404: Add RPM GLINK related nodes
arm64: dts: qcom: qcs404: Add PMS405 RPM regulators
arm64: dts: qcom: qcs404: Add TLMM pinctrl node
arm64: dts: qcom: qcs404: Add sdcc1 node
arm64: dts: qcom: qcs404: Add scm firmware node
arm64: dts: qcom: qcs404: Add remoteproc nodes
Vinod Koul (10):
arm64: dts: qcom: qcs404: add base dts files
arm64: dts: qcom: qcs404: add smp2p nodes
arm64: dts: qcom: pms405: add spmi node
arm64: dts: qcom: qcs404: add spmi node
arm64: dts: qcom: pms405: add rtc node
arm64: dts: qcom: pms405: add gpios
arm64: dts: qcom: qcs404: add prng-ee node
arm64: dts: qcom: qcs404: Add BAM DMA node
arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2
arm64: dts: qcom: pms405: Add pon and pwrkey nodes
arch/arm64/boot/dts/qcom/Makefile | 1 +
arch/arm64/boot/dts/qcom/pms405.dtsi | 53 ++++
arch/arm64/boot/dts/qcom/qcs404-evb.dts | 183 ++++++++++++
arch/arm64/boot/dts/qcom/qcs404.dtsi | 485 ++++++++++++++++++++++++++++++++
4 files changed, 722 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/pms405.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/qcs404-evb.dts
create mode 100644 arch/arm64/boot/dts/qcom/qcs404.dtsi
Thanks
--
2.14.4
^ permalink raw reply [flat|nested] 33+ messages in thread
* [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 18:56 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 02/17] arm64: dts: qcom: qcs404: Add reserved-memory regions Vinod Koul
` (15 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
Add base dts files for QCS404 chipset along with cpu, timer,
gcc and uart2 nodes.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/Makefile | 1 +
arch/arm64/boot/dts/qcom/qcs404-evb.dts | 21 ++++
arch/arm64/boot/dts/qcom/qcs404.dtsi | 175 ++++++++++++++++++++++++++++++++
3 files changed, 197 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/qcs404-evb.dts
create mode 100644 arch/arm64/boot/dts/qcom/qcs404.dtsi
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index a658c07652a7..3dffa0f58468 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -8,3 +8,4 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8996-mtp.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-mtp.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm845-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb.dtb
diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
new file mode 100644
index 000000000000..74dc09ddb0d2
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2018, Linaro Limited
+
+// QCS EVB DTS
+
+/dts-v1/;
+
+#include "qcs404.dtsi"
+
+/ {
+ model = "Qualcomm Technologies, Inc. QCS404 EVB 1000";
+ compatible = "qcom,qcs404-evb";
+
+ aliases {
+ serial0 = &blsp1_uart2;
+ };
+
+ chosen {
+ stdout-path = "serial0";
+ };
+};
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
new file mode 100644
index 000000000000..99efde1bbce9
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -0,0 +1,175 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2018, Linaro Limited
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/qcom,gcc-qcs404.h>
+
+/ {
+ interrupt-parent = <&intc>;
+
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ chosen { };
+
+ memory@80000000 {
+ device_type = "memory";
+ /* We expect the bootloader to fill in the reg */
+ reg = <0 0x0 0 0>;
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ CPU0: cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x100>;
+ enable-method = "psci";
+ next-level-cache = <&L2_0>;
+ };
+
+ CPU1: cpu@1 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x101>;
+ enable-method = "psci";
+ next-level-cache = <&L2_0>;
+ };
+
+ CPU2: cpu@2 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x102>;
+ enable-method = "psci";
+ next-level-cache = <&L2_0>;
+ };
+
+ CPU3: cpu@3 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x103>;
+ enable-method = "psci";
+ next-level-cache = <&L2_0>;
+ };
+
+ L2_0: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ };
+ };
+
+ psci {
+ compatible = "arm,psci-1.0";
+ method = "smc";
+ };
+
+ timer {
+ compatible = "arm,armv8-timer";
+ interrupts = <GIC_PPI 2 0xff08>,
+ <GIC_PPI 3 0xff08>,
+ <GIC_PPI 4 0xff08>,
+ <GIC_PPI 1 0xff08>;
+ };
+
+ clocks {
+ xo_board: xo_board {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <19200000>;
+ };
+ };
+
+ soc: soc@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0 0 0xffffffff>;
+ compatible = "simple-bus";
+
+ intc: interrupt-controller@b000000 {
+ compatible = "qcom,msm-qgic2";
+ interrupt-controller;
+ #interrupt-cells = <3>;
+ reg = <0x0b000000 0x1000>,
+ <0x0b002000 0x1000>;
+ };
+
+ gcc: clock-controller@1800000 {
+ compatible = "qcom,gcc-qcs404";
+ reg = <0x1800000 0x80000>;
+ #clock-cells = <1>;
+
+ assigned-clocks = <&gcc GCC_APSS_AHB_CLK_SRC>;
+ assigned-clock-rates = <19200000>;
+ };
+
+ timer@b120000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+ compatible = "arm,armv7-timer-mem";
+ reg = <0xb120000 0x1000>;
+ clock-frequency = <19200000>;
+
+ frame@b121000 {
+ frame-number = <0>;
+ interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xb121000 0x1000>,
+ <0xb122000 0x1000>;
+ };
+
+ frame@b123000 {
+ frame-number = <1>;
+ interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xb123000 0x1000>;
+ status = "disabled";
+ };
+
+ frame@b124000 {
+ frame-number = <2>;
+ interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xb124000 0x1000>;
+ status = "disabled";
+ };
+
+ frame@b125000 {
+ frame-number = <3>;
+ interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xb125000 0x1000>;
+ status = "disabled";
+ };
+
+ frame@b126000 {
+ frame-number = <4>;
+ interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xb126000 0x1000>;
+ status = "disabled";
+ };
+
+ frame@b127000 {
+ frame-number = <5>;
+ interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xb127000 0x1000>;
+ status = "disabled";
+ };
+
+ frame@b128000 {
+ frame-number = <6>;
+ interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xb128000 0x1000>;
+ status = "disabled";
+ };
+ };
+
+ blsp1_uart2: serial@78b1000 {
+ compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
+ reg = <0x78b1000 0x200>;
+ interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
+ clock-names = "core", "iface";
+ status = "okay";
+ };
+ };
+};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 02/17] arm64: dts: qcom: qcs404: Add reserved-memory regions
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
2018-11-05 15:45 ` [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 03/17] arm64: dts: qcom: qcs404: Add RPM GLINK related nodes Vinod Koul
` (14 subsequent siblings)
16 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Bjorn Andersson, Vinod Koul
From: Bjorn Andersson <bjorn.andersson@linaro.org>
Add the reserved memory regions in QCS404
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 41 ++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 99efde1bbce9..ba7cd707299c 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -18,6 +18,47 @@
reg = <0 0x0 0 0>;
};
+ reserved-memory {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ memory@85600000 {
+ reg = <0 0x85600000 0 0x90000>;
+ no-map;
+ };
+
+ smem_region: memory@85f00000 {
+ reg = <0 0x85f00000 0 0x200000>;
+ no-map;
+ };
+
+ memory@86100000 {
+ reg = <0 0x86100000 0 0x300000>;
+ no-map;
+ };
+
+ wlan_fw_mem: memory@86400000 {
+ reg = <0 0x86400000 0 0x1c00000>;
+ no-map;
+ };
+
+ adsp_fw_mem: memory@88000000 {
+ reg = <0 0x88000000 0 0x1a00000>;
+ no-map;
+ };
+
+ cdsp_fw_mem: memory@89a00000 {
+ reg = <0 0x89a00000 0 0x600000>;
+ no-map;
+ };
+
+ wlan_msa_mem: memory@8a000000 {
+ reg = <0 0x8a000000 0 0x100000>;
+ no-map;
+ };
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 03/17] arm64: dts: qcom: qcs404: Add RPM GLINK related nodes
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
2018-11-05 15:45 ` [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files Vinod Koul
2018-11-05 15:45 ` [PATCH v2 02/17] arm64: dts: qcom: qcs404: Add reserved-memory regions Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 04/17] arm64: dts: qcom: qcs404: Add PMS405 RPM regulators Vinod Koul
` (13 subsequent siblings)
16 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Bjorn Andersson, Vinod Koul
From: Bjorn Andersson <bjorn.andersson@linaro.org>
Add RPM GLINK node and the RPM message ram, hwspinlock, APCS apps global
and smem nodes it depends on.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 44 ++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index ba7cd707299c..c749c61225b4 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -106,6 +106,34 @@
method = "smc";
};
+ rpm-glink {
+ compatible = "qcom,glink-rpm";
+
+ interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
+ qcom,rpm-msg-ram = <&rpm_msg_ram>;
+ mboxes = <&apcs_glb 0>;
+
+ rpm_requests: glink-channel {
+ compatible = "qcom,rpm-qcs404";
+ qcom,glink-channels = "rpm_requests";
+ };
+ };
+
+ smem {
+ compatible = "qcom,smem";
+
+ memory-region = <&smem_region>;
+ qcom,rpm-msg-ram = <&rpm_msg_ram>;
+
+ hwlocks = <&tcsr_mutex 3>;
+ };
+
+ tcsr_mutex: hwlock {
+ compatible = "qcom,tcsr-mutex";
+ syscon = <&tcsr_mutex_regs 0 0x1000>;
+ #hwlock-cells = <1>;
+ };
+
timer {
compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 2 0xff08>,
@@ -128,6 +156,11 @@
ranges = <0 0 0 0xffffffff>;
compatible = "simple-bus";
+ rpm_msg_ram: memory@60000 {
+ compatible = "qcom,rpm-msg-ram";
+ reg = <0x60000 0x6000>;
+ };
+
intc: interrupt-controller@b000000 {
compatible = "qcom,msm-qgic2";
interrupt-controller;
@@ -145,6 +178,11 @@
assigned-clock-rates = <19200000>;
};
+ tcsr_mutex_regs: syscon@1905000 {
+ compatible = "syscon";
+ reg = <0x1905000 0x20000>;
+ };
+
timer@b120000 {
#address-cells = <1>;
#size-cells = <1>;
@@ -212,5 +250,11 @@
clock-names = "core", "iface";
status = "okay";
};
+
+ apcs_glb: mailbox@b011000 {
+ compatible = "qcom,qcs404-apcs-apps-global", "syscon";
+ reg = <0xb011000 0x1000>;
+ #mbox-cells = <1>;
+ };
};
};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 04/17] arm64: dts: qcom: qcs404: Add PMS405 RPM regulators
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (2 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 03/17] arm64: dts: qcom: qcs404: Add RPM GLINK related nodes Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 05/17] arm64: dts: qcom: qcs404: add smp2p nodes Vinod Koul
` (12 subsequent siblings)
16 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Bjorn Andersson, Vinod Koul
From: Bjorn Andersson <bjorn.andersson@linaro.org>
Add the RPM regulators found in PMS405 which is used in qcs404-evb
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404-evb.dts | 97 +++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
index 74dc09ddb0d2..5bae7163a093 100644
--- a/arch/arm64/boot/dts/qcom/qcs404-evb.dts
+++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
@@ -18,4 +18,101 @@
chosen {
stdout-path = "serial0";
};
+
+ vph_pwr: vph-pwr-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vph_pwr";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+};
+
+&rpm_requests {
+ pms405-regulators {
+ compatible = "qcom,rpm-pms405-regulators";
+
+ vdd_s1-supply = <&vph_pwr>;
+ vdd_s2-supply = <&vph_pwr>;
+ vdd_s3-supply = <&vph_pwr>;
+ vdd_s4-supply = <&vph_pwr>;
+ vdd_s5-supply = <&vph_pwr>;
+ vdd_l1_l2-supply = <&vreg_s5_1p35>;
+ vdd_l3_l8-supply = <&vreg_s5_1p35>;
+ vdd_l4-supply = <&vreg_s5_1p35>;
+ vdd_l5_l6-supply = <&vreg_s4_1p8>;
+ vdd_l7-supply = <&vph_pwr>;
+ vdd_l9-supply = <&vreg_s5_1p35>;
+ vdd_l10_l11_l12_l13-supply = <&vph_pwr>;
+
+ vreg_s4_1p8: s4 {
+ regulator-min-microvolt = <1728000>;
+ regulator-max-microvolt = <1920000>;
+ };
+
+ vreg_s5_1p35: s5 {
+ regulator-min-microvolt = <>;
+ regulator-max-microvolt = <>;
+ };
+
+ vreg_l1_1p3: l1 {
+ regulator-min-microvolt = <1240000>;
+ regulator-max-microvolt = <1352000>;
+ };
+
+ vreg_l2_1p275: l2 {
+ regulator-min-microvolt = <1048000>;
+ regulator-max-microvolt = <1280000>;
+ };
+
+ vreg_l3_1p05: l3 {
+ regulator-min-microvolt = <976000>;
+ regulator-max-microvolt = <1160000>;
+ };
+
+ vreg_l4_1p2: l4 {
+ regulator-min-microvolt = <1144000>;
+ regulator-max-microvolt = <1256000>;
+ };
+
+ vreg_l5_1p8: l5 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ vreg_l6_1p8: l6 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ vreg_l7_1p8: l7 {
+ regulator-min-microvolt = <1616000>;
+ regulator-max-microvolt = <3000000>;
+ };
+
+ vreg_l8_1p2: l8 {
+ regulator-min-microvolt = <1136000>;
+ regulator-max-microvolt = <1352000>;
+ };
+
+ vreg_l10_3p3: l10 {
+ regulator-min-microvolt = <2936000>;
+ regulator-max-microvolt = <3088000>;
+ };
+
+ vreg_l11_sdc2: l11 {
+ regulator-min-microvolt = <2696000>;
+ regulator-max-microvolt = <3304000>;
+ };
+
+ vreg_l12_3p3: l12 {
+ regulator-min-microvolt = <2968000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ vreg_l13_3p3: l13 {
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3300000>;
+ };
+ };
};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 05/17] arm64: dts: qcom: qcs404: add smp2p nodes
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (3 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 04/17] arm64: dts: qcom: qcs404: Add PMS405 RPM regulators Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:01 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 06/17] arm64: dts: qcom: qcs404: Add TLMM pinctrl node Vinod Koul
` (11 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
Add the smp2p-adsp, smp2p-cdsp and smp2p-wcss nodes found in QCS404.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 60 ++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index c749c61225b4..c87b0440584a 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -257,4 +257,64 @@
#mbox-cells = <1>;
};
};
+
+ smp2p-adsp {
+ compatible = "qcom,smp2p";
+ qcom,smem = <443>, <429>;
+ interrupts = <GIC_SPI 291 IRQ_TYPE_EDGE_RISING>;
+ mboxes = <&apcs_glb 10>;
+ qcom,local-pid = <0>;
+ qcom,remote-pid = <2>;
+
+ adsp_smp2p_out: master-kernel {
+ qcom,entry-name = "master-kernel";
+ #qcom,smem-state-cells = <1>;
+ };
+
+ adsp_smp2p_in: slave-kernel {
+ qcom,entry-name = "slave-kernel";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+ };
+
+ smp2p-cdsp {
+ compatible = "qcom,smp2p";
+ qcom,smem = <94>, <432>;
+ interrupts = <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>;
+ mboxes = <&apcs_glb 14>;
+ qcom,local-pid = <0>;
+ qcom,remote-pid = <5>;
+
+ cdsp_smp2p_out: master-kernel {
+ qcom,entry-name = "master-kernel";
+ #qcom,smem-state-cells = <1>;
+ };
+
+ cdsp_smp2p_in: slave-kernel {
+ qcom,entry-name = "slave-kernel";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+ };
+
+ smp2p-wcss {
+ compatible = "qcom,smp2p";
+ qcom,smem = <435>, <428>;
+ interrupts = <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>;
+ mboxes = <&apcs_glb 18>;
+ qcom,local-pid = <0>;
+ qcom,remote-pid = <1>;
+
+ wcss_smp2p_out: master-kernel {
+ qcom,entry-name = "master-kernel";
+ #qcom,smem-state-cells = <1>;
+ };
+
+ wcss_smp2p_in: slave-kernel {
+ qcom,entry-name = "slave-kernel";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+ };
};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 06/17] arm64: dts: qcom: qcs404: Add TLMM pinctrl node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (4 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 05/17] arm64: dts: qcom: qcs404: add smp2p nodes Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 07/17] arm64: dts: qcom: qcs404: Add sdcc1 node Vinod Koul
` (10 subsequent siblings)
16 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Bjorn Andersson, Vinod Koul
From: Bjorn Andersson <bjorn.andersson@linaro.org>
Add the QCS404 TLMM pinctrl node with its three tiles.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index c87b0440584a..58afdd83e7a9 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -256,6 +256,20 @@
reg = <0xb011000 0x1000>;
#mbox-cells = <1>;
};
+
+ tlmm: pinctrl@1000000 {
+ compatible = "qcom,qcs404-pinctrl";
+ reg = <0x01000000 0x200000>,
+ <0x01300000 0x200000>,
+ <0x07b00000 0x200000>;
+ reg-names = "south", "north", "east";
+ interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
+ gpio-ranges = <&tlmm 0 0 120>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
};
smp2p-adsp {
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 07/17] arm64: dts: qcom: qcs404: Add sdcc1 node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (5 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 06/17] arm64: dts: qcom: qcs404: Add TLMM pinctrl node Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 08/17] arm64: dts: qcom: pms405: add spmi node Vinod Koul
` (9 subsequent siblings)
16 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Bjorn Andersson, Vinod Koul
From: Bjorn Andersson <bjorn.andersson@linaro.org>
Add the sdcc1 node and enable it for the QCS404-EVB.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404-evb.dts | 64 +++++++++++++++++++++++++++++++++
arch/arm64/boot/dts/qcom/qcs404.dtsi | 17 +++++++++
2 files changed, 81 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
index 5bae7163a093..b79969153fba 100644
--- a/arch/arm64/boot/dts/qcom/qcs404-evb.dts
+++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
@@ -116,3 +116,67 @@
};
};
};
+
+&sdcc1 {
+ status = "ok";
+
+ mmc-ddr-1_8v;
+ bus-width = <8>;
+ non-removable;
+
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&sdc1_on>;
+ pinctrl-1 = <&sdc1_off>;
+};
+
+&tlmm {
+ sdc1_on: sdc1-on {
+ clk {
+ pins = "sdc1_clk";
+ bias-disable;
+ drive-strength = <16>;
+ };
+
+ cmd {
+ pins = "sdc1_cmd";
+ bias-pull-up;
+ drive-strength = <10>;
+ };
+
+ data {
+ pins = "sdc1_data";
+ bias-pull-up;
+ dreive-strength = <10>;
+ };
+
+ rclk {
+ pins = "sdc1_rclk";
+ bias-pull-down;
+ };
+ };
+
+ sdc1_off: sdc1-off {
+ clk {
+ pins = "sdc1_clk";
+ bias-disable;
+ drive-strength = <2>;
+ };
+
+ cmd {
+ pins = "sdc1_cmd";
+ bias-pull-up;
+ drive-strength = <2>;
+ };
+
+ data {
+ pins = "sdc1_data";
+ bias-pull-up;
+ dreive-strength = <2>;
+ };
+
+ rclk {
+ pins = "sdc1_rclk";
+ bias-pull-down;
+ };
+ };
+};
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 58afdd83e7a9..970ca9a62530 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -270,6 +270,23 @@
interrupt-controller;
#interrupt-cells = <2>;
};
+
+ sdcc1: sdcc@7804000 {
+ compatible = "qcom,sdhci-msm-v5";
+ reg = <0x7804000 0x1000>, <0x7805000 0x1000>;
+ reg-names = "hc_mem", "cmdq_mem";
+
+ interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "hc_irq", "pwr_irq";
+
+ clocks = <&gcc GCC_SDCC1_APPS_CLK>,
+ <&gcc GCC_SDCC1_AHB_CLK>,
+ <&xo_board>;
+ clock-names = "core", "iface", "xo";
+
+ status = "disabled";
+ };
};
smp2p-adsp {
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 08/17] arm64: dts: qcom: pms405: add spmi node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (6 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 07/17] arm64: dts: qcom: qcs404: Add sdcc1 node Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:03 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 09/17] arm64: dts: qcom: qcs404: " Vinod Koul
` (8 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
Add the pms405 DT file with spmi node.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/pms405.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/pms405.dtsi
diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
new file mode 100644
index 000000000000..8a585180f102
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2018, Linaro Limited
+
+#include <dt-bindings/spmi/spmi.h>
+
+&spmi_bus {
+
+ pms405_0: pms405@0 {
+ compatible = "qcom,spmi-pmic";
+ reg = <0x0 SPMI_USID>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ };
+};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 09/17] arm64: dts: qcom: qcs404: add spmi node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (7 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 08/17] arm64: dts: qcom: pms405: add spmi node Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:04 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 10/17] arm64: dts: qcom: pms405: add rtc node Vinod Koul
` (7 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
PMS405 is used in QCS405-EVB so include that with SPMI nodes
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404-evb.dts | 1 +
arch/arm64/boot/dts/qcom/qcs404.dtsi | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
index b79969153fba..10ad05ba5ca9 100644
--- a/arch/arm64/boot/dts/qcom/qcs404-evb.dts
+++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include "qcs404.dtsi"
+#include "pms405.dtsi"
/ {
model = "Qualcomm Technologies, Inc. QCS404 EVB 1000";
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 970ca9a62530..4d47d5e11a5a 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -242,6 +242,24 @@
};
};
+ spmi_bus: spmi@200f000 {
+ compatible = "qcom,spmi-pmic-arb";
+ reg = <0x200f000 0x001000>,
+ <0x2400000 0x800000>,
+ <0x2c00000 0x800000>,
+ <0x3800000 0x200000>,
+ <0x200a000 0x002100>;
+ reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
+ interrupt-names = "periph_irq";
+ interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
+ qcom,ee = <0>;
+ qcom,channel = <0>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+ interrupt-controller;
+ #interrupt-cells = <4>;
+ };
+
blsp1_uart2: serial@78b1000 {
compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
reg = <0x78b1000 0x200>;
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 10/17] arm64: dts: qcom: pms405: add rtc node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (8 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 09/17] arm64: dts: qcom: qcs404: " Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:04 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 11/17] arm64: dts: qcom: pms405: add gpios Vinod Koul
` (6 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
RTC is found on PMIC PMS405 and is same as other PMIC used, so add the
rtc node with compatible as qcom,pm8941-rtc
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/pms405.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
index 8a585180f102..cdb4547c998b 100644
--- a/arch/arm64/boot/dts/qcom/pms405.dtsi
+++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
@@ -11,5 +11,11 @@
#address-cells = <1>;
#size-cells = <0>;
+ rtc@6000 {
+ compatible = "qcom,pm8941-rtc";
+ reg = <0x6000>;
+ reg-names = "rtc", "alarm";
+ interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
+ };
};
};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 11/17] arm64: dts: qcom: pms405: add gpios
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (9 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 10/17] arm64: dts: qcom: pms405: add rtc node Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:08 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 12/17] arm64: dts: qcom: qcs404: Add scm firmware node Vinod Koul
` (5 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
Add the GPIOs present on PMS405 chip.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/pms405.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
index cdb4547c998b..18410d9f0f8f 100644
--- a/arch/arm64/boot/dts/qcom/pms405.dtsi
+++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
@@ -17,5 +17,21 @@
reg-names = "rtc", "alarm";
interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
};
+
+ pms405_gpios: gpios@c000 {
+ compatible = "qcom,pms405-gpio";
+ reg = <0xc000>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupts = <0 0xc1 0 IRQ_TYPE_NONE>,
+ <0 0xc2 0 IRQ_TYPE_NONE>,
+ <0 0xc3 0 IRQ_TYPE_NONE>,
+ <0 0xc4 0 IRQ_TYPE_NONE>,
+ <0 0xc5 0 IRQ_TYPE_NONE>,
+ <0 0xc6 0 IRQ_TYPE_NONE>,
+ <0 0xc7 0 IRQ_TYPE_NONE>,
+ <0 0xca 0 IRQ_TYPE_NONE>,
+ <0 0xcb 0 IRQ_TYPE_NONE>;
+ };
};
};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 12/17] arm64: dts: qcom: qcs404: Add scm firmware node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (10 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 11/17] arm64: dts: qcom: pms405: add gpios Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes Vinod Koul
` (4 subsequent siblings)
16 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Bjorn Andersson, Vinod Koul
From: Bjorn Andersson <bjorn.andersson@linaro.org>
Add the scm firmware node to QCS404
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 4d47d5e11a5a..8e207a25ddf0 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -101,6 +101,13 @@
};
};
+ firmware {
+ scm: scm {
+ compatible = "qcom,scm-qcs404", "qcom,scm";
+ #reset-cells = <1>;
+ };
+ };
+
psci {
compatible = "arm,psci-1.0";
method = "smc";
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (11 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 12/17] arm64: dts: qcom: qcs404: Add scm firmware node Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:10 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 14/17] arm64: dts: qcom: qcs404: add prng-ee node Vinod Koul
` (3 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Bjorn Andersson, Vinod Koul
From: Bjorn Andersson <bjorn.andersson@linaro.org>
Add the TrustZone based remoteproc nodes and their glink edges for
adsp, cdsp and wcss.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 87 ++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 8e207a25ddf0..b560ab6e49ff 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -373,4 +373,91 @@
#interrupt-cells = <2>;
};
};
+
+ remoteproc-adsp {
+ compatible = "qcom,qcs404-adsp-pas";
+
+ interrupts-extended = <&intc GIC_SPI 293 IRQ_TYPE_EDGE_RISING>,
+ <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
+ <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
+ <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
+ <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "wdog", "fatal", "ready",
+ "handover", "stop-ack";
+
+ clocks = <&xo_board>;
+ clock-names = "xo";
+
+ memory-region = <&adsp_fw_mem>;
+
+ qcom,smem-states = <&adsp_smp2p_out 0>;
+ qcom,smem-state-names = "stop";
+
+ glink-edge {
+ interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>;
+
+ qcom,remote-pid = <2>;
+ mboxes = <&apcs_glb 8>;
+
+ label = "adsp";
+ };
+ };
+
+ remoteproc-cdsp {
+ compatible = "qcom,qcs404-cdsp-pas";
+
+ interrupts-extended = <&intc GIC_SPI 229 IRQ_TYPE_EDGE_RISING>,
+ <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
+ <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
+ <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
+ <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "wdog", "fatal", "ready",
+ "handover", "stop-ack";
+
+ clocks = <&xo_board>;
+ clock-names = "xo";
+
+ memory-region = <&cdsp_fw_mem>;
+
+ qcom,smem-states = <&cdsp_smp2p_out 0>;
+ qcom,smem-state-names = "stop";
+
+ glink-edge {
+ interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>;
+
+ qcom,remote-pid = <5>;
+ mboxes = <&apcs_glb 12>;
+
+ label = "cdsp";
+ };
+ };
+
+ remoteproc-wcss {
+ compatible = "qcom,qcs404-wcss-pas";
+
+ interrupts-extended = <&intc GIC_SPI 153 IRQ_TYPE_EDGE_RISING>,
+ <&wcss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
+ <&wcss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
+ <&wcss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
+ <&wcss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "wdog", "fatal", "ready",
+ "handover", "stop-ack";
+
+ clocks = <&xo_board>;
+ clock-names = "xo";
+
+ memory-region = <&wlan_fw_mem>;
+
+ qcom,smem-states = <&wcss_smp2p_out 0>;
+ qcom,smem-state-names = "stop";
+
+ glink-edge {
+ interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
+
+ qcom,remote-pid = <1>;
+ mboxes = <&apcs_glb 16>;
+
+ label = "wcss";
+ };
+ };
};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 14/17] arm64: dts: qcom: qcs404: add prng-ee node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (12 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:10 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node Vinod Koul
` (2 subsequent siblings)
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
RNG hardware in QCS404 features (Execution Environment) EE for
HLOS to use, add the node for prng-ee for QCS404.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index b560ab6e49ff..a37930639b8d 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -282,6 +282,13 @@
#mbox-cells = <1>;
};
+ rng: rng@e3000 {
+ compatible = "qcom,prng-ee";
+ reg = <0x000e3000 0x1000>;
+ clocks = <&gcc GCC_PRNG_AHB_CLK>;
+ clock-names = "core";
+ };
+
tlmm: pinctrl@1000000 {
compatible = "qcom,qcs404-pinctrl";
reg = <0x01000000 0x200000>,
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (13 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 14/17] arm64: dts: qcom: qcs404: add prng-ee node Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:12 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 16/17] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2 Vinod Koul
2018-11-05 15:45 ` [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes Vinod Koul
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
Add the BAM DMA instance found in BLSP1 node of the QCS404
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index a37930639b8d..88e04a0ee67f 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -276,6 +276,19 @@
status = "okay";
};
+ blsp1_dma: dma@7884000 {
+ compatible = "qcom,bam-v1.7.0";
+ reg = <0x07884000 0x25000>;
+ interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&gcc GCC_BLSP1_AHB_CLK>;
+ clock-names = "bam_clk";
+ #dma-cells = <1>;
+ qcom,controlled-remotely = <1>;
+ qcom,ee = <0>;
+
+ status = "okay";
+ };
+
apcs_glb: mailbox@b011000 {
compatible = "qcom,qcs404-apcs-apps-global", "syscon";
reg = <0xb011000 0x1000>;
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 16/17] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (14 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:12 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes Vinod Koul
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
We can use BAM DAM for serial UART data transfers, so add it
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 88e04a0ee67f..23a16b7c43b6 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -273,6 +273,8 @@
interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
clock-names = "core", "iface";
+ dmas = <&blsp1_dma 5>, <&blsp1_dma 4>;
+ dma-names = "rx", "tx";
status = "okay";
};
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
` (15 preceding siblings ...)
2018-11-05 15:45 ` [PATCH v2 16/17] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2 Vinod Koul
@ 2018-11-05 15:45 ` Vinod Koul
2018-11-05 19:13 ` Bjorn Andersson
16 siblings, 1 reply; 33+ messages in thread
From: Vinod Koul @ 2018-11-05 15:45 UTC (permalink / raw)
To: Andy Gross, David Brown
Cc: Rob Herring, Mark Rutland, linux-arm-msm, linux-soc, devicetree,
linux-kernel, Vinod Koul
PMS405 also features PON block, so add PON and PWRKEY nodes
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
arch/arm64/boot/dts/qcom/pms405.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
index 18410d9f0f8f..2c7cc1e94ff4 100644
--- a/arch/arm64/boot/dts/qcom/pms405.dtsi
+++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
@@ -2,6 +2,7 @@
// Copyright (c) 2018, Linaro Limited
#include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/input/linux-event-codes.h>
&spmi_bus {
@@ -18,6 +19,21 @@
interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
};
+ pon@800 {
+ compatible = "qcom,pms405-pon";
+ reg = <0x800>;
+ mode-bootloader = <0x2>;
+ mode-recovery = <0x1>;
+
+ pwrkey {
+ compatible = "qcom,pm8941-pwrkey";
+ interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+ debounce = <15625>;
+ bias-pull-up;
+ linux,code = <KEY_POWER>;
+ };
+ };
+
pms405_gpios: gpios@c000 {
compatible = "qcom,pms405-gpio";
reg = <0xc000>;
--
2.14.4
^ permalink raw reply related [flat|nested] 33+ messages in thread
* Re: [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files
2018-11-05 15:45 ` [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files Vinod Koul
@ 2018-11-05 18:56 ` Bjorn Andersson
2018-11-06 17:35 ` Vinod Koul
0 siblings, 1 reply; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 18:56 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
> new file mode 100644
> index 000000000000..74dc09ddb0d2
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
> @@ -0,0 +1,21 @@
> +// SPDX-License-Identifier: GPL-2.0
> +// Copyright (c) 2018, Linaro Limited
> +
> +// QCS EVB DTS
This can be read from the filename and the model a few lines down. So
please drop.
> +
> +/dts-v1/;
> +
> +#include "qcs404.dtsi"
> +
> +/ {
> + model = "Qualcomm Technologies, Inc. QCS404 EVB 1000";
> + compatible = "qcom,qcs404-evb";
> +
> + aliases {
> + serial0 = &blsp1_uart2;
> + };
> +
> + chosen {
> + stdout-path = "serial0";
> + };
> +};
> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
[..]
> + timer {
> + compatible = "arm,armv8-timer";
> + interrupts = <GIC_PPI 2 0xff08>,
> + <GIC_PPI 3 0xff08>,
> + <GIC_PPI 4 0xff08>,
> + <GIC_PPI 1 0xff08>;
> + };
> +
> + clocks {
Please sort these nodes alphabetically.
> + xo_board: xo_board {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <19200000>;
> + };
> + };
> +
> + soc: soc@0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges = <0 0 0 0xffffffff>;
> + compatible = "simple-bus";
> +
Please pad the address in reg to 8 digits and sort these nodes by
address.
> + intc: interrupt-controller@b000000 {
> + compatible = "qcom,msm-qgic2";
> + interrupt-controller;
> + #interrupt-cells = <3>;
> + reg = <0x0b000000 0x1000>,
> + <0x0b002000 0x1000>;
> + };
> +
Regards,
Bjorn
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 05/17] arm64: dts: qcom: qcs404: add smp2p nodes
2018-11-05 15:45 ` [PATCH v2 05/17] arm64: dts: qcom: qcs404: add smp2p nodes Vinod Koul
@ 2018-11-05 19:01 ` Bjorn Andersson
0 siblings, 0 replies; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:01 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> Add the smp2p-adsp, smp2p-cdsp and smp2p-wcss nodes found in QCS404.
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/qcs404.dtsi | 60 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 60 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> index c749c61225b4..c87b0440584a 100644
> --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> @@ -257,4 +257,64 @@
> #mbox-cells = <1>;
> };
> };
> +
> + smp2p-adsp {
> + compatible = "qcom,smp2p";
> + qcom,smem = <443>, <429>;
> + interrupts = <GIC_SPI 291 IRQ_TYPE_EDGE_RISING>;
> + mboxes = <&apcs_glb 10>;
> + qcom,local-pid = <0>;
> + qcom,remote-pid = <2>;
> +
> + adsp_smp2p_out: master-kernel {
> + qcom,entry-name = "master-kernel";
> + #qcom,smem-state-cells = <1>;
> + };
> +
> + adsp_smp2p_in: slave-kernel {
> + qcom,entry-name = "slave-kernel";
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> + };
> +
> + smp2p-cdsp {
> + compatible = "qcom,smp2p";
> + qcom,smem = <94>, <432>;
> + interrupts = <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>;
> + mboxes = <&apcs_glb 14>;
> + qcom,local-pid = <0>;
> + qcom,remote-pid = <5>;
> +
> + cdsp_smp2p_out: master-kernel {
> + qcom,entry-name = "master-kernel";
> + #qcom,smem-state-cells = <1>;
> + };
> +
> + cdsp_smp2p_in: slave-kernel {
> + qcom,entry-name = "slave-kernel";
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> + };
> +
> + smp2p-wcss {
> + compatible = "qcom,smp2p";
> + qcom,smem = <435>, <428>;
> + interrupts = <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>;
> + mboxes = <&apcs_glb 18>;
> + qcom,local-pid = <0>;
> + qcom,remote-pid = <1>;
> +
> + wcss_smp2p_out: master-kernel {
> + qcom,entry-name = "master-kernel";
> + #qcom,smem-state-cells = <1>;
> + };
> +
> + wcss_smp2p_in: slave-kernel {
> + qcom,entry-name = "slave-kernel";
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> + };
> };
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 08/17] arm64: dts: qcom: pms405: add spmi node
2018-11-05 15:45 ` [PATCH v2 08/17] arm64: dts: qcom: pms405: add spmi node Vinod Koul
@ 2018-11-05 19:03 ` Bjorn Andersson
0 siblings, 0 replies; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:03 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> Add the pms405 DT file with spmi node.
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> arch/arm64/boot/dts/qcom/pms405.dtsi | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
> create mode 100644 arch/arm64/boot/dts/qcom/pms405.dtsi
>
> diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
> new file mode 100644
> index 000000000000..8a585180f102
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
> @@ -0,0 +1,15 @@
> +// SPDX-License-Identifier: GPL-2.0
> +// Copyright (c) 2018, Linaro Limited
> +
> +#include <dt-bindings/spmi/spmi.h>
> +
> +&spmi_bus {
> +
Please drop the empty line.
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> + pms405_0: pms405@0 {
> + compatible = "qcom,spmi-pmic";
> + reg = <0x0 SPMI_USID>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + };
> +};
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 09/17] arm64: dts: qcom: qcs404: add spmi node
2018-11-05 15:45 ` [PATCH v2 09/17] arm64: dts: qcom: qcs404: " Vinod Koul
@ 2018-11-05 19:04 ` Bjorn Andersson
0 siblings, 0 replies; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:04 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> PMS405 is used in QCS405-EVB so include that with SPMI nodes
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/qcs404-evb.dts | 1 +
> arch/arm64/boot/dts/qcom/qcs404.dtsi | 18 ++++++++++++++++++
> 2 files changed, 19 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
> index b79969153fba..10ad05ba5ca9 100644
> --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dts
> +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
> @@ -6,6 +6,7 @@
> /dts-v1/;
>
> #include "qcs404.dtsi"
> +#include "pms405.dtsi"
>
> / {
> model = "Qualcomm Technologies, Inc. QCS404 EVB 1000";
> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> index 970ca9a62530..4d47d5e11a5a 100644
> --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> @@ -242,6 +242,24 @@
> };
> };
>
> + spmi_bus: spmi@200f000 {
> + compatible = "qcom,spmi-pmic-arb";
> + reg = <0x200f000 0x001000>,
> + <0x2400000 0x800000>,
> + <0x2c00000 0x800000>,
> + <0x3800000 0x200000>,
> + <0x200a000 0x002100>;
> + reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
> + interrupt-names = "periph_irq";
> + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
> + qcom,ee = <0>;
> + qcom,channel = <0>;
> + #address-cells = <2>;
> + #size-cells = <0>;
> + interrupt-controller;
> + #interrupt-cells = <4>;
> + };
> +
> blsp1_uart2: serial@78b1000 {
> compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
> reg = <0x78b1000 0x200>;
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 10/17] arm64: dts: qcom: pms405: add rtc node
2018-11-05 15:45 ` [PATCH v2 10/17] arm64: dts: qcom: pms405: add rtc node Vinod Koul
@ 2018-11-05 19:04 ` Bjorn Andersson
0 siblings, 0 replies; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:04 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> RTC is found on PMIC PMS405 and is same as other PMIC used, so add the
> rtc node with compatible as qcom,pm8941-rtc
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/pms405.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
> index 8a585180f102..cdb4547c998b 100644
> --- a/arch/arm64/boot/dts/qcom/pms405.dtsi
> +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
> @@ -11,5 +11,11 @@
> #address-cells = <1>;
> #size-cells = <0>;
>
> + rtc@6000 {
> + compatible = "qcom,pm8941-rtc";
> + reg = <0x6000>;
> + reg-names = "rtc", "alarm";
> + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
> + };
> };
> };
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 11/17] arm64: dts: qcom: pms405: add gpios
2018-11-05 15:45 ` [PATCH v2 11/17] arm64: dts: qcom: pms405: add gpios Vinod Koul
@ 2018-11-05 19:08 ` Bjorn Andersson
2018-11-06 17:37 ` Vinod Koul
0 siblings, 1 reply; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:08 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> Add the GPIOs present on PMS405 chip.
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> arch/arm64/boot/dts/qcom/pms405.dtsi | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
> index cdb4547c998b..18410d9f0f8f 100644
> --- a/arch/arm64/boot/dts/qcom/pms405.dtsi
> +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
> @@ -17,5 +17,21 @@
> reg-names = "rtc", "alarm";
> interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
> };
> +
> + pms405_gpios: gpios@c000 {
> + compatible = "qcom,pms405-gpio";
> + reg = <0xc000>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupts = <0 0xc1 0 IRQ_TYPE_NONE>,
> + <0 0xc2 0 IRQ_TYPE_NONE>,
> + <0 0xc3 0 IRQ_TYPE_NONE>,
> + <0 0xc4 0 IRQ_TYPE_NONE>,
> + <0 0xc5 0 IRQ_TYPE_NONE>,
> + <0 0xc6 0 IRQ_TYPE_NONE>,
> + <0 0xc7 0 IRQ_TYPE_NONE>,
> + <0 0xca 0 IRQ_TYPE_NONE>,
> + <0 0xcb 0 IRQ_TYPE_NONE>;
Is there a reason why gpio 1, 8 and 9 are omitted from this list?
Regards,
Bjorn
> + };
> };
> };
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes
2018-11-05 15:45 ` [PATCH v2 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes Vinod Koul
@ 2018-11-05 19:10 ` Bjorn Andersson
2018-11-06 17:47 ` Vinod Koul
0 siblings, 1 reply; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:10 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> From: Bjorn Andersson <bjorn.andersson@linaro.org>
>
> Add the TrustZone based remoteproc nodes and their glink edges for
> adsp, cdsp and wcss.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> arch/arm64/boot/dts/qcom/qcs404.dtsi | 87 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 87 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> index 8e207a25ddf0..b560ab6e49ff 100644
> --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> @@ -373,4 +373,91 @@
> #interrupt-cells = <2>;
> };
> };
> +
> + remoteproc-adsp {
> + compatible = "qcom,qcs404-adsp-pas";
> +
> + interrupts-extended = <&intc GIC_SPI 293 IRQ_TYPE_EDGE_RISING>,
> + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
> + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
> + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
> + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
> + interrupt-names = "wdog", "fatal", "ready",
> + "handover", "stop-ack";
> +
> + clocks = <&xo_board>;
> + clock-names = "xo";
> +
As the TZ-backed remoteproc drivers will not be used on all variation of
products on this platform please add status = "disabled"; to these nodes
and enable them in the evb.
Regards,
Bjorn
> + memory-region = <&adsp_fw_mem>;
> +
> + qcom,smem-states = <&adsp_smp2p_out 0>;
> + qcom,smem-state-names = "stop";
> +
> + glink-edge {
> + interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>;
> +
> + qcom,remote-pid = <2>;
> + mboxes = <&apcs_glb 8>;
> +
> + label = "adsp";
> + };
> + };
> +
> + remoteproc-cdsp {
> + compatible = "qcom,qcs404-cdsp-pas";
> +
> + interrupts-extended = <&intc GIC_SPI 229 IRQ_TYPE_EDGE_RISING>,
> + <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
> + <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
> + <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
> + <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
> + interrupt-names = "wdog", "fatal", "ready",
> + "handover", "stop-ack";
> +
> + clocks = <&xo_board>;
> + clock-names = "xo";
> +
> + memory-region = <&cdsp_fw_mem>;
> +
> + qcom,smem-states = <&cdsp_smp2p_out 0>;
> + qcom,smem-state-names = "stop";
> +
> + glink-edge {
> + interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>;
> +
> + qcom,remote-pid = <5>;
> + mboxes = <&apcs_glb 12>;
> +
> + label = "cdsp";
> + };
> + };
> +
> + remoteproc-wcss {
> + compatible = "qcom,qcs404-wcss-pas";
> +
> + interrupts-extended = <&intc GIC_SPI 153 IRQ_TYPE_EDGE_RISING>,
> + <&wcss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
> + <&wcss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
> + <&wcss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
> + <&wcss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
> + interrupt-names = "wdog", "fatal", "ready",
> + "handover", "stop-ack";
> +
> + clocks = <&xo_board>;
> + clock-names = "xo";
> +
> + memory-region = <&wlan_fw_mem>;
> +
> + qcom,smem-states = <&wcss_smp2p_out 0>;
> + qcom,smem-state-names = "stop";
> +
> + glink-edge {
> + interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
> +
> + qcom,remote-pid = <1>;
> + mboxes = <&apcs_glb 16>;
> +
> + label = "wcss";
> + };
> + };
> };
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 14/17] arm64: dts: qcom: qcs404: add prng-ee node
2018-11-05 15:45 ` [PATCH v2 14/17] arm64: dts: qcom: qcs404: add prng-ee node Vinod Koul
@ 2018-11-05 19:10 ` Bjorn Andersson
0 siblings, 0 replies; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:10 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> RNG hardware in QCS404 features (Execution Environment) EE for
> HLOS to use, add the node for prng-ee for QCS404.
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> index b560ab6e49ff..a37930639b8d 100644
> --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> @@ -282,6 +282,13 @@
> #mbox-cells = <1>;
> };
>
> + rng: rng@e3000 {
> + compatible = "qcom,prng-ee";
> + reg = <0x000e3000 0x1000>;
> + clocks = <&gcc GCC_PRNG_AHB_CLK>;
> + clock-names = "core";
> + };
> +
> tlmm: pinctrl@1000000 {
> compatible = "qcom,qcs404-pinctrl";
> reg = <0x01000000 0x200000>,
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node
2018-11-05 15:45 ` [PATCH v2 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node Vinod Koul
@ 2018-11-05 19:12 ` Bjorn Andersson
2018-11-06 17:48 ` Vinod Koul
0 siblings, 1 reply; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:12 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> Add the BAM DMA instance found in BLSP1 node of the QCS404
What about blsp2 bam?
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/qcs404.dtsi | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> index a37930639b8d..88e04a0ee67f 100644
> --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> @@ -276,6 +276,19 @@
> status = "okay";
> };
>
> + blsp1_dma: dma@7884000 {
> + compatible = "qcom,bam-v1.7.0";
> + reg = <0x07884000 0x25000>;
> + interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&gcc GCC_BLSP1_AHB_CLK>;
> + clock-names = "bam_clk";
> + #dma-cells = <1>;
> + qcom,controlled-remotely = <1>;
> + qcom,ee = <0>;
> +
> + status = "okay";
> + };
> +
> apcs_glb: mailbox@b011000 {
> compatible = "qcom,qcs404-apcs-apps-global", "syscon";
> reg = <0xb011000 0x1000>;
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 16/17] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2
2018-11-05 15:45 ` [PATCH v2 16/17] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2 Vinod Koul
@ 2018-11-05 19:12 ` Bjorn Andersson
0 siblings, 0 replies; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:12 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> We can use BAM DAM for serial UART data transfers, so add it
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> index 88e04a0ee67f..23a16b7c43b6 100644
> --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> @@ -273,6 +273,8 @@
> interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
> clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
> clock-names = "core", "iface";
> + dmas = <&blsp1_dma 5>, <&blsp1_dma 4>;
> + dma-names = "rx", "tx";
> status = "okay";
> };
>
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes
2018-11-05 15:45 ` [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes Vinod Koul
@ 2018-11-05 19:13 ` Bjorn Andersson
0 siblings, 0 replies; 33+ messages in thread
From: Bjorn Andersson @ 2018-11-05 19:13 UTC (permalink / raw)
To: Vinod Koul
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
> PMS405 also features PON block, so add PON and PWRKEY nodes
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/pms405.dtsi | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
> index 18410d9f0f8f..2c7cc1e94ff4 100644
> --- a/arch/arm64/boot/dts/qcom/pms405.dtsi
> +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
> @@ -2,6 +2,7 @@
> // Copyright (c) 2018, Linaro Limited
>
> #include <dt-bindings/spmi/spmi.h>
> +#include <dt-bindings/input/linux-event-codes.h>
>
> &spmi_bus {
>
> @@ -18,6 +19,21 @@
> interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
> };
>
> + pon@800 {
> + compatible = "qcom,pms405-pon";
> + reg = <0x800>;
> + mode-bootloader = <0x2>;
> + mode-recovery = <0x1>;
> +
> + pwrkey {
> + compatible = "qcom,pm8941-pwrkey";
> + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
> + debounce = <15625>;
> + bias-pull-up;
> + linux,code = <KEY_POWER>;
> + };
> + };
> +
> pms405_gpios: gpios@c000 {
> compatible = "qcom,pms405-gpio";
> reg = <0xc000>;
> --
> 2.14.4
>
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files
2018-11-05 18:56 ` Bjorn Andersson
@ 2018-11-06 17:35 ` Vinod Koul
0 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-06 17:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
Thanks for the review Bjorn,
On 05-11-18, 10:56, Bjorn Andersson wrote:
> On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
>
> > diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
> > new file mode 100644
> > index 000000000000..74dc09ddb0d2
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts
> > @@ -0,0 +1,21 @@
> > +// SPDX-License-Identifier: GPL-2.0
> > +// Copyright (c) 2018, Linaro Limited
> > +
> > +// QCS EVB DTS
>
> This can be read from the filename and the model a few lines down. So
> please drop.
Sure
>
> > +
> > +/dts-v1/;
> > +
> > +#include "qcs404.dtsi"
> > +
> > +/ {
> > + model = "Qualcomm Technologies, Inc. QCS404 EVB 1000";
> > + compatible = "qcom,qcs404-evb";
> > +
> > + aliases {
> > + serial0 = &blsp1_uart2;
> > + };
> > +
> > + chosen {
> > + stdout-path = "serial0";
> > + };
> > +};
> > diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> [..]
> > + timer {
> > + compatible = "arm,armv8-timer";
> > + interrupts = <GIC_PPI 2 0xff08>,
> > + <GIC_PPI 3 0xff08>,
> > + <GIC_PPI 4 0xff08>,
> > + <GIC_PPI 1 0xff08>;
> > + };
> > +
> > + clocks {
>
> Please sort these nodes alphabetically.
Will do and also while adding subsequent nodes
> > + xo_board: xo_board {
> > + compatible = "fixed-clock";
> > + #clock-cells = <0>;
> > + clock-frequency = <19200000>;
> > + };
> > + };
> > +
> > + soc: soc@0 {
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges = <0 0 0 0xffffffff>;
> > + compatible = "simple-bus";
> > +
>
> Please pad the address in reg to 8 digits and sort these nodes by
> address.
Sure
--
~Vinod
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 11/17] arm64: dts: qcom: pms405: add gpios
2018-11-05 19:08 ` Bjorn Andersson
@ 2018-11-06 17:37 ` Vinod Koul
0 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-06 17:37 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On 05-11-18, 11:08, Bjorn Andersson wrote:
> On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
>
> > Add the GPIOs present on PMS405 chip.
> >
> > Signed-off-by: Vinod Koul <vkoul@kernel.org>
> > ---
> > arch/arm64/boot/dts/qcom/pms405.dtsi | 16 ++++++++++++++++
> > 1 file changed, 16 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
> > index cdb4547c998b..18410d9f0f8f 100644
> > --- a/arch/arm64/boot/dts/qcom/pms405.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
> > @@ -17,5 +17,21 @@
> > reg-names = "rtc", "alarm";
> > interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
> > };
> > +
> > + pms405_gpios: gpios@c000 {
> > + compatible = "qcom,pms405-gpio";
> > + reg = <0xc000>;
> > + gpio-controller;
> > + #gpio-cells = <2>;
> > + interrupts = <0 0xc1 0 IRQ_TYPE_NONE>,
> > + <0 0xc2 0 IRQ_TYPE_NONE>,
> > + <0 0xc3 0 IRQ_TYPE_NONE>,
> > + <0 0xc4 0 IRQ_TYPE_NONE>,
> > + <0 0xc5 0 IRQ_TYPE_NONE>,
> > + <0 0xc6 0 IRQ_TYPE_NONE>,
> > + <0 0xc7 0 IRQ_TYPE_NONE>,
> > + <0 0xca 0 IRQ_TYPE_NONE>,
> > + <0 0xcb 0 IRQ_TYPE_NONE>;
>
> Is there a reason why gpio 1, 8 and 9 are omitted from this list?
I think I saw something in downstream code / documentation for this, I
will check again to be sure
--
~Vinod
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes
2018-11-05 19:10 ` Bjorn Andersson
@ 2018-11-06 17:47 ` Vinod Koul
0 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-06 17:47 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On 05-11-18, 11:10, Bjorn Andersson wrote:
> On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
>
> > From: Bjorn Andersson <bjorn.andersson@linaro.org>
> >
> > Add the TrustZone based remoteproc nodes and their glink edges for
> > adsp, cdsp and wcss.
> >
> > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> > Signed-off-by: Vinod Koul <vkoul@kernel.org>
> > ---
> > arch/arm64/boot/dts/qcom/qcs404.dtsi | 87 ++++++++++++++++++++++++++++++++++++
> > 1 file changed, 87 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> > index 8e207a25ddf0..b560ab6e49ff 100644
> > --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
> > @@ -373,4 +373,91 @@
> > #interrupt-cells = <2>;
> > };
> > };
> > +
> > + remoteproc-adsp {
> > + compatible = "qcom,qcs404-adsp-pas";
> > +
> > + interrupts-extended = <&intc GIC_SPI 293 IRQ_TYPE_EDGE_RISING>,
> > + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
> > + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
> > + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
> > + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
> > + interrupt-names = "wdog", "fatal", "ready",
> > + "handover", "stop-ack";
> > +
> > + clocks = <&xo_board>;
> > + clock-names = "xo";
> > +
>
> As the TZ-backed remoteproc drivers will not be used on all variation of
> products on this platform please add status = "disabled"; to these nodes
> and enable them in the evb.
Sure will update this one
--
~Vinod
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [PATCH v2 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node
2018-11-05 19:12 ` Bjorn Andersson
@ 2018-11-06 17:48 ` Vinod Koul
0 siblings, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2018-11-06 17:48 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, David Brown, Rob Herring, Mark Rutland,
linux-arm-msm, linux-soc, devicetree, linux-kernel
On 05-11-18, 11:12, Bjorn Andersson wrote:
> On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:
>
> > Add the BAM DMA instance found in BLSP1 node of the QCS404
>
> What about blsp2 bam?
Haven't tested that yet :( Serial helped on this one so added :)
--
~Vinod
^ permalink raw reply [flat|nested] 33+ messages in thread
end of thread, other threads:[~2018-11-06 17:48 UTC | newest]
Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05 15:45 [PATCH v2 00/17] arm64: dts: qcom: qcs404: Add Device tree nodes Vinod Koul
2018-11-05 15:45 ` [PATCH v2 01/17] arm64: dts: qcom: qcs404: add base dts files Vinod Koul
2018-11-05 18:56 ` Bjorn Andersson
2018-11-06 17:35 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 02/17] arm64: dts: qcom: qcs404: Add reserved-memory regions Vinod Koul
2018-11-05 15:45 ` [PATCH v2 03/17] arm64: dts: qcom: qcs404: Add RPM GLINK related nodes Vinod Koul
2018-11-05 15:45 ` [PATCH v2 04/17] arm64: dts: qcom: qcs404: Add PMS405 RPM regulators Vinod Koul
2018-11-05 15:45 ` [PATCH v2 05/17] arm64: dts: qcom: qcs404: add smp2p nodes Vinod Koul
2018-11-05 19:01 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 06/17] arm64: dts: qcom: qcs404: Add TLMM pinctrl node Vinod Koul
2018-11-05 15:45 ` [PATCH v2 07/17] arm64: dts: qcom: qcs404: Add sdcc1 node Vinod Koul
2018-11-05 15:45 ` [PATCH v2 08/17] arm64: dts: qcom: pms405: add spmi node Vinod Koul
2018-11-05 19:03 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 09/17] arm64: dts: qcom: qcs404: " Vinod Koul
2018-11-05 19:04 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 10/17] arm64: dts: qcom: pms405: add rtc node Vinod Koul
2018-11-05 19:04 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 11/17] arm64: dts: qcom: pms405: add gpios Vinod Koul
2018-11-05 19:08 ` Bjorn Andersson
2018-11-06 17:37 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 12/17] arm64: dts: qcom: qcs404: Add scm firmware node Vinod Koul
2018-11-05 15:45 ` [PATCH v2 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes Vinod Koul
2018-11-05 19:10 ` Bjorn Andersson
2018-11-06 17:47 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 14/17] arm64: dts: qcom: qcs404: add prng-ee node Vinod Koul
2018-11-05 19:10 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node Vinod Koul
2018-11-05 19:12 ` Bjorn Andersson
2018-11-06 17:48 ` Vinod Koul
2018-11-05 15:45 ` [PATCH v2 16/17] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2 Vinod Koul
2018-11-05 19:12 ` Bjorn Andersson
2018-11-05 15:45 ` [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes Vinod Koul
2018-11-05 19:13 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).