arm64: dts: qcom: pm6150x: add ADC_TM definitions
authorJishnu Prakash <jprakash@codeaurora.org>
Thu, 8 Oct 2020 12:40:25 +0000 (18:10 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 24 Nov 2020 23:02:15 +0000 (17:02 -0600)
Add ADC_TM peripheral definitions for PM6150 and PM6150L. Add
ADC peripheral definition for PM6150l, which is needed for ADC_TM.

Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Link: https://lore.kernel.org/r/1602160825-10414-2-git-send-email-jprakash@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/pm6150.dtsi
arch/arm64/boot/dts/qcom/pm6150l.dtsi

index 57af0b4a384d37fa48c2ade1a96b9366fe534f88..8ab4f1f78bbf661eda4a2dcb24e55978b07776bd 100644 (file)
                        };
                };
 
+               pm6150_adc_tm: adc-tm@3500 {
+                       compatible = "qcom,spmi-adc-tm5";
+                       reg = <0x3500>;
+                       interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
+                       #thermal-sensor-cells = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                pm6150_gpio: gpios@c000 {
                        compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;
index f84027b505d19b4a2d2abaf69de477c3cad40bc3..b49860cd13877a55af55f456d96998be5cbfb680 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
+               pm6150l_adc: adc@3100 {
+                       compatible = "qcom,spmi-adc5";
+                       reg = <0x3100>;
+                       interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       #io-channel-cells = <1>;
+
+                       adc-chan@6 {
+                               reg = <ADC5_DIE_TEMP>;
+                               label = "die_temp";
+                       };
+               };
+
+               pm6150l_adc_tm: adc-tm@3500 {
+                       compatible = "qcom,spmi-adc-tm5";
+                       reg = <0x3500>;
+                       interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
+                       #thermal-sensor-cells = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                pm6150l_gpio: gpios@c000 {
                        compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;