brcm63xx: probe SPI flash through DT
[oweals/openwrt.git] / target / linux / brcm63xx / dts / r5010unv2.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "NuCom R5010UN v2";
9         compatible = "nucom,r5010unv2", "brcm,bcm6328";
10
11         chosen {
12                 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13         };
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                 reset {
24                         label = "reset";
25                         gpios = <&gpio0 23 1>;
26                         linux,code = <KEY_RESTART>;
27                 };
28                 wps {
29                         label = "wps";
30                         gpios = <&gpio0 24 1>;
31                         linux,code = <KEY_WPS_BUTTON>;
32                 };
33         };
34
35         gpio-leds {
36                 compatible = "gpio-leds";
37
38                 inet_green {
39                         label = "R5010UNv2:green:inet";
40                         gpios = <&gpio0 1 1>;
41                 };
42                 inet_fail_red {
43                         label = "R5010UNv2:red:inet-fail";
44                         gpios = <&gpio0 2 1>;
45                 };
46                 dsl_red {
47                         label = "R5010UNv2:green:dsl";
48                         gpios = <&gpio0 3 1>;
49                 };
50                 power_green {
51                         label = "R5010UNv2:green:power";
52                         gpios = <&gpio0 4 1>;
53                         default-state = "on";
54                 };
55                 power_fail_red {
56                         label = "R5010UNv2:red:power-fail";
57                         gpios = <&gpio0 5 1>;
58                 };
59                 wps_green {
60                         label = "R5010UNv2:green:wps";
61                         gpios = <&gpio0 10 1>;
62                 };
63                 usb_green {
64                         label = "R5010UNv2:green:usb";
65                         gpios = <&gpio0 11 1>;
66                 };
67         };
68 };
69
70 &hsspi {
71         status = "ok";
72
73         flash@0 {
74                 compatible = "jedec,spi-nor";
75                 spi-max-frequency = <16666667>;
76                 spi-tx-bus-width = <2>;
77                 spi-rx-bus-width = <2>;
78                 reg = <0>;
79
80                 #address-cells = <1>;
81                 #size-cells = <1>;
82
83                 linux,part-probe = "bcm63xxpart";
84
85                 cfe@0 {
86                         reg = <0x000000 0x010000>;
87                         label = "cfe";
88                         read-only;
89                 };
90
91                 linux@10000 {
92                         reg = <0x010000 0x7e0000>;
93                         label = "linux";
94                 };
95
96                 nvram@7f0000 {
97                         reg = <0x7f0000 0x010000>;
98                         label = "nvram";
99                 };
100         };
101 };