ARM: dts: qcom: msm8226: switch TCSR mutex to MMIO
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 9 Sep 2022 09:20:35 +0000 (11:20 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Sep 2022 22:45:37 +0000 (17:45 -0500)
The TCSR mutex bindings allow device to be described only with address
space (so it uses MMIO, not syscon regmap).  This seems reasonable as
TCSR mutex is actually a dedicated IO address space and it also fixes DT
schema checks:

  qcom-msm8226-samsung-s3ve3g.dtb: hwlock: 'reg' is a required property
  qcom-msm8226-samsung-s3ve3g.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220909092035.223915-16-krzysztof.kozlowski@linaro.org
arch/arm/boot/dts/qcom-msm8226.dtsi

index 0b5effd..efb5d1e 100644 (file)
                };
        };
 
-       tcsr_mutex: hwlock {
-               compatible = "qcom,tcsr-mutex";
-               syscon = <&tcsr_mutex_block 0 0x80>;
-
-               #hwlock-cells = <1>;
-       };
-
        reserved-memory {
                #address-cells = <1>;
                #size-cells = <1>;
                        reg = <0xfc428000 0x4000>;
                };
 
-               tcsr_mutex_block: syscon@fd484000 {
-                       compatible = "syscon";
-                       reg = <0xfd484000 0x2000>;
+               tcsr_mutex: hwlock@fd484000 {
+                       compatible = "qcom,msm8226-tcsr-mutex", "qcom,tcsr-mutex";
+                       reg = <0xfd484000 0x1000>;
+                       #hwlock-cells = <1>;
                };
        };