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
75 unevaluatedProperties: false
80 eth0: ethernet@19000000 {
81 compatible = "qca,ar9330-eth";
82 reg = <0x19000000 0x200>;
84 resets = <&rst 9>, <&rst 22>;
85 reset-names = "mac", "mdio";
86 clocks = <&pll 1>, <&pll 2>;
87 clock-names = "eth", "mdio";
89 phy-handle = <&phy_port4>;
92 eth1: ethernet@1a000000 {
93 compatible = "qca,ar9330-eth";
94 reg = <0x1a000000 0x200>;
96 resets = <&rst 13>, <&rst 23>;
97 reset-names = "mac", "mdio";
98 clocks = <&pll 1>, <&pll 2>;
99 clock-names = "eth", "mdio";
109 #address-cells = <1>;
112 switch10: switch@10 {
113 #address-cells = <1>;
116 compatible = "qca,ar9331-switch";
119 reset-names = "switch";
121 interrupt-parent = <&miscintc>;
124 interrupt-controller;
125 #interrupt-cells = <1>;
128 #address-cells = <1>;
131 switch_port0: port@0 {
144 switch_port1: port@1 {
146 phy-handle = <&phy_port0>;
147 phy-mode = "internal";
150 switch_port2: port@2 {
152 phy-handle = <&phy_port1>;
153 phy-mode = "internal";
156 switch_port3: port@3 {
158 phy-handle = <&phy_port2>;
159 phy-mode = "internal";
162 switch_port4: port@4 {
164 phy-handle = <&phy_port3>;
165 phy-mode = "internal";
170 #address-cells = <1>;
173 interrupt-parent = <&switch10>;
175 phy_port0: ethernet-phy@0 {
180 phy_port1: ethernet-phy@1 {
185 phy_port2: ethernet-phy@2 {
190 phy_port3: ethernet-phy@3 {
195 phy_port4: ethernet-phy@4 {