base-files: sysupgrade: fix streaming backup archives to stdout
[openwrt/staging/mans0n.git] / target / linux / bcm63xx / dts / bcm6328-sercomm-ad1018-nor.dts
1 #include "bcm6328.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 model = "Sercomm AD1018 (SPI flash mod)";
8 compatible = "sercomm,ad1018-nor", "brcm,bcm6328";
9
10 aliases {
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
15 };
16
17 chosen {
18 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
19 stdout-path = "serial0:115200n8";
20 };
21
22 keys {
23 compatible = "gpio-keys-polled";
24 #address-cells = <1>;
25 #size-cells = <0>;
26 poll-interval = <20>;
27
28 wps {
29 label = "wps";
30 gpios = <&pinctrl 24 1>;
31 linux,code = <KEY_WPS_BUTTON>;
32 debounce-interval = <60>;
33 };
34
35 wifi {
36 label = "wifi";
37 gpios = <&pinctrl 25 1>;
38 linux,code = <KEY_WLAN>;
39 debounce-interval = <60>;
40 };
41
42 reset {
43 label = "reset";
44 gpios = <&pinctrl 31 1>;
45 linux,code = <KEY_RESTART>;
46 debounce-interval = <60>;
47 };
48 };
49 };
50
51 &pinctrl {
52 pinctrl_leds: leds {
53 function = "led";
54 pins = "gpio0", "gpio1";
55 };
56 };
57
58 &leds {
59 status = "okay";
60
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
63 &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
64 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
65
66 brcm,serial-leds;
67 brcm,serial-shift-inv;
68 brcm,serial-dat-low;
69
70 inet_red@0 {
71 reg = <0>;
72 active-low;
73 label = "red:internet";
74 };
75
76 inet_green@1 {
77 reg = <1>;
78 active-low;
79 label = "green:internet";
80 };
81
82 led_power_green: power_green@8 {
83 reg = <8>;
84 active-low;
85 function = LED_FUNCTION_POWER;
86 color = <LED_COLOR_ID_GREEN>;
87 default-state = "on";
88 };
89
90 adsl_green@10 {
91 reg = <10>;
92 active-low;
93 label = "green:adsl";
94 };
95
96 adsl_red@11 {
97 reg = <11>;
98 active-low;
99 label = "red:adsl";
100 };
101
102 phone_green@12 {
103 reg = <12>;
104 active-low;
105 label = "green:phone";
106 };
107
108 wps_green@13 {
109 reg = <13>;
110 active-low;
111 function = LED_FUNCTION_WPS;
112 color = <LED_COLOR_ID_GREEN>;
113 };
114
115 wifi_green@14 {
116 reg = <14>;
117 active-low;
118 label = "green:wifi";
119 };
120
121 usb_green@15 {
122 reg = <15>;
123 active-low;
124 function = LED_FUNCTION_USB;
125 color = <LED_COLOR_ID_GREEN>;
126 };
127
128 ephy0_spd@17 {
129 reg = <17>;
130 brcm,hardware-controlled;
131 };
132 };
133
134 &hsspi {
135 status = "okay";
136
137 flash@0 {
138 compatible = "jedec,spi-nor";
139 spi-max-frequency = <16666667>;
140 spi-tx-bus-width = <2>;
141 spi-rx-bus-width = <2>;
142 reg = <0>;
143
144 #address-cells = <1>;
145 #size-cells = <1>;
146
147 partitions {
148 compatible = "brcm,bcm963xx-cfe-nor-partitions";
149 };
150 };
151 };
152
153 &nflash {
154 status = "okay";
155
156 nandcs@0 {
157 compatible = "brcm,nandcs";
158 reg = <0>;
159 nand-ecc-step-size = <512>;
160 nand-ecc-strength = <15>;
161 nand-on-flash-bbt;
162 brcm,nand-oob-sector-size = <64>;
163
164 partitions {
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
167 #size-cells = <1>;
168
169 partition@0 {
170 label = "storage";
171 reg = <0 0>; /* autodetected size */
172 };
173 };
174 };
175 };
176
177 &uart0 {
178 status = "okay";
179 };