diff -ur u-boot-2020.01.orig/arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts u-boot-2020.01/arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts --- u-boot-2020.01.orig/arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts Tue Jan 7 05:56:31 2020 +++ u-boot-2020.01/arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts Sun Sep 20 04:49:56 2020 @@ -18,8 +18,12 @@ compatible = "sinovoip,bpi-m2-zero", "allwinner,sun8i-h2-plus"; aliases { + ethernet0 = &emac; serial0 = &uart0; serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + i2c0 = &i2c0; }; chosen { @@ -59,6 +63,13 @@ status = "okay"; }; +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; + &mmc0 { vmmc-supply = <®_vcc3v3>; bus-width = <4>; @@ -104,6 +115,18 @@ status = "okay"; }; +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + status = "okay"; +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>, <&uart3_rts_cts_pins>; + status = "okay"; +}; + &usb_otg { dr_mode = "otg"; status = "okay"; @@ -117,5 +140,11 @@ * the external USB device will be powered just by the power input * from the power-only USB port. */ + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; status = "okay"; }; diff -ur u-boot-2020.01.orig/configs/bananapi_m2_zero_defconfig u-boot-2020.01/configs/bananapi_m2_zero_defconfig --- u-boot-2020.01.orig/configs/bananapi_m2_zero_defconfig Tue Jan 7 05:56:31 2020 +++ u-boot-2020.01/configs/bananapi_m2_zero_defconfig Sun Sep 20 06:27:06 2020 @@ -9,4 +9,5 @@ # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-bananapi-m2-zero" +CONFIG_SUN8I_EMAC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y