net: phy: Fix LED mode in DT single property.
Subsystems (4)
PATCH 1/1 net: phy: Fix LED mode in DT single property.
From: Raju Lakkaraju <Raju.Lakkaraju-dzo6w/[email protected]>
Fix the LED mode DT parameters combine to a single property and change the vendor prefix i.e. mscc.
Signed-off-by Raju Lakkaraju <Raju.Lakkaraju-dzo6w/[email protected]>
---
Change set:
v0: Fix the LED mode DT parameters combine to a single property
v1: Fix the build test ERROR
.../devicetree/bindings/net/mscc-phy-vsc8531.txt | 20 +++----- drivers/net/phy/mscc.c | 57 ++++++++++++---------- 2 files changed, 40 insertions(+), 37 deletions(-)
Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt +8 -12
@@ -6,12 +6,12 @@ Required properties: Documentation/devicetree/bindings/net/phy.txt Optional properties: -- vsc8531,vddmac : The vddmac in mV. Allowed values is listed +- mscc,vddmac : The vddmac in mV. Allowed values is listed in the first row of Table 1 (below). This property is only used in combination with the 'edge-slowdown' property. Default value is 3300. -- vsc8531,edge-slowdown : % the edge should be slowed down relative to +- mscc,edge-slowdown : % the edge should be slowed down relative to the fastest possible edge time. Edge rate sets the drive strength of the MAC interface output signals. Changing the
@@ -27,14 +27,11 @@ Optional properties: 'vddmac'. Default value is 0%. Ref: Table:1 - Edge rate change (below). -- vsc8531,led-0-mode : LED mode. Specify how the LED[0] should behave. +- mscc,led-mode : LED mode. Specify how the LED[0] and LED[1] should behave. Allowed values are define in "include/dt-bindings/net/mscc-phy-vsc8531.h". - Default value is VSC8531_LINK_1000_ACTIVITY (1). -- vsc8531,led-1-mode : LED mode. Specify how the LED[1] should behave. - Allowed values are define in - "include/dt-bindings/net/mscc-phy-vsc8531.h". - Default value is VSC8531_LINK_100_ACTIVITY (2). + Default LED[0] value is VSC8531_LINK_1000_ACTIVITY (1). + Default LED[1] value is VSC8531_LINK_100_ACTIVITY (2). Table: 1 - Edge rate change ----------------------------------------------------------------|
@@ -66,8 +63,7 @@ Example: vsc8531_0: ethernet-phy@0 { compatible = "ethernet-phy-id0007.0570"; - vsc8531,vddmac = <3300>; - vsc8531,edge-slowdown = <7>; - vsc8531,led-0-mode = <LINK_1000_ACTIVITY>; - vsc8531,led-1-mode = <LINK_100_ACTIVITY>; + mscc,vddmac = /bits/ 16 <3300>; + mscc,edge-slowdown = /bits/ 8 <7>; + mscc,led-mode = <LINK_1000_ACTIVITY LINK_100_ACTIVITY>; };
drivers/net/phy/mscc.c +32 -25
97 lines not on this page · raw message
Signature · 6 lines
2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html