treewide: use more descriptive names for concatenated partitions
[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 &uart {
100 status = "okay";
101 };
102
103 &pinmux {
104 enable_gpio_16: pinmux_enable_gpio_16 {
105 pinctrl-single,bits = <0x10 0x0 0x000000ff>;
106 };
107
108 enable_gpio_11: pinmux_enable_gpio_11 {
109 pinctrl-single,bits = <0x8 0x0 0xff000000>;
110 };
111 };
112
113 &wmac {
114 status = "okay";
115 qca,no-eeprom;
116 };
117
118 &spi {
119 status = "okay";
120
121 cs-gpios = <0>, <0>;
122
123 flash@0 {
124 compatible = "jedec,spi-nor";
125 reg = <0>;
126 spi-max-frequency = <25000000>;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partition@0 {
134 label = "u-boot-bak";
135 reg = <0x0 0x80000>;
136 read-only;
137 };
138
139 partition@80000 {
140 label = "u-boot-env0";
141 reg = <0x80000 0x10000>;
142 read-only;
143 };
144
145 partition@90000 {
146 label = "u-boot-env1";
147 reg = <0x90000 0x10000>;
148 read-only;
149 };
150
151 partition@a0000 {
152 label = "u-boot";
153 reg = <0xa0000 0x80000>;
154 read-only;
155 };
156
157 partition@120000 {
158 label = "calibrate";
159 reg = <0x120000 0x10000>;
160 read-only;
161 };
162
163 partition@130000 {
164 label = "nvram";
165 reg = <0x130000 0x100000>;
166 read-only;
167 };
168
169 fwconcat0: partition@230000 {
170 label = "fwconcat0";
171 reg = <0x230000 0xdd0000>;
172 };
173 };
174 };
175
176 flash@1 {
177 compatible = "jedec,spi-nor";
178 reg = <1>;
179 spi-max-frequency = <25000000>;
180
181 partitions {
182 compatible = "fixed-partitions";
183 #address-cells = <1>;
184 #size-cells = <1>;
185
186 fwconcat1: partition@0 {
187 label = "fwconcat1";
188 reg = <0x0 0x1000000>;
189 };
190 };
191 };
192 };
193
194 &pcie {
195 status = "okay";
196
197 ath9k: wifi@0,0 {
198 compatible = "pci168c,0033";
199 reg = <0x0000 0 0 0 0>;
200 qca,no-eeprom;
201 #gpio-cells = <2>;
202 gpio-controller;
203 };
204 };
205
206 &mdio0 {
207 status = "okay";
208
209 phy0: ethernet-phy@0 {
210 reg = <0>;
211 };
212 };
213
214 &eth0 {
215 status = "okay";
216
217 pll-data = <0x1e000000 0x08000101 0x08001313>;
218
219 phy-mode = "rgmii";
220 phy-handle = <&phy0>;
221
222 gmac-config {
223 device = <&gmac>;
224 rgmii-gmac0 = <1>;
225 rxd-delay = <0>;
226 rxdv-delay = <0>;
227 txen-delay = <0>;
228 txd-delay = <0>;
229 };
230 };