]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: dts: at91: sama5d2_xplained: Add charger node
authorWenyou Yang <wenyou.yang@atmel.com>
Tue, 15 Aug 2017 06:24:20 +0000 (14:24 +0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 9 Oct 2017 14:32:19 +0000 (16:32 +0200)
Add the charger device node as a sub-device of act8945a mfd, move
the charger's properties in the node, and replace the
"active-semi,irq_gpios" with the "interrupts" property to denote
the act8945a charger's irq.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/boot/dts/at91-sama5d2_xplained.dts

index c7e9ccf2bc8724304f44c574bc901b3e9b3999af..848ca1b025bed6c843bcb92f84d0898347d232f0 100644 (file)
                                        compatible = "active-semi,act8945a";
                                        reg = <0x5b>;
                                        active-semi,vsel-high;
-                                       active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
-                                       active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
-                                       active-semi,irq_gpios = <&pioA PIN_PB13 GPIO_ACTIVE_LOW>;
-                                       active-semi,input-voltage-threshold-microvolt = <6600>;
-                                       active-semi,precondition-timeout = <40>;
-                                       active-semi,total-timeout = <3>;
-                                       pinctrl-names = "default";
-                                       pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
                                        status = "okay";
 
                                        regulators {
                                                        regulator-always-on;
                                                };
                                        };
+
+                                       charger {
+                                               compatible = "active-semi,act8945a-charger";
+                                               pinctrl-names = "default";
+                                               pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
+                                               interrupt-parent = <&pioA>;
+                                               interrupts = <PIN_PB13 GPIO_ACTIVE_LOW>;
+
+                                               active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
+                                               active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
+                                               active-semi,input-voltage-threshold-microvolt = <6600>;
+                                               active-semi,precondition-timeout = <40>;
+                                               active-semi,total-timeout = <3>;
+                                               status = "okay";
+                                       };
                                };
                        };