提交 38ecd220 编写于 作者: Q Quentin Schulz 提交者: Maxime Ripard

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: NQuentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: NChen-Yu Tsai <wens@csie.org>
Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
上级 b7a06bcb
...@@ -52,6 +52,16 @@ ...@@ -52,6 +52,16 @@
compatible = "x-powers,axp813-gpio"; compatible = "x-powers,axp813-gpio";
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio0_ldo: gpio0-ldo {
pins = "GPIO0";
function = "ldo";
};
gpio1_ldo: gpio1-ldo {
pins = "GPIO1";
function = "ldo";
};
}; };
regulators { regulators {
...@@ -119,11 +129,15 @@ ...@@ -119,11 +129,15 @@
}; };
reg_ldo_io0: ldo-io0 { reg_ldo_io0: ldo-io0 {
pinctrl-names = "default";
pinctrl-0 = <&gpio0_ldo>;
/* Disable by default to avoid conflicts with GPIO */ /* Disable by default to avoid conflicts with GPIO */
status = "disabled"; status = "disabled";
}; };
reg_ldo_io1: ldo-io1 { reg_ldo_io1: ldo-io1 {
pinctrl-names = "default";
pinctrl-0 = <&gpio1_ldo>;
/* Disable by default to avoid conflicts with GPIO */ /* Disable by default to avoid conflicts with GPIO */
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册