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

1 Realtek SMI-based Switches
4 The SMI "Simple Management Interface" is a two-wire protocol using
5 bit-banged GPIO that while it reuses the MDIO lines MCK and MDIO does
6 not use the MDIO protocol. This binding defines how to specify the
7 SMI-based Realtek devices.
11 - compatible: must be exactly one of:
23 - mdc-gpios: GPIO line for the MDC clock line.
24 - mdio-gpios: GPIO line for the MDIO data line.
25 - reset-gpios: GPIO line for the reset signal.
28 - realtek,disable-leds: if the LED drivers are not used in the
34 - interrupt-controller
38 interrupt line coming out of one of the SMI-based chips. It most
42 Required properties of interrupt-controller:
44 - interrupt: parent interrupt, see interrupt-controller/interrupts.txt
45 - interrupt-controller: see interrupt-controller/interrupts.txt
46 - #address-cells: should be <0>
47 - #interrupt-cells: should be <1>
49 - mdio
51 This defines the internal MDIO bus of the SMI device, mostly for the
55 Required properties of mdio:
57 - compatible: should be set to "realtek,smi-mdio" for all SMI devices
59 See net/mdio.txt for additional MDIO bus properties.
70 /* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */
71 mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
72 mdio-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
73 reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
75 switch_intc: interrupt-controller {
77 interrupt-parent = <&gpio0>;
79 interrupt-controller;
80 #address-cells = <0>;
81 #interrupt-cells = <1>;
85 #address-cells = <1>;
86 #size-cells = <0>;
91 phy-handle = <&phy0>;
96 phy-handle = <&phy1>;
101 phy-handle = <&phy2>;
106 phy-handle = <&phy3>;
111 phy-handle = <&phy4>;
117 phy-mode = "rgmii";
118 fixed-link {
120 full-duplex;
125 mdio {
126 compatible = "realtek,smi-mdio", "dsa-mdio";
127 #address-cells = <1>;
128 #size-cells = <0>;
132 interrupt-parent = <&switch_intc>;
137 interrupt-parent = <&switch_intc>;
142 interrupt-parent = <&switch_intc>;
147 interrupt-parent = <&switch_intc>;
152 interrupt-parent = <&switch_intc>;
158 An example for the RTL8365MB-VC:
162 mdc-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
163 mdio-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
164 reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
166 switch_intc: interrupt-controller {
167 interrupt-parent = <&gpio5>;
169 interrupt-controller;
170 #address-cells = <0>;
171 #interrupt-cells = <1>;
175 #address-cells = <1>;
176 #size-cells = <0>;
181 phy-handle = <&ethphy0>;
186 phy-handle = <&ethphy1>;
191 phy-handle = <&ethphy2>;
196 phy-handle = <&ethphy3>;
202 phy-mode = "rgmii";
203 tx-internal-delay-ps = <2000>;
204 rx-internal-delay-ps = <2000>;
206 fixed-link {
208 full-duplex;
214 mdio {
215 compatible = "realtek,smi-mdio";
216 #address-cells = <1>;
217 #size-cells = <0>;
221 interrupt-parent = <&switch_intc>;
226 interrupt-parent = <&switch_intc>;
231 interrupt-parent = <&switch_intc>;
236 interrupt-parent = <&switch_intc>;