brcm63xx: probe SPI flash through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / ar-5387un.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Comtrend AR-5387un";
9 compatible = "comtrend,ar-5387un", "brcm,bcm6328";
10
11 chosen {
12 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 };
14
15 gpio-keys-polled {
16 compatible = "gpio-keys-polled";
17 #address-cells = <1>;
18 #size-cells = <0>;
19 poll-interval = <20>;
20 debounce-interval = <60>;
21
22 reset {
23 label = "reset";
24 gpios = <&gpio0 23 1>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 inet_red {
33 label = "AR-5387un:red:inet";
34 gpios = <&gpio0 1 0>;
35 };
36 power_red {
37 label = "AR-5387un:red:power";
38 gpios = <&gpio0 4 0>;
39 };
40 inet_green {
41 label = "AR-5387un:green:inet";
42 gpios = <&gpio0 7 0>;
43 };
44 power_green {
45 label = "AR-5387un:green:power";
46 gpios = <&gpio0 8 0>;
47 default-state = "on";
48 };
49 dsl_green {
50 label = "AR-5387un:green:dsl";
51 gpios = <&gpio0 11 1>;
52 };
53 };
54 };
55
56 &hsspi {
57 status = "ok";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 spi-max-frequency = <16666667>;
62 spi-tx-bus-width = <2>;
63 spi-rx-bus-width = <2>;
64 reg = <0>;
65
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 linux,part-probe = "bcm63xxpart";
70
71 cfe@0 {
72 reg = <0x000000 0x010000>;
73 label = "cfe";
74 read-only;
75 };
76
77 linux@10000 {
78 reg = <0x010000 0xfe0000>;
79 label = "linux";
80 };
81
82 nvram@ff0000 {
83 reg = <0xff0000 0x010000>;
84 label = "nvram";
85 };
86 };
87 };