Skip to contentSkip to conversation

dt: fsl-fec.txt: Fix GPIO comment and remove hardcoded MAC address

PATCH In review Fabio Estevam 2 participants 2 messages Apr 24, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt: fsl-fec.txt: Fix GPIO comment and remove hardcoded MAC address

Fix the comment for the GPIO number used for PHY reset and also avoid passing a hardcoded MAC address.

---
 Documentation/devicetree/bindings/net/fsl-fec.txt |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/net/fsl-fec.txt +1 -5
index de43951..3261203 100644
@@ -9,9 +9,6 @@ Required properties:
   "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid", "rtbi", "smii".
 - phy-reset-gpios : Should specify the gpio for phy reset
 
-Optional properties:
-- local-mac-address : 6 bytes, mac address
-
 Example:
 
 fec@83fec000 {
@@ -19,6 +16,5 @@ fec@83fec000 {
 	reg = <0x83fec000 0x4000>;
 	interrupts = <87>;
 	phy-mode = "mii";
-	phy-reset-gpios = <&gpio1 14 0>; /* GPIO2_14 */
-	local-mac-address = [00 04 9F 01 1B B9];
+	phy-reset-gpios = <&gpio1 14 0>; /* GPIO1_14 */
 };
Signature · 1 line
1.7.1
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Fabio Estevam

Fix the comment for the GPIO number used for PHY reset and also avoid passing a hardcoded MAC address.

You can choose to not pass MAC address from device tree, but someone may want to use it for some case, e.g. local network just for debugging. In any case, it's a binding supported by driver, you can choose not use it, but you can not remove it from the binding doc.

Regards,
Shawn

Quoted 30 lines

---
 Documentation/devicetree/bindings/net/fsl-fec.txt |    6 +-----

 1 files changed, 1 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/net/fsl-fec.txt +0 -0
index de43951..3261203 100644
@@ -9,9 +9,6 @@ Required properties:

  "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid", "rtbi", "smii".
 - phy-reset-gpios : Should specify the gpio for phy reset

Documentation/devicetree/bindings/net/fsl-fec.txt +0 -3
-Optional properties:
-- local-mac-address : 6 bytes, mac address
-

 Example:

 fec@83fec000 {

Documentation/devicetree/bindings/net/fsl-fec.txt +1 -3
@@ -19,6 +16,5 @@ fec@83fec000 {
        reg = <0x83fec000 0x4000>;
        interrupts = <87>;
        phy-mode = "mii";
-       phy-reset-gpios = <&gpio1 14 0>; /* GPIO2_14 */
-       local-mac-address = [00 04 9F 01 1B B9];
+       phy-reset-gpios = <&gpio1 14 0>; /* GPIO1_14 */
  };
--

1.7.1