phy: micrel: add of configuration for LED mode
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 11 Dec 2014 02:29:11 +0000 (11:29 +0900)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:16:22 +0000 (11:16 +0100)
commit6b404e2c27fb17e0ba8963ae6e4077a3cb15ba3c
treeaa1627d4d79bb92cc624e318cf31c0fe0c4c2c3e
parent161dad66cc0e6b07351b6d8173c6345b994d1294
phy: micrel: add of configuration for LED mode

Add support for the led-mode property for the following PHYs
which have a single LED mode configuration value.

KSZ8001 and KSZ8041 which both use register 0x1e bits 15,14 and
KSZ8021, KSZ8031 and KSZ8051 which use register 0x1f bits 5,4
to control the LED configuration.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 20d8435a1cffa04992f1db6b199a5f0ccec2ff06)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Documentation/devicetree/bindings/net/micrel.txt [new file with mode: 0644]
drivers/net/phy/micrel.c