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