Commit a86d26c8 authored by Maxime Ripard's avatar Maxime Ripard

ARM: sun4i: olinuxino lime: 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 c2e04641
...@@ -56,136 +56,131 @@ / { ...@@ -56,136 +56,131 @@ / {
model = "Olimex A10-OLinuXino-LIME"; model = "Olimex A10-OLinuXino-LIME";
compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10"; compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
cpus { leds {
cpu0: cpu@0 { compatible = "gpio-leds";
/* pinctrl-names = "default";
* The A10-Lime is known to be unstable pinctrl-0 = <&led_pins_olinuxinolime>;
* when running at 1008 MHz
*/ green {
operating-points = < label = "a10-olinuxino-lime:green:usr";
/* kHz uV */ gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
912000 1350000 default-state = "on";
864000 1300000
624000 1250000
>;
cooling-max-level = <2>;
}; };
}; };
};
soc@01c00000 { &ahci {
emac: ethernet@01c0b000 { target-supply = <&reg_ahci_5v>;
pinctrl-names = "default"; status = "okay";
pinctrl-0 = <&emac_pins_a>; };
phy = <&phy1>;
status = "okay";
};
mdio@01c0b080 { &cpu0 {
status = "okay"; /*
* The A10-Lime is known to be unstable when running at 1008 MHz
*/
operating-points = <
/* kHz uV */
912000 1350000
864000 1300000
624000 1250000
>;
cooling-max-level = <2>;
};
phy1: ethernet-phy@1 { &ehci0 {
reg = <1>; status = "okay";
}; };
};
mmc0: mmc@01c0f000 { &ehci1 {
pinctrl-names = "default"; status = "okay";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; };
vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>;
cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted;
status = "okay";
};
usbphy: phy@01c13400 { &emac {
usb1_vbus-supply = <&reg_usb1_vbus>; pinctrl-names = "default";
usb2_vbus-supply = <&reg_usb2_vbus>; pinctrl-0 = <&emac_pins_a>;
status = "okay"; phy = <&phy1>;
}; status = "okay";
};
ehci0: usb@01c14000 { &i2c0 {
status = "okay"; pinctrl-names = "default";
}; pinctrl-0 = <&i2c0_pins_a>;
status = "okay";
ohci0: usb@01c14400 { axp209: pmic@34 {
status = "okay"; compatible = "x-powers,axp209";
}; reg = <0x34>;
interrupts = <0>;
ahci: sata@01c18000 { interrupt-controller;
target-supply = <&reg_ahci_5v>; #interrupt-cells = <1>;
status = "okay"; };
}; };
ehci1: usb@01c1c000 { &mdio {
status = "okay"; status = "okay";
};
ohci1: usb@01c1c400 { phy1: ethernet-phy@1 {
status = "okay"; reg = <1>;
}; };
};
pinctrl@01c20800 { &mmc0 {
ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 { pinctrl-names = "default";
allwinner,pins = "PC3"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
allwinner,function = "gpio_out"; vmmc-supply = <&reg_vcc3v3>;
allwinner,drive = <SUN4I_PINCTRL_10_MA>; bus-width = <4>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
}; cd-inverted;
status = "okay";
led_pins_olinuxinolime: led_pins@0 { };
allwinner,pins = "PH2";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_20_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
};
uart0: serial@01c28000 { &ohci0 {
pinctrl-names = "default"; status = "okay";
pinctrl-0 = <&uart0_pins_a>; };
status = "okay";
};
i2c0: i2c@01c2ac00 { &ohci1 {
pinctrl-names = "default"; status = "okay";
pinctrl-0 = <&i2c0_pins_a>; };
status = "okay";
axp209: pmic@34 { &pio {
compatible = "x-powers,axp209"; ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
reg = <0x34>; allwinner,pins = "PC3";
interrupts = <0>; allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
interrupt-controller; led_pins_olinuxinolime: led_pins@0 {
#interrupt-cells = <1>; allwinner,pins = "PH2";
}; allwinner,function = "gpio_out";
}; allwinner,drive = <SUN4I_PINCTRL_20_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
}; };
};
leds { &reg_ahci_5v {
compatible = "gpio-leds"; pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
pinctrl-names = "default"; gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&led_pins_olinuxinolime>; status = "okay";
};
green { &reg_usb1_vbus {
label = "a10-olinuxino-lime:green:usr"; status = "okay";
gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; };
default-state = "on";
};
};
reg_ahci_5v: ahci-5v { &reg_usb2_vbus {
pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; status = "okay";
gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; };
status = "okay";
};
reg_usb1_vbus: usb1-vbus { &uart0 {
status = "okay"; pinctrl-names = "default";
}; pinctrl-0 = <&uart0_pins_a>;
status = "okay";
};
reg_usb2_vbus: usb2-vbus { &usbphy {
status = "okay"; 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