883198c6b092334fccf41bba0854e063602472e2
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / ar-5381u.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Comtrend AR-5381u";
9 compatible = "comtrend,ar-5381u", "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 = <&pinctrl 23 1>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 alarm_red {
33 label = "AR-5381u:red:alarm";
34 gpios = <&pinctrl 2 1>;
35 };
36 inet_green {
37 label = "AR-5381u:green:inet";
38 gpios = <&pinctrl 3 1>;
39 };
40 power_green {
41 label = "AR-5381u:green:power";
42 gpios = <&pinctrl 4 1>;
43 default-state = "on";
44 };
45 };
46 };
47
48 &hsspi {
49 status = "ok";
50
51 flash@0 {
52 compatible = "jedec,spi-nor";
53 spi-max-frequency = <16666667>;
54 spi-tx-bus-width = <2>;
55 spi-rx-bus-width = <2>;
56 reg = <0>;
57
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 linux,part-probe = "bcm63xxpart";
62
63 cfe@0 {
64 reg = <0x000000 0x010000>;
65 label = "cfe";
66 read-only;
67 };
68
69 linux@10000 {
70 reg = <0x010000 0xfe0000>;
71 label = "linux";
72 };
73
74 nvram@ff0000 {
75 reg = <0xff0000 0x010000>;
76 label = "nvram";
77 };
78 };
79 };