1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/qca,ar71xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - $ref: ethernet-controller.yaml#
13 - Oleksij Rempel <o.rempel@pengutronix.de>
20 - qca,ar7100-eth # Atheros AR7100
21 - qca,ar7240-eth # Atheros AR7240
22 - qca,ar7241-eth # Atheros AR7241
23 - qca,ar7242-eth # Atheros AR7242
24 - qca,ar9130-eth # Atheros AR9130
25 - qca,ar9330-eth # Atheros AR9330
26 - qca,ar9340-eth # Atheros AR9340
27 - qca,qca9530-eth # Qualcomm Atheros QCA9530
28 - qca,qca9550-eth # Qualcomm Atheros QCA9550
29 - qca,qca9560-eth # Qualcomm Atheros QCA9560
38 description: number of address cells for the MDIO bus
42 description: number of size cells on the MDIO bus
47 - description: MAC main clock
48 - description: MDIO clock
57 - description: MAC reset
58 - description: MDIO reset
78 eth0: ethernet@19000000 {
79 compatible = "qca,ar9330-eth";
80 reg = <0x19000000 0x200>;
82 resets = <&rst 9>, <&rst 22>;
83 reset-names = "mac", "mdio";
84 clocks = <&pll 1>, <&pll 2>;
85 clock-names = "eth", "mdio";
86 qca,ethcfg = <ðcfg>;
88 phy-handle = <&phy_port4>;
91 eth1: ethernet@1a000000 {
92 compatible = "qca,ar9330-eth";
93 reg = <0x1a000000 0x200>;
95 resets = <&rst 13>, <&rst 23>;
96 reset-names = "mac", "mdio";
97 clocks = <&pll 1>, <&pll 2>;
98 clock-names = "eth", "mdio";
110 #address-cells = <1>;
113 switch10: switch@10 {
114 #address-cells = <1>;
117 compatible = "qca,ar9331-switch";
120 reset-names = "switch";
122 interrupt-parent = <&miscintc>;
125 interrupt-controller;
126 #interrupt-cells = <1>;
129 #address-cells = <1>;
132 switch_port0: port@0 {
145 switch_port1: port@1 {
147 phy-handle = <&phy_port0>;
148 phy-mode = "internal";
153 switch_port2: port@2 {
155 phy-handle = <&phy_port1>;
156 phy-mode = "internal";
161 switch_port3: port@3 {
163 phy-handle = <&phy_port2>;
164 phy-mode = "internal";
169 switch_port4: port@4 {
171 phy-handle = <&phy_port3>;
172 phy-mode = "internal";
179 #address-cells = <1>;
182 interrupt-parent = <&switch10>;