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