Lines Matching +full:mdio +full:- +full:gpios

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - $ref: dsa.yaml#/$defs/ethernet-ports
13 - Linus Walleij <linus.walleij@linaro.org>
18 MDIO or SPI.
20 The SMI "Simple Management Interface" is a two-wire protocol using
21 bit-banged GPIO that while it reuses the MDIO lines MCK and MDIO does
22 not use the MDIO protocol. This binding defines how to specify the
23 SMI-based Realtek devices. The realtek-smi driver is a platform driver
26 The MDIO-connected switches use MDIO protocol to access their registers.
27 The realtek-mdio driver is an MDIO driver and it must be inserted inside
28 an MDIO node.
40 - realtek,rtl8365mb
41 - realtek,rtl8366rb
44 Use with models RTL8363NB, RTL8363NB-VB, RTL8363SC, RTL8363SC-VB,
45 RTL8364NB, RTL8364NB-VB, RTL8365MB, RTL8366SC, RTL8367RB-VB, RTL8367S,
50 mdc-gpios:
54 mdio-gpios:
55 description: GPIO line for the MDIO data line.
58 reset-gpios:
62 realtek,disable-leds:
69 interrupt-controller:
80 interrupt-controller: true
87 '#address-cells':
90 '#interrupt-cells':
94 - interrupt-controller
95 - '#address-cells'
96 - '#interrupt-cells'
98 mdio:
99 $ref: /schemas/net/mdio.yaml#
104 const: realtek,smi-mdio
108 - reg
111 $ref: /schemas/spi/spi-peripheral-props.yaml#
114 - mdc-gpios
115 - mdio-gpios
116 - mdio
119 mdc-gpios: false
120 mdio-gpios: false
121 mdio: false
125 - mdc-gpios
126 - mdio-gpios
127 - mdio
128 - reset-gpios
131 - compatible
133 # - mdc-gpios
134 # - mdio-gpios
135 # - reset-gpios
136 # - mdio
141 - |
142 #include <dt-bindings/gpio/gpio.h>
143 #include <dt-bindings/interrupt-controller/irq.h>
148 /* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */
149 mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
150 mdio-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
151 reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
153 switch_intc1: interrupt-controller {
155 interrupt-parent = <&gpio0>;
157 interrupt-controller;
158 #address-cells = <0>;
159 #interrupt-cells = <1>;
163 #address-cells = <1>;
164 #size-cells = <0>;
168 phy-handle = <&phy0>;
173 phy-handle = <&phy1>;
178 phy-handle = <&phy2>;
183 phy-handle = <&phy3>;
188 phy-handle = <&phy4>;
193 phy-mode = "rgmii";
194 fixed-link {
196 full-duplex;
201 mdio {
202 compatible = "realtek,smi-mdio";
203 #address-cells = <1>;
204 #size-cells = <0>;
206 phy0: ethernet-phy@0 {
208 interrupt-parent = <&switch_intc1>;
211 phy1: ethernet-phy@1 {
213 interrupt-parent = <&switch_intc1>;
216 phy2: ethernet-phy@2 {
218 interrupt-parent = <&switch_intc1>;
221 phy3: ethernet-phy@3 {
223 interrupt-parent = <&switch_intc1>;
226 phy4: ethernet-phy@4 {
228 interrupt-parent = <&switch_intc1>;
235 - |
236 #include <dt-bindings/gpio/gpio.h>
237 #include <dt-bindings/interrupt-controller/irq.h>
242 mdc-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
243 mdio-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
244 reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
246 switch_intc2: interrupt-controller {
247 interrupt-parent = <&gpio5>;
249 interrupt-controller;
250 #address-cells = <0>;
251 #interrupt-cells = <1>;
255 #address-cells = <1>;
256 #size-cells = <0>;
260 phy-handle = <&ethphy0>;
265 phy-handle = <&ethphy1>;
270 phy-handle = <&ethphy2>;
275 phy-handle = <&ethphy3>;
280 phy-mode = "rgmii";
281 tx-internal-delay-ps = <2000>;
282 rx-internal-delay-ps = <2000>;
284 fixed-link {
286 full-duplex;
292 mdio {
293 compatible = "realtek,smi-mdio";
294 #address-cells = <1>;
295 #size-cells = <0>;
297 ethphy0: ethernet-phy@0 {
299 interrupt-parent = <&switch_intc2>;
302 ethphy1: ethernet-phy@1 {
304 interrupt-parent = <&switch_intc2>;
307 ethphy2: ethernet-phy@2 {
309 interrupt-parent = <&switch_intc2>;
312 ethphy3: ethernet-phy@3 {
314 interrupt-parent = <&switch_intc2>;
321 - |
322 #include <dt-bindings/gpio/gpio.h>
323 #include <dt-bindings/interrupt-controller/irq.h>
325 mdio {
326 #address-cells = <1>;
327 #size-cells = <0>;
333 reset-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
335 switch_intc3: interrupt-controller {
336 interrupt-parent = <&gpio0>;
338 interrupt-controller;
339 #address-cells = <0>;
340 #interrupt-cells = <1>;
344 #address-cells = <1>;
345 #size-cells = <0>;
375 phy-mode = "rgmii";
376 tx-internal-delay-ps = <2000>;
377 rx-internal-delay-ps = <0>;
379 fixed-link {
381 full-duplex;