ARM: dts: imx6: phycore-som: add da9062 gpio support
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 27 Feb 2020 11:06:05 +0000 (12:06 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Mar 2020 07:37:13 +0000 (15:37 +0800)
The pmic is a mfd device and supports gpios. Those gpios are not routed
to the SoM baseboard pin header but they are connected to the i.MX6. We
need the GPIO's to configure the pmic to select between the
suspend/resume arm and soc voltages

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi

index 356fe56..a8ae654 100644 (file)
@@ -88,7 +88,7 @@
                reg = <0x50>;
        };
 
-       pmic@58 {
+       pmic: pmic@58 {
                compatible = "dlg,da9062";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_pmic>;
@@ -96,6 +96,8 @@
                interrupt-parent = <&gpio1>;
                interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
                interrupt-controller;
+               gpio-controller;
+               #gpio-cells = <2>;
 
                da9062_rtc: rtc {
                        compatible = "dlg,da9062-rtc";