Documentation: dtb: Add port-id field for APM X-Gene ethernet
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / net / apm-xgene-enet.txt
index cfcc52705ed8093ba11b4f549dd1b02a8949fb40..dc7961b330765070323daf07dd0e3127b42de46a 100644 (file)
@@ -4,7 +4,10 @@ Ethernet nodes are defined to describe on-chip ethernet interfaces in
 APM X-Gene SoC.
 
 Required properties for all the ethernet interfaces:
-- compatible: Should be "apm,xgene-enet"
+- compatible: Should state binding information from the following list,
+  - "apm,xgene-enet":    RGMII based 1G interface
+  - "apm,xgene1-sgenet": SGMII based 1G interface
+  - "apm,xgene1-xgenet": XFI based 10G interface
 - reg: Address and length of the register set for the device. It contains the
   information of registers in the same order as described by reg-names
 - reg-names: Should contain the register set names
@@ -12,6 +15,7 @@ Required properties for all the ethernet interfaces:
   - "ring_csr": Descriptor ring control and status register address space
   - "ring_cmd": Descriptor ring command register address space
 - interrupts: Ethernet main interrupt
+- port-id: Port number (0 or 1)
 - clocks: Reference to the clock entry.
 - local-mac-address: MAC address assigned to this device
 - phy-connection-type: Interface type between ethernet device and PHY device
@@ -46,6 +50,7 @@ Example:
                      <0x0 0X10000000 0x0 0X200>;
                reg-names = "enet_csr", "ring_csr", "ring_cmd";
                interrupts = <0x0 0x3c 0x4>;
+               port-id = <0>;
                clocks = <&menetclk 0>;
                local-mac-address = [00 01 73 00 00 01];
                phy-connection-type = "rgmii";