All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback
@ 2023-02-02 16:18 Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 01/13] dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks Krzysztof Kozlowski
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

Hi,

If entire approach is accepted (and correct), there are no dependencies and
patches can be picked independently.  Although the best in the same cycle, so
there will be no new `dtbs_check` warnings.

Best regards,
Krzysztof

Krzysztof Kozlowski (13):
  dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks
  dt-bindings: mailbox: qcom,apcs-kpss-global: document missing sdx55
  mailbox: qcom-apcs-ipc: do not grow the of_device_id
  arm64: dts: qcom: ipq8074: add compatible fallback to mailbox
  arm64: dts: qcom: msm8976: add compatible fallback to mailbox
  arm64: dts: qcom: msm8994: add compatible fallback to mailbox
  arm64: dts: qcom: msm8998: add compatible fallback to mailbox
  arm64: dts: qcom: sdm630: add compatible fallback to mailbox
  arm64: dts: qcom: sm6115: add compatible fallback to mailbox
  arm64: dts: qcom: sm6125: add compatible fallback to mailbox
  arm64: dts: qcom: qcs404: add compatible fallback to mailbox
  arm64: dts: qcom: sc7180: add compatible fallback to mailbox
  arm64: dts: qcom: sm8150: add compatible fallback to mailbox

 .../mailbox/qcom,apcs-kpss-global.yaml        | 67 +++++++++++--------
 arch/arm64/boot/dts/qcom/ipq8074.dtsi         |  3 +-
 arch/arm64/boot/dts/qcom/msm8976.dtsi         |  3 +-
 arch/arm64/boot/dts/qcom/msm8994.dtsi         |  3 +-
 arch/arm64/boot/dts/qcom/msm8998.dtsi         |  3 +-
 arch/arm64/boot/dts/qcom/qcs404.dtsi          |  3 +-
 arch/arm64/boot/dts/qcom/sc7180.dtsi          |  3 +-
 arch/arm64/boot/dts/qcom/sdm630.dtsi          |  3 +-
 arch/arm64/boot/dts/qcom/sm6115.dtsi          |  3 +-
 arch/arm64/boot/dts/qcom/sm6125.dtsi          |  3 +-
 arch/arm64/boot/dts/qcom/sm8150.dtsi          |  3 +-
 drivers/mailbox/qcom-apcs-ipc-mailbox.c       | 11 +--
 12 files changed, 66 insertions(+), 42 deletions(-)

-- 
2.34.1


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

* [PATCH 01/13] dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 02/13] dt-bindings: mailbox: qcom,apcs-kpss-global: document missing sdx55 Krzysztof Kozlowski
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

Rework the compatibles and group devices which have similar interface
(same from Linux driver point of view) as compatible.  This allows
smaller of_device_id table in the Linux driver and smaller
allOf:if:then: constraints.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../mailbox/qcom,apcs-kpss-global.yaml        | 66 +++++++++++--------
 1 file changed, 39 insertions(+), 27 deletions(-)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
index 943f9472ae10..c38bbdd9d7db 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
@@ -18,27 +18,44 @@ properties:
     oneOf:
       - items:
           - enum:
-              - qcom,ipq6018-apcs-apps-global
               - qcom,ipq8074-apcs-apps-global
+          - const: qcom,ipq6018-apcs-apps-global
+      - items:
+          - enum:
+              - qcom,msm8939-apcs-kpss-global
+              - qcom,qcs404-apcs-apps-global
+          - const: qcom,msm8916-apcs-kpss-global
+          - const: syscon
+      - items:
+          - enum:
               - qcom,msm8976-apcs-kpss-global
-              - qcom,msm8996-apcs-hmss-global
+              - qcom,msm8994-apcs-kpss-global
+          - const: qcom,msm8953-apcs-kpss-global
+          - const: syscon
+      - items:
+          - enum:
               - qcom,msm8998-apcs-hmss-global
               - qcom,qcm2290-apcs-hmss-global
-              - qcom,sc7180-apss-shared
-              - qcom,sc8180x-apss-shared
               - qcom,sdm660-apcs-hmss-global
-              - qcom,sdm845-apss-shared
               - qcom,sm4250-apcs-hmss-global
-              - qcom,sm6125-apcs-hmss-global
               - qcom,sm6115-apcs-hmss-global
+              - qcom,sm6125-apcs-hmss-global
+          - const: qcom,msm8953-apcs-kpss-global
+      - items:
+          - enum:
+              - qcom,sc7180-apss-shared
+              - qcom,sc8180x-apss-shared
               - qcom,sm8150-apss-shared
+          - const: qcom,sdm845-apss-shared
+      - items:
+          - enum:
+              - qcom,ipq6018-apcs-apps-global
+              - qcom,msm8996-apcs-hmss-global
+              - qcom,sdm845-apss-shared
       - items:
           - enum:
               - qcom,msm8916-apcs-kpss-global
-              - qcom,msm8939-apcs-kpss-global
               - qcom,msm8953-apcs-kpss-global
-              - qcom,msm8994-apcs-kpss-global
-              - qcom,qcs404-apcs-apps-global
           - const: syscon
   reg:
     maxItems: 1
@@ -69,17 +86,11 @@ allOf:
   - if:
       properties:
         compatible:
-          enum:
-            - qcom,msm8916-apcs-kpss-global
-            - qcom,msm8994-apcs-kpss-global
-            - qcom,msm8996-apcs-hmss-global
-            - qcom,msm8998-apcs-hmss-global
-            - qcom,qcs404-apcs-apps-global
-            - qcom,sc7180-apss-shared
-            - qcom,sdm660-apcs-hmss-global
-            - qcom,sdm845-apss-shared
-            - qcom,sm6125-apcs-hmss-global
-            - qcom,sm8150-apss-shared
+          contains:
+            enum:
+              - qcom,msm8916-apcs-kpss-global
+              - qcom,msm8953-apcs-kpss-global
+              - qcom,sdm845-apss-shared
     then:
       properties:
         clocks:
@@ -110,9 +121,9 @@ allOf:
   - if:
       properties:
         compatible:
-          enum:
-            - qcom,ipq6018-apcs-apps-global
-            - qcom,ipq8074-apcs-apps-global
+          contains:
+            enum:
+              - qcom,ipq6018-apcs-apps-global
     then:
       properties:
         clocks:
@@ -126,9 +137,9 @@ allOf:
   - if:
       properties:
         compatible:
-          enum:
-            - qcom,ipq6018-apcs-apps-global
-            - qcom,ipq8074-apcs-apps-global
+          contains:
+            enum:
+              - qcom,ipq6018-apcs-apps-global
     then:
       properties:
         '#clock-cells':
@@ -163,7 +174,8 @@ examples:
     #define GCC_APSS_AHB_CLK_SRC  1
     #define GCC_GPLL0_AO_OUT_MAIN 123
     apcs: mailbox@b011000 {
-        compatible = "qcom,qcs404-apcs-apps-global", "syscon";
+        compatible = "qcom,qcs404-apcs-apps-global",
+                     "qcom,msm8916-apcs-kpss-global", "syscon";
         reg = <0x0b011000 0x1000>;
         #mbox-cells = <1>;
         clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
-- 
2.34.1


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

* [PATCH 02/13] dt-bindings: mailbox: qcom,apcs-kpss-global: document missing sdx55
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 01/13] dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 03/13] mailbox: qcom-apcs-ipc: do not grow the of_device_id Krzysztof Kozlowski
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

Add missing compatible (in top-level) for qcom,sdx55-apcs-gcc which is
already used in the Linux driver and DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
index c38bbdd9d7db..4ae97b7c784d 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
@@ -56,6 +56,7 @@ properties:
           - enum:
               - qcom,msm8916-apcs-kpss-global
               - qcom,msm8953-apcs-kpss-global
+              - qcom,sdx55-apcs-gcc
           - const: syscon
   reg:
     maxItems: 1
-- 
2.34.1


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

* [PATCH 03/13] mailbox: qcom-apcs-ipc: do not grow the of_device_id
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 01/13] dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 02/13] dt-bindings: mailbox: qcom,apcs-kpss-global: document missing sdx55 Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 04/13] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Krzysztof Kozlowski
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

Re-organize the compatible devices and add a comment to avoid unneeded
of_device_id growth with every new SoC.  These devices have quite a lot
of similarities and they can use only one compatible fallback for driver
binding.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/mailbox/qcom-apcs-ipc-mailbox.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
index 0e9f9cba8668..4143209de2c8 100644
--- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
+++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
@@ -142,17 +142,19 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev)
 /* .data is the offset of the ipc register within the global block */
 static const struct of_device_id qcom_apcs_ipc_of_match[] = {
 	{ .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
-	{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data },
 	{ .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
-	{ .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
 	{ .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data },
+	{ .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data },
+	{ .compatible = "qcom,sc7180-apss-shared", .data = &apps_shared_apcs_data },
+	{ .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data },
+	/* Do not add any more entries using existing driver data */
+	{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data },
+	{ .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
 	{ .compatible = "qcom,msm8976-apcs-kpss-global", .data = &msm8994_apcs_data },
 	{ .compatible = "qcom,msm8994-apcs-kpss-global", .data = &msm8994_apcs_data },
-	{ .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data },
 	{ .compatible = "qcom,msm8998-apcs-hmss-global", .data = &msm8994_apcs_data },
 	{ .compatible = "qcom,qcm2290-apcs-hmss-global", .data = &msm8994_apcs_data },
 	{ .compatible = "qcom,qcs404-apcs-apps-global", .data = &msm8916_apcs_data },
-	{ .compatible = "qcom,sc7180-apss-shared", .data = &apps_shared_apcs_data },
 	{ .compatible = "qcom,sc8180x-apss-shared", .data = &apps_shared_apcs_data },
 	{ .compatible = "qcom,sdm660-apcs-hmss-global", .data = &msm8994_apcs_data },
 	{ .compatible = "qcom,sdm845-apss-shared", .data = &apps_shared_apcs_data },
@@ -160,7 +162,6 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = {
 	{ .compatible = "qcom,sm6125-apcs-hmss-global", .data = &msm8994_apcs_data },
 	{ .compatible = "qcom,sm8150-apss-shared", .data = &apps_shared_apcs_data },
 	{ .compatible = "qcom,sm6115-apcs-hmss-global", .data = &msm8994_apcs_data },
-	{ .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data },
 	{}
 };
 MODULE_DEVICE_TABLE(of, qcom_apcs_ipc_of_match);
-- 
2.34.1


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

* [PATCH 04/13] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 03/13] mailbox: qcom-apcs-ipc: do not grow the of_device_id Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 05/13] arm64: dts: qcom: msm8976: " Krzysztof Kozlowski
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

IPQ8074 mailbox is compatible with IPQ6018.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
index 0e3d1d906a22..4cbbe3add2c6 100644
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
@@ -680,7 +680,8 @@ watchdog: watchdog@b017000 {
 		};
 
 		apcs_glb: mailbox@b111000 {
-			compatible = "qcom,ipq8074-apcs-apps-global";
+			compatible = "qcom,ipq8074-apcs-apps-global",
+				     "qcom,ipq6018-apcs-apps-global";
 			reg = <0x0b111000 0x1000>;
 			clocks = <&a53pll>, <&xo>;
 			clock-names = "pll", "xo";
-- 
2.34.1


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

* [PATCH 05/13] arm64: dts: qcom: msm8976: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 04/13] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 06/13] arm64: dts: qcom: msm8994: " Krzysztof Kozlowski
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

MSM8976 mailbox is compatible with MSM8953.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/msm8976.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi
index 2d360d05aa5e..a18eebd8f66e 100644
--- a/arch/arm64/boot/dts/qcom/msm8976.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi
@@ -1027,7 +1027,8 @@ intc: interrupt-controller@b000000 {
 		};
 
 		apcs: mailbox@b011000 {
-			compatible = "qcom,msm8976-apcs-kpss-global", "syscon";
+			compatible = "qcom,msm8976-apcs-kpss-global",
+				     "qcom,msm8953-apcs-kpss-global", "syscon";
 			reg = <0x0b011000 0x1000>;
 			#mbox-cells = <1>;
 		};
-- 
2.34.1


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

* [PATCH 06/13] arm64: dts: qcom: msm8994: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 05/13] arm64: dts: qcom: msm8976: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 07/13] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

MSM8994 mailbox is compatible with MSM8953.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/msm8994.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi
index 9ff9d35496d2..8afd9ec29ac8 100644
--- a/arch/arm64/boot/dts/qcom/msm8994.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi
@@ -351,7 +351,8 @@ intc: interrupt-controller@f9000000 {
 		};
 
 		apcs: mailbox@f900d000 {
-			compatible = "qcom,msm8994-apcs-kpss-global", "syscon";
+			compatible = "qcom,msm8994-apcs-kpss-global",
+				     "qcom,msm8953-apcs-kpss-global", "syscon";
 			reg = <0xf900d000 0x2000>;
 			#mbox-cells = <1>;
 		};
-- 
2.34.1


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

* [PATCH 07/13] arm64: dts: qcom: msm8998: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 06/13] arm64: dts: qcom: msm8994: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 08/13] arm64: dts: qcom: sdm630: " Krzysztof Kozlowski
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

MSM8998 mailbox is compatible with MSM8953.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/msm8998.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi
index 8bc1c59127e5..f4df41f7d957 100644
--- a/arch/arm64/boot/dts/qcom/msm8998.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi
@@ -2490,7 +2490,8 @@ glink-edge {
 		};
 
 		apcs_glb: mailbox@17911000 {
-			compatible = "qcom,msm8998-apcs-hmss-global";
+			compatible = "qcom,msm8998-apcs-hmss-global",
+				     "qcom,msm8953-apcs-kpss-global";
 			reg = <0x17911000 0x1000>;
 
 			#mbox-cells = <1>;
-- 
2.34.1


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

* [PATCH 08/13] arm64: dts: qcom: sdm630: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (6 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 07/13] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 09/13] arm64: dts: qcom: sm6115: " Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

SDM630 mailbox is compatible with MSM8953.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm630.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi
index 5827cda270a0..95469a45a1f2 100644
--- a/arch/arm64/boot/dts/qcom/sdm630.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi
@@ -2268,7 +2268,8 @@ gnoc: interconnect@17900000 {
 		};
 
 		apcs_glb: mailbox@17911000 {
-			compatible = "qcom,sdm660-apcs-hmss-global";
+			compatible = "qcom,sdm660-apcs-hmss-global",
+				     "qcom,msm8953-apcs-kpss-global";
 			reg = <0x17911000 0x1000>;
 
 			#mbox-cells = <1>;
-- 
2.34.1


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

* [PATCH 09/13] arm64: dts: qcom: sm6115: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (7 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 08/13] arm64: dts: qcom: sdm630: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 10/13] arm64: dts: qcom: sm6125: " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

SM6115 mailbox is compatible with MSM8953.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 50cb8a82ecd5..9dd230617af4 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -1945,7 +1945,8 @@ wifi: wifi@c800000 {
 		};
 
 		apcs_glb: mailbox@f111000 {
-			compatible = "qcom,sm6115-apcs-hmss-global";
+			compatible = "qcom,sm6115-apcs-hmss-global",
+				     "qcom,msm8953-apcs-kpss-global";
 			reg = <0x0f111000 0x1000>;
 
 			#mbox-cells = <1>;
-- 
2.34.1


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

* [PATCH 10/13] arm64: dts: qcom: sm6125: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (8 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 09/13] arm64: dts: qcom: sm6115: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 11/13] arm64: dts: qcom: qcs404: " Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

SM6125 mailbox is compatible with MSM8953.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm6125.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi
index 65033227718a..7990265274ca 100644
--- a/arch/arm64/boot/dts/qcom/sm6125.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi
@@ -1211,7 +1211,8 @@ apps_smmu: iommu@c600000 {
 		};
 
 		apcs_glb: mailbox@f111000 {
-			compatible = "qcom,sm6125-apcs-hmss-global";
+			compatible = "qcom,sm6125-apcs-hmss-global",
+				     "qcom,msm8953-apcs-kpss-global";
 			reg = <0x0f111000 0x1000>;
 
 			#mbox-cells = <1>;
-- 
2.34.1


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

* [PATCH 11/13] arm64: dts: qcom: qcs404: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (9 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 10/13] arm64: dts: qcom: sm6125: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 12/13] arm64: dts: qcom: sc7180: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

QCS404 mailbox is compatible with MSM8916.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/qcs404.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 9c9890cf1b10..15fd12fcfdca 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -1302,7 +1302,8 @@ intc: interrupt-controller@b000000 {
 		};
 
 		apcs_glb: mailbox@b011000 {
-			compatible = "qcom,qcs404-apcs-apps-global", "syscon";
+			compatible = "qcom,qcs404-apcs-apps-global",
+				     "qcom,msm8916-apcs-kpss-global", "syscon";
 			reg = <0x0b011000 0x1000>;
 			#mbox-cells = <1>;
 			clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
-- 
2.34.1


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

* [PATCH 12/13] arm64: dts: qcom: sc7180: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (10 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 11/13] arm64: dts: qcom: qcs404: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:18 ` [PATCH 13/13] arm64: dts: qcom: sm8150: " Krzysztof Kozlowski
  2023-02-02 16:33 ` [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

SC7180 mailbox is compatible with SDM845.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi
index ebfa21e9ed8a..61d99c02a290 100644
--- a/arch/arm64/boot/dts/qcom/sc7180.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi
@@ -3407,7 +3407,8 @@ msi-controller@17a40000 {
 		};
 
 		apss_shared: mailbox@17c00000 {
-			compatible = "qcom,sc7180-apss-shared";
+			compatible = "qcom,sc7180-apss-shared",
+				     "qcom,sdm845-apss-shared";
 			reg = <0 0x17c00000 0 0x10000>;
 			#mbox-cells = <1>;
 		};
-- 
2.34.1


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

* [PATCH 13/13] arm64: dts: qcom: sm8150: add compatible fallback to mailbox
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (11 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 12/13] arm64: dts: qcom: sc7180: " Krzysztof Kozlowski
@ 2023-02-02 16:18 ` Krzysztof Kozlowski
  2023-02-02 16:33 ` [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree
  Cc: Krzysztof Kozlowski

SC8150 mailbox is compatible with SDM845.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
index fd20096cfc6e..6c6fea74d438 100644
--- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
@@ -4097,7 +4097,8 @@ intc: interrupt-controller@17a00000 {
 		};
 
 		apss_shared: mailbox@17c00000 {
-			compatible = "qcom,sm8150-apss-shared";
+			compatible = "qcom,sm8150-apss-shared",
+				     "qcom,sdm845-apss-shared";
 			reg = <0x0 0x17c00000 0x0 0x1000>;
 			#mbox-cells = <1>;
 		};
-- 
2.34.1


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

* Re: [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback
  2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
                   ` (12 preceding siblings ...)
  2023-02-02 16:18 ` [PATCH 13/13] arm64: dts: qcom: sm8150: " Krzysztof Kozlowski
@ 2023-02-02 16:33 ` Krzysztof Kozlowski
  13 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-02 16:33 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, linux-arm-msm, linux-kernel,
	devicetree

On 02/02/2023 17:18, Krzysztof Kozlowski wrote:
> Hi,
> 
> If entire approach is accepted (and correct), there are no dependencies and
> patches can be picked independently.  Although the best in the same cycle, so
> there will be no new `dtbs_check` warnings.
> 

This patchset will conflict with:
https://lore.kernel.org/all/20230126230319.3977109-2-dmitry.baryshkov@linaro.org/

In few places it actually re-does Dmitry's patch, so probably we should
both come with unified solution.

Best regards,
Krzysztof


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

end of thread, other threads:[~2023-02-02 16:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02 16:18 [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 01/13] dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 02/13] dt-bindings: mailbox: qcom,apcs-kpss-global: document missing sdx55 Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 03/13] mailbox: qcom-apcs-ipc: do not grow the of_device_id Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 04/13] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 05/13] arm64: dts: qcom: msm8976: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 06/13] arm64: dts: qcom: msm8994: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 07/13] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 08/13] arm64: dts: qcom: sdm630: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 09/13] arm64: dts: qcom: sm6115: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 10/13] arm64: dts: qcom: sm6125: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 11/13] arm64: dts: qcom: qcs404: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 12/13] arm64: dts: qcom: sc7180: " Krzysztof Kozlowski
2023-02-02 16:18 ` [PATCH 13/13] arm64: dts: qcom: sm8150: " Krzysztof Kozlowski
2023-02-02 16:33 ` [PATCH 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.