36ad702253
I've discovered following discrepancy in the bindings/net/ethernet.txt documentation, where it states following: - nvmem-cells: phandle, reference to an nvmem node for the MAC address; - nvmem-cell-names: string, should be "mac-address" if nvmem is to be.. which is actually misleading and confusing. There are only two ethernet drivers in the tree, cadence/macb and davinci which supports this properties. This nvmem-cell* properties were introduced in commit9217e566bd
("of_net: Implement of_get_nvmem_mac_address helper"), but commitafa64a72b8
("of: net: kill of_get_nvmem_mac_address()") forget to properly clean up this parts. So this patch fixes the documentation by moving the nvmem-cell* properties at the appropriate places. While at it, I've removed unused include as well. Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com> Fixes:afa64a72b8
("of: net: kill of_get_nvmem_mac_address()") Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
54 lines
2.1 KiB
Plaintext
54 lines
2.1 KiB
Plaintext
* Cadence MACB/GEM Ethernet controller
|
|
|
|
Required properties:
|
|
- compatible: Should be "cdns,[<chip>-]{macb|gem}"
|
|
Use "cdns,at91rm9200-emac" Atmel at91rm9200 SoC.
|
|
Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs.
|
|
Use "cdns,sam9x60-macb" for Microchip sam9x60 SoC.
|
|
Use "cdns,np4-macb" for NP4 SoC devices.
|
|
Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb".
|
|
Use "cdns,pc302-gem" for Picochip picoXcell pc302 and later devices based on
|
|
the Cadence GEM, or the generic form: "cdns,gem".
|
|
Use "atmel,sama5d2-gem" for the GEM IP (10/100) available on Atmel sama5d2 SoCs.
|
|
Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs.
|
|
Use "atmel,sama5d3-gem" for the Gigabit IP available on Atmel sama5d3 SoCs.
|
|
Use "atmel,sama5d4-gem" for the GEM IP (10/100) available on Atmel sama5d4 SoCs.
|
|
Use "cdns,zynq-gem" Xilinx Zynq-7xxx SoC.
|
|
Use "cdns,zynqmp-gem" for Zynq Ultrascale+ MPSoC.
|
|
Or the generic form: "cdns,emac".
|
|
- reg: Address and length of the register set for the device
|
|
- interrupts: Should contain macb interrupt
|
|
- phy-mode: See ethernet.txt file in the same directory.
|
|
- clock-names: Tuple listing input clock names.
|
|
Required elements: 'pclk', 'hclk'
|
|
Optional elements: 'tx_clk'
|
|
Optional elements: 'rx_clk' applies to cdns,zynqmp-gem
|
|
Optional elements: 'tsu_clk'
|
|
- clocks: Phandles to input clocks.
|
|
|
|
Optional properties:
|
|
- nvmem-cells: phandle, reference to an nvmem node for the MAC address
|
|
- nvmem-cell-names: string, should be "mac-address" if nvmem is to be used
|
|
|
|
Optional properties for PHY child node:
|
|
- reset-gpios : Should specify the gpio for phy reset
|
|
- magic-packet : If present, indicates that the hardware supports waking
|
|
up via magic packet.
|
|
- phy-handle : see ethernet.txt file in the same directory
|
|
|
|
Examples:
|
|
|
|
macb0: ethernet@fffc4000 {
|
|
compatible = "cdns,at32ap7000-macb";
|
|
reg = <0xfffc4000 0x4000>;
|
|
interrupts = <21>;
|
|
phy-mode = "rmii";
|
|
local-mac-address = [3a 0e 03 04 05 06];
|
|
clock-names = "pclk", "hclk", "tx_clk";
|
|
clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>;
|
|
ethernet-phy@1 {
|
|
reg = <0x1>;
|
|
reset-gpios = <&pioE 6 1>;
|
|
};
|
|
};
|