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