net: phy: dp83867: Fix device tree entries
authorDan Murphy <dmurphy@ti.com>
Mon, 8 Jun 2015 19:30:55 +0000 (14:30 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2015 22:54:04 +0000 (15:54 -0700)
Fix the device tree entries to modify the '_' to '-'.
Also changes the names of the internal delay properties
from -int- to -internal- as the -int- appeared as a keyword.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/ti,dp83867.txt
drivers/net/phy/dp83867.c

index 46bb67a222eafc5d29a39680d888b0f8831ef04c..58d935b58598102f4fab0b132ca0fbfadf544fab 100644 (file)
@@ -2,18 +2,24 @@
 
 Required properties:
        - reg - The ID number for the phy, usually a small integer
-       - ti,rx_int_delay - RGMII Recieve Clock Delay - see dt-bindings/net/ti-dp83867.h
+       - ti,rx-internal-delay - RGMII Recieve Clock Delay - see dt-bindings/net/ti-dp83867.h
                for applicable values
-       - ti,tx_int_delay - RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h
+       - ti,tx-internal-delay - RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h
                for applicable values
-       - ti,fifo_depth - Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h
+       - ti,fifo-depth - Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h
                for applicable values
 
+Default child nodes are standard Ethernet PHY device
+nodes as described in Documentation/devicetree/bindings/net/phy.txt
+
 Example:
 
        ethernet-phy@0 {
                reg = <0>;
-               ti,rx_int_delay = <DP83867_RGMIIDCTL_2_25_NS>;
-               ti,tx_int_delay = <DP83867_RGMIIDCTL_2_75_NS>;
-               ti,fifo_depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+               ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
+               ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
+               ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
        };
+
+Datasheet can be found:
+http://www.ti.com/product/DP83867IR/datasheet
index ef0b4eb15f8daaf6b67a8c6b050cd816ef100e2a..c7a12e2e07b7670a55a682ea2988cc4cca86d7b7 100644 (file)
@@ -113,17 +113,17 @@ static int dp83867_of_init(struct phy_device *phydev)
        if (!phydev->dev.of_node)
                return -ENODEV;
 
-       ret = of_property_read_u32(of_node, "ti,rx_int_delay",
+       ret = of_property_read_u32(of_node, "ti,rx-internal-delay",
                                   &dp83867->rx_id_delay);
        if (ret)
                return ret;
 
-       ret = of_property_read_u32(of_node, "ti,tx_int_delay",
+       ret = of_property_read_u32(of_node, "ti,tx-internal-delay",
                                   &dp83867->tx_id_delay);
        if (ret)
                return ret;
 
-       ret = of_property_read_u32(of_node, "ti,fifo_depth",
+       ret = of_property_read_u32(of_node, "ti,fifo-depth",
                                   &dp83867->fifo_depth);
        if (ret)
                return ret;