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";
88 qca,ethcfg = <ðcfg>;
90 phy-handle = <&phy_port4>;
93 eth1: ethernet@1a000000 {
94 compatible = "qca,ar9330-eth";
95 reg = <0x1a000000 0x200>;
97 resets = <&rst 13>, <&rst 23>;
98 reset-names = "mac", "mdio";
99 clocks = <&pll 1>, <&pll 2>;
100 clock-names = "eth", "mdio";
112 #address-cells = <1>;
115 switch10: switch@10 {
116 #address-cells = <1>;
119 compatible = "qca,ar9331-switch";
122 reset-names = "switch";
124 interrupt-parent = <&miscintc>;
127 interrupt-controller;
128 #interrupt-cells = <1>;
131 #address-cells = <1>;
134 switch_port0: port@0 {
147 switch_port1: port@1 {
149 phy-handle = <&phy_port0>;
150 phy-mode = "internal";
155 switch_port2: port@2 {
157 phy-handle = <&phy_port1>;
158 phy-mode = "internal";
163 switch_port3: port@3 {
165 phy-handle = <&phy_port2>;
166 phy-mode = "internal";
171 switch_port4: port@4 {
173 phy-handle = <&phy_port3>;
174 phy-mode = "internal";
181 #address-cells = <1>;
184 interrupt-parent = <&switch10>;