aspeed: Activate ethernet devices on the ast2500 Eval Board
authorCédric Le Goater <clg@kaod.org>
Mon, 29 Oct 2018 06:06:40 +0000 (07:06 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 5 Nov 2018 16:41:58 +0000 (10:41 -0600)
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
arch/arm/dts/ast2500-evb.dts

index 723941ac0beea72f8416833852c721a7b4161031..ebf44fd707f9ad35c29d0053d4722927e8542d60 100644 (file)
        chosen {
                stdout-path = &uart5;
        };
+
+       aliases {
+               ethernet0 = &mac0;
+               ethernet1 = &mac1;
+       };
 };
 
 &uart5 {
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&mac0 {
+       status = "okay";
+
+       phy-mode = "rgmii";
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mac1link_default &pinctrl_mdio1_default>;
+};
+
+&mac1 {
+       status = "okay";
+
+       phy-mode = "rgmii";
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
+};