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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml

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/xlnx,axi-ethernet.yaml (Architecture i386) and /Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml (Architecture alpha)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/net/xlnx,ax      4 $id: http://devicetree.org/schemas/net/xlnx,axi-ethernet.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: AXI 1G/2.5G Ethernet Subsystem               7 title: AXI 1G/2.5G Ethernet Subsystem
  8                                                     8 
  9 description: |                                      9 description: |
 10   Also called  AXI 1G/2.5G Ethernet Subsystem,     10   Also called  AXI 1G/2.5G Ethernet Subsystem, the xilinx axi ethernet IP core
 11   provides connectivity to an external etherne     11   provides connectivity to an external ethernet PHY supporting different
 12   interfaces: MII, GMII, RGMII, SGMII, 1000Bas     12   interfaces: MII, GMII, RGMII, SGMII, 1000BaseX. It also includes two
 13   segments of memory for buffering TX and RX,      13   segments of memory for buffering TX and RX, as well as the capability of
 14   offloading TX/RX checksum calculation off th     14   offloading TX/RX checksum calculation off the processor.
 15                                                    15 
 16   Management configuration is done through the     16   Management configuration is done through the AXI interface, while payload is
 17   sent and received through means of an AXI DM     17   sent and received through means of an AXI DMA controller. This driver
 18   includes the DMA driver code, so this driver     18   includes the DMA driver code, so this driver is incompatible with AXI DMA
 19   driver.                                          19   driver.
 20                                                    20 
 21 maintainers:                                       21 maintainers:
 22   - Radhey Shyam Pandey <radhey.shyam.pandey@xi     22   - Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
 23                                                    23 
 24 properties:                                        24 properties:
 25   compatible:                                      25   compatible:
 26     enum:                                          26     enum:
 27       - xlnx,axi-ethernet-1.00.a                   27       - xlnx,axi-ethernet-1.00.a
 28       - xlnx,axi-ethernet-1.01.a                   28       - xlnx,axi-ethernet-1.01.a
 29       - xlnx,axi-ethernet-2.01.a                   29       - xlnx,axi-ethernet-2.01.a
 30                                                    30 
 31   reg:                                             31   reg:
 32     description:                                   32     description:
 33       Address and length of the IO space, as w     33       Address and length of the IO space, as well as the address
 34       and length of the AXI DMA controller IO      34       and length of the AXI DMA controller IO space, unless
 35       axistream-connected is specified, in whi     35       axistream-connected is specified, in which case the reg
 36       attribute of the node referenced by it i     36       attribute of the node referenced by it is used.
 37     minItems: 1                                    37     minItems: 1
 38     maxItems: 2                                    38     maxItems: 2
 39                                                    39 
 40   interrupts:                                      40   interrupts:
 41     items:                                         41     items:
 42       - description: Ethernet core interrupt       42       - description: Ethernet core interrupt
 43       - description: Tx DMA interrupt              43       - description: Tx DMA interrupt
 44       - description: Rx DMA interrupt              44       - description: Rx DMA interrupt
 45     description:                                   45     description:
 46       Ethernet core interrupt is optional. If      46       Ethernet core interrupt is optional. If axistream-connected property is
 47       present DMA node should contains TX/RX D     47       present DMA node should contains TX/RX DMA interrupts else DMA interrupt
 48       resources are mentioned on ethernet node     48       resources are mentioned on ethernet node.
 49     minItems: 1                                    49     minItems: 1
 50                                                    50 
 51   phy-handle: true                                 51   phy-handle: true
 52                                                    52 
 53   xlnx,rxmem:                                      53   xlnx,rxmem:
 54     description:                                   54     description:
 55       Set to allocated memory buffer for Rx/Tx     55       Set to allocated memory buffer for Rx/Tx in the hardware.
 56     $ref: /schemas/types.yaml#/definitions/uin     56     $ref: /schemas/types.yaml#/definitions/uint32
 57                                                    57 
 58   phy-mode:                                        58   phy-mode:
 59     enum:                                          59     enum:
 60       - mii                                        60       - mii
 61       - gmii                                       61       - gmii
 62       - rgmii                                      62       - rgmii
 63       - sgmii                                      63       - sgmii
 64       - 1000base-x                                 64       - 1000base-x
 65                                                    65 
 66   xlnx,phy-type:                                   66   xlnx,phy-type:
 67     description:                                   67     description:
 68       Do not use, but still accepted in prefer     68       Do not use, but still accepted in preference to phy-mode.
 69     deprecated: true                               69     deprecated: true
 70     $ref: /schemas/types.yaml#/definitions/uin     70     $ref: /schemas/types.yaml#/definitions/uint32
 71                                                    71 
 72   xlnx,txcsum:                                     72   xlnx,txcsum:
 73     description:                                   73     description:
 74       TX checksum offload. 0 or empty for disa     74       TX checksum offload. 0 or empty for disabling TX checksum offload,
 75       1 to enable partial TX checksum offload      75       1 to enable partial TX checksum offload and 2 to enable full TX
 76       checksum offload.                            76       checksum offload.
 77     $ref: /schemas/types.yaml#/definitions/uin     77     $ref: /schemas/types.yaml#/definitions/uint32
 78     enum: [0, 1, 2]                                78     enum: [0, 1, 2]
 79                                                    79 
 80   xlnx,rxcsum:                                     80   xlnx,rxcsum:
 81     description:                                   81     description:
 82       RX checksum offload. 0 or empty for disa     82       RX checksum offload. 0 or empty for disabling RX checksum offload,
 83       1 to enable partial RX checksum offload      83       1 to enable partial RX checksum offload and 2 to enable full RX
 84       checksum offload.                            84       checksum offload.
 85     $ref: /schemas/types.yaml#/definitions/uin     85     $ref: /schemas/types.yaml#/definitions/uint32
 86     enum: [0, 1, 2]                                86     enum: [0, 1, 2]
 87                                                    87 
 88   xlnx,switch-x-sgmii:                             88   xlnx,switch-x-sgmii:
 89     type: boolean                                  89     type: boolean
 90     description:                                   90     description:
 91       Indicate the Ethernet core is configured     91       Indicate the Ethernet core is configured to support both 1000BaseX and
 92       SGMII modes. If set, the phy-mode should     92       SGMII modes. If set, the phy-mode should be set to match the mode
 93       selected on core reset (i.e. by the base     93       selected on core reset (i.e. by the basex_or_sgmii core input line).
 94                                                    94 
 95   clocks:                                          95   clocks:
 96     items:                                         96     items:
 97       - description: Clock for AXI register sl     97       - description: Clock for AXI register slave interface.
 98       - description: AXI4-Stream clock for TXD     98       - description: AXI4-Stream clock for TXD RXD TXC and RXS interfaces.
 99       - description: Ethernet reference clock,     99       - description: Ethernet reference clock, used by signal delay primitives
100                      and transceivers.            100                      and transceivers.
101       - description: MGT reference clock (used    101       - description: MGT reference clock (used by optional internal PCS/PMA PHY)
102                                                   102 
103   clock-names:                                    103   clock-names:
104     items:                                        104     items:
105       - const: s_axi_lite_clk                     105       - const: s_axi_lite_clk
106       - const: axis_clk                           106       - const: axis_clk
107       - const: ref_clk                            107       - const: ref_clk
108       - const: mgt_clk                            108       - const: mgt_clk
109                                                   109 
110   axistream-connected:                            110   axistream-connected:
111     $ref: /schemas/types.yaml#/definitions/pha    111     $ref: /schemas/types.yaml#/definitions/phandle
112     description: Phandle of AXI DMA controller    112     description: Phandle of AXI DMA controller which contains the resources
113       used by this device. If this is specifie    113       used by this device. If this is specified, the DMA-related resources
114       from that device (DMA registers and DMA     114       from that device (DMA registers and DMA TX/RX interrupts) rather than
115       this one will be used.                      115       this one will be used.
116                                                   116 
117   mdio:                                           117   mdio:
118     type: object                                  118     type: object
119                                                   119 
120   pcs-handle:                                     120   pcs-handle:
121     description: Phandle to the internal PCS/P    121     description: Phandle to the internal PCS/PMA PHY in SGMII or 1000Base-X
122       modes, where "pcs-handle" should be used    122       modes, where "pcs-handle" should be used to point to the PCS/PMA PHY,
123       and "phy-handle" should point to an exte    123       and "phy-handle" should point to an external PHY if exists.
124     maxItems: 1                                   124     maxItems: 1
125                                                   125 
126   dmas:                                           126   dmas:
127     minItems: 2                                   127     minItems: 2
128     maxItems: 32                                  128     maxItems: 32
129     description: TX and RX DMA channel phandle    129     description: TX and RX DMA channel phandle
130                                                   130 
131   dma-names:                                      131   dma-names:
132     items:                                        132     items:
133       pattern: "^[tr]x_chan([0-9]|1[0-5])$"       133       pattern: "^[tr]x_chan([0-9]|1[0-5])$"
134     description:                                  134     description:
135       Should be "tx_chan0", "tx_chan1" ... "tx    135       Should be "tx_chan0", "tx_chan1" ... "tx_chan15" for DMA Tx channel
136       Should be "rx_chan0", "rx_chan1" ... "rx    136       Should be "rx_chan0", "rx_chan1" ... "rx_chan15" for DMA Rx channel
137     minItems: 2                                   137     minItems: 2
138     maxItems: 32                                  138     maxItems: 32
139                                                   139 
140 required:                                         140 required:
141   - compatible                                    141   - compatible
142   - interrupts                                    142   - interrupts
143   - reg                                           143   - reg
144   - xlnx,rxmem                                    144   - xlnx,rxmem
145   - phy-handle                                    145   - phy-handle
146                                                   146 
147 allOf:                                            147 allOf:
148   - $ref: /schemas/net/ethernet-controller.yam    148   - $ref: /schemas/net/ethernet-controller.yaml#
149                                                   149 
150 additionalProperties: false                       150 additionalProperties: false
151                                                   151 
152 examples:                                         152 examples:
153   - |                                             153   - |
154     axi_ethernet_eth: ethernet@40c00000 {         154     axi_ethernet_eth: ethernet@40c00000 {
155         compatible = "xlnx,axi-ethernet-1.00.a    155         compatible = "xlnx,axi-ethernet-1.00.a";
156         interrupts = <2 0 1>;                     156         interrupts = <2 0 1>;
157         clock-names = "s_axi_lite_clk", "axis_    157         clock-names = "s_axi_lite_clk", "axis_clk", "ref_clk", "mgt_clk";
158         clocks = <&axi_clk>, <&axi_clk>, <&pl_    158         clocks = <&axi_clk>, <&axi_clk>, <&pl_enet_ref_clk>, <&mgt_clk>;
159         phy-mode = "mii";                         159         phy-mode = "mii";
160         reg = <0x40c00000 0x40000>,<0x50c00000    160         reg = <0x40c00000 0x40000>,<0x50c00000 0x40000>;
161         dmas = <&xilinx_dma 0>, <&xilinx_dma 1    161         dmas = <&xilinx_dma 0>, <&xilinx_dma 1>;
162         dma-names = "tx_chan0", "rx_chan0";       162         dma-names = "tx_chan0", "rx_chan0";
163         xlnx,rxcsum = <0x2>;                      163         xlnx,rxcsum = <0x2>;
164         xlnx,rxmem = <0x800>;                     164         xlnx,rxmem = <0x800>;
165         xlnx,txcsum = <0x2>;                      165         xlnx,txcsum = <0x2>;
166         phy-handle = <&phy0>;                     166         phy-handle = <&phy0>;
167                                                   167 
168         mdio {                                    168         mdio {
169             #address-cells = <1>;                 169             #address-cells = <1>;
170             #size-cells = <0>;                    170             #size-cells = <0>;
171             phy0: ethernet-phy@1 {                171             phy0: ethernet-phy@1 {
172                 device_type = "ethernet-phy";     172                 device_type = "ethernet-phy";
173                 reg = <1>;                        173                 reg = <1>;
174             };                                    174             };
175         };                                        175         };
176     };                                            176     };
177                                                   177 
178   - |                                             178   - |
179     axi_ethernet_eth1: ethernet@40000000 {        179     axi_ethernet_eth1: ethernet@40000000 {
180         compatible = "xlnx,axi-ethernet-1.00.a    180         compatible = "xlnx,axi-ethernet-1.00.a";
181         interrupts = <0>;                         181         interrupts = <0>;
182         clock-names = "s_axi_lite_clk", "axis_    182         clock-names = "s_axi_lite_clk", "axis_clk", "ref_clk", "mgt_clk";
183         clocks = <&axi_clk>, <&axi_clk>, <&pl_    183         clocks = <&axi_clk>, <&axi_clk>, <&pl_enet_ref_clk>, <&mgt_clk>;
184         phy-mode = "mii";                         184         phy-mode = "mii";
185         reg = <0x40000000 0x40000>;               185         reg = <0x40000000 0x40000>;
186         xlnx,rxcsum = <0x2>;                      186         xlnx,rxcsum = <0x2>;
187         xlnx,rxmem = <0x800>;                     187         xlnx,rxmem = <0x800>;
188         xlnx,txcsum = <0x2>;                      188         xlnx,txcsum = <0x2>;
189         phy-handle = <&phy1>;                     189         phy-handle = <&phy1>;
190         axistream-connected = <&dma>;             190         axistream-connected = <&dma>;
191                                                   191 
192         mdio {                                    192         mdio {
193             #address-cells = <1>;                 193             #address-cells = <1>;
194             #size-cells = <0>;                    194             #size-cells = <0>;
195             phy1: ethernet-phy@1 {                195             phy1: ethernet-phy@1 {
196                 device_type = "ethernet-phy";     196                 device_type = "ethernet-phy";
197                 reg = <1>;                        197                 reg = <1>;
198             };                                    198             };
199         };                                        199         };
200     };                                            200     };
                                                      

~ [ 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