bcm63xx: replace further "ok" with "okay" in DTS files
[openwrt/staging/dedeckeh.git] / target / linux / bcm63xx / dts / bcm6328-sercomm-ad1018.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /dts-v1/;
4
5 #include "bcm6328.dtsi"
6
7 #include <dt-bindings/input/input.h>
8
9 / {
10 model = "Sercomm AD1018";
11 compatible = "sercomm,ad1018", "brcm,bcm6328";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_green;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
18 };
19
20 chosen {
21 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
22 stdout-path = "serial0:115200n8";
23 };
24
25 keys {
26 compatible = "gpio-keys-polled";
27 #address-cells = <1>;
28 #size-cells = <0>;
29 poll-interval = <20>;
30
31 wps {
32 label = "wps";
33 gpios = <&pinctrl 24 1>;
34 linux,code = <KEY_WPS_BUTTON>;
35 debounce-interval = <60>;
36 };
37
38 wifi {
39 label = "wifi";
40 gpios = <&pinctrl 25 1>;
41 linux,code = <KEY_WLAN>;
42 debounce-interval = <60>;
43 };
44
45 reset {
46 label = "reset";
47 gpios = <&pinctrl 31 1>;
48 linux,code = <KEY_RESTART>;
49 debounce-interval = <60>;
50 };
51 };
52 };
53
54 &leds {
55 status = "okay";
56
57 pinctrl-names = "default";
58 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
59 &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
60 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
61
62 brcm,serial-leds;
63 brcm,serial-shift-inv;
64 brcm,serial-dat-low;
65
66 led@0 {
67 reg = <0>;
68 active-low;
69 label = "ad1018:red:internet";
70 };
71
72 led@1 {
73 reg = <1>;
74 active-low;
75 label = "ad1018:green:internet";
76 };
77
78 led_power_green: led@8 {
79 reg = <8>;
80 active-low;
81 label = "ad1018:green:power";
82 default-state = "on";
83 };
84
85 led@10 {
86 reg = <10>;
87 active-low;
88 label = "ad1018:green:adsl";
89 };
90
91 led@11 {
92 reg = <11>;
93 active-low;
94 label = "ad1018:red:adsl";
95 };
96
97 led@12 {
98 reg = <12>;
99 active-low;
100 label = "ad1018:green:phone";
101 };
102
103 led@13 {
104 reg = <13>;
105 active-low;
106 label = "ad1018:green:wps";
107 };
108
109 led@14 {
110 reg = <14>;
111 active-low;
112 label = "ad1018:green:wifi";
113 };
114
115 led@15 {
116 reg = <15>;
117 active-low;
118 label = "ad1018:green:usb";
119 };
120
121 led@17 {
122 /* EPHY0 Spd */
123 reg = <17>;
124 brcm,hardware-controlled;
125 };
126 };
127
128 &nflash {
129 status = "okay";
130
131 nandcs@0 {
132 compatible = "brcm,nandcs";
133 #size-cells = <1>;
134 #address-cells = <1>;
135 reg = <0>;
136 nand-ecc-step-size = <512>;
137 nand-ecc-strength = <15>;
138 nand-on-flash-bbt;
139 brcm,nand-oob-sector-size = <64>;
140
141 partitions {
142 compatible = "fixed-partitions";
143 #address-cells = <1>;
144 #size-cells = <1>;
145
146 partition@0 {
147 label = "cferom";
148 reg = <0x0000000 0x0020000>;
149 read-only;
150 };
151
152 partition@20000 {
153 label = "mmap";
154 reg = <0x0020000 0x00a0000>;
155 read-only;
156 };
157
158 partition@c0000 {
159 label = "cferam1";
160 reg = <0x00c0000 0x0140000>;
161 read-only;
162 };
163
164 partition@200000 {
165 label = "cferam2";
166 reg = <0x0200000 0x0140000>;
167 read-only;
168 };
169
170 partition@520000 {
171 compatible = "brcm,wfi-sercomm";
172 label = "wfi";
173 reg = <0x0520000 0x6400000>;
174 };
175
176 partition@6920000 {
177 label = "bootflag1";
178 reg = <0x6920000 0x0140000>;
179 };
180
181 partition@6a60000 {
182 label = "bootflag2";
183 reg = <0x6a60000 0x0140000>;
184 };
185
186 partition@6ba0000 {
187 label = "xml_cfg";
188 reg = <0x6ba0000 0x0280000>;
189 read-only;
190 };
191
192 partition@6e20000 {
193 label = "app_dat";
194 reg = <0x6e20000 0x0280000>;
195 read-only;
196 };
197 };
198 };
199 };
200
201 &pinctrl {
202 pinctrl_leds: leds {
203 function = "led";
204 pins = "gpio0", "gpio1";
205 };
206 };
207
208 &uart0 {
209 status = "okay";
210 };