1 Realtek SMI-based Switches
2 ==========================
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:
13 "realtek,rtl8366rb" (4+1 ports)
14 "realtek,rtl8366s" (4+1 ports)
17 "realtek,rtl8368s" (8 port)
19 "realtek,rtl8370" (8 port)
22 - mdc-gpios: GPIO line for the MDC clock line.
23 - mdio-gpios: GPIO line for the MDIO data line.
24 - reset-gpios: GPIO line for the reset signal.
27 - realtek,disable-leds: if the LED drivers are not used in the
28 hardware design this will disable them so they are not turned on
33 - interrupt-controller
35 This defines an interrupt controller with an IRQ line (typically
36 a GPIO) that will demultiplex and handle the interrupt from the single
37 interrupt line coming out of one of the SMI-based chips. It most
38 importantly provides link up/down interrupts to the PHY blocks inside
41 Required properties of interrupt-controller:
43 - interrupt: parent interrupt, see interrupt-controller/interrupts.txt
44 - interrupt-controller: see interrupt-controller/interrupts.txt
45 - #address-cells: should be <0>
46 - #interrupt-cells: should be <1>
50 This defines the internal MDIO bus of the SMI device, mostly for the
51 purpose of being able to hook the interrupts to the right PHY and
52 the right PHY to the corresponding port.
54 Required properties of mdio:
56 - compatible: should be set to "realtek,smi-mdio" for all SMI devices
58 See net/mdio.txt for additional MDIO bus properties.
60 See net/dsa/dsa.txt for a list of additional required and optional properties
61 and subnodes of DSA switches.
66 compatible = "realtek,rtl8366rb";
67 /* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */
68 mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
69 mdio-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
70 reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
72 switch_intc: interrupt-controller {
73 /* GPIO 15 provides the interrupt */
74 interrupt-parent = <&gpio0>;
75 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
78 #interrupt-cells = <1>;
103 phy-handle = <&phy3>;
108 phy-handle = <&phy4>;
123 compatible = "realtek,smi-mdio", "dsa-mdio";
124 #address-cells = <1>;
129 interrupt-parent = <&switch_intc>;
134 interrupt-parent = <&switch_intc>;
139 interrupt-parent = <&switch_intc>;
144 interrupt-parent = <&switch_intc>;
149 interrupt-parent = <&switch_intc>;