summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/axp81x.dtsi
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@free-electrons.com>2017-12-01 14:44:51 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-12-05 10:37:38 +0100
commit38ecd22004e850c6b927bc7e085feb87032935af (patch)
tree7243cd5b40e424a15ba5fa92baf90101194b01eb /arch/arm/boot/dts/axp81x.dtsi
parentb7a06bcb4fca2db52bba9e9a0faed850d13fca0b (diff)
downloadlinux-38ecd22004e850c6b927bc7e085feb87032935af.tar.bz2
ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs
On AXP813/818, GPIO0 and GPIO1 can be used as LDO as (respectively) ldo_io0 and ldo_io1. Let's add the pinctrl properties to the said regulators. Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/axp81x.dtsi')
-rw-r--r--arch/arm/boot/dts/axp81x.dtsi14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi
index 0ef959d980c9..fd55b896afa1 100644
--- a/arch/arm/boot/dts/axp81x.dtsi
+++ b/arch/arm/boot/dts/axp81x.dtsi
@@ -52,6 +52,16 @@
compatible = "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 {
@@ -119,11 +129,15 @@
};
reg_ldo_io0: ldo-io0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&gpio0_ldo>;
/* Disable by default to avoid conflicts with GPIO */
status = "disabled";
};
reg_ldo_io1: ldo-io1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&gpio1_ldo>;
/* Disable by default to avoid conflicts with GPIO */
status = "disabled";
};