dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] SM6115 DTS changes
@ 2022-11-29 20:46 Adam Skladowski
  2022-11-29 20:46 ` [PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem Adam Skladowski
                   ` (11 more replies)
  0 siblings, 12 replies; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

This patch series adds bunch of new nodes
also it fixes some small nitpicks in yamls and adds compatible.

Adam Skladowski (12):
  dt-bindings: display: msm: Replace mdss with display-subsystem
  dt-bindings: thermal: tsens: Add SM6115 compatible
  arm64: dts: qcom: sm6115: Add cpufreq-hw support
  arm64: dts: qcom: sm6115: Add TSENS node
  arm64: dts: qcom: sm6115: Add PRNG node
  arm64: dts: qcom: sm6115: Add rpm-stats node
  arm64: dts: qcom: sm6115: Add dispcc node
  arm64: dts: qcom: sm6115: Add mdss/dpu node
  arm64: dts: qcom: sm6115: Add GPI DMA
  arm64: dts: qcom: sm6115: Add i2c/spi nodes
  arm64: dts: qcom: sm6115: Add WCN node.
  arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible

 .../display/msm/qcom,qcm2290-mdss.yaml        |   2 +-
 .../display/msm/qcom,sm6115-mdss.yaml         |   2 +-
 .../bindings/thermal/qcom-tsens.yaml          |   1 +
 arch/arm64/boot/dts/qcom/sm6115.dtsi          | 562 +++++++++++++++++-
 4 files changed, 564 insertions(+), 3 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 15:07   ` Krzysztof Kozlowski
  2022-11-29 20:46 ` [PATCH 02/12] dt-bindings: thermal: tsens: Add SM6115 compatible Adam Skladowski
                   ` (10 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Follow other YAMLs and replace mdss name.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 .../devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml      | 2 +-
 .../devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml
index d6f043a4b08d..4795e13c7b59 100644
--- a/Documentation/devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml
+++ b/Documentation/devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml
@@ -72,7 +72,7 @@ examples:
     #include <dt-bindings/interconnect/qcom,qcm2290.h>
     #include <dt-bindings/power/qcom-rpmpd.h>
 
-    mdss@5e00000 {
+    display-subsystem@5e00000 {
         #address-cells = <1>;
         #size-cells = <1>;
         compatible = "qcom,qcm2290-mdss";
diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml
index a86d7f53fa84..886858ef6700 100644
--- a/Documentation/devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml
+++ b/Documentation/devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml
@@ -62,7 +62,7 @@ examples:
     #include <dt-bindings/interrupt-controller/arm-gic.h>
     #include <dt-bindings/power/qcom-rpmpd.h>
 
-    mdss@5e00000 {
+    display-subsystem@5e00000 {
         #address-cells = <1>;
         #size-cells = <1>;
         compatible = "qcom,sm6115-mdss";
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 02/12] dt-bindings: thermal: tsens: Add SM6115 compatible
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
  2022-11-29 20:46 ` [PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 15:08   ` Krzysztof Kozlowski
  2022-11-29 20:46 ` [PATCH 03/12] arm64: dts: qcom: sm6115: Add cpufreq-hw support Adam Skladowski
                   ` (9 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Document compatible for tsens on Qualcomm SM6115 platform
according to downstream dts it ship v2.4 of IP

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
index 038d81338fcf..c41fcf404117 100644
--- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
+++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
@@ -53,6 +53,7 @@ properties:
               - qcom,sc8280xp-tsens
               - qcom,sdm630-tsens
               - qcom,sdm845-tsens
+              - qcom,sm6115-tsens
               - qcom,sm6350-tsens
               - qcom,sm8150-tsens
               - qcom,sm8250-tsens
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 03/12] arm64: dts: qcom: sm6115: Add cpufreq-hw support
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
  2022-11-29 20:46 ` [PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem Adam Skladowski
  2022-11-29 20:46 ` [PATCH 02/12] dt-bindings: thermal: tsens: Add SM6115 compatible Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-29 20:46 ` [PATCH 04/12] arm64: dts: qcom: sm6115: Add TSENS node Adam Skladowski
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add cpufreq-hw node and assign qcom,freq-domain properties
to CPUs to enable CPU clock scaling.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 0340ed21be05..2003a2519a54 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -842,6 +842,17 @@ intc: interrupt-controller@f200000 {
 			redistributor-stride = <0x0 0x20000>;
 			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
 		};
+
+		cpufreq_hw: cpufreq@f521000 {
+			compatible = "qcom,cpufreq-hw";
+			reg = <0x0f521000 0x1000>, <0x0f523000 0x1000>;
+
+			reg-names = "freq-domain0", "freq-domain1";
+			clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GPLL0>;
+			clock-names = "xo", "alternate";
+
+			#freq-domain-cells = <1>;
+		};
 	};
 
 	timer {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 04/12] arm64: dts: qcom: sm6115: Add TSENS node
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (2 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 03/12] arm64: dts: qcom: sm6115: Add cpufreq-hw support Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 11:16   ` Konrad Dybcio
  2022-11-29 20:46 ` [PATCH 05/12] arm64: dts: qcom: sm6115: Add PRNG node Adam Skladowski
                   ` (7 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add nodes required for TSENS block using the common qcom,tsens-v2 binding.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 2003a2519a54..decbf7ca8a03 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -515,6 +515,17 @@ spmi_bus: spmi@1c40000 {
 			#interrupt-cells = <4>;
 		};
 
+		tsens0: thermal-sensor@4410000 {
+			compatible = "qcom,sm6115-tsens", "qcom,tsens-v2";
+			reg = <0x04411000 0x1ff>, /* TM */
+			      <0x04410000 0x8>; /* SROT */
+			#qcom,sensors = <16>;
+			interrupts = <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "uplow", "critical";
+			#thermal-sensor-cells = <1>;
+		};
+
 		rpm_msg_ram: sram@45f0000 {
 			compatible = "qcom,rpm-msg-ram";
 			reg = <0x045f0000 0x7000>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 05/12] arm64: dts: qcom: sm6115: Add PRNG node
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (3 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 04/12] arm64: dts: qcom: sm6115: Add TSENS node Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 11:17   ` Konrad Dybcio
  2022-11-29 20:46 ` [PATCH 06/12] arm64: dts: qcom: sm6115: Add rpm-stats node Adam Skladowski
                   ` (6 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add a node for the PRNG to enable hw-accelerated pseudo-random number
generation.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index decbf7ca8a03..04620c272227 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -497,6 +497,13 @@ qusb2_hstx_trim: hstx-trim@25b {
 			};
 		};
 
+		rng: rng@1b53000 {
+			compatible = "qcom,prng-ee";
+			reg = <0x01b53000 0x1000>;
+			clocks = <&gcc GCC_PRNG_AHB_CLK>;
+			clock-names = "core";
+		};
+
 		spmi_bus: spmi@1c40000 {
 			compatible = "qcom,spmi-pmic-arb";
 			reg = <0x01c40000 0x1100>,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 06/12] arm64: dts: qcom: sm6115: Add rpm-stats node
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (4 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 05/12] arm64: dts: qcom: sm6115: Add PRNG node Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 11:17   ` Konrad Dybcio
  2022-11-29 20:46 ` [PATCH 07/12] arm64: dts: qcom: sm6115: Add dispcc node Adam Skladowski
                   ` (5 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add rpm stats node.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 04620c272227..6d14bbcda9d3 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -538,6 +538,11 @@ rpm_msg_ram: sram@45f0000 {
 			reg = <0x045f0000 0x7000>;
 		};
 
+		sram@4690000 {
+			compatible = "qcom,rpm-stats";
+			reg = <0x04690000 0x10000>;
+		};
+
 		sdhc_1: mmc@4744000 {
 			compatible = "qcom,sm6115-sdhci", "qcom,sdhci-msm-v5";
 			reg = <0x04744000 0x1000>, <0x04745000 0x1000>, <0x04748000 0x8000>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 07/12] arm64: dts: qcom: sm6115: Add dispcc node
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (5 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 06/12] arm64: dts: qcom: sm6115: Add rpm-stats node Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 11:18   ` Konrad Dybcio
  2022-11-29 20:46 ` [PATCH 08/12] arm64: dts: qcom: sm6115: Add mdss/dpu node Adam Skladowski
                   ` (4 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add display clock controller to allow controlling display related clocks.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 6d14bbcda9d3..ea0e0b3c5d84 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -4,6 +4,7 @@
  */
 
 #include <dt-bindings/clock/qcom,gcc-sm6115.h>
+#include <dt-bindings/clock/qcom,sm6115-dispcc.h>
 #include <dt-bindings/clock/qcom,rpmcc.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -717,6 +718,19 @@ usb_1_dwc3: usb@4e00000 {
 			};
 		};
 
+		dispcc: clock-controller@5f00000 {
+			compatible = "qcom,sm6115-dispcc";
+			reg = <0x05f00000 0x20000>;
+			clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
+				 <&sleep_clk>,
+				 <&dsi0_phy 0>,
+				 <&dsi0_phy 1>,
+				 <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>;
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+			#power-domain-cells = <1>;
+		};
+
 		apps_smmu: iommu@c600000 {
 			compatible = "qcom,sm6115-smmu-500", "arm,mmu-500";
 			reg = <0x0c600000 0x80000>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 08/12] arm64: dts: qcom: sm6115: Add mdss/dpu node
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (6 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 07/12] arm64: dts: qcom: sm6115: Add dispcc node Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 11:18   ` Konrad Dybcio
  2022-11-29 20:46 ` [PATCH 09/12] arm64: dts: qcom: sm6115: Add GPI DMA Adam Skladowski
                   ` (3 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add mdss and dpu node to enable display support on SM6115.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 183 +++++++++++++++++++++++++++
 1 file changed, 183 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index ea0e0b3c5d84..b459f1746a7f 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -718,6 +718,189 @@ usb_1_dwc3: usb@4e00000 {
 			};
 		};
 
+		mdss: display-subsystem@5e00000 {
+			compatible = "qcom,sm6115-mdss";
+			reg = <0x05e00000 0x1000>;
+			reg-names = "mdss";
+
+			power-domains = <&dispcc MDSS_GDSC>;
+
+			clocks = <&gcc GCC_DISP_AHB_CLK>,
+				 <&gcc GCC_DISP_HF_AXI_CLK>,
+				 <&dispcc DISP_CC_MDSS_MDP_CLK>;
+
+			interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-controller;
+			#interrupt-cells = <1>;
+
+			iommus = <&apps_smmu 0x420 0x2>,
+				 <&apps_smmu 0x421 0x0>;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			status = "disabled";
+
+			mdp: display-controller@5e01000 {
+				compatible = "qcom,sm6115-dpu";
+				reg = <0x05e01000 0x8f000>,
+				      <0x05eb0000 0x2008>;
+				reg-names = "mdp", "vbif";
+
+				clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
+					 <&dispcc DISP_CC_MDSS_AHB_CLK>,
+					 <&dispcc DISP_CC_MDSS_MDP_CLK>,
+					 <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>,
+					 <&dispcc DISP_CC_MDSS_ROT_CLK>,
+					 <&dispcc DISP_CC_MDSS_VSYNC_CLK>;
+				clock-names = "bus",
+					      "iface",
+					      "core",
+					      "lut",
+					      "rot",
+					      "vsync";
+
+				operating-points-v2 = <&mdp_opp_table>;
+				power-domains = <&rpmpd SM6115_VDDCX>;
+
+				interrupt-parent = <&mdss>;
+				interrupts = <0>;
+
+				ports {
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					port@0 {
+						reg = <0>;
+						dpu_intf1_out: endpoint {
+							remote-endpoint = <&dsi0_in>;
+						};
+					};
+				};
+
+				mdp_opp_table: opp-table {
+					compatible = "operating-points-v2";
+
+					opp-19200000 {
+						opp-hz = /bits/ 64 <19200000>;
+						required-opps = <&rpmpd_opp_min_svs>;
+					};
+
+					opp-192000000 {
+						opp-hz = /bits/ 64 <192000000>;
+						required-opps = <&rpmpd_opp_low_svs>;
+					};
+
+					opp-256000000 {
+						opp-hz = /bits/ 64 <256000000>;
+						required-opps = <&rpmpd_opp_svs>;
+					};
+
+					opp-307200000 {
+						opp-hz = /bits/ 64 <307200000>;
+						required-opps = <&rpmpd_opp_svs_plus>;
+					};
+
+					opp-384000000 {
+						opp-hz = /bits/ 64 <384000000>;
+						required-opps = <&rpmpd_opp_nom>;
+					};
+				};
+			};
+
+			dsi0: dsi@5e94000 {
+				compatible = "qcom,dsi-ctrl-6g-qcm2290";
+				reg = <0x05e94000 0x400>;
+				reg-names = "dsi_ctrl";
+
+				interrupt-parent = <&mdss>;
+				interrupts = <4>;
+
+				clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK>,
+					 <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>,
+					 <&dispcc DISP_CC_MDSS_PCLK0_CLK>,
+					 <&dispcc DISP_CC_MDSS_ESC0_CLK>,
+					 <&dispcc DISP_CC_MDSS_AHB_CLK>,
+					 <&gcc GCC_DISP_HF_AXI_CLK>;
+				clock-names = "byte",
+					      "byte_intf",
+					      "pixel",
+					      "core",
+					      "iface",
+					      "bus";
+
+				assigned-clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK_SRC>,
+						  <&dispcc DISP_CC_MDSS_PCLK0_CLK_SRC>;
+				assigned-clock-parents = <&dsi0_phy 0>, <&dsi0_phy 1>;
+
+				operating-points-v2 = <&dsi_opp_table>;
+				power-domains = <&rpmpd SM6115_VDDCX>;
+				phys = <&dsi0_phy>;
+
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				status = "disabled";
+
+				ports {
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					port@0 {
+						reg = <0>;
+						dsi0_in: endpoint {
+							remote-endpoint = <&dpu_intf1_out>;
+						};
+					};
+
+					port@1 {
+						reg = <1>;
+						dsi0_out: endpoint {
+						};
+					};
+				};
+
+				dsi_opp_table: opp-table {
+					compatible = "operating-points-v2";
+
+					opp-19200000 {
+						opp-hz = /bits/ 64 <19200000>;
+						required-opps = <&rpmpd_opp_min_svs>;
+					};
+
+					opp-164000000 {
+						opp-hz = /bits/ 64 <164000000>;
+						required-opps = <&rpmpd_opp_low_svs>;
+					};
+
+					opp-187500000 {
+						opp-hz = /bits/ 64 <187500000>;
+						required-opps = <&rpmpd_opp_svs>;
+					};
+				};
+			};
+
+			dsi0_phy: phy@5e94400 {
+				compatible = "qcom,dsi-phy-14nm-2290";
+				reg = <0x05e94400 0x100>,
+				      <0x05e94500 0x300>,
+				      <0x05e94800 0x188>;
+				reg-names = "dsi_phy",
+					    "dsi_phy_lane",
+					    "dsi_pll";
+
+				#clock-cells = <1>;
+				#phy-cells = <0>;
+
+				clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
+					 <&rpmcc RPM_SMD_XO_CLK_SRC>;
+				clock-names = "iface", "ref";
+
+				status = "disabled";
+			};
+		};
+
 		dispcc: clock-controller@5f00000 {
 			compatible = "qcom,sm6115-dispcc";
 			reg = <0x05f00000 0x20000>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 09/12] arm64: dts: qcom: sm6115: Add GPI DMA
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (7 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 08/12] arm64: dts: qcom: sm6115: Add mdss/dpu node Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 11:19   ` Konrad Dybcio
  2022-11-29 20:46 ` [PATCH 10/12] arm64: dts: qcom: sm6115: Add i2c/spi nodes Adam Skladowski
                   ` (2 subsequent siblings)
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add GPI DMA node which will be wired to i2c/spi/uart.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index b459f1746a7f..e9de7aa1efdd 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -673,6 +673,26 @@ ufs_mem_phy_lanes: phy@4807400 {
 			};
 		};
 
+		gpi_dma0: dma-controller@4a00000 {
+			compatible = "qcom,sm6115-gpi-dma", "qcom,sm6350-gpi-dma";
+			reg = <0x04a00000 0x60000>;
+			interrupts = <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 344 IRQ_TYPE_LEVEL_HIGH>;
+			dma-channels =  <10>;
+			dma-channel-mask = <0xf>;
+			iommus = <&apps_smmu 0xf6 0x0>;
+			#dma-cells = <3>;
+			status = "disabled";
+		};
+
 		usb_1: usb@4ef8800 {
 			compatible = "qcom,sm6115-dwc3", "qcom,dwc3";
 			reg = <0x04ef8800 0x400>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 10/12] arm64: dts: qcom: sm6115: Add i2c/spi nodes
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (8 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 09/12] arm64: dts: qcom: sm6115: Add GPI DMA Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 15:10   ` Krzysztof Kozlowski
  2022-11-29 20:46 ` [PATCH 11/12] arm64: dts: qcom: sm6115: Add WCN node Adam Skladowski
  2022-11-29 20:46 ` [PATCH 12/12] arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible Adam Skladowski
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add I2C/SPI nodes for SM6115.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 287 +++++++++++++++++++++++++++
 1 file changed, 287 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index e9de7aa1efdd..d14a4595be8a 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -6,6 +6,7 @@
 #include <dt-bindings/clock/qcom,gcc-sm6115.h>
 #include <dt-bindings/clock/qcom,sm6115-dispcc.h>
 #include <dt-bindings/clock/qcom,rpmcc.h>
+#include <dt-bindings/dma/qcom-gpi.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/power/qcom-rpmpd.h>
@@ -357,6 +358,90 @@ tlmm: pinctrl@500000 {
 			interrupt-controller;
 			#interrupt-cells = <2>;
 
+			qup_i2c0_default: qup-i2c0-default {
+				pins = "gpio0", "gpio1";
+				function = "qup0";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_i2c1_default: qup-i2c1-default {
+				pins = "gpio4", "gpio5";
+				function = "qup1";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_i2c2_default: qup-i2c2-default {
+				pins = "gpio6", "gpio7";
+				function = "qup2";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_i2c3_default: qup-i2c3-default {
+				pins = "gpio8", "gpio9";
+				function = "qup3";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_i2c4_default: qup-i2c4-default {
+				pins = "gpio12", "gpio13";
+				function = "qup4";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_i2c5_default: qup-i2c5-default {
+				pins = "gpio14", "gpio15";
+				function = "qup5";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_spi0_default: qup-spi0-default {
+				pins = "gpio0", "gpio1","gpio2", "gpio3";
+				function = "qup0";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_spi1_default: qup-spi1-default {
+				pins = "gpio4", "gpio5", "gpio69", "gpio70";
+				function = "qup1";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_spi2_default: qup-spi2-default {
+				pins = "gpio6", "gpio7", "gpio71", "gpio80";
+				function = "qup2";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_spi3_default: qup-spi3-default {
+				pins = "gpio8", "gpio9", "gpio10", "gpio11";
+				function = "qup3";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_spi4_default: qup-spi4-default {
+				pins = "gpio12", "gpio13", "gpio96", "gpio97";
+				function = "qup4";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
+			qup_spi5_default: qup-spi5-default {
+				pins = "gpio14", "gpio15", "gpio16", "gpio17";
+				function = "qup5";
+				drive-strength = <2>;
+				bias-pull-up;
+			};
+
 			sdc1_state_on: sdc1-on-state {
 				clk-pins {
 					pins = "sdc1_clk";
@@ -693,6 +778,208 @@ gpi_dma0: dma-controller@4a00000 {
 			status = "disabled";
 		};
 
+		qupv3_id_0: geniqup@4ac0000 {
+			compatible = "qcom,geni-se-qup";
+			reg = <0x04ac0000 0x2000>;
+			clock-names = "m-ahb", "s-ahb";
+			clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
+				 <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			iommus = <&apps_smmu 0xe3 0x0>;
+			ranges;
+			status = "disabled";
+
+			i2c0: i2c@4a80000 {
+				compatible = "qcom,geni-i2c";
+				reg = <0x04a80000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_i2c0_default>;
+				interrupts = <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 0 QCOM_GPI_I2C>,
+				       <&gpi_dma0 1 0 QCOM_GPI_I2C>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			spi0: spi@4a80000 {
+				compatible = "qcom,geni-spi";
+				reg = <0x04a80000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_spi0_default>;
+				interrupts = <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			i2c1: i2c@4a84000 {
+				compatible = "qcom,geni-i2c";
+				reg = <0x04a84000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S1_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_i2c1_default>;
+				interrupts = <GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 1 QCOM_GPI_I2C>,
+				       <&gpi_dma0 1 1 QCOM_GPI_I2C>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			spi1: spi@4a84000 {
+				compatible = "qcom,geni-spi";
+				reg = <0x04a84000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S1_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_spi1_default>;
+				interrupts = <GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 1 QCOM_GPI_SPI>,
+				       <&gpi_dma0 1 1 QCOM_GPI_SPI>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			i2c2: i2c@4a88000 {
+				compatible = "qcom,geni-i2c";
+				reg = <0x04a88000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_i2c2_default>;
+				interrupts = <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 2 QCOM_GPI_I2C>,
+				       <&gpi_dma0 1 2 QCOM_GPI_I2C>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			spi2: spi@4a88000 {
+				compatible = "qcom,geni-spi";
+				reg = <0x04a88000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_spi2_default>;
+				interrupts = <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 2 QCOM_GPI_SPI>,
+				       <&gpi_dma0 1 2 QCOM_GPI_SPI>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			i2c3: i2c@4a8c000 {
+				compatible = "qcom,geni-i2c";
+				reg = <0x04a8c000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S3_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_i2c3_default>;
+				interrupts = <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 3 QCOM_GPI_I2C>,
+				       <&gpi_dma0 1 3 QCOM_GPI_I2C>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			spi3: spi@4a8c000 {
+				compatible = "qcom,geni-spi";
+				reg = <0x04a8c000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S3_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_spi3_default>;
+				interrupts = <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 3 QCOM_GPI_SPI>,
+				       <&gpi_dma0 1 3 QCOM_GPI_SPI>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			i2c4: i2c@4a90000 {
+				compatible = "qcom,geni-i2c";
+				reg = <0x04a90000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S4_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_i2c4_default>;
+				interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 4 QCOM_GPI_I2C>,
+				       <&gpi_dma0 1 4 QCOM_GPI_I2C>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			spi4: spi@4a90000 {
+				compatible = "qcom,geni-spi";
+				reg = <0x04a90000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S4_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_spi4_default>;
+				interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 4 QCOM_GPI_SPI>,
+				       <&gpi_dma0 1 4 QCOM_GPI_SPI>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			i2c5: i2c@4a94000 {
+				compatible = "qcom,geni-i2c";
+				reg = <0x04a94000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_i2c5_default>;
+				interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 5 QCOM_GPI_I2C>,
+				       <&gpi_dma0 1 5 QCOM_GPI_I2C>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+
+			spi5: spi@4a94000 {
+				compatible = "qcom,geni-spi";
+				reg = <0x04a94000 0x4000>;
+				clock-names = "se";
+				clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&qup_spi5_default>;
+				interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&gpi_dma0 0 5 QCOM_GPI_SPI>,
+				       <&gpi_dma0 1 5 QCOM_GPI_SPI>;
+				dma-names = "tx", "rx";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				status = "disabled";
+			};
+		};
+
 		usb_1: usb@4ef8800 {
 			compatible = "qcom,sm6115-dwc3", "qcom,dwc3";
 			reg = <0x04ef8800 0x400>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 11/12] arm64: dts: qcom: sm6115: Add WCN node.
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (9 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 10/12] arm64: dts: qcom: sm6115: Add i2c/spi nodes Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-29 20:46 ` [PATCH 12/12] arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible Adam Skladowski
  11 siblings, 0 replies; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Add WCN node to allow using wifi module.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index d14a4595be8a..36d1cff23d10 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -1294,6 +1294,28 @@ apps_smmu: iommu@c600000 {
 				     <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		wifi: wifi@c800000 {
+			compatible = "qcom,wcn3990-wifi";
+			reg = <0x0c800000 0x800000>;
+			reg-names = "membase";
+			memory-region = <&wlan_msa_mem>;
+			interrupts = <GIC_SPI 358 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 362 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 363 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;
+			iommus = <&apps_smmu 0x1a0 0x1>;
+			qcom,msa-fixed-perm;
+			status = "disabled";
+		};
+
 		apcs_glb: mailbox@f111000 {
 			compatible = "qcom,sm6115-apcs-hmss-global";
 			reg = <0x0f111000 0x1000>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 12/12] arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible
  2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
                   ` (10 preceding siblings ...)
  2022-11-29 20:46 ` [PATCH 11/12] arm64: dts: qcom: sm6115: Add WCN node Adam Skladowski
@ 2022-11-29 20:46 ` Adam Skladowski
  2022-11-30 11:20   ` Konrad Dybcio
  11 siblings, 1 reply; 23+ messages in thread
From: Adam Skladowski @ 2022-11-29 20:46 UTC (permalink / raw)
  Cc: Rafael J. Wysocki, Amit Kucheria, dri-devel, Krzysztof Kozlowski,
	phone-devel, Daniel Lezcano, Andy Gross, Zhang Rui, devicetree,
	Thara Gopinath, linux-pm, linux-arm-msm, Adam Skladowski,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

Change fallback to qcom generic compatible
in order to prevent reboot during SMMU initialization.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 36d1cff23d10..b00d74055eb1 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -1222,7 +1222,7 @@ dispcc: clock-controller@5f00000 {
 		};
 
 		apps_smmu: iommu@c600000 {
-			compatible = "qcom,sm6115-smmu-500", "arm,mmu-500";
+			compatible = "qcom,sm6115-smmu-500", "qcom,smmu-500", "arm,mmu-500";
 			reg = <0x0c600000 0x80000>;
 			#iommu-cells = <2>;
 			#global-interrupts = <1>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: [PATCH 04/12] arm64: dts: qcom: sm6115: Add TSENS node
  2022-11-29 20:46 ` [PATCH 04/12] arm64: dts: qcom: sm6115: Add TSENS node Adam Skladowski
@ 2022-11-30 11:16   ` Konrad Dybcio
  0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2022-11-30 11:16 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Dmitry Baryshkov,
	freedreno



On 29.11.2022 21:46, Adam Skladowski wrote:
> Add nodes required for TSENS block using the common qcom,tsens-v2 binding.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/sm6115.dtsi | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index 2003a2519a54..decbf7ca8a03 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -515,6 +515,17 @@ spmi_bus: spmi@1c40000 {
>  			#interrupt-cells = <4>;
>  		};
>  
> +		tsens0: thermal-sensor@4410000 {
> +			compatible = "qcom,sm6115-tsens", "qcom,tsens-v2";
> +			reg = <0x04411000 0x1ff>, /* TM */
> +			      <0x04410000 0x8>; /* SROT */
> +			#qcom,sensors = <16>;
> +			interrupts = <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "uplow", "critical";
> +			#thermal-sensor-cells = <1>;
> +		};
> +
>  		rpm_msg_ram: sram@45f0000 {
>  			compatible = "qcom,rpm-msg-ram";
>  			reg = <0x045f0000 0x7000>;

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 05/12] arm64: dts: qcom: sm6115: Add PRNG node
  2022-11-29 20:46 ` [PATCH 05/12] arm64: dts: qcom: sm6115: Add PRNG node Adam Skladowski
@ 2022-11-30 11:17   ` Konrad Dybcio
  0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2022-11-30 11:17 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Dmitry Baryshkov,
	freedreno



On 29.11.2022 21:46, Adam Skladowski wrote:
> Add a node for the PRNG to enable hw-accelerated pseudo-random number
> generation.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
>  ar
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
ch/arm64/boot/dts/qcom/sm6115.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index decbf7ca8a03..04620c272227 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -497,6 +497,13 @@ qusb2_hstx_trim: hstx-trim@25b {
>  			};
>  		};
>  
> +		rng: rng@1b53000 {
> +			compatible = "qcom,prng-ee";
> +			reg = <0x01b53000 0x1000>;
> +			clocks = <&gcc GCC_PRNG_AHB_CLK>;
> +			clock-names = "core";
> +		};
> +
>  		spmi_bus: spmi@1c40000 {
>  			compatible = "qcom,spmi-pmic-arb";
>  			reg = <0x01c40000 0x1100>,

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 06/12] arm64: dts: qcom: sm6115: Add rpm-stats node
  2022-11-29 20:46 ` [PATCH 06/12] arm64: dts: qcom: sm6115: Add rpm-stats node Adam Skladowski
@ 2022-11-30 11:17   ` Konrad Dybcio
  0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2022-11-30 11:17 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Dmitry Baryshkov,
	freedreno



On 29.11.2022 21:46, Adam Skladowski wrote:
> Add rpm stats node.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/sm6115.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index 04620c272227..6d14bbcda9d3 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -538,6 +538,11 @@ rpm_msg_ram: sram@45f0000 {
>  			reg = <0x045f0000 0x7000>;
>  		};
>  
> +		sram@4690000 {
> +			compatible = "qcom,rpm-stats";
> +			reg = <0x04690000 0x10000>;
> +		};
> +
>  		sdhc_1: mmc@4744000 {
>  			compatible = "qcom,sm6115-sdhci", "qcom,sdhci-msm-v5";
>  			reg = <0x04744000 0x1000>, <0x04745000 0x1000>, <0x04748000 0x8000>;

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 07/12] arm64: dts: qcom: sm6115: Add dispcc node
  2022-11-29 20:46 ` [PATCH 07/12] arm64: dts: qcom: sm6115: Add dispcc node Adam Skladowski
@ 2022-11-30 11:18   ` Konrad Dybcio
  0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2022-11-30 11:18 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Dmitry Baryshkov,
	freedreno



On 29.11.2022 21:46, Adam Skladowski wrote:
> Add display clock controller to allow controlling display related clocks.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/sm6115.dtsi | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index 6d14bbcda9d3..ea0e0b3c5d84 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -4,6 +4,7 @@
>   */
>  
>  #include <dt-bindings/clock/qcom,gcc-sm6115.h>
> +#include <dt-bindings/clock/qcom,sm6115-dispcc.h>
>  #include <dt-bindings/clock/qcom,rpmcc.h>
>  #include <dt-bindings/gpio/gpio.h>
>  #include <dt-bindings/interrupt-controller/arm-gic.h>
> @@ -717,6 +718,19 @@ usb_1_dwc3: usb@4e00000 {
>  			};
>  		};
>  
> +		dispcc: clock-controller@5f00000 {
> +			compatible = "qcom,sm6115-dispcc";
> +			reg = <0x05f00000 0x20000>;
> +			clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
> +				 <&sleep_clk>,
> +				 <&dsi0_phy 0>,
> +				 <&dsi0_phy 1>,
> +				 <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>;
> +			#clock-cells = <1>;
> +			#reset-cells = <1>;
> +			#power-domain-cells = <1>;
> +		};
> +
>  		apps_smmu: iommu@c600000 {
>  			compatible = "qcom,sm6115-smmu-500", "arm,mmu-500";
>  			reg = <0x0c600000 0x80000>;

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 08/12] arm64: dts: qcom: sm6115: Add mdss/dpu node
  2022-11-29 20:46 ` [PATCH 08/12] arm64: dts: qcom: sm6115: Add mdss/dpu node Adam Skladowski
@ 2022-11-30 11:18   ` Konrad Dybcio
  0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2022-11-30 11:18 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Dmitry Baryshkov,
	freedreno



On 29.11.2022 21:46, Adam Skladowski wrote:
> Add mdss and dpu node to enable display support on SM6115.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/sm6115.dtsi | 183 +++++++++++++++++++++++++++
>  1 file changed, 183 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index ea0e0b3c5d84..b459f1746a7f 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -718,6 +718,189 @@ usb_1_dwc3: usb@4e00000 {
>  			};
>  		};
>  
> +		mdss: display-subsystem@5e00000 {
> +			compatible = "qcom,sm6115-mdss";
> +			reg = <0x05e00000 0x1000>;
> +			reg-names = "mdss";
> +
> +			power-domains = <&dispcc MDSS_GDSC>;
> +
> +			clocks = <&gcc GCC_DISP_AHB_CLK>,
> +				 <&gcc GCC_DISP_HF_AXI_CLK>,
> +				 <&dispcc DISP_CC_MDSS_MDP_CLK>;
> +
> +			interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-controller;
> +			#interrupt-cells = <1>;
> +
> +			iommus = <&apps_smmu 0x420 0x2>,
> +				 <&apps_smmu 0x421 0x0>;
> +
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			ranges;
> +
> +			status = "disabled";
> +
> +			mdp: display-controller@5e01000 {
> +				compatible = "qcom,sm6115-dpu";
> +				reg = <0x05e01000 0x8f000>,
> +				      <0x05eb0000 0x2008>;
> +				reg-names = "mdp", "vbif";
> +
> +				clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
> +					 <&dispcc DISP_CC_MDSS_AHB_CLK>,
> +					 <&dispcc DISP_CC_MDSS_MDP_CLK>,
> +					 <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>,
> +					 <&dispcc DISP_CC_MDSS_ROT_CLK>,
> +					 <&dispcc DISP_CC_MDSS_VSYNC_CLK>;
> +				clock-names = "bus",
> +					      "iface",
> +					      "core",
> +					      "lut",
> +					      "rot",
> +					      "vsync";
> +
> +				operating-points-v2 = <&mdp_opp_table>;
> +				power-domains = <&rpmpd SM6115_VDDCX>;
> +
> +				interrupt-parent = <&mdss>;
> +				interrupts = <0>;
> +
> +				ports {
> +					#address-cells = <1>;
> +					#size-cells = <0>;
> +
> +					port@0 {
> +						reg = <0>;
> +						dpu_intf1_out: endpoint {
> +							remote-endpoint = <&dsi0_in>;
> +						};
> +					};
> +				};
> +
> +				mdp_opp_table: opp-table {
> +					compatible = "operating-points-v2";
> +
> +					opp-19200000 {
> +						opp-hz = /bits/ 64 <19200000>;
> +						required-opps = <&rpmpd_opp_min_svs>;
> +					};
> +
> +					opp-192000000 {
> +						opp-hz = /bits/ 64 <192000000>;
> +						required-opps = <&rpmpd_opp_low_svs>;
> +					};
> +
> +					opp-256000000 {
> +						opp-hz = /bits/ 64 <256000000>;
> +						required-opps = <&rpmpd_opp_svs>;
> +					};
> +
> +					opp-307200000 {
> +						opp-hz = /bits/ 64 <307200000>;
> +						required-opps = <&rpmpd_opp_svs_plus>;
> +					};
> +
> +					opp-384000000 {
> +						opp-hz = /bits/ 64 <384000000>;
> +						required-opps = <&rpmpd_opp_nom>;
> +					};
> +				};
> +			};
> +
> +			dsi0: dsi@5e94000 {
> +				compatible = "qcom,dsi-ctrl-6g-qcm2290";
> +				reg = <0x05e94000 0x400>;
> +				reg-names = "dsi_ctrl";
> +
> +				interrupt-parent = <&mdss>;
> +				interrupts = <4>;
> +
> +				clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK>,
> +					 <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>,
> +					 <&dispcc DISP_CC_MDSS_PCLK0_CLK>,
> +					 <&dispcc DISP_CC_MDSS_ESC0_CLK>,
> +					 <&dispcc DISP_CC_MDSS_AHB_CLK>,
> +					 <&gcc GCC_DISP_HF_AXI_CLK>;
> +				clock-names = "byte",
> +					      "byte_intf",
> +					      "pixel",
> +					      "core",
> +					      "iface",
> +					      "bus";
> +
> +				assigned-clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK_SRC>,
> +						  <&dispcc DISP_CC_MDSS_PCLK0_CLK_SRC>;
> +				assigned-clock-parents = <&dsi0_phy 0>, <&dsi0_phy 1>;
> +
> +				operating-points-v2 = <&dsi_opp_table>;
> +				power-domains = <&rpmpd SM6115_VDDCX>;
> +				phys = <&dsi0_phy>;
> +
> +				#address-cells = <1>;
> +				#size-cells = <0>;
> +
> +				status = "disabled";
> +
> +				ports {
> +					#address-cells = <1>;
> +					#size-cells = <0>;
> +
> +					port@0 {
> +						reg = <0>;
> +						dsi0_in: endpoint {
> +							remote-endpoint = <&dpu_intf1_out>;
> +						};
> +					};
> +
> +					port@1 {
> +						reg = <1>;
> +						dsi0_out: endpoint {
> +						};
> +					};
> +				};
> +
> +				dsi_opp_table: opp-table {
> +					compatible = "operating-points-v2";
> +
> +					opp-19200000 {
> +						opp-hz = /bits/ 64 <19200000>;
> +						required-opps = <&rpmpd_opp_min_svs>;
> +					};
> +
> +					opp-164000000 {
> +						opp-hz = /bits/ 64 <164000000>;
> +						required-opps = <&rpmpd_opp_low_svs>;
> +					};
> +
> +					opp-187500000 {
> +						opp-hz = /bits/ 64 <187500000>;
> +						required-opps = <&rpmpd_opp_svs>;
> +					};
> +				};
> +			};
> +
> +			dsi0_phy: phy@5e94400 {
> +				compatible = "qcom,dsi-phy-14nm-2290";
> +				reg = <0x05e94400 0x100>,
> +				      <0x05e94500 0x300>,
> +				      <0x05e94800 0x188>;
> +				reg-names = "dsi_phy",
> +					    "dsi_phy_lane",
> +					    "dsi_pll";
> +
> +				#clock-cells = <1>;
> +				#phy-cells = <0>;
> +
> +				clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
> +					 <&rpmcc RPM_SMD_XO_CLK_SRC>;
> +				clock-names = "iface", "ref";
> +
> +				status = "disabled";
> +			};
> +		};
> +
>  		dispcc: clock-controller@5f00000 {
>  			compatible = "qcom,sm6115-dispcc";
>  			reg = <0x05f00000 0x20000>;

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 09/12] arm64: dts: qcom: sm6115: Add GPI DMA
  2022-11-29 20:46 ` [PATCH 09/12] arm64: dts: qcom: sm6115: Add GPI DMA Adam Skladowski
@ 2022-11-30 11:19   ` Konrad Dybcio
  0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2022-11-30 11:19 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Dmitry Baryshkov,
	freedreno



On 29.11.2022 21:46, Adam Skladowski wrote:
> Add GPI DMA node which will be wired to i2c/spi/uart.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/sm6115.dtsi | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index b459f1746a7f..e9de7aa1efdd 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -673,6 +673,26 @@ ufs_mem_phy_lanes: phy@4807400 {
>  			};
>  		};
>  
> +		gpi_dma0: dma-controller@4a00000 {
> +			compatible = "qcom,sm6115-gpi-dma", "qcom,sm6350-gpi-dma";
> +			reg = <0x04a00000 0x60000>;
> +			interrupts = <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 344 IRQ_TYPE_LEVEL_HIGH>;
> +			dma-channels =  <10>;
> +			dma-channel-mask = <0xf>;
> +			iommus = <&apps_smmu 0xf6 0x0>;
> +			#dma-cells = <3>;
> +			status = "disabled";
> +		};
> +
>  		usb_1: usb@4ef8800 {
>  			compatible = "qcom,sm6115-dwc3", "qcom,dwc3";
>  			reg = <0x04ef8800 0x400>;

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 12/12] arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible
  2022-11-29 20:46 ` [PATCH 12/12] arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible Adam Skladowski
@ 2022-11-30 11:20   ` Konrad Dybcio
  0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2022-11-30 11:20 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Dmitry Baryshkov,
	freedreno



On 29.11.2022 21:46, Adam Skladowski wrote:
> Change fallback to qcom generic compatible
> in order to prevent reboot during SMMU initialization.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index 36d1cff23d10..b00d74055eb1 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -1222,7 +1222,7 @@ dispcc: clock-controller@5f00000 {
>  		};
>  
>  		apps_smmu: iommu@c600000 {
> -			compatible = "qcom,sm6115-smmu-500", "arm,mmu-500";
> +			compatible = "qcom,sm6115-smmu-500", "qcom,smmu-500", "arm,mmu-500";
>  			reg = <0x0c600000 0x80000>;
>  			#iommu-cells = <2>;
>  			#global-interrupts = <1>;

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem
  2022-11-29 20:46 ` [PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem Adam Skladowski
@ 2022-11-30 15:07   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-30 15:07 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

On 29/11/2022 21:46, Adam Skladowski wrote:
> Follow other YAMLs and replace mdss name.

That's really not explaining what you are doing here. Your commit msg
and subject suggest you rename mdss. But you don't. You touch only examples.

> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
>  .../devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml      | 2 +-
>  .../devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml       | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 02/12] dt-bindings: thermal: tsens: Add SM6115 compatible
  2022-11-29 20:46 ` [PATCH 02/12] dt-bindings: thermal: tsens: Add SM6115 compatible Adam Skladowski
@ 2022-11-30 15:08   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-30 15:08 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

On 29/11/2022 21:46, Adam Skladowski wrote:
> Document compatible for tsens on Qualcomm SM6115 platform
> according to downstream dts it ship v2.4 of IP
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>



Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 10/12] arm64: dts: qcom: sm6115: Add i2c/spi nodes
  2022-11-29 20:46 ` [PATCH 10/12] arm64: dts: qcom: sm6115: Add i2c/spi nodes Adam Skladowski
@ 2022-11-30 15:10   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-30 15:10 UTC (permalink / raw)
  To: Adam Skladowski
  Cc: Rafael J. Wysocki, Thara Gopinath, dri-devel,
	Krzysztof Kozlowski, phone-devel, Daniel Lezcano, Andy Gross,
	Zhang Rui, devicetree, Amit Kucheria, linux-pm, linux-arm-msm,
	Abhinav Kumar, Rob Herring, ~postmarketos/upstreaming, Sean Paul,
	Loic Poulain, Bjorn Andersson, linux-kernel, Konrad Dybcio,
	Dmitry Baryshkov, freedreno

On 29/11/2022 21:46, Adam Skladowski wrote:
> Add I2C/SPI nodes for SM6115.
> 
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> ---
>  arch/arm64/boot/dts/qcom/sm6115.dtsi | 287 +++++++++++++++++++++++++++
>  1 file changed, 287 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> index e9de7aa1efdd..d14a4595be8a 100644
> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
> @@ -6,6 +6,7 @@
>  #include <dt-bindings/clock/qcom,gcc-sm6115.h>
>  #include <dt-bindings/clock/qcom,sm6115-dispcc.h>
>  #include <dt-bindings/clock/qcom,rpmcc.h>
> +#include <dt-bindings/dma/qcom-gpi.h>
>  #include <dt-bindings/gpio/gpio.h>
>  #include <dt-bindings/interrupt-controller/arm-gic.h>
>  #include <dt-bindings/power/qcom-rpmpd.h>
> @@ -357,6 +358,90 @@ tlmm: pinctrl@500000 {
>  			interrupt-controller;
>  			#interrupt-cells = <2>;
>  
> +			qup_i2c0_default: qup-i2c0-default {

Does not look like you tested the bindings. Please run `make
dt_binding_check` (see
Documentation/devicetree/bindings/writing-schema.rst for instructions).

Missing -state suffix. Same in other places.

> +				pins = "gpio0", "gpio1";
> +				function = "qup0";
> +				drive-strength = <2>;
> +				bias-pull-up;
> +			};

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2022-11-30 15:10 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29 20:46 [PATCH 00/12] SM6115 DTS changes Adam Skladowski
2022-11-29 20:46 ` [PATCH 01/12] dt-bindings: display: msm: Replace mdss with display-subsystem Adam Skladowski
2022-11-30 15:07   ` Krzysztof Kozlowski
2022-11-29 20:46 ` [PATCH 02/12] dt-bindings: thermal: tsens: Add SM6115 compatible Adam Skladowski
2022-11-30 15:08   ` Krzysztof Kozlowski
2022-11-29 20:46 ` [PATCH 03/12] arm64: dts: qcom: sm6115: Add cpufreq-hw support Adam Skladowski
2022-11-29 20:46 ` [PATCH 04/12] arm64: dts: qcom: sm6115: Add TSENS node Adam Skladowski
2022-11-30 11:16   ` Konrad Dybcio
2022-11-29 20:46 ` [PATCH 05/12] arm64: dts: qcom: sm6115: Add PRNG node Adam Skladowski
2022-11-30 11:17   ` Konrad Dybcio
2022-11-29 20:46 ` [PATCH 06/12] arm64: dts: qcom: sm6115: Add rpm-stats node Adam Skladowski
2022-11-30 11:17   ` Konrad Dybcio
2022-11-29 20:46 ` [PATCH 07/12] arm64: dts: qcom: sm6115: Add dispcc node Adam Skladowski
2022-11-30 11:18   ` Konrad Dybcio
2022-11-29 20:46 ` [PATCH 08/12] arm64: dts: qcom: sm6115: Add mdss/dpu node Adam Skladowski
2022-11-30 11:18   ` Konrad Dybcio
2022-11-29 20:46 ` [PATCH 09/12] arm64: dts: qcom: sm6115: Add GPI DMA Adam Skladowski
2022-11-30 11:19   ` Konrad Dybcio
2022-11-29 20:46 ` [PATCH 10/12] arm64: dts: qcom: sm6115: Add i2c/spi nodes Adam Skladowski
2022-11-30 15:10   ` Krzysztof Kozlowski
2022-11-29 20:46 ` [PATCH 11/12] arm64: dts: qcom: sm6115: Add WCN node Adam Skladowski
2022-11-29 20:46 ` [PATCH 12/12] arm64: dts: qcom: sm6115: Fallback smmu to qcom generic compatible Adam Skladowski
2022-11-30 11:20   ` Konrad Dybcio

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).