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
39 - description: MAC main clock
40 - description: MDIO clock
49 - description: MAC reset
50 - description: MDIO reset
59 unevaluatedProperties: false
71 unevaluatedProperties: false
76 eth0: ethernet@19000000 {
77 compatible = "qca,ar9330-eth";
78 reg = <0x19000000 0x200>;
80 resets = <&rst 9>, <&rst 22>;
81 reset-names = "mac", "mdio";
82 clocks = <&pll 1>, <&pll 2>;
83 clock-names = "eth", "mdio";
85 phy-handle = <&phy_port4>;
88 eth1: ethernet@1a000000 {
89 compatible = "qca,ar9330-eth";
90 reg = <0x1a000000 0x200>;
92 resets = <&rst 13>, <&rst 23>;
93 reset-names = "mac", "mdio";
94 clocks = <&pll 1>, <&pll 2>;
95 clock-names = "eth", "mdio";
105 #address-cells = <1>;
108 switch10: switch@10 {
109 compatible = "qca,ar9331-switch";
112 reset-names = "switch";
114 interrupt-parent = <&miscintc>;
117 interrupt-controller;
118 #interrupt-cells = <1>;
121 #address-cells = <1>;
124 switch_port0: port@0 {
136 switch_port1: port@1 {
138 phy-handle = <&phy_port0>;
139 phy-mode = "internal";
142 switch_port2: port@2 {
144 phy-handle = <&phy_port1>;
145 phy-mode = "internal";
148 switch_port3: port@3 {
150 phy-handle = <&phy_port2>;
151 phy-mode = "internal";
154 switch_port4: port@4 {
156 phy-handle = <&phy_port3>;
157 phy-mode = "internal";
162 #address-cells = <1>;
165 interrupt-parent = <&switch10>;
167 phy_port0: ethernet-phy@0 {
172 phy_port1: ethernet-phy@1 {
177 phy_port2: ethernet-phy@2 {
182 phy_port3: ethernet-phy@3 {
187 phy_port4: ethernet-phy@4 {