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