Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: Add fixed-link support

Update device-tree binding with fixed-link support.

With fixed-link support the formerly required property 'phy-handle'
is now optional if 'fixed-link' child is present.

Signed-off-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Moritz Fischer and committed by
David S. Miller
baaac2fb 8dc0ae90

+32 -1
+32 -1
Documentation/devicetree/bindings/net/nixge.txt
··· 12 12 - interrupts: Should contain tx and rx interrupt 13 13 - interrupt-names: Should be "rx" and "tx" 14 14 - phy-mode: See ethernet.txt file in the same directory. 15 - - phy-handle: See ethernet.txt file in the same directory. 16 15 - nvmem-cells: Phandle of nvmem cell containing the MAC address 17 16 - nvmem-cell-names: Should be "address" 18 17 19 18 Optional properties: 20 19 - mdio subnode to indicate presence of MDIO controller 20 + - fixed-link : Assume a fixed link. See fixed-link.txt in the same directory. 21 + Use instead of phy-handle. 22 + - phy-handle: See ethernet.txt file in the same directory. 21 23 22 24 Examples (10G generic PHY): 23 25 nixge0: ethernet@40000000 { ··· 60 58 61 59 phy-mode = "xgmii"; 62 60 phy-handle = <&ethernet_phy1>; 61 + }; 62 + 63 + Examples (1G generic fixed-link + MDIO): 64 + nixge0: ethernet@40000000 { 65 + compatible = "ni,xge-enet-2.00"; 66 + reg = <0x40000000 0x6000>; 67 + 68 + nvmem-cells = <&eth1_addr>; 69 + nvmem-cell-names = "address"; 70 + 71 + interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>, <0 30 IRQ_TYPE_LEVEL_HIGH>; 72 + interrupt-names = "rx", "tx"; 73 + interrupt-parent = <&intc>; 74 + 75 + phy-mode = "xgmii"; 76 + 77 + fixed-link { 78 + speed = <1000>; 79 + pause; 80 + link-gpios = <&gpio0 63 GPIO_ACTIVE_HIGH>; 81 + }; 82 + 83 + mdio { 84 + ethernet_phy1: ethernet-phy@4 { 85 + compatible = "ethernet-phy-ieee802.3-c22"; 86 + reg = <4>; 87 + }; 88 + }; 89 + 63 90 };