arm64: dts: allwinner: a64: Orange Pi Win: Add Ethernet node
The Orange Pi Win has the usual Gigabit PHY connected to the EMAC. Its power is controlled by GPIO PD14. Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
This commit is contained in:
parent
14ff5d8f91
commit
93d6a27cfc
1 changed files with 29 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
|
* Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
|
||||||
|
* Copyright (C) 2017-2018 Samuel Holland <samuel@sholland.org>
|
||||||
*
|
*
|
||||||
* This file is dual-licensed: you can use it either under the terms
|
* This file is dual-licensed: you can use it either under the terms
|
||||||
* of the GPL or the X11 license, at your option. Note that this dual
|
* of the GPL or the X11 license, at your option. Note that this dual
|
||||||
|
@ -51,6 +52,7 @@
|
||||||
compatible = "xunlong,orangepi-win", "allwinner,sun50i-a64";
|
compatible = "xunlong,orangepi-win", "allwinner,sun50i-a64";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
|
ethernet0 = &emac;
|
||||||
serial0 = &uart0;
|
serial0 = &uart0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -58,6 +60,17 @@
|
||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reg_gmac_3v3: gmac-3v3 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "gmac-3v3";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-boot-on;
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&pio 3 14 GPIO_ACTIVE_HIGH>; /* PD14 */
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
reg_usb1_vbus: usb1-vbus {
|
reg_usb1_vbus: usb1-vbus {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "usb1-vbus";
|
regulator-name = "usb1-vbus";
|
||||||
|
@ -78,6 +91,22 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&emac {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&rgmii_pins>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
phy-handle = <&ext_rgmii_phy>;
|
||||||
|
phy-supply = <®_gmac_3v3>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
ext_rgmii_phy: ethernet-phy@1 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&mmc0_pins>;
|
pinctrl-0 = <&mmc0_pins>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue