From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jernej =?utf-8?B?xaBrcmFiZWM=?= Date: Thu, 28 Jan 2021 17:16:42 +0100 Subject: [PATCH v2 0/3] sunxi: OrangePi Zero 2: Ethernet support In-Reply-To: <20210127010638.10713-1-andre.przywara@arm.com> References: <20210127010638.10713-1-andre.przywara@arm.com> Message-ID: <1886239.ufdBqgdUVp@kista> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dne sreda, 27. januar 2021 ob 02:06:35 CET je Andre Przywara napisal(a): > The first two patches prepare the sun8i-emac driver to deal with the > EMAC as integrated into the H616 SoC. This IP block is compatible with > the A64 version, but the current driver prevents us from using that: > - The EPHY syscon register needs to have a bit cleared to select the > external PHY. On the A64 it is cleared on reset, but we should not > rely on that. The Linux driver does so as well. Fixed in patch 1/3. > - The pinmux setting is tied to the compatible string, but the H616 > requires a different value. Fixed in patch 2/3. > > The final patch enables Ethernet support for the OrangePi Zero 2 board, > which now works without further ado. This is cleaner and works for me, so for the whole series: Tested-by: Jernej Skrabec Reviewed-by: Jernej Skrabec Thanks! Best regards, Jernej > > Cheers, > Andre > > Andre Przywara (3): > net: sun8i-emac: Always clear syscon EPHY register > net: sun8i-emac: Determine pinmux based on SoC, not EMAC type > sunxi: OrangePi Zero 2: Enable Ethernet > > configs/orangepi_zero2_defconfig | 2 ++ > drivers/net/sun8i_emac.c | 59 ++++++++++++++++++-------------- > 2 files changed, 35 insertions(+), 26 deletions(-) > > -- > 2.17.5 > >