1 APM X-Gene SoC Ethernet nodes 2 3 Ethernet nodes are defined to describe on-chip 4 APM X-Gene SoC. 5 6 Required properties for all the ethernet inter 7 - compatible: Should state binding information 8 - "apm,xgene-enet": RGMII based 1G interf 9 - "apm,xgene1-sgenet": SGMII based 1G interf 10 - "apm,xgene1-xgenet": XFI based 10G interfa 11 - reg: Address and length of the register set 12 information of registers in the same order a 13 - reg-names: Should contain the register set n 14 - "enet_csr": Ethernet control and status re 15 - "ring_csr": Descriptor ring control and st 16 - "ring_cmd": Descriptor ring command regist 17 - interrupts: Two interrupt specifiers can be 18 - First is the Rx interrupt. This irq is ma 19 - Second is the Tx completion interrupt. 20 This is supported only on SGMII based 1GbE 21 - channel: Ethernet to CPU, start channel (pre 22 - Must map to the first irq and irqs must be 23 - port-id: Port number (0 or 1) 24 - clocks: Reference to the clock entry. 25 - local-mac-address: MAC address assigned to t 26 - phy-connection-type: Interface type between 27 28 Required properties for ethernet interfaces th 29 - phy-handle: Reference to a PHY node connecte 30 31 - mdio: Device tree subnode with the following 32 - compatible: Must be "apm,xgene-mdio". 33 - #address-cells: Must be <1>. 34 - #size-cells: Must be <0>. 35 36 For the phy on the mdio bus, there must be a 37 - compatible: PHY identifier. Please refer 38 - reg: The ID number for the phy. 39 40 Optional properties: 41 - status: Should be "ok" or "disabled" for ena 42 - tx-delay: Delay value for RGMII bridge TX cl 43 Valid values are between 0 to 7, t 44 417, 717, 1020, 1321, 1611, 1913, 45 Default value is 4, which correspo 46 - rx-delay: Delay value for RGMII bridge RX cl 47 Valid values are between 0 to 7, t 48 273, 589, 899, 1222, 1480, 1806, 2 49 Default value is 2, which correspo 50 - rxlos-gpios: Input gpio from SFP+ module to 51 incoming signal. 52 53 54 Example: 55 menetclk: menetclk { 56 compatible = "apm,xgene-device 57 clock-output-names = "menetclk 58 status = "ok"; 59 }; 60 61 menet: ethernet@17020000 { 62 compatible = "apm,xgene-enet"; 63 status = "disabled"; 64 reg = <0x0 0x17020000 0x0 0xd1 65 <0x0 0x17030000 0x0 0x40 66 <0x0 0x10000000 0x0 0x20 67 reg-names = "enet_csr", "ring_ 68 interrupts = <0x0 0x3c 0x4>; 69 port-id = <0>; 70 clocks = <&menetclk 0>; 71 local-mac-address = [00 01 73 72 phy-connection-type = "rgmii"; 73 phy-handle = <&menetphy>; 74 mdio { 75 compatible = "apm,xgen 76 #address-cells = <1>; 77 #size-cells = <0>; 78 menetphy: menetphy@3 { 79 compatible = " 80 reg = <0x3>; 81 }; 82 83 }; 84 }; 85 86 /* Board-specific peripheral configurations */ 87 &menet { 88 tx-delay = <4>; 89 rx-delay = <2>; 90 status = "ok"; 91 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.