All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add Davicom phy + reset-gpios
@ 2018-08-08 19:15 Sam Ravnborg
  2018-08-08 19:16 ` [PATCH v2 1/3] phylib: add Davicom PHY support Sam Ravnborg
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sam Ravnborg @ 2018-08-08 19:15 UTC (permalink / raw)
  To: barebox; +Cc: Sam Ravnborg

Changes in v2:
- Added patch to enable Davicom PHY on at91sam9263ek - evaluation kit
- Fix so we do reset before comunicating with the PHY
- Rename to mdio_reset()
- Reference correct binding file in commit log (mdio.txt)
- Tested on at91sam9263ek
  The at91sam9263ek kit do not require the reset like my
  proprietary board, so no DT changes required

Intro (from v1):
The following two patches was necessary to get networking
operational on my proprietary target.
The target is at91sam9263 based with a Davicom PHY.

The Davicom PHY is a straight copy form the Linux
kernel with the interrupt routine removed and
minor adjustments to the rest.

The davicom PHY would not work until it had seen a reset
cycle - which I think may be an artifact of the board design.

To fix the reset issue I have implemented support for the
reset-gpios binding (see net/mdio.txt bindings).
A minimal implmentation was done, just enough to get
my target running.

I could have implemented something in macb -
but I preferred the more generic solution.

	Sam

Sam Ravnborg (3):
      phylib: add Davicom PHY support
      phylib: add support for reset-gpios
      at91sam9263ek: add PHY, miitool etc. to config

 arch/arm/configs/at91sam9263ek_defconfig |   12 ++
 drivers/net/phy/Kconfig                  |    5 +
 drivers/net/phy/Makefile                 |    1 
 drivers/net/phy/davicom.c                |  140 +++++++++++++++++++++++++++++++
 drivers/net/phy/mdio_bus.c               |   64 +++++++++++++-
 include/linux/phy.h                      |    5 +
 6 files changed, 224 insertions(+), 3 deletions(-)


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-10  7:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-08 19:15 [PATCH v2 0/3] Add Davicom phy + reset-gpios Sam Ravnborg
2018-08-08 19:16 ` [PATCH v2 1/3] phylib: add Davicom PHY support Sam Ravnborg
2018-08-08 19:17 ` [PATCH v2 2/3] phylib: add support for reset-gpios Sam Ravnborg
2018-08-10  6:40   ` Sascha Hauer
2018-08-10  7:43     ` Sam Ravnborg
2018-08-08 19:17 ` [PATCH v2 3/3] at91sam9263ek: add PHY, miitool etc. to config Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.