Skip to content

Enable ethernet support for SOCFPGA

Jack Mitchell linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchJack Mitchell
SeriesT-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Enable ethernet support for SOCFPGA
Quoted 57 lines · Dinh Nguyen

Hi Jack,

Quoted 40 lines · ZY - pavel

Hi!

Quoted 13 lines
Quoted 8 lines

These 4 patches are meant to enable ethernet and SD/MMC for the SOCFPGA platform.

patch (1/4): Adds select ARM_TWD for the platform
patch (2/4): Add platform specific initialization for the ethernet controller. patch (3/4): Commit 25c83b5c2 added "snps,phy-addr" for getting the PHY addr.
Set the ethernet clocks to be emac_0_clk and emac_1_clk so it be gated.
patch (4/4): Update defconfig to support SD/MMC, ethernet, EXT3 and NFS.

What tree is this based against, or what patches are a pre-requisite to this series? I applied the patches to linux-arm/master but the compile failed.

Quoted 5 lines

arch/arm/mach-socfpga/socfpga.c: In function 'ksz9021rlrn_phy_fixup':
arch/arm/mach-socfpga/socfpga.c:85:21: error:
'MICREL_KSZ9021_EXTREG_CTRL' undeclared (first use in this function)
phy_write(phydev, MICREL_KSZ9021_EXTREG_CTRL,

                     ^

It seems it depends on:

Date: Mon, 15 Jul 2013 18:08:50 -0500
From: dinguyen at altera.com
To: dinh.linux at gmail.com, netdev at vger.kernel.org
Cc: Pavel Machek <[email protected]>, Nicolas Ferre <[email protected]>,
"David S. Miller" <[email protected]>, linux-arm-kernel at lists.infradead.org,
Shawn Guo <[email protected]>, Jean-Christophe Plagniol-Villard <[email protected]>, Andrew Victor <[email protected]>,
Dinh Nguyen <[email protected]>
Subject: [PATCH] phy: micrel: Add definitions for common Micrel PHY registers
X-Mailer: git-send-email 1.7.9.5

From: Dinh Nguyen <[email protected]>

Quoted 7 lines

Add defines for common Micrel PHY setups so that other platforms can use them. Update imx61 and sama5 hardware to use the micrel_phy.h PHY defines.

Also add support for the KSZ9021RLRN PHY.

Yes, the above patch is necessary. I was hoping that patch can go into either Shawn's or Nicolas' tree. I have received ACKs from both. There is also the SD/MMC bindings patch that has not been applied to the arm-soc tree yet. I have started collecting the patches at github in the meantime:

Quoted 3 lines

git at github.com:dinh-linux/linux-socfpga.git for-next

Dinh

Dinh,

Perfect, that boots from the mmc! For what it's worth, for the whole series + pre-requisite patches on an Arrow SoCkit devkit:

Signature · 5 lines
  Jack Mitchell (jack at embed.me.uk)
  Embedded Systems Engineer
  http://www.embed.me.uk

--