Commit 809ed95f authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard

ARM: dts: sunxi: Use label to reference pio in sunxi-common-regulators

Use the label to reference the pin controller node, so that we can use
sunxi-common-regulators with sunxi families that don't share the same
address space mappings, such as sun9i.

This patch is mostly space changes due to the reduction of node parents.
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 203c6883
...@@ -50,39 +50,37 @@ ...@@ -50,39 +50,37 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/sun4i-a10.h> #include <dt-bindings/pinctrl/sun4i-a10.h>
/ { &pio {
soc@01c00000 { ahci_pwr_pin_a: ahci_pwr_pin@0 {
pio: pinctrl@01c20800 { allwinner,pins = "PB8";
ahci_pwr_pin_a: ahci_pwr_pin@0 { allwinner,function = "gpio_out";
allwinner,pins = "PB8"; allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,function = "gpio_out"; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
allwinner,drive = <SUN4I_PINCTRL_10_MA>; };
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
usb0_vbus_pin_a: usb0_vbus_pin@0 { usb0_vbus_pin_a: usb0_vbus_pin@0 {
allwinner,pins = "PB9"; allwinner,pins = "PB9";
allwinner,function = "gpio_out"; allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
}; };
usb1_vbus_pin_a: usb1_vbus_pin@0 { usb1_vbus_pin_a: usb1_vbus_pin@0 {
allwinner,pins = "PH6"; allwinner,pins = "PH6";
allwinner,function = "gpio_out"; allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
}; };
usb2_vbus_pin_a: usb2_vbus_pin@0 { usb2_vbus_pin_a: usb2_vbus_pin@0 {
allwinner,pins = "PH3"; allwinner,pins = "PH3";
allwinner,function = "gpio_out"; allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
};
}; };
};
/ {
reg_ahci_5v: ahci-5v { reg_ahci_5v: ahci-5v {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default"; pinctrl-names = "default";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment