[U-Boot] [PATCH v5 6/6] configs: Bananapi_M2_Ultra: enable gigabit ethernet

Maxime Ripard maxime.ripard at bootlin.com
Thu Jun 28 09:13:51 UTC 2018


On Wed, Jun 27, 2018 at 10:36:11PM +0200, Lothar Felten wrote:
> Enable the gigabit ethernet for the Bananapi M2 Ultra board.
> Tested on BananaPi M2 Berry (R40), custom board (V40)
> 
> Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>
> Signed-off-by: Lothar Felten <lothar.felten at gmail.com>
> 
> ---
>  Changelog:
>  new in v2
>  v2 -> v3 remove unused CONFIG_SUN7I_GMAC
>  v3 -> v4 include device tree node, enable ALDO2
>  v4 -> v5 remove unused CONFIG_DM_GPIO, match Linux kernel device tree

Hmm, are you sure...

> ---
>  arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts | 16 ++++++++++++++++
>  configs/Bananapi_M2_Ultra_defconfig          |  5 +++++
>  2 files changed, 21 insertions(+)
> 
> diff --git a/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
> index ab471ab0bf..28c9158302 100644
> --- a/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
> +++ b/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
> @@ -48,6 +48,7 @@
>  	compatible = "sinovoip,bpi-m2-ultra", "allwinner,sun8i-r40";
>  
>  	aliases {
> +		ethernet0 = &gmac;
>  		serial0 = &uart0;
>  	};
>  
> @@ -67,3 +68,18 @@
>  	pinctrl-0 = <&uart0_pb_pins>;
>  	status = "okay";
>  };
> +
> +&gmac {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&gmac_rgmii_pins>;
> +	phy-handle = <&phy1>;
> +	phy-mode = "rgmii";
> +	status = "okay";
> +};
> +
> +&gmac_mdio {
> +	phy1: ethernet-phy at 1 {
> +		compatible = "ethernet-phy-ieee802.3-c22";
> +		reg = <1>;
> +	};
> +};
> diff --git a/configs/Bananapi_M2_Ultra_defconfig b/configs/Bananapi_M2_Ultra_defconfig
> index 37cc2df5dc..4ce1a905ea 100644
> --- a/configs/Bananapi_M2_Ultra_defconfig
> +++ b/configs/Bananapi_M2_Ultra_defconfig
> @@ -14,6 +14,11 @@ CONFIG_SPL_I2C_SUPPORT=y
>  # CONFIG_CMD_FLASH is not set
>  CONFIG_SCSI_AHCI=y
>  CONFIG_AXP_DLDO4_VOLT=2500
> +CONFIG_AXP_ALDO2_VOLT=2500
>  CONFIG_AXP_ELDO3_VOLT=1200
>  CONFIG_SCSI=y
>  CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
> +CONFIG_SUN8I_EMAC=y
> +CONFIG_RGMII=y
> +CONFIG_MACPWR="PA17"
> +CONFIG_DM_GPIO=y

... Liike, really sure ? :)

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180628/cc27db1b/attachment.sig>


More information about the U-Boot mailing list