1 Atheros AR9331 built-in switch
2 =============================
4 It is a switch built-in to Atheros AR9331 WiSoC and addressable over internal
5 MDIO bus. All PHYs are built-in as well.
9 - compatible: should be: "qca,ar9331-switch"
10 - reg: Address on the MII bus for the switch.
11 - resets : Must contain an entry for each entry in reset-names.
12 - reset-names : Must include the following entries: "switch"
13 - interrupt-parent: Phandle to the parent interrupt controller
14 - interrupts: IRQ line for the switch
15 - interrupt-controller: Indicates the switch is itself an interrupt
16 controller. This is used for the PHY interrupts.
17 - #interrupt-cells: must be 1
18 - mdio: Container of PHY and devices on the switches MDIO bus.
20 See Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional
21 required and optional properties.
24 eth0: ethernet@19000000 {
25 compatible = "qca,ar9330-eth";
26 reg = <0x19000000 0x200>;
29 resets = <&rst 9>, <&rst 22>;
30 reset-names = "mac", "mdio";
31 clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
32 clock-names = "eth", "mdio";
35 phy-handle = <&phy_port4>;
38 eth1: ethernet@1a000000 {
39 compatible = "qca,ar9330-eth";
40 reg = <0x1a000000 0x200>;
42 resets = <&rst 13>, <&rst 23>;
43 reset-names = "mac", "mdio";
44 clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
45 clock-names = "eth", "mdio";
62 compatible = "qca,ar9331-switch";
65 reset-names = "switch";
67 interrupt-parent = <&miscintc>;
71 #interrupt-cells = <1>;
77 switch_port0: port@0 {
90 switch_port1: port@1 {
92 phy-handle = <&phy_port0>;
93 phy-mode = "internal";
96 switch_port2: port@2 {
98 phy-handle = <&phy_port1>;
99 phy-mode = "internal";
102 switch_port3: port@3 {
104 phy-handle = <&phy_port2>;
105 phy-mode = "internal";
108 switch_port4: port@4 {
110 phy-handle = <&phy_port3>;
111 phy-mode = "internal";
116 #address-cells = <1>;
119 interrupt-parent = <&switch10>;