@@ -54,6 +54,16 @@
"x-powers,axp813-gpio";
gpio-controller;
#gpio-cells = <2>;
+
+ gpio0_ldo: gpio0-ldo {
+ pins = "GPIO0";
+ function = "ldo";
+ };
+
+ gpio1_ldo: gpio1-ldo {
+ pins = "GPIO1";
+ function = "ldo";
+ };
};
regulators {
@@ -137,12 +147,16 @@
};
reg_ldo_io0: ldo-io0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&gpio0_ldo>;
regulator-name = "ldo-io0";
status = "disabled";
};
reg_ldo_io1: ldo-io1 {
regulator-name = "ldo-io1";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gpio1_ldo>;
status = "disabled";
};
GPIO0, GPIO1 can be used as LDO like ldo_io0, ldo_io1 in AXP803. So, attach the LDO GPIO pins along with pinctrl properties. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)