Commit d540b7cc authored by Maxime Ripard's avatar Maxime Ripard

ARM: sun7i: bananapi: 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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent ece44e41
...@@ -65,160 +65,158 @@ aliases { ...@@ -65,160 +65,158 @@ aliases {
serial2 = &uart7; serial2 = &uart7;
}; };
soc@01c00000 { leds {
spi0: spi@01c05000 { compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&spi0_pins_a>; pinctrl-0 = <&led_pins_bananapi>;
status = "okay";
};
mmc0: mmc@01c0f000 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>;
vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>;
cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
cd-inverted;
status = "okay";
};
usbphy: phy@01c13400 { green {
usb1_vbus-supply = <&reg_usb1_vbus>; label = "bananapi:green:usr";
usb2_vbus-supply = <&reg_usb2_vbus>; gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>;
status = "okay";
}; };
};
ehci0: usb@01c14000 { reg_gmac_3v3: gmac-3v3 {
status = "okay"; compatible = "regulator-fixed";
}; pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_bananapi>;
regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
enable-active-high;
gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>;
};
};
ohci0: usb@01c14400 { &ahci {
status = "okay"; status = "okay";
}; };
ahci: sata@01c18000 { &ehci0 {
status = "okay"; status = "okay";
}; };
ehci1: usb@01c1c000 { &ehci1 {
status = "okay"; status = "okay";
}; };
ohci1: usb@01c1c400 { &gmac {
status = "okay"; pinctrl-names = "default";
}; pinctrl-0 = <&gmac_pins_rgmii_a>;
phy = <&phy1>;
phy-mode = "rgmii";
phy-supply = <&reg_gmac_3v3>;
status = "okay";
pinctrl@01c20800 { phy1: ethernet-phy@1 {
mmc0_cd_pin_bananapi: mmc0_cd_pin@0 { reg = <1>;
allwinner,pins = "PH10"; };
allwinner,function = "gpio_in"; };
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
gmac_power_pin_bananapi: gmac_power_pin@0 {
allwinner,pins = "PH23";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
led_pins_bananapi: led_pins@0 {
allwinner,pins = "PH24";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
};
ir0: ir@01c21800 { &i2c0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>; pinctrl-0 = <&i2c0_pins_a>;
status = "okay"; status = "okay";
};
uart0: serial@01c28000 { axp209: pmic@34 {
pinctrl-names = "default"; compatible = "x-powers,axp209";
pinctrl-0 = <&uart0_pins_a>; reg = <0x34>;
status = "okay"; interrupt-parent = <&nmi_intc>;
}; interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
uart3: serial@01c28c00 { interrupt-controller;
pinctrl-names = "default"; #interrupt-cells = <1>;
pinctrl-0 = <&uart3_pins_b>; };
status = "okay"; };
};
uart7: serial@01c29c00 { &i2c2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&uart7_pins_a>; pinctrl-0 = <&i2c2_pins_a>;
status = "okay"; status = "okay";
}; };
i2c0: i2c@01c2ac00 { &ir0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>; pinctrl-0 = <&ir0_pins_a>;
status = "okay"; status = "okay";
};
axp209: pmic@34 { &mmc0 {
compatible = "x-powers,axp209"; pinctrl-names = "default";
reg = <0x34>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>;
interrupt-parent = <&nmi_intc>; vmmc-supply = <&reg_vcc3v3>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; bus-width = <4>;
cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
cd-inverted;
status = "okay";
};
interrupt-controller; &ohci0 {
#interrupt-cells = <1>; status = "okay";
}; };
};
i2c2: i2c@01c2b400 { &ohci1 {
pinctrl-names = "default"; status = "okay";
pinctrl-0 = <&i2c2_pins_a>; };
status = "okay";
};
gmac: ethernet@01c50000 { &pio {
pinctrl-names = "default"; mmc0_cd_pin_bananapi: mmc0_cd_pin@0 {
pinctrl-0 = <&gmac_pins_rgmii_a>; allwinner,pins = "PH10";
phy = <&phy1>; allwinner,function = "gpio_in";
phy-mode = "rgmii"; allwinner,drive = <SUN4I_PINCTRL_10_MA>;
phy-supply = <&reg_gmac_3v3>; allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
};
}; };
leds { gmac_power_pin_bananapi: gmac_power_pin@0 {
compatible = "gpio-leds"; allwinner,pins = "PH23";
pinctrl-names = "default"; allwinner,function = "gpio_out";
pinctrl-0 = <&led_pins_bananapi>; allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
green {
label = "bananapi:green:usr";
gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>;
};
}; };
reg_usb1_vbus: usb1-vbus { led_pins_bananapi: led_pins@0 {
status = "okay"; allwinner,pins = "PH24";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
}; };
};
reg_usb2_vbus: usb2-vbus { &reg_usb1_vbus {
status = "okay"; status = "okay";
}; };
reg_gmac_3v3: gmac-3v3 { &reg_usb2_vbus {
compatible = "regulator-fixed"; status = "okay";
pinctrl-names = "default"; };
pinctrl-0 = <&gmac_power_pin_bananapi>;
regulator-name = "gmac-3v3"; &spi0 {
regulator-min-microvolt = <3300000>; pinctrl-names = "default";
regulator-max-microvolt = <3300000>; pinctrl-0 = <&spi0_pins_a>;
startup-delay-us = <100000>; status = "okay";
enable-active-high; };
gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>;
}; &uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;
status = "okay";
};
&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&uart3_pins_b>;
status = "okay";
};
&uart7 {
pinctrl-names = "default";
pinctrl-0 = <&uart7_pins_a>;
status = "okay";
};
&usbphy {
usb1_vbus-supply = <&reg_usb1_vbus>;
usb2_vbus-supply = <&reg_usb2_vbus>;
status = "okay";
}; };
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