@@ -67,7 +67,19 @@
};
&ehci1 {
- status = "okay";
+ status = "okay";
+};
+
+&emac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&emac_rgmii_pins>;
+ phy-mode = "rgmii";
+ phy = <&phy1>;
+ status = "okay";
+
+ phy1: ethernet-phy@1 {
+ reg = <1>;
+ };
};
&mmc0 {
@@ -80,7 +92,7 @@
};
&ohci1 {
- status = "okay";
+ status = "okay";
};
&uart0 {
@@ -90,5 +102,5 @@
};
&usbphy {
- status = "okay";
+ status = "okay";
};
@@ -1,7 +1,10 @@
CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_MACH_SUN50I=y
-CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER=y
+CONFIG_DRAM_ZQ=3881977
+CONFIG_MACPWR="PD14"
+CONFIG_USB0_ID_DET="PH9"
+CONFIG_USB1_VBUS_PIN="PD7"
CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-orangepi-win"
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
CONFIG_SPL=y
Enable Ethernet support in the device tree and add the necessary MACPWR configuration. Also fix spacing in USB device tree nodes and add the relevant configuration options. Signed-off-by: Samuel Holland <samuel@sholland.org> --- arch/arm/dts/sun50i-a64-orangepi-win.dts | 18 +++++++++++++++--- configs/orangepi_win_defconfig | 5 ++++- 2 files changed, 19 insertions(+), 4 deletions(-)