[U-Boot] [PATCH 5/5] aspeed: Activate ethernet devices on the ast2500 Eval Board
Simon Glass
sjg at chromium.org
Thu Sep 27 13:41:56 UTC 2018
On 10 September 2018 at 07:21, Cédric Le Goater <clg at kaod.org> wrote:
> Signed-off-by: Cédric Le Goater <clg at kaod.org>
> ---
> arch/arm/dts/ast2500-evb.dts | 17 +++++++++++++++++
> arch/arm/dts/ast2500.dtsi | 4 ++--
> configs/evb-ast2500_defconfig | 8 ++++++++
> 3 files changed, 27 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
>
> diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts
> index 609678ff7989..1bd224dacf78 100644
> --- a/arch/arm/dts/ast2500-evb.dts
> +++ b/arch/arm/dts/ast2500-evb.dts
> @@ -14,6 +14,7 @@
>
> aliases {
> spi0 = &fmc;
> + ethernet0 = &mac0;
> };
> };
>
> @@ -53,3 +54,19 @@
> spi-rx-bus-width = <2>;
> };
> };
> +
> +&mac0 {
> + status = "okay";
> +
> + phy-mode = "rgmii";
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_mac1link_default &pinctrl_mdio1_default>;
> +};
> +
> +&mac1 {
> + status = "disabled";
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
> +};
> diff --git a/arch/arm/dts/ast2500.dtsi b/arch/arm/dts/ast2500.dtsi
> index de7607aaafff..a1fc5370b109 100644
> --- a/arch/arm/dts/ast2500.dtsi
> +++ b/arch/arm/dts/ast2500.dtsi
> @@ -108,7 +108,7 @@
> };
>
> mac0: ethernet at 1e660000 {
> - compatible = "faraday,ftgmac100";
> + compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
> reg = <0x1e660000 0x180>;
> interrupts = <2>;
> no-hw-checksum;
> @@ -116,7 +116,7 @@
> };
>
> mac1: ethernet at 1e680000 {
> - compatible = "faraday,ftgmac100";
> + compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
> reg = <0x1e680000 0x180>;
> interrupts = <3>;
> no-hw-checksum;
> diff --git a/configs/evb-ast2500_defconfig b/configs/evb-ast2500_defconfig
> index eb0fe00fb49f..4e65388dab23 100644
> --- a/configs/evb-ast2500_defconfig
> +++ b/configs/evb-ast2500_defconfig
> @@ -38,3 +38,11 @@ CONFIG_CMD_SF=y
> CONFIG_CMD_SAVEENV=y
> CONFIG_ENV_IS_IN_SPI_FLASH=y
> CONFIG_FIT=y
> +CONFIG_NETDEVICES=y
> +CONFIG_PHY=y
> +CONFIG_DM_ETH=y
> +CONFIG_FTGMAC100=y
> +CONFIG_PHY_REALTEK=y
> +CONFIG_CMD_PING=y
> +CONFIG_CMD_DHCP=y
> +CONFIG_CMD_MII=y
Are these correctly sorted? (make savedevconfig)
Regards,
Simon
More information about the U-Boot
mailing list