Enable PM7250B and some components on it for the Xperia 10 III.

Signed-off-by: erebion <[email protected]>
---
 .../dts/qcom/sm6350-sony-xperia-lena-pdx213.dts    | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts 
b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts
index b234919c301f0..08ad5613cb6de 100644
--- a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts
+++ b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts
@@ -4,6 +4,10 @@
  */
 /dts-v1/;
 
+/* PM7250B is configured to use SID2/3 */
+#define PM7250B_SID 2
+#define PM7250B_SID1 3
+
 #include <dt-bindings/firmware/qcom,scm.h>
 #include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
@@ -11,6 +15,7 @@
 #include "sm6350.dtsi"
 #include "pm6150l.dtsi"
 #include "pm6350.dtsi"
+#include "pm7250b.dtsi"
 
 / {
        model = "Sony Xperia 10 III";
@@ -377,6 +382,49 @@ &pm6350_resin {
        status = "okay";
 };
 
+&pm7250b_adc {
+       channel@4d {
+               reg = <ADC5_AMUX_THM1_100K_PU>;
+               qcom,ratiometric;
+               qcom,hw-settle-time = <200>;
+               qcom,pre-scaling = <1 1>;
+               label = "charger_skin_therm";
+       };
+
+       channel@4f {
+               reg = <ADC5_AMUX_THM3_100K_PU>;
+               qcom,ratiometric;
+               qcom,hw-settle-time = <200>;
+               qcom,pre-scaling = <1 1>;
+               label = "conn_therm";
+       };
+};
+
+&pm7250b_adc_tm {
+       status = "okay";
+
+       charger-skin-therm@0 {
+               reg = <0>;
+               io-channels = <&pm7250b_adc ADC5_AMUX_THM1_100K_PU>;
+               qcom,ratiometric;
+               qcom,hw-settle-time-us = <200>;
+       };
+
+       conn-therm@1 {
+               reg = <1>;
+               io-channels = <&pm7250b_adc ADC5_AMUX_THM3_100K_PU>;
+               qcom,ratiometric;
+               qcom,hw-settle-time-us = <200>;
+       };
+};
+
+&pm7250b_vbus {
+       regulator-min-microamp = <500000>;
+       regulator-max-microamp = <1500000>;
+
+       status = "okay";
+};
+
 &qupv3_id_0 {
        status = "okay";
 };

-- 
2.53.0

Reply via email to