Skip to content

Commit 966d7d1

Browse files
ynezzclaudiubeznea
authored andcommitted
dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour
As of_get_mac_address now supports NVMEM under the hood, we need to update the bindings documentation with the new nvmem-cell* properties, which would mean copy&pasting a lot of redundant information to every binding documentation currently referencing some of the MAC address properties. So I've just removed all the references to the optional MAC address properties and replaced them with the small note referencing net/ethernet.txt file. Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2b07364 commit 966d7d1

21 files changed

+59
-39
lines changed

Documentation/devicetree/bindings/net/altera_tse.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ Required properties:
4646
- reg: phy id used to communicate to phy.
4747
- device_type: Must be "ethernet-phy".
4848

49-
Optional properties:
50-
- local-mac-address: See ethernet.txt in the same directory.
51-
- max-frame-size: See ethernet.txt in the same directory.
49+
The MAC address will be determined using the optional properties defined in
50+
ethernet.txt.
5251

5352
Example:
5453

Documentation/devicetree/bindings/net/amd-xgbe.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Required properties:
2424
- phy-mode: See ethernet.txt file in the same directory
2525

2626
Optional properties:
27-
- mac-address: mac address to be assigned to the device. Can be overridden
28-
by UEFI.
2927
- dma-coherent: Present if dma operations are coherent
3028
- amd,per-channel-interrupt: Indicates that Rx and Tx complete will generate
3129
a unique interrupt for each DMA channel - this requires an additional
@@ -34,6 +32,9 @@ Optional properties:
3432
0 - 1GbE and 10GbE (default)
3533
1 - 2.5GbE and 10GbE
3634

35+
The MAC address will be determined using the optional properties defined in
36+
ethernet.txt.
37+
3738
The following optional properties are represented by an array with each
3839
value corresponding to a particular speed. The first array value represents
3940
the setting for the 1GbE speed, the second value for the 2.5GbE speed and

Documentation/devicetree/bindings/net/brcm,amac.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Required properties:
1616
registers (required for Northstar2)
1717
- interrupts: Interrupt number
1818

19-
Optional properties:
20-
- mac-address: See ethernet.txt file in the same directory
19+
The MAC address will be determined using the optional properties
20+
defined in ethernet.txt.
2121

2222
Examples:
2323

Documentation/devicetree/bindings/net/cpsw.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ Required properties:
4747

4848
Optional properties:
4949
- dual_emac_res_vlan : Specifies VID to be used to segregate the ports
50-
- mac-address : See ethernet.txt file in the same directory
5150
- phy_id : Specifies slave phy id (deprecated, use phy-handle)
5251
- phy-handle : See ethernet.txt file in the same directory
5352

53+
The MAC address will be determined using the optional properties
54+
defined in ethernet.txt.
55+
5456
Slave sub-nodes:
5557
- fixed-link : See fixed-link.txt file in the same directory
5658

Documentation/devicetree/bindings/net/davinci_emac.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ Required properties:
2020
Optional properties:
2121
- phy-handle: See ethernet.txt file in the same directory.
2222
If absent, davinci_emac driver defaults to 100/FULL.
23-
- nvmem-cells: phandle, reference to an nvmem node for the MAC address
24-
- nvmem-cell-names: string, should be "mac-address" if nvmem is to be used
2523
- ti,davinci-rmii-en: 1 byte, 1 means use RMII
2624
- ti,davinci-no-bd-ram: boolean, does EMAC have BD RAM?
2725

26+
The MAC address will be determined using the optional properties
27+
defined in ethernet.txt.
28+
2829
Example (enbw_cmc board):
2930
eth0: emac@1e20000 {
3031
compatible = "ti,davinci-dm6467-emac";

Documentation/devicetree/bindings/net/dsa/dsa.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ properties, described in binding documents:
7171
Documentation/devicetree/bindings/net/fixed-link.txt
7272
for details.
7373

74+
The MAC address will be determined using the optional properties
75+
defined in ethernet.txt.
76+
7477
Example
7578

7679
The following example shows three switches on three MDIO busses,

Documentation/devicetree/bindings/net/ethernet.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ NOTE: All 'phy*' properties documented below are Ethernet specific. For the
44
generic PHY 'phys' property, see
55
Documentation/devicetree/bindings/phy/phy-bindings.txt.
66

7-
- local-mac-address: array of 6 bytes, specifies the MAC address that was
8-
assigned to the network device;
97
- mac-address: array of 6 bytes, specifies the MAC address that was last used by
108
the boot program; should be used in cases where the MAC address assigned to
119
the device by the boot program is different from the "local-mac-address"
1210
property;
11+
- local-mac-address: array of 6 bytes, specifies the MAC address that was
12+
assigned to the network device;
13+
- nvmem-cells: phandle, reference to an nvmem node for the MAC address
14+
- nvmem-cell-names: string, should be "mac-address" if nvmem is to be used
1315
- max-speed: number, specifies maximum speed in Mbit/s supported by the device;
1416
- max-frame-size: number, maximum transfer unit (IEEE defined MTU), rather than
1517
the maximum frame size (there's contradiction in the Devicetree

Documentation/devicetree/bindings/net/hisilicon-femac.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ Required properties:
1414
the PHY reset signal(optional).
1515
- reset-names: should contain the reset signal name "mac"(required)
1616
and "phy"(optional).
17-
- mac-address: see ethernet.txt [1].
1817
- phy-mode: see ethernet.txt [1].
1918
- phy-handle: see ethernet.txt [1].
2019
- hisilicon,phy-reset-delays-us: triplet of delays if PHY reset signal given.
2120
The 1st cell is reset pre-delay in micro seconds.
2221
The 2nd cell is reset pulse in micro seconds.
2322
The 3rd cell is reset post-delay in micro seconds.
2423

24+
The MAC address will be determined using the optional properties
25+
defined in ethernet.txt[1].
26+
2527
[1] Documentation/devicetree/bindings/net/ethernet.txt
2628

2729
Example:

Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Required properties:
1818
- #size-cells: must be <0>.
1919
- phy-mode: see ethernet.txt [1].
2020
- phy-handle: see ethernet.txt [1].
21-
- mac-address: see ethernet.txt [1].
2221
- clocks: clock phandle and specifier pair.
2322
- clock-names: contain the clock name "mac_core"(required) and "mac_ifc"(optional).
2423
- resets: should contain the phandle to the MAC core reset signal(optional),
@@ -31,6 +30,9 @@ Required properties:
3130
The 2nd cell is reset pulse in micro seconds.
3231
The 3rd cell is reset post-delay in micro seconds.
3332

33+
The MAC address will be determined using the properties defined in
34+
ethernet.txt[1].
35+
3436
- PHY subnode: inherits from phy binding [2]
3537

3638
[1] Documentation/devicetree/bindings/net/ethernet.txt

Documentation/devicetree/bindings/net/keystone-netcp.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ Optional properties:
135135
are swapped. The netcp driver will swap the two DWORDs
136136
back to the proper order when this property is set to 2
137137
when it obtains the mac address from efuse.
138-
- local-mac-address: the driver is designed to use the of_get_mac_address api
139-
only if efuse-mac is 0. When efuse-mac is 0, the MAC
140-
address is obtained from local-mac-address. If this
141-
attribute is not present, then the driver will use a
142-
random MAC address.
143138
- "netcp-device label": phandle to the device specification for each of NetCP
144139
sub-module attached to this interface.
145140

141+
The MAC address will be determined using the optional properties defined in
142+
ethernet.txt, as provided by the of_get_mac_address API and only if efuse-mac
143+
is set to 0. If any of the optional MAC address properties are not present,
144+
then the driver will use random MAC address.
145+
146146
Example binding:
147147

148148
netcp: netcp@2000000 {

0 commit comments

Comments
 (0)