linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings
@ 2025-03-17 17:44 Dmitry Baryshkov
  2025-03-17 17:44 ` [PATCH 1/9] dt-bindings: soc: qcom,rpm: add missing clock-controller node Dmitry Baryshkov
                   ` (9 more replies)
  0 siblings, 10 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

Rob's bot has reported [1] several warnings for Nexus 4 submisson,
however none of those warnings are specific to that device. Fix all
those warnings for all APQ8064 platforms by extending existing schemas,
adding missing schemas and making APQ8064 DT follow all the schema
files.

[1]: https://lore.kernel.org/linux-arm-msm/174221818190.3957236.3364090534153729086.robh@kernel.org/

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Dmitry Baryshkov (9):
      dt-bindings: soc: qcom,rpm: add missing clock-controller node
      dt-bindings: display/msm: describe SFPB device
      dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller
      dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
      ARM: dts: qcom-apq8064: add missing clocks to the timer node
      ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device
      ARM: dts: qcom: apq8064: use new compatible for SFPB device
      ARM: dts: qcom: apq8064: use new compatible for SPS SIC device
      ARM: dts: qcom: apq8064: move replicator out of soc node

 .../arm/arm,coresight-static-replicator.yaml       | 10 +++
 .../devicetree/bindings/display/msm/qcom,sfpb.yaml | 39 ++++++++++
 .../devicetree/bindings/soc/qcom/qcom,rpm.yaml     |  8 ++
 .../devicetree/bindings/soc/qcom/qcom,sps-sic.yaml | 38 ++++++++++
 arch/arm/boot/dts/qcom/qcom-apq8064.dtsi           | 85 +++++++++++-----------
 5 files changed, 136 insertions(+), 44 deletions(-)
---
base-commit: 2bb3cf7805af73af62ebfcbb55e350549b6a0912
change-id: 20250317-fix-nexus-4-dd0fe3bca987

Best regards,
-- 
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>



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

* [PATCH 1/9] dt-bindings: soc: qcom,rpm: add missing clock-controller node
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-18  7:55   ` Krzysztof Kozlowski
  2025-03-17 17:44 ` [PATCH 2/9] dt-bindings: display/msm: describe SFPB device Dmitry Baryshkov
                   ` (8 subsequent siblings)
  9 siblings, 1 reply; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

On Qualcomm platforms in addition to regulators the RPM also provides
clocks via the child clock-controller node. Describe it properly in the
schema.

Fixes: 6b42133d2189 ("dt-bindings: soc: qcom: convert non-smd RPM bindings to dt-schema")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml
index b00be9e01206d1c61802dee9f9ec777c4b946b7b..10956240df0856a4241d6032d3aff7d447af9ce6 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml
@@ -46,6 +46,14 @@ properties:
     description:
       Three entries specifying the outgoing ipc bit used for signaling the RPM.
 
+  clock-controller:
+    type: object
+    additionalProperties: true
+    properties:
+      compatible:
+        contains:
+          const: qcom,rpmcc
+
 patternProperties:
   "^regulators(-[01])?$":
     type: object

-- 
2.39.5



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

* [PATCH 2/9] dt-bindings: display/msm: describe SFPB device
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
  2025-03-17 17:44 ` [PATCH 1/9] dt-bindings: soc: qcom,rpm: add missing clock-controller node Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-18  7:55   ` Krzysztof Kozlowski
  2025-03-17 17:44 ` [PATCH 3/9] dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller Dmitry Baryshkov
                   ` (7 subsequent siblings)
  9 siblings, 1 reply; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

Add DT schema for the MultiMedia SubSystem System FPB device, which
provides several registers to control interface between multimedia
devices (primarily display) and system busses.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 .../devicetree/bindings/display/msm/qcom,sfpb.yaml | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7ca105c97edd2f305527c58ae89b9b0cf22d3c8c
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/msm/qcom,sfpb.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm MultiMedia SubSystem System FPB
+
+maintainers:
+  - Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
+  - Rob Clark <robdclark@gmail.com>
+
+description:
+  The SFPB provides several registers controlling the multimedia attachment to
+  the system busses.
+
+properties:
+  compatible:
+    items:
+      - const: qcom,apq8064-mmss-sfpb
+      - const: syscon
+
+  reg:
+    items:
+      - description: SFPB register block
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    syscon@5700000 {
+        compatible = "qcom,apq8064-mmss-sfpb", "syscon";
+        reg = <0x5700000 0x70>;
+    };
+...

-- 
2.39.5



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

* [PATCH 3/9] dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
  2025-03-17 17:44 ` [PATCH 1/9] dt-bindings: soc: qcom,rpm: add missing clock-controller node Dmitry Baryshkov
  2025-03-17 17:44 ` [PATCH 2/9] dt-bindings: display/msm: describe SFPB device Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-18  7:56   ` Krzysztof Kozlowski
  2025-03-17 17:44 ` [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks Dmitry Baryshkov
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

Add schema to properly describe the SPS SIC block present on APQ8064 and
several similar platforms.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 .../devicetree/bindings/soc/qcom/qcom,sps-sic.yaml | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,sps-sic.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,sps-sic.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ccacf6f45955177dd9302107e09897bfa2f1fd78
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,sps-sic.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/qcom/qcom,sps-sic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Smart Peripheral System Interrupt Controller
+
+maintainers:
+  - Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
+  - Bjorn Andersson <andersson@kernel.org>
+
+description:
+  Smart Peripheral System (SPS) Interrupt Controller (SIC)
+
+properties:
+  compatible:
+    items:
+      - const: qcom,apq8064-sps-sic
+      - const: syscon
+
+  reg:
+    items:
+      - description: SPS SIC register block
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    interrupt-controller@12100000 {
+        compatible = "qcom,apq8064-sps-sic", "syscon";
+        reg = <0x12100000 0x10000>;
+    };
+...

-- 
2.39.5



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

* [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
                   ` (2 preceding siblings ...)
  2025-03-17 17:44 ` [PATCH 3/9] dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-17 19:44   ` Rob Herring (Arm)
                     ` (2 more replies)
  2025-03-17 17:44 ` [PATCH 5/9] ARM: dts: qcom-apq8064: add missing clocks to the timer node Dmitry Baryshkov
                   ` (5 subsequent siblings)
  9 siblings, 3 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

As most other CoreSight devices the replicator can use either of the
optional clocks (or both). Document those optional clocks in the schema.

Fixes: 3c15fddf3121 ("dt-bindings: arm: Convert CoreSight bindings to DT schema")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 .../bindings/arm/arm,coresight-static-replicator.yaml          | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
index a6f793ea03b6c193fc0ff72a45e0249a63a2ba3c..56e64067ed3d63c5e293a0840858f13428bacb45 100644
--- a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
+++ b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
@@ -30,6 +30,16 @@ properties:
   power-domains:
     maxItems: 1
 
+  clocks:
+    minItems: 1
+    maxItems: 2
+
+  clock-names:
+    minItems: 1
+    enum:
+      - apb_pclk
+      - atclk
+
   in-ports:
     $ref: /schemas/graph.yaml#/properties/ports
     additionalProperties: false

-- 
2.39.5



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

* [PATCH 5/9] ARM: dts: qcom-apq8064: add missing clocks to the timer node
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
                   ` (3 preceding siblings ...)
  2025-03-17 17:44 ` [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-17 17:44 ` [PATCH 6/9] ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device Dmitry Baryshkov
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

In order to fix DT schema warning and describe hardware properly, add
missing sleep clock to the timer node.

Fixes: f335b8af4fd5 ("ARM: dts: qcom: Add initial APQ8064 SoC and IFC6410 board device trees")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
index 5f1a6b4b764492486df1a2610979f56c0a37b64a..ba99e794dcd2236f65f2f3d8c49213cfdaee5f6e 100644
--- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
@@ -326,6 +326,8 @@ timer@200a000 {
 				     <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
 			reg = <0x0200a000 0x100>;
 			clock-frequency = <27000000>;
+			clocks = <&sleep_clk>;
+			clock-names = "sleep";
 			cpu-offset = <0x80000>;
 		};
 

-- 
2.39.5



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

* [PATCH 6/9] ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
                   ` (4 preceding siblings ...)
  2025-03-17 17:44 ` [PATCH 5/9] ARM: dts: qcom-apq8064: add missing clocks to the timer node Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-18 12:08   ` Konrad Dybcio
  2025-03-17 17:44 ` [PATCH 7/9] ARM: dts: qcom: apq8064: use new compatible for SFPB device Dmitry Baryshkov
                   ` (3 subsequent siblings)
  9 siblings, 1 reply; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

Follow up the expected way of describing the SFPB hwspinlock and merge
hwspinlock node into corresponding syscon node, fixing several dt-schema
warnings.

Fixes: 24a9baf933dc ("ARM: dts: qcom: apq8064: Add hwmutex and SMEM nodes")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
index ba99e794dcd2236f65f2f3d8c49213cfdaee5f6e..3728875a5506397b36a4c0d6a5ad12c067bbdd8c 100644
--- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
@@ -213,12 +213,6 @@ sleep_clk: sleep_clk {
 		};
 	};
 
-	sfpb_mutex: hwmutex {
-		compatible = "qcom,sfpb-mutex";
-		syscon = <&sfpb_wrapper_mutex 0x604 0x4>;
-		#hwlock-cells = <1>;
-	};
-
 	smem {
 		compatible = "qcom,smem";
 		memory-region = <&smem_region>;
@@ -305,9 +299,10 @@ tlmm_pinmux: pinctrl@800000 {
 			pinctrl-0 = <&ps_hold_default_state>;
 		};
 
-		sfpb_wrapper_mutex: syscon@1200000 {
-			compatible = "syscon";
+		sfpb_mutex: hwmutex@1200000 {
+			compatible = "qcom,sfpb-mutex";
 			reg = <0x01200000 0x8000>;
+			#hwlock-cells = <1>;
 		};
 
 		intc: interrupt-controller@2000000 {

-- 
2.39.5



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

* [PATCH 7/9] ARM: dts: qcom: apq8064: use new compatible for SFPB device
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
                   ` (5 preceding siblings ...)
  2025-03-17 17:44 ` [PATCH 6/9] ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-17 17:44 ` [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device Dmitry Baryshkov
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

Use new SoC-specific compatible for the SFPB device node in addition to
the "syscon" compatible.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
index 3728875a5506397b36a4c0d6a5ad12c067bbdd8c..522387700fc8ce854c0995636998d2d4237e33df 100644
--- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
@@ -1086,7 +1086,7 @@ opp-27000000 {
 		};
 
 		mmss_sfpb: syscon@5700000 {
-			compatible = "syscon";
+			compatible = "qcom,apq8064-mmss-sfpb", "syscon";
 			reg = <0x5700000 0x70>;
 		};
 

-- 
2.39.5



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

* [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
                   ` (6 preceding siblings ...)
  2025-03-17 17:44 ` [PATCH 7/9] ARM: dts: qcom: apq8064: use new compatible for SFPB device Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-18 12:13   ` Konrad Dybcio
  2025-03-17 17:44 ` [PATCH 9/9] ARM: dts: qcom: apq8064: move replicator out of soc node Dmitry Baryshkov
  2025-03-17 20:37 ` [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Rob Herring (Arm)
  9 siblings, 1 reply; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

Use new SoC-specific compatible to the SPS SIC in addition to the
"syscon" compatible and rename the node to follow the purpose of it.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
index 522387700fc8ce854c0995636998d2d4237e33df..a106f9f984fcb51dea1fff1515e6f290b36ccf99 100644
--- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
@@ -402,8 +402,8 @@ saw3_vreg: regulator {
 			};
 		};
 
-		sps_sic_non_secure: sps-sic-non-secure@12100000 {
-			compatible = "syscon";
+		sps_sic_non_secure: interrupt-controller@12100000 {
+			compatible = "qcom,apq8064-sps-sic", "syscon";
 			reg = <0x12100000 0x10000>;
 		};
 

-- 
2.39.5



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

* [PATCH 9/9] ARM: dts: qcom: apq8064: move replicator out of soc node
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
                   ` (7 preceding siblings ...)
  2025-03-17 17:44 ` [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device Dmitry Baryshkov
@ 2025-03-17 17:44 ` Dmitry Baryshkov
  2025-03-18 12:15   ` Konrad Dybcio
  2025-03-17 20:37 ` [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Rob Herring (Arm)
  9 siblings, 1 reply; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-17 17:44 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

The CoreSight replicator device isn't a part of the system MMIO bus, as
such it should not be a part of the soc node. Follow the example of
other platforms and move it out of the soc bus to the top-level.

Fixes: 7a5c275fd821 ("ARM: dts: qcom: Add apq8064 CoreSight components")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 66 ++++++++++++++++----------------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
index a106f9f984fcb51dea1fff1515e6f290b36ccf99..acd94f3ba0350c5dcdd8f80885ee643d8cbddac7 100644
--- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
@@ -278,6 +278,39 @@ scm {
 		};
 	};
 
+	replicator {
+		compatible = "arm,coresight-static-replicator";
+
+		clocks = <&rpmcc RPM_QDSS_CLK>;
+		clock-names = "apb_pclk";
+
+		out-ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				replicator_out0: endpoint {
+					remote-endpoint = <&etb_in>;
+				};
+			};
+			port@1 {
+				reg = <1>;
+				replicator_out1: endpoint {
+					remote-endpoint = <&tpiu_in>;
+				};
+			};
+		};
+
+		in-ports {
+			port {
+				replicator_in: endpoint {
+					remote-endpoint = <&funnel_out>;
+				};
+			};
+		};
+	};
+
 	soc: soc {
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -1529,39 +1562,6 @@ tpiu_in: endpoint {
 			};
 		};
 
-		replicator {
-			compatible = "arm,coresight-static-replicator";
-
-			clocks = <&rpmcc RPM_QDSS_CLK>;
-			clock-names = "apb_pclk";
-
-			out-ports {
-				#address-cells = <1>;
-				#size-cells = <0>;
-
-				port@0 {
-					reg = <0>;
-					replicator_out0: endpoint {
-						remote-endpoint = <&etb_in>;
-					};
-				};
-				port@1 {
-					reg = <1>;
-					replicator_out1: endpoint {
-						remote-endpoint = <&tpiu_in>;
-					};
-				};
-			};
-
-			in-ports {
-				port {
-					replicator_in: endpoint {
-						remote-endpoint = <&funnel_out>;
-					};
-				};
-			};
-		};
-
 		funnel@1a04000 {
 			compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
 			reg = <0x1a04000 0x1000>;

-- 
2.39.5



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

* Re: [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
  2025-03-17 17:44 ` [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks Dmitry Baryshkov
@ 2025-03-17 19:44   ` Rob Herring (Arm)
  2025-03-18 10:28   ` Konrad Dybcio
  2025-03-18 10:38   ` Suzuki K Poulose
  2 siblings, 0 replies; 28+ messages in thread
From: Rob Herring (Arm) @ 2025-03-17 19:44 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Dmitry Baryshkov, Abhinav Kumar, Conor Dooley, Marijn Suijten,
	Georgi Djakov, James Clark, Bjorn Andersson, Andy Gross,
	Simona Vetter, linux-arm-kernel, Leo Yan, Andy Gross, devicetree,
	dri-devel, Konrad Dybcio, David Airlie, Krzysztof Kozlowski,
	Lee Jones, coresight, Maarten Lankhorst, Ivan T. Ivanov,
	Mike Leach, Maxime Ripard, linux-kernel, Rob Clark,
	Thomas Zimmermann, David Heidelberg, freedreno, Sean Paul,
	linux-arm-msm, Neil Armstrong, Mathieu Poirier, Suzuki K Poulose,
	Kumar Gala


On Mon, 17 Mar 2025 19:44:39 +0200, Dmitry Baryshkov wrote:
> As most other CoreSight devices the replicator can use either of the
> optional clocks (or both). Document those optional clocks in the schema.
> 
> Fixes: 3c15fddf3121 ("dt-bindings: arm: Convert CoreSight bindings to DT schema")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  .../bindings/arm/arm,coresight-static-replicator.yaml          | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml: properties:clock-names: 'enum' should not be valid under {'enum': ['const', 'enum', 'exclusiveMaximum', 'exclusiveMinimum', 'minimum', 'maximum', 'multipleOf', 'pattern']}
	hint: Scalar and array keywords cannot be mixed
	from schema $id: http://devicetree.org/meta-schemas/keywords.yaml#

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250317-fix-nexus-4-v1-4-655c52e2ad97@oss.qualcomm.com

The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.



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

* Re: [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings
  2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
                   ` (8 preceding siblings ...)
  2025-03-17 17:44 ` [PATCH 9/9] ARM: dts: qcom: apq8064: move replicator out of soc node Dmitry Baryshkov
@ 2025-03-17 20:37 ` Rob Herring (Arm)
  9 siblings, 0 replies; 28+ messages in thread
From: Rob Herring (Arm) @ 2025-03-17 20:37 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Dmitry Baryshkov, Lee Jones, Maxime Ripard, Marijn Suijten,
	Bjorn Andersson, freedreno, Kumar Gala, Thomas Zimmermann,
	Krzysztof Kozlowski, Konrad Dybcio, Abhinav Kumar, Simona Vetter,
	Sean Paul, Ivan T. Ivanov, David Heidelberg, Suzuki K Poulose,
	James Clark, David Airlie, Georgi Djakov, linux-kernel,
	devicetree, coresight, linux-arm-msm, Rob Clark, Neil Armstrong,
	Mathieu Poirier, Andy Gross, Mike Leach, linux-arm-kernel,
	Conor Dooley, Andy Gross, Leo Yan, dri-devel, Maarten Lankhorst


On Mon, 17 Mar 2025 19:44:35 +0200, Dmitry Baryshkov wrote:
> Rob's bot has reported [1] several warnings for Nexus 4 submisson,
> however none of those warnings are specific to that device. Fix all
> those warnings for all APQ8064 platforms by extending existing schemas,
> adding missing schemas and making APQ8064 DT follow all the schema
> files.
> 
> [1]: https://lore.kernel.org/linux-arm-msm/174221818190.3957236.3364090534153729086.robh@kernel.org/
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> Dmitry Baryshkov (9):
>       dt-bindings: soc: qcom,rpm: add missing clock-controller node
>       dt-bindings: display/msm: describe SFPB device
>       dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller
>       dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
>       ARM: dts: qcom-apq8064: add missing clocks to the timer node
>       ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device
>       ARM: dts: qcom: apq8064: use new compatible for SFPB device
>       ARM: dts: qcom: apq8064: use new compatible for SPS SIC device
>       ARM: dts: qcom: apq8064: move replicator out of soc node
> 
>  .../arm/arm,coresight-static-replicator.yaml       | 10 +++
>  .../devicetree/bindings/display/msm/qcom,sfpb.yaml | 39 ++++++++++
>  .../devicetree/bindings/soc/qcom/qcom,rpm.yaml     |  8 ++
>  .../devicetree/bindings/soc/qcom/qcom,sps-sic.yaml | 38 ++++++++++
>  arch/arm/boot/dts/qcom/qcom-apq8064.dtsi           | 85 +++++++++++-----------
>  5 files changed, 136 insertions(+), 44 deletions(-)
> ---
> base-commit: 2bb3cf7805af73af62ebfcbb55e350549b6a0912
> change-id: 20250317-fix-nexus-4-dd0fe3bca987
> 
> Best regards,
> --
> Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> 
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


New warnings running 'make CHECK_DTBS=y for arch/arm/boot/dts/qcom/' for 20250317-fix-nexus-4-v1-0-655c52e2ad97@oss.qualcomm.com:

arch/arm/boot/dts/qcom/qcom-ipq8064-ap148.dtb: rpm@108000: 'clock-names', 'clocks' do not match any of the regexes: '^regulators(-[01])?$', 'pinctrl-[0-9]+'
	from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,rpm.yaml#
arch/arm/boot/dts/qcom/qcom-ipq8064-rb3011.dtb: rpm@108000: 'clock-names', 'clocks' do not match any of the regexes: '^regulators(-[01])?$', 'pinctrl-[0-9]+'
	from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,rpm.yaml#
arch/arm/boot/dts/qcom/qcom-apq8060-dragonboard.dtb: rpm@104000: 'clock-names', 'clocks' do not match any of the regexes: '^regulators(-[01])?$', 'pinctrl-[0-9]+'
	from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,rpm.yaml#
arch/arm/boot/dts/qcom/qcom-msm8660-surf.dtb: rpm@104000: 'clock-names', 'clocks' do not match any of the regexes: '^regulators(-[01])?$', 'pinctrl-[0-9]+'
	from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,rpm.yaml#







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

* Re: [PATCH 1/9] dt-bindings: soc: qcom,rpm: add missing clock-controller node
  2025-03-17 17:44 ` [PATCH 1/9] dt-bindings: soc: qcom,rpm: add missing clock-controller node Dmitry Baryshkov
@ 2025-03-18  7:55   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 28+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-18  7:55 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Mon, Mar 17, 2025 at 07:44:36PM +0200, Dmitry Baryshkov wrote:
> On Qualcomm platforms in addition to regulators the RPM also provides
> clocks via the child clock-controller node. Describe it properly in the
> schema.
> 
> Fixes: 6b42133d2189 ("dt-bindings: soc: qcom: convert non-smd RPM bindings to dt-schema")

Fixes should rather point to original binding, because the conversion
did not miss them. They were not there in the first place. Coversion
should add them, to match existing DTS, but still the mistake is in the
TXT binding.


> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml | 8 ++++++++
>  1 file changed, 8 insertions(+)

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

Best regards,
Krzysztof



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

* Re: [PATCH 2/9] dt-bindings: display/msm: describe SFPB device
  2025-03-17 17:44 ` [PATCH 2/9] dt-bindings: display/msm: describe SFPB device Dmitry Baryshkov
@ 2025-03-18  7:55   ` Krzysztof Kozlowski
  2025-03-18 12:16     ` Dmitry Baryshkov
  0 siblings, 1 reply; 28+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-18  7:55 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Mon, Mar 17, 2025 at 07:44:37PM +0200, Dmitry Baryshkov wrote:
> Add DT schema for the MultiMedia SubSystem System FPB device, which
> provides several registers to control interface between multimedia
> devices (primarily display) and system busses.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  .../devicetree/bindings/display/msm/qcom,sfpb.yaml | 39 ++++++++++++++++++++++

Filename: qcom,apq8064-mmss-sfpb.yaml

>  1 file changed, 39 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml
> new file mode 100644
> index 0000000000000000000000000000000000000000..7ca105c97edd2f305527c58ae89b9b0cf22d3c8c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/msm/qcom,sfpb.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Qualcomm MultiMedia SubSystem System FPB
> +
> +maintainers:
> +  - Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> +  - Rob Clark <robdclark@gmail.com>
> +
> +description:
> +  The SFPB provides several registers controlling the multimedia attachment to
> +  the system busses.
> +
> +properties:
> +  compatible:
> +    items:
> +      - const: qcom,apq8064-mmss-sfpb
> +      - const: syscon

Why this cannot be part of standard syscon bindings file? Looks simple
enough.

Best regards,
Krzysztof



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

* Re: [PATCH 3/9] dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller
  2025-03-17 17:44 ` [PATCH 3/9] dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller Dmitry Baryshkov
@ 2025-03-18  7:56   ` Krzysztof Kozlowski
  2025-03-18 12:17     ` Dmitry Baryshkov
  0 siblings, 1 reply; 28+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-18  7:56 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Mon, Mar 17, 2025 at 07:44:38PM +0200, Dmitry Baryshkov wrote:
> +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,sps-sic.yaml
> @@ -0,0 +1,38 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/qcom/qcom,sps-sic.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Qualcomm Smart Peripheral System Interrupt Controller

Interrupt controller should have interrupt-cells. Or this is not
interrupt controller...

Anyway same comments as for previous patch.

Best regards,
Krzysztof



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

* Re: [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
  2025-03-17 17:44 ` [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks Dmitry Baryshkov
  2025-03-17 19:44   ` Rob Herring (Arm)
@ 2025-03-18 10:28   ` Konrad Dybcio
  2025-03-18 10:38   ` Suzuki K Poulose
  2 siblings, 0 replies; 28+ messages in thread
From: Konrad Dybcio @ 2025-03-18 10:28 UTC (permalink / raw)
  To: Dmitry Baryshkov, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lee Jones, Neil Armstrong,
	Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
	Marijn Suijten, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Suzuki K Poulose, Mike Leach,
	James Clark, Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross,
	Ivan T. Ivanov, Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

On 3/17/25 6:44 PM, Dmitry Baryshkov wrote:
> As most other CoreSight devices the replicator can use either of the
> optional clocks (or both). Document those optional clocks in the schema.
> 
> Fixes: 3c15fddf3121 ("dt-bindings: arm: Convert CoreSight bindings to DT schema")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  .../bindings/arm/arm,coresight-static-replicator.yaml          | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> index a6f793ea03b6c193fc0ff72a45e0249a63a2ba3c..56e64067ed3d63c5e293a0840858f13428bacb45 100644
> --- a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> @@ -30,6 +30,16 @@ properties:
>    power-domains:
>      maxItems: 1
>  
> +  clocks:
> +    minItems: 1
> +    maxItems: 2
> +
> +  clock-names:
> +    minItems: 1
> +    enum:

I believe this should either be items: if 0/1/2 is allowed, or
minItems should be dropped if 0/1 is allowed, but the former seems
to be the intention

Konrad

> +      - apb_pclk
> +      - atclk
> +
>    in-ports:
>      $ref: /schemas/graph.yaml#/properties/ports
>      additionalProperties: false
> 


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

* Re: [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
  2025-03-17 17:44 ` [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks Dmitry Baryshkov
  2025-03-17 19:44   ` Rob Herring (Arm)
  2025-03-18 10:28   ` Konrad Dybcio
@ 2025-03-18 10:38   ` Suzuki K Poulose
  2025-03-18 12:19     ` Dmitry Baryshkov
  2 siblings, 1 reply; 28+ messages in thread
From: Suzuki K Poulose @ 2025-03-18 10:38 UTC (permalink / raw)
  To: Dmitry Baryshkov, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lee Jones, Neil Armstrong,
	Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
	Marijn Suijten, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

On 17/03/2025 17:44, Dmitry Baryshkov wrote:

nit: Subject:

s/qcom,coresight-static-replicator/arm,coresight-static-replicator

> As most other CoreSight devices the replicator can use either of the
> optional clocks (or both). Document those optional clocks in the schema.
> 
> Fixes: 3c15fddf3121 ("dt-bindings: arm: Convert CoreSight bindings to DT schema")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>   .../bindings/arm/arm,coresight-static-replicator.yaml          | 10 ++++++++++
>   1 file changed, 10 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> index a6f793ea03b6c193fc0ff72a45e0249a63a2ba3c..56e64067ed3d63c5e293a0840858f13428bacb45 100644
> --- a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> @@ -30,6 +30,16 @@ properties:
>     power-domains:
>       maxItems: 1
>   
> +  clocks:
> +    minItems: 1
> +    maxItems: 2
> +

For the static replicator, you don't have an APB clock, as they can't be 
programmed. It may have an ATB clock. So minItems 0, maxItems: 1

Suzuki



> +  clock-names:
> +    minItems: 1
> +    enum:
> +      - apb_pclk
> +      - atclk
> +
>     in-ports:
>       $ref: /schemas/graph.yaml#/properties/ports
>       additionalProperties: false
> 



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

* Re: [PATCH 6/9] ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device
  2025-03-17 17:44 ` [PATCH 6/9] ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device Dmitry Baryshkov
@ 2025-03-18 12:08   ` Konrad Dybcio
  2025-03-18 12:24     ` Dmitry Baryshkov
  0 siblings, 1 reply; 28+ messages in thread
From: Konrad Dybcio @ 2025-03-18 12:08 UTC (permalink / raw)
  To: Dmitry Baryshkov, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lee Jones, Neil Armstrong,
	Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
	Marijn Suijten, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Suzuki K Poulose, Mike Leach,
	James Clark, Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross,
	Ivan T. Ivanov, Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

On 3/17/25 6:44 PM, Dmitry Baryshkov wrote:
> Follow up the expected way of describing the SFPB hwspinlock and merge
> hwspinlock node into corresponding syscon node, fixing several dt-schema
> warnings.
> 
> Fixes: 24a9baf933dc ("ARM: dts: qcom: apq8064: Add hwmutex and SMEM nodes")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> index ba99e794dcd2236f65f2f3d8c49213cfdaee5f6e..3728875a5506397b36a4c0d6a5ad12c067bbdd8c 100644
> --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> @@ -213,12 +213,6 @@ sleep_clk: sleep_clk {
>  		};
>  	};
>  
> -	sfpb_mutex: hwmutex {
> -		compatible = "qcom,sfpb-mutex";
> -		syscon = <&sfpb_wrapper_mutex 0x604 0x4>;
> -		#hwlock-cells = <1>;
> -	};
> -
>  	smem {
>  		compatible = "qcom,smem";
>  		memory-region = <&smem_region>;
> @@ -305,9 +299,10 @@ tlmm_pinmux: pinctrl@800000 {
>  			pinctrl-0 = <&ps_hold_default_state>;
>  		};
>  
> -		sfpb_wrapper_mutex: syscon@1200000 {
> -			compatible = "syscon";
> +		sfpb_mutex: hwmutex@1200000 {
> +			compatible = "qcom,sfpb-mutex";
>  			reg = <0x01200000 0x8000>;

The mutex is at +0x600

Konrad


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

* Re: [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device
  2025-03-17 17:44 ` [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device Dmitry Baryshkov
@ 2025-03-18 12:13   ` Konrad Dybcio
  2025-03-18 12:26     ` Dmitry Baryshkov
  0 siblings, 1 reply; 28+ messages in thread
From: Konrad Dybcio @ 2025-03-18 12:13 UTC (permalink / raw)
  To: Dmitry Baryshkov, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lee Jones, Neil Armstrong,
	Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
	Marijn Suijten, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Suzuki K Poulose, Mike Leach,
	James Clark, Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross,
	Ivan T. Ivanov, Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

On 3/17/25 6:44 PM, Dmitry Baryshkov wrote:
> Use new SoC-specific compatible to the SPS SIC in addition to the
> "syscon" compatible and rename the node to follow the purpose of it.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> index 522387700fc8ce854c0995636998d2d4237e33df..a106f9f984fcb51dea1fff1515e6f290b36ccf99 100644
> --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> @@ -402,8 +402,8 @@ saw3_vreg: regulator {
>  			};
>  		};
>  
> -		sps_sic_non_secure: sps-sic-non-secure@12100000 {
> -			compatible = "syscon";
> +		sps_sic_non_secure: interrupt-controller@12100000 {

The register that the consumer of this points to doesn't seem to exist..

Konrad


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

* Re: [PATCH 9/9] ARM: dts: qcom: apq8064: move replicator out of soc node
  2025-03-17 17:44 ` [PATCH 9/9] ARM: dts: qcom: apq8064: move replicator out of soc node Dmitry Baryshkov
@ 2025-03-18 12:15   ` Konrad Dybcio
  2025-03-18 12:27     ` Dmitry Baryshkov
  0 siblings, 1 reply; 28+ messages in thread
From: Konrad Dybcio @ 2025-03-18 12:15 UTC (permalink / raw)
  To: Dmitry Baryshkov, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lee Jones, Neil Armstrong,
	Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
	Marijn Suijten, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Suzuki K Poulose, Mike Leach,
	James Clark, Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross,
	Ivan T. Ivanov, Andy Gross, Georgi Djakov, David Heidelberg
  Cc: linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno,
	coresight, linux-arm-kernel

On 3/17/25 6:44 PM, Dmitry Baryshkov wrote:
> The CoreSight replicator device isn't a part of the system MMIO bus, as

the static kind, anyway - the dynamic ones are

> such it should not be a part of the soc node. Follow the example of
> other platforms and move it out of the soc bus to the top-level.
> 
> Fixes: 7a5c275fd821 ("ARM: dts: qcom: Add apq8064 CoreSight components")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 66 ++++++++++++++++----------------
>  1 file changed, 33 insertions(+), 33 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> index a106f9f984fcb51dea1fff1515e6f290b36ccf99..acd94f3ba0350c5dcdd8f80885ee643d8cbddac7 100644
> --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> @@ -278,6 +278,39 @@ scm {
>  		};
>  	};
>  
> +	replicator {
> +		compatible = "arm,coresight-static-replicator";
> +
> +		clocks = <&rpmcc RPM_QDSS_CLK>;
> +		clock-names = "apb_pclk";
> +
> +		out-ports {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +
> +			port@0 {
> +				reg = <0>;
> +				replicator_out0: endpoint {

Please take the artistic liberty to add a newline before subnodes and re-sort
the in/out-ports to make them alphabetical

Konrad


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

* Re: [PATCH 2/9] dt-bindings: display/msm: describe SFPB device
  2025-03-18  7:55   ` Krzysztof Kozlowski
@ 2025-03-18 12:16     ` Dmitry Baryshkov
  0 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-18 12:16 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Tue, Mar 18, 2025 at 08:55:59AM +0100, Krzysztof Kozlowski wrote:
> On Mon, Mar 17, 2025 at 07:44:37PM +0200, Dmitry Baryshkov wrote:
> > Add DT schema for the MultiMedia SubSystem System FPB device, which
> > provides several registers to control interface between multimedia
> > devices (primarily display) and system busses.
> > 
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
> >  .../devicetree/bindings/display/msm/qcom,sfpb.yaml | 39 ++++++++++++++++++++++
> 
> Filename: qcom,apq8064-mmss-sfpb.yaml
> 
> >  1 file changed, 39 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml
> > new file mode 100644
> > index 0000000000000000000000000000000000000000..7ca105c97edd2f305527c58ae89b9b0cf22d3c8c
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/display/msm/qcom,sfpb.yaml
> > @@ -0,0 +1,39 @@
> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/display/msm/qcom,sfpb.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Qualcomm MultiMedia SubSystem System FPB
> > +
> > +maintainers:
> > +  - Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > +  - Rob Clark <robdclark@gmail.com>
> > +
> > +description:
> > +  The SFPB provides several registers controlling the multimedia attachment to
> > +  the system busses.
> > +
> > +properties:
> > +  compatible:
> > +    items:
> > +      - const: qcom,apq8064-mmss-sfpb
> > +      - const: syscon
> 
> Why this cannot be part of standard syscon bindings file? Looks simple
> enough.

Ack

-- 
With best wishes
Dmitry


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

* Re: [PATCH 3/9] dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller
  2025-03-18  7:56   ` Krzysztof Kozlowski
@ 2025-03-18 12:17     ` Dmitry Baryshkov
  0 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-18 12:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Tue, Mar 18, 2025 at 08:56:46AM +0100, Krzysztof Kozlowski wrote:
> On Mon, Mar 17, 2025 at 07:44:38PM +0200, Dmitry Baryshkov wrote:
> > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,sps-sic.yaml
> > @@ -0,0 +1,38 @@
> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/soc/qcom/qcom,sps-sic.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Qualcomm Smart Peripheral System Interrupt Controller
> 
> Interrupt controller should have interrupt-cells. Or this is not
> interrupt controller...

Well, it is an interrupt controller, per the name of the block.

> 
> Anyway same comments as for previous patch.

Ack


-- 
With best wishes
Dmitry


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

* Re: [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
  2025-03-18 10:38   ` Suzuki K Poulose
@ 2025-03-18 12:19     ` Dmitry Baryshkov
  2025-03-18 13:37       ` Suzuki K Poulose
  0 siblings, 1 reply; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-18 12:19 UTC (permalink / raw)
  To: Suzuki K Poulose
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Mike Leach, James Clark, Mathieu Poirier,
	Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov, Andy Gross,
	Georgi Djakov, David Heidelberg, linux-arm-msm, devicetree,
	linux-kernel, dri-devel, freedreno, coresight, linux-arm-kernel

On Tue, Mar 18, 2025 at 10:38:17AM +0000, Suzuki K Poulose wrote:
> On 17/03/2025 17:44, Dmitry Baryshkov wrote:
> 
> nit: Subject:
> 
> s/qcom,coresight-static-replicator/arm,coresight-static-replicator
> 
> > As most other CoreSight devices the replicator can use either of the
> > optional clocks (or both). Document those optional clocks in the schema.
> > 
> > Fixes: 3c15fddf3121 ("dt-bindings: arm: Convert CoreSight bindings to DT schema")
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
> >   .../bindings/arm/arm,coresight-static-replicator.yaml          | 10 ++++++++++
> >   1 file changed, 10 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> > index a6f793ea03b6c193fc0ff72a45e0249a63a2ba3c..56e64067ed3d63c5e293a0840858f13428bacb45 100644
> > --- a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> > +++ b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> > @@ -30,6 +30,16 @@ properties:
> >     power-domains:
> >       maxItems: 1
> > +  clocks:
> > +    minItems: 1
> > +    maxItems: 2
> > +
> 
> For the static replicator, you don't have an APB clock, as they can't be
> programmed. It may have an ATB clock. So minItems 0, maxItems: 1

It can, see qcom-apq8064.dtsi

Also minItems:0 doesn't make sense to me. I'd rather keep this as an
optional property rather than requiring an empty set.

> 
> Suzuki
> 
> 
> 
> > +  clock-names:
> > +    minItems: 1
> > +    enum:
> > +      - apb_pclk
> > +      - atclk
> > +
> >     in-ports:
> >       $ref: /schemas/graph.yaml#/properties/ports
> >       additionalProperties: false
> > 
> 

-- 
With best wishes
Dmitry


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

* Re: [PATCH 6/9] ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device
  2025-03-18 12:08   ` Konrad Dybcio
@ 2025-03-18 12:24     ` Dmitry Baryshkov
  0 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-18 12:24 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Tue, Mar 18, 2025 at 01:08:00PM +0100, Konrad Dybcio wrote:
> On 3/17/25 6:44 PM, Dmitry Baryshkov wrote:
> > Follow up the expected way of describing the SFPB hwspinlock and merge
> > hwspinlock node into corresponding syscon node, fixing several dt-schema
> > warnings.
> > 
> > Fixes: 24a9baf933dc ("ARM: dts: qcom: apq8064: Add hwmutex and SMEM nodes")
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
> >  arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 11 +++--------
> >  1 file changed, 3 insertions(+), 8 deletions(-)
> > 
> > diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > index ba99e794dcd2236f65f2f3d8c49213cfdaee5f6e..3728875a5506397b36a4c0d6a5ad12c067bbdd8c 100644
> > --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > @@ -213,12 +213,6 @@ sleep_clk: sleep_clk {
> >  		};
> >  	};
> >  
> > -	sfpb_mutex: hwmutex {
> > -		compatible = "qcom,sfpb-mutex";
> > -		syscon = <&sfpb_wrapper_mutex 0x604 0x4>;
> > -		#hwlock-cells = <1>;
> > -	};
> > -
> >  	smem {
> >  		compatible = "qcom,smem";
> >  		memory-region = <&smem_region>;
> > @@ -305,9 +299,10 @@ tlmm_pinmux: pinctrl@800000 {
> >  			pinctrl-0 = <&ps_hold_default_state>;
> >  		};
> >  
> > -		sfpb_wrapper_mutex: syscon@1200000 {
> > -			compatible = "syscon";
> > +		sfpb_mutex: hwmutex@1200000 {
> > +			compatible = "qcom,sfpb-mutex";
> >  			reg = <0x01200000 0x8000>;
> 
> The mutex is at +0x600

Indeed...

-- 
With best wishes
Dmitry


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

* Re: [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device
  2025-03-18 12:13   ` Konrad Dybcio
@ 2025-03-18 12:26     ` Dmitry Baryshkov
  0 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-18 12:26 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Tue, Mar 18, 2025 at 01:13:23PM +0100, Konrad Dybcio wrote:
> On 3/17/25 6:44 PM, Dmitry Baryshkov wrote:
> > Use new SoC-specific compatible to the SPS SIC in addition to the
> > "syscon" compatible and rename the node to follow the purpose of it.
> > 
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
> >  arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > index 522387700fc8ce854c0995636998d2d4237e33df..a106f9f984fcb51dea1fff1515e6f290b36ccf99 100644
> > --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > @@ -402,8 +402,8 @@ saw3_vreg: regulator {
> >  			};
> >  		};
> >  
> > -		sps_sic_non_secure: sps-sic-non-secure@12100000 {
> > -			compatible = "syscon";
> > +		sps_sic_non_secure: interrupt-controller@12100000 {
> 
> The register that the consumer of this points to doesn't seem to exist..

It does, although it is marked as reserved. And this matches msm-3.4:

                .smsm_int.out_bit_pos =  1,
                .smsm_int.out_base = (void __iomem *)MSM_SIC_NON_SECURE_BASE,
                .smsm_int.out_offset = 0x4094,

#define MSM_SIC_NON_SECURE_BASE IOMEM(0xFA600000)
#define MSM_SIC_NON_SECURE_PHYS 0x12100000
#define MSM_SIC_NON_SECURE_SIZE SZ_64K

I don't think anybody tried bringing up dsps on APQ8064 though.

-- 
With best wishes
Dmitry


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

* Re: [PATCH 9/9] ARM: dts: qcom: apq8064: move replicator out of soc node
  2025-03-18 12:15   ` Konrad Dybcio
@ 2025-03-18 12:27     ` Dmitry Baryshkov
  0 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-18 12:27 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Suzuki K Poulose, Mike Leach, James Clark,
	Mathieu Poirier, Leo Yan, Kumar Gala, Andy Gross, Ivan T. Ivanov,
	Andy Gross, Georgi Djakov, David Heidelberg, linux-arm-msm,
	devicetree, linux-kernel, dri-devel, freedreno, coresight,
	linux-arm-kernel

On Tue, Mar 18, 2025 at 01:15:16PM +0100, Konrad Dybcio wrote:
> On 3/17/25 6:44 PM, Dmitry Baryshkov wrote:
> > The CoreSight replicator device isn't a part of the system MMIO bus, as
> 
> the static kind, anyway - the dynamic ones are
> 
> > such it should not be a part of the soc node. Follow the example of
> > other platforms and move it out of the soc bus to the top-level.
> > 
> > Fixes: 7a5c275fd821 ("ARM: dts: qcom: Add apq8064 CoreSight components")
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
> >  arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 66 ++++++++++++++++----------------
> >  1 file changed, 33 insertions(+), 33 deletions(-)
> > 
> > diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > index a106f9f984fcb51dea1fff1515e6f290b36ccf99..acd94f3ba0350c5dcdd8f80885ee643d8cbddac7 100644
> > --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi
> > @@ -278,6 +278,39 @@ scm {
> >  		};
> >  	};
> >  
> > +	replicator {
> > +		compatible = "arm,coresight-static-replicator";
> > +
> > +		clocks = <&rpmcc RPM_QDSS_CLK>;
> > +		clock-names = "apb_pclk";
> > +
> > +		out-ports {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			port@0 {
> > +				reg = <0>;
> > +				replicator_out0: endpoint {
> 
> Please take the artistic liberty to add a newline before subnodes and re-sort
> the in/out-ports to make them alphabetical

Ack

-- 
With best wishes
Dmitry


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

* Re: [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
  2025-03-18 12:19     ` Dmitry Baryshkov
@ 2025-03-18 13:37       ` Suzuki K Poulose
  2025-03-18 21:44         ` Dmitry Baryshkov
  0 siblings, 1 reply; 28+ messages in thread
From: Suzuki K Poulose @ 2025-03-18 13:37 UTC (permalink / raw)
  To: Dmitry Baryshkov, Mike Leach
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lee Jones, Neil Armstrong, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, David Airlie,
	Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Mike Leach, James Clark, Leo Yan, Kumar Gala,
	Andy Gross, Ivan T. Ivanov, Andy Gross, Georgi Djakov,
	David Heidelberg, linux-arm-msm, devicetree, linux-kernel,
	dri-devel, freedreno, coresight, linux-arm-kernel

On 18/03/2025 12:19, Dmitry Baryshkov wrote:
> On Tue, Mar 18, 2025 at 10:38:17AM +0000, Suzuki K Poulose wrote:
>> On 17/03/2025 17:44, Dmitry Baryshkov wrote:
>>
>> nit: Subject:
>>
>> s/qcom,coresight-static-replicator/arm,coresight-static-replicator
>>
>>> As most other CoreSight devices the replicator can use either of the
>>> optional clocks (or both). Document those optional clocks in the schema.
>>>
>>> Fixes: 3c15fddf3121 ("dt-bindings: arm: Convert CoreSight bindings to DT schema")
>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>>> ---
>>>    .../bindings/arm/arm,coresight-static-replicator.yaml          | 10 ++++++++++
>>>    1 file changed, 10 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
>>> index a6f793ea03b6c193fc0ff72a45e0249a63a2ba3c..56e64067ed3d63c5e293a0840858f13428bacb45 100644
>>> --- a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
>>> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
>>> @@ -30,6 +30,16 @@ properties:
>>>      power-domains:
>>>        maxItems: 1
>>> +  clocks:
>>> +    minItems: 1
>>> +    maxItems: 2
>>> +
>>
>> For the static replicator, you don't have an APB clock, as they can't be
>> programmed. It may have an ATB clock. So minItems 0, maxItems: 1
> 
> It can, see qcom-apq8064.dtsi
> 
> Also minItems:0 doesn't make sense to me. I'd rather keep this as an
> optional property rather than requiring an empty set.

Interesting, that must be atclk in fact. Because a static replicator
only manages ATB transactions. It doesn't have an APB interface.

I am not an expert in DTB schema. But the point is the clocks are optional.

Suzuki


> 
>>
>> Suzuki
>>
>>
>>
>>> +  clock-names:
>>> +    minItems: 1
>>> +    enum:
>>> +      - apb_pclk
>>> +      - atclk
>>> +
>>>      in-ports:
>>>        $ref: /schemas/graph.yaml#/properties/ports
>>>        additionalProperties: false
>>>
>>
> 



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

* Re: [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks
  2025-03-18 13:37       ` Suzuki K Poulose
@ 2025-03-18 21:44         ` Dmitry Baryshkov
  0 siblings, 0 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2025-03-18 21:44 UTC (permalink / raw)
  To: Suzuki K Poulose
  Cc: Mike Leach, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lee Jones, Neil Armstrong,
	Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
	Marijn Suijten, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, James Clark, Leo Yan,
	Kumar Gala, Andy Gross, Ivan T. Ivanov, Andy Gross, Georgi Djakov,
	David Heidelberg, linux-arm-msm, devicetree, linux-kernel,
	dri-devel, freedreno, coresight, linux-arm-kernel

On Tue, Mar 18, 2025 at 01:37:23PM +0000, Suzuki K Poulose wrote:
> On 18/03/2025 12:19, Dmitry Baryshkov wrote:
> > On Tue, Mar 18, 2025 at 10:38:17AM +0000, Suzuki K Poulose wrote:
> > > On 17/03/2025 17:44, Dmitry Baryshkov wrote:
> > > 
> > > nit: Subject:
> > > 
> > > s/qcom,coresight-static-replicator/arm,coresight-static-replicator
> > > 
> > > > As most other CoreSight devices the replicator can use either of the
> > > > optional clocks (or both). Document those optional clocks in the schema.
> > > > 
> > > > Fixes: 3c15fddf3121 ("dt-bindings: arm: Convert CoreSight bindings to DT schema")
> > > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > > > ---
> > > >    .../bindings/arm/arm,coresight-static-replicator.yaml          | 10 ++++++++++
> > > >    1 file changed, 10 insertions(+)
> > > > 
> > > > diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> > > > index a6f793ea03b6c193fc0ff72a45e0249a63a2ba3c..56e64067ed3d63c5e293a0840858f13428bacb45 100644
> > > > --- a/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> > > > +++ b/Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
> > > > @@ -30,6 +30,16 @@ properties:
> > > >      power-domains:
> > > >        maxItems: 1
> > > > +  clocks:
> > > > +    minItems: 1
> > > > +    maxItems: 2
> > > > +
> > > 
> > > For the static replicator, you don't have an APB clock, as they can't be
> > > programmed. It may have an ATB clock. So minItems 0, maxItems: 1
> > 
> > It can, see qcom-apq8064.dtsi
> > 
> > Also minItems:0 doesn't make sense to me. I'd rather keep this as an
> > optional property rather than requiring an empty set.
> 
> Interesting, that must be atclk in fact. Because a static replicator
> only manages ATB transactions. It doesn't have an APB interface.

Ack. Unfortunately there are platforms (and grepping revealed more than
just APQ8064) that list the apb_pclk. We have to support those DTs :-(

> 
> I am not an expert in DTB schema. But the point is the clocks are optional.

This is handled by not listing the 'clocks' / 'clock-names' under the
'required' list.

> 
> Suzuki
> 
> 
> > 
> > > 
> > > Suzuki
> > > 
> > > 
> > > 
> > > > +  clock-names:
> > > > +    minItems: 1
> > > > +    enum:
> > > > +      - apb_pclk
> > > > +      - atclk
> > > > +
> > > >      in-ports:
> > > >        $ref: /schemas/graph.yaml#/properties/ports
> > > >        additionalProperties: false
> > > > 
> > > 
> > 
> 

-- 
With best wishes
Dmitry


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

end of thread, other threads:[~2025-03-18 21:50 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 17:44 [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 1/9] dt-bindings: soc: qcom,rpm: add missing clock-controller node Dmitry Baryshkov
2025-03-18  7:55   ` Krzysztof Kozlowski
2025-03-17 17:44 ` [PATCH 2/9] dt-bindings: display/msm: describe SFPB device Dmitry Baryshkov
2025-03-18  7:55   ` Krzysztof Kozlowski
2025-03-18 12:16     ` Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 3/9] dt-bindings: soc: qcom: add Smart Peripheral System Interrupt Controller Dmitry Baryshkov
2025-03-18  7:56   ` Krzysztof Kozlowski
2025-03-18 12:17     ` Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 4/9] dt-bindings: arm: qcom,coresight-static-replicator: add optional clocks Dmitry Baryshkov
2025-03-17 19:44   ` Rob Herring (Arm)
2025-03-18 10:28   ` Konrad Dybcio
2025-03-18 10:38   ` Suzuki K Poulose
2025-03-18 12:19     ` Dmitry Baryshkov
2025-03-18 13:37       ` Suzuki K Poulose
2025-03-18 21:44         ` Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 5/9] ARM: dts: qcom-apq8064: add missing clocks to the timer node Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 6/9] ARM: dts: qcom: apq8064 merge hw splinlock into corresponding syscon device Dmitry Baryshkov
2025-03-18 12:08   ` Konrad Dybcio
2025-03-18 12:24     ` Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 7/9] ARM: dts: qcom: apq8064: use new compatible for SFPB device Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 8/9] ARM: dts: qcom: apq8064: use new compatible for SPS SIC device Dmitry Baryshkov
2025-03-18 12:13   ` Konrad Dybcio
2025-03-18 12:26     ` Dmitry Baryshkov
2025-03-17 17:44 ` [PATCH 9/9] ARM: dts: qcom: apq8064: move replicator out of soc node Dmitry Baryshkov
2025-03-18 12:15   ` Konrad Dybcio
2025-03-18 12:27     ` Dmitry Baryshkov
2025-03-17 20:37 ` [PATCH 0/9] ARM: qcom: fix APQ8064 schema warnings Rob Herring (Arm)

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