brcm47xx: rename target to bcm47xx
[oweals/openwrt.git] / target / linux / brcm63xx / dts / bcm6328-sercomm-ad1018-nor.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Sercomm AD1018 (SPI flash mod)";
9         compatible = "sercomm,ad1018-nor", "brcm,bcm6328";
10
11         chosen {
12                 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13                 stdout-path = "serial0:115200n8";
14         };
15
16         keys {
17                 compatible = "gpio-keys-polled";
18                 #address-cells = <1>;
19                 #size-cells = <0>;
20                 poll-interval = <20>;
21
22                 wps {
23                         label = "wps";
24                         gpios = <&pinctrl 24 1>;
25                         linux,code = <KEY_WPS_BUTTON>;
26                         debounce-interval = <60>;
27                 };
28
29                 wifi {
30                         label = "wifi";
31                         gpios = <&pinctrl 25 1>;
32                         linux,code = <KEY_WLAN>;
33                         debounce-interval = <60>;
34                 };
35
36                 reset {
37                         label = "reset";
38                         gpios = <&pinctrl 31 1>;
39                         linux,code = <KEY_RESTART>;
40                         debounce-interval = <60>;
41                 };
42         };
43 };
44
45 &pinctrl {
46         pinctrl_leds: leds {
47                 function = "led";
48                 pins = "gpio0", "gpio1";
49         };
50 };
51
52 &leds {
53         status = "ok";
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         inet_red@0 {
65                 reg = <0>;
66                 active-low;
67                 label = "AD1018:red:internet";
68         };
69
70         inet_green@1 {
71                 reg = <1>;
72                 active-low;
73                 label = "AD1018:green:internet";
74         };
75
76         power_green@8 {
77                 reg = <8>;
78                 active-low;
79                 label = "AD1018:green:power";
80                 default-state = "on";
81         };
82
83         adsl_green@10 {
84                 reg = <10>;
85                 active-low;
86                 label = "AD1018:green:adsl";
87         };
88
89         adsl_red@11 {
90                 reg = <11>;
91                 active-low;
92                 label = "AD1018:red:adsl";
93         };
94
95         phone_green@12 {
96                 reg = <12>;
97                 active-low;
98                 label = "AD1018:green:phone";
99         };
100
101         wps_green@13 {
102                 reg = <13>;
103                 active-low;
104                 label = "AD1018:green:wps";
105         };
106
107         wifi_green@14 {
108                 reg = <14>;
109                 active-low;
110                 label = "AD1018:green:wifi";
111         };
112
113         usb_green@15 {
114                 reg = <15>;
115                 active-low;
116                 label = "AD1018:green:usb";
117         };
118
119         ephy0_spd@17 {
120                 reg = <17>;
121                 brcm,hardware-controlled;
122         };
123 };
124
125 &hsspi {
126         status = "ok";
127
128         flash@0 {
129                 compatible = "jedec,spi-nor";
130                 spi-max-frequency = <16666667>;
131                 spi-tx-bus-width = <2>;
132                 spi-rx-bus-width = <2>;
133                 reg = <0>;
134
135                 #address-cells = <1>;
136                 #size-cells = <1>;
137
138                 partitions {
139                         compatible = "brcm,bcm963xx-cfe-nor-partitions";
140                 };
141         };
142 };
143
144 &uart0 {
145         status = "ok";
146 };