ath79: drop cs-gpios property
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / ar9344_enterasys_ws-ap3705i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "enterasys,ws-ap3705i", "qca,ar9344";
10 model = "Enterasys WS-AP3705i";
11
12 chosen {
13 bootargs = "console=ttyS0,115200n8";
14 };
15
16 aliases {
17 led-boot = &led_power_green;
18 led-failsafe = &led_power_red;
19 led-running = &led_power_green;
20 led-upgrade = &led_power_red;
21 label-mac-device = &eth0;
22 };
23
24 mtd-concat {
25 compatible = "mtd-concat";
26 devices = <&fwconcat0 &fwconcat1>;
27
28 partitions {
29 compatible = "fixed-partitions";
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 partition@0 {
34 compatible = "denx,uimage";
35 label = "firmware";
36 reg = <0x0 0x1dd0000>;
37 };
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 pinctrl-names = "default";
45 pinctrl-0 = <&enable_gpio_11 &enable_gpio_16>;
46
47 led_power_green: power_green {
48 label = "green:power";
49 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 };
51
52 led_power_red: power_red {
53 label = "red:power";
54 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
55 };
56
57 lan_blue {
58 label = "blue:lan";
59 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
60 };
61
62 lan_green {
63 label = "green:lan";
64 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
65 };
66
67 radio2 {
68 label = "green:radio2";
69 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy0tpt";
71 };
72 };
73
74 ath9k-leds {
75 compatible = "gpio-leds";
76
77 radio1 {
78 label = "green:radio1";
79 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
80 linux,default-trigger = "phy1tpt";
81 };
82 };
83
84 keys {
85 compatible = "gpio-keys";
86
87 reset {
88 label = "Reset button";
89 linux,code = <KEY_RESTART>;
90 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
91 };
92 };
93 };
94
95 &ref {
96 clock-frequency = <40000000>;
97 };
98
99 &pinmux {
100 enable_gpio_16: pinmux_enable_gpio_16 {
101 pinctrl-single,bits = <0x10 0x0 0x000000ff>;
102 };
103
104 enable_gpio_11: pinmux_enable_gpio_11 {
105 pinctrl-single,bits = <0x8 0x0 0xff000000>;
106 };
107 };
108
109 &wmac {
110 status = "okay";
111 qca,no-eeprom;
112 };
113
114 &spi {
115 status = "okay";
116
117 flash@0 {
118 compatible = "jedec,spi-nor";
119 reg = <0>;
120 spi-max-frequency = <25000000>;
121
122 partitions {
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 partition@0 {
128 label = "u-boot-bak";
129 reg = <0x0 0x80000>;
130 read-only;
131 };
132
133 partition@80000 {
134 label = "u-boot-env0";
135 reg = <0x80000 0x10000>;
136 read-only;
137 };
138
139 partition@90000 {
140 label = "u-boot-env1";
141 reg = <0x90000 0x10000>;
142 read-only;
143 };
144
145 partition@a0000 {
146 label = "u-boot";
147 reg = <0xa0000 0x80000>;
148 read-only;
149 };
150
151 partition@120000 {
152 label = "calibrate";
153 reg = <0x120000 0x10000>;
154 read-only;
155 };
156
157 partition@130000 {
158 label = "nvram";
159 reg = <0x130000 0x100000>;
160 read-only;
161 };
162
163 fwconcat0: partition@230000 {
164 label = "fwconcat0";
165 reg = <0x230000 0xdd0000>;
166 };
167 };
168 };
169
170 flash@1 {
171 compatible = "jedec,spi-nor";
172 reg = <1>;
173 spi-max-frequency = <25000000>;
174
175 partitions {
176 compatible = "fixed-partitions";
177 #address-cells = <1>;
178 #size-cells = <1>;
179
180 fwconcat1: partition@0 {
181 label = "fwconcat1";
182 reg = <0x0 0x1000000>;
183 };
184 };
185 };
186 };
187
188 &pcie {
189 status = "okay";
190
191 ath9k: wifi@0,0 {
192 compatible = "pci168c,0033";
193 reg = <0x0000 0 0 0 0>;
194 qca,no-eeprom;
195 #gpio-cells = <2>;
196 gpio-controller;
197 };
198 };
199
200 &mdio0 {
201 status = "okay";
202
203 phy0: ethernet-phy@0 {
204 reg = <0>;
205 };
206 };
207
208 &eth0 {
209 status = "okay";
210
211 pll-data = <0x1e000000 0x08000101 0x08001313>;
212
213 phy-mode = "rgmii";
214 phy-handle = <&phy0>;
215
216 gmac-config {
217 device = <&gmac>;
218 rgmii-gmac0 = <1>;
219 rxd-delay = <0>;
220 rxdv-delay = <0>;
221 txen-delay = <0>;
222 txd-delay = <0>;
223 };
224 };