arm64: dts: qcom: pm8550ve: make PMK8550VE SID configurable
authorNeil Armstrong <neil.armstrong@linaro.org>
Thu, 30 Nov 2023 10:19:58 +0000 (11:19 +0100)
committerBjorn Andersson <andersson@kernel.org>
Fri, 8 Dec 2023 03:19:31 +0000 (19:19 -0800)
The pm8550ve can be found with a different SID on SM8650 platforms,
make it configurable.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20231130-topic-sm8650-upstream-dt-v5-3-b25fb781da52@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/pm8550ve.dtsi
arch/arm64/boot/dts/qcom/sm8550-mtp.dts
arch/arm64/boot/dts/qcom/sm8550-qrd.dts

index c47646a467bed3487f775c474aeda26b8d035d1e..4dc1f03ab2c7461e626bf9c44bb80490ca09b5ba 100644 (file)
 
 
 &spmi_bus {
-       pm8550ve: pmic@5 {
+       pm8550ve: pmic@PMK8550VE_SID {
                compatible = "qcom,pm8550", "qcom,spmi-pmic";
-               reg = <0x5 SPMI_USID>;
+               reg = <PMK8550VE_SID SPMI_USID>;
                #address-cells = <1>;
                #size-cells = <0>;
 
                pm8550ve_temp_alarm: temp-alarm@a00 {
                        compatible = "qcom,spmi-temp-alarm";
                        reg = <0xa00>;
-                       interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
+                       interrupts = <PMK8550VE_SID 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
                        #thermal-sensor-cells = <0>;
                };
 
index 9a70875028b7ecdcf890d3c6cb87d6d074f1f342..ac045bfc51e5c85537c6806f617aa969372ce450 100644 (file)
@@ -10,6 +10,7 @@
 #include "pm8010.dtsi"
 #include "pm8550.dtsi"
 #include "pm8550b.dtsi"
+#define PMK8550VE_SID 5
 #include "pm8550ve.dtsi"
 #include "pm8550vs.dtsi"
 #include "pmk8550.dtsi"
index 34c760549f3ee343d2c0a8d40b14181e399bc21a..2fb3798777d121e0462459b46518217eb9913766 100644 (file)
@@ -11,6 +11,7 @@
 #include "pm8010.dtsi"
 #include "pm8550.dtsi"
 #include "pm8550b.dtsi"
+#define PMK8550VE_SID 5
 #include "pm8550ve.dtsi"
 #include "pm8550vs.dtsi"
 #include "pmk8550.dtsi"