~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/apm-xgene-enet.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/net/apm-xgene-enet.txt (Architecture sparc) and /Documentation/devicetree/bindings/net/apm-xgene-enet.txt (Architecture mips)


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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php