From 5fe8aa41a388b163ddd60abae112d03ad6b6db4c Mon Sep 17 00:00:00 2001 From: Ram Chandra Jangir Date: Tue, 23 Oct 2018 17:13:47 +0530 Subject: [PATCH] ipq806x: Initialize complete ethernet subsystem for AP161 AP161 board has 3 GMAC's GMAC0, GMAC1 and GMAC2. Currently uboot is initializing GMAC1 and GMAC2 only, not GMAC0. This way when we use upstream GMAC driver (stmmac dwmac-ipq806x.c) then GMAC1 and GMAC2 are working fine but GMAC0 does not work since it is not initialized/configured at uboot. This change adds support to initialize GMAC0 according to it's corresponding configuration so that all GMAC's can be used. Change-Id: I6345282cd48cb3a766f33d124f36d4050e27da00 Signed-off-by: Ram Chandra Jangir --- arch/arm/dts/ipq806x-ap161.dts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/ipq806x-ap161.dts b/arch/arm/dts/ipq806x-ap161.dts index 747c94ad80..a5070fcbeb 100644 --- a/arch/arm/dts/ipq806x-ap161.dts +++ b/arch/arm/dts/ipq806x-ap161.dts @@ -33,6 +33,19 @@ gmac_count = <2>; gmac1_cfg { + base = <0x37000000>; + unit = <0>; + is_macsec = <1>; + mac_pwr0 = <0x00080000>; + mac_pwr1 = <0x00040000>; + mac_conn_to_phy = <0>; + phy_interface_type = <7>; + phy_address_count = <1>; + phy_address = <0>; + phy_name = "IPQ MDIO0"; + }; + + gmac2_cfg { base = <0x37200000>; unit = <1>; is_macsec = <1>; @@ -45,7 +58,7 @@ phy_name = "IPQ MDIO1"; }; - gmac2_cfg { + gmac3_cfg { base = <0x37400000>; unit = <2>; is_macsec = <1>;