ath79: drop phy-mask property
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar7161_netgear_wndr.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 aliases {
11 led-boot = &led_power_orange;
12 led-failsafe = &led_power_orange;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_orange;
15 };
16
17 extosc: ref {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-output-names = "ref";
21 clock-frequency = <40000000>;
22 };
23
24 reset-leds {
25 compatible = "reset-leds";
26
27 usb_led {
28 label = "green:usb";
29 resets = <&rst 12>;
30 trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
31 linux,default-trigger = "usbport";
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 wps {
39 label = "orange:wps";
40 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
41 };
42
43 led_power_green: power_green {
44 label = "green:power";
45 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
46 };
47
48 led_power_orange: power_orange {
49 label = "orange:power";
50 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
51 default-state = "on";
52 };
53
54 wps_green {
55 label = "green:wps";
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 };
58
59 wan_green {
60 label = "green:wan";
61 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 ath9k-leds {
66 compatible = "gpio-leds";
67
68 wlan2g {
69 label = "green:wlan2g";
70 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
72 };
73 wlan5g {
74 label = "blue:wlan5g";
75 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy1tpt";
77 };
78 };
79
80 keys {
81 compatible = "gpio-keys";
82
83 wps {
84 label = "wps";
85 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
87 };
88
89 reset {
90 label = "reset";
91 linux,code = <KEY_RESTART>;
92 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
93 };
94
95 rfkill {
96 label = "rfkill";
97 linux,code = <KEY_RFKILL>;
98 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
99 };
100 };
101
102 rtl8366s {
103 compatible = "realtek,rtl8366s";
104
105 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
106 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
107
108 mdio-bus {
109 #address-cells = <1>;
110 #size-cells = <0>;
111 status = "okay";
112
113 phy4: ethernet-phy@4 {
114 reg = <4>;
115 phy-mode = "rgmii";
116 };
117 };
118 };
119 };
120
121 &usb_phy {
122 status = "okay";
123 };
124
125 &usb1 {
126 #address-cells = <1>;
127 #size-cells = <0>;
128 status = "okay";
129
130 usb_ohci_port: port@1 {
131 reg = <1>;
132 #trigger-source-cells = <0>;
133 };
134 };
135
136 &usb2 {
137 #address-cells = <1>;
138 #size-cells = <0>;
139 status = "okay";
140
141 usb_ehci_port: port@1 {
142 reg = <1>;
143 #trigger-source-cells = <0>;
144 };
145 };
146
147 &pcie0 {
148 status = "okay";
149
150 ath9k0: wifi@0,11 {
151 compatible = "pci168c,0029";
152 reg = <0x8800 0 0 0 0>;
153
154 #gpio-cells = <2>;
155 gpio-controller;
156
157 /* all WNDR3700 variants have four antennae dedicated
158 * to the 2.4GHz radio. Two antennae are available for
159 * each chain. The following configuration is the
160 * default setting which taken from the vendor's wifi
161 * code for that radio.
162 *
163 * All possible options [GPIO6,GPIO7,GPIO8,GPIO9]:
164 * [0,1,0,1], [0,1,1,0], [1,0,0,1], [1,0,1,0]
165 */
166 antenna-demux {
167 gpio-hog;
168 line-name = "fixed antenna group 1";
169 gpios = <6 GPIO_ACTIVE_LOW>,
170 <7 GPIO_ACTIVE_HIGH>,
171 <8 GPIO_ACTIVE_LOW>,
172 <9 GPIO_ACTIVE_HIGH>;
173 output-high;
174 };
175 };
176
177 ath9k1: wifi@0,12 {
178 compatible = "pci168c,0029";
179 reg = <0x9000 0 0 0 0>;
180
181 #gpio-cells = <2>;
182 gpio-controller;
183 };
184 };
185
186 &spi {
187 status = "okay";
188
189 flash@0 {
190 compatible = "jedec,spi-nor";
191 reg = <0>;
192 spi-max-frequency = <25000000>;
193
194 partitions: partitions {
195 compatible = "fixed-partitions";
196 #address-cells = <1>;
197 #size-cells = <1>;
198 };
199 };
200 };
201
202 &eth0 {
203 status = "okay";
204
205 pll-data = <0x11110000 0x00001099 0x00991099>;
206
207 fixed-link {
208 speed = <1000>;
209 full-duplex;
210 };
211 };
212
213 &eth1 {
214 status = "okay";
215
216 pll-data = <0x11110000 0x00001099 0x00991099>;
217
218 phy-handle = <&phy4>;
219 };