OSDN Git Service

ARM: dts: msm: enable the watchdog bark interrupt for smb138x
authorNicholas Troast <ntroast@codeaurora.org>
Tue, 18 Oct 2016 22:12:03 +0000 (15:12 -0700)
committerNicholas Troast <ntroast@codeaurora.org>
Wed, 7 Dec 2016 23:22:49 +0000 (15:22 -0800)
The smb138x parallel charger device has a watchdog timer that will
disable parallel charging if it is not pet by software. Enable it.

Change-Id: Ie28323cdabccdc64196fae25deb2f56dfbb5a0e7
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
arch/arm/boot/dts/qcom/msm-smb138x.dtsi

index b8c721e..e6e04f1 100644 (file)
 
 &i2c_7 {
        status = "okay";
-       qcom,smb138x@8 {
+       smb138x: qcom,smb138x@8 {
                compatible = "qcom,i2c-pmic";
                reg = <0x8>;
-               #address-cells = <2>;
-               #size-cells = <0>;
+               #address-cells = <1>;
+               #size-cells = <1>;
                interrupt-parent = <&spmi_bus>;
                interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>;
                interrupt_names = "smb138x";
@@ -37,6 +37,7 @@
                        #address-cells = <1>;
                        #size-cells = <0>;
                        #io-channel-cells = <1>;
+                       interrupt-parent = <&smb138x>;
                        interrupts = <0x36 0x0 IRQ_TYPE_EDGE_BOTH>;
                        interrupt-names = "eoc";
 
                        compatible = "qcom,smb138x-parallel-slave";
                        qcom,pmic-revid = <&smb138x_revid>;
                        reg = <0x1000 0x700>;
-
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       interrupt-parent = <&smb138x>;
                        io-channels = <&smb138x_tadc 2>,
                                      <&smb138x_tadc 12>,
                                      <&smb138x_tadc 3>;
                        io-channel-names = "charger_temp",
                                           "charger_temp_max",
                                           "batt_i";
+
+                       qcom,chgr-misc@1600 {
+                               reg = <0x1600 0x100>;
+                               interrupts = <0x16 0x1 IRQ_TYPE_EDGE_RISING>;
+                               interrupt-names = "wdog-bark";
+                       };
                };
        };
 };