ARM: sun6i: m9: Convert to DT label based syntax
In order to lessen the amount of duplication of the DT tree, ease the new and follow the trend that prefers to use label based references when overriding DTSI nodes, convert the board to this syntax Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
parent
6f1b57f57d
commit
ece44e41fa
1 changed files with 75 additions and 77 deletions
|
@ -60,78 +60,6 @@
|
||||||
bootargs = "earlyprintk console=ttyS0,115200";
|
bootargs = "earlyprintk console=ttyS0,115200";
|
||||||
};
|
};
|
||||||
|
|
||||||
soc@01c00000 {
|
|
||||||
mmc0: mmc@01c0f000 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>;
|
|
||||||
vmmc-supply = <®_vcc3v3>;
|
|
||||||
bus-width = <4>;
|
|
||||||
cd-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
|
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
usbphy: phy@01c19400 {
|
|
||||||
usb1_vbus-supply = <®_usb1_vbus>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
ehci0: usb@01c1a000 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
ehci1: usb@01c1b000 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
pio: pinctrl@01c20800 {
|
|
||||||
led_pins_m9: led_pins@0 {
|
|
||||||
allwinner,pins = "PH13";
|
|
||||||
allwinner,function = "gpio_out";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
|
||||||
|
|
||||||
mmc0_cd_pin_m9: mmc0_cd_pin@0 {
|
|
||||||
allwinner,pins = "PH22";
|
|
||||||
allwinner,function = "gpio_in";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
|
|
||||||
};
|
|
||||||
|
|
||||||
usb1_vbus_pin_m9: usb1_vbus_pin@0 {
|
|
||||||
allwinner,pins = "PC27";
|
|
||||||
allwinner,function = "gpio_out";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
uart0: serial@01c28000 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&uart0_pins_a>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
gmac: ethernet@01c30000 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&gmac_pins_mii_a>;
|
|
||||||
phy = <&phy1>;
|
|
||||||
phy-mode = "mii";
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
phy1: ethernet-phy@1 {
|
|
||||||
reg = <1>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
ir@01f02000 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&ir_pins_a>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
@ -142,11 +70,81 @@
|
||||||
gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>;
|
gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
reg_usb1_vbus: usb1-vbus {
|
&ehci0 {
|
||||||
pinctrl-names = "default";
|
status = "okay";
|
||||||
pinctrl-0 = <&usb1_vbus_pin_m9>;
|
};
|
||||||
gpio = <&pio 2 27 GPIO_ACTIVE_HIGH>;
|
|
||||||
status = "okay";
|
&ehci1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&gmac {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&gmac_pins_mii_a>;
|
||||||
|
phy = <&phy1>;
|
||||||
|
phy-mode = "mii";
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
phy1: ethernet-phy@1 {
|
||||||
|
reg = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&ir {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&ir_pins_a>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mmc0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>;
|
||||||
|
vmmc-supply = <®_vcc3v3>;
|
||||||
|
bus-width = <4>;
|
||||||
|
cd-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
|
||||||
|
cd-inverted;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pio {
|
||||||
|
led_pins_m9: led_pins@0 {
|
||||||
|
allwinner,pins = "PH13";
|
||||||
|
allwinner,function = "gpio_out";
|
||||||
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
||||||
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mmc0_cd_pin_m9: mmc0_cd_pin@0 {
|
||||||
|
allwinner,pins = "PH22";
|
||||||
|
allwinner,function = "gpio_in";
|
||||||
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
||||||
|
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
|
||||||
|
};
|
||||||
|
|
||||||
|
usb1_vbus_pin_m9: usb1_vbus_pin@0 {
|
||||||
|
allwinner,pins = "PC27";
|
||||||
|
allwinner,function = "gpio_out";
|
||||||
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
||||||
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
®_usb1_vbus {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&usb1_vbus_pin_m9>;
|
||||||
|
gpio = <&pio 2 27 GPIO_ACTIVE_HIGH>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart0_pins_a>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbphy {
|
||||||
|
usb1_vbus-supply = <®_usb1_vbus>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue