d4c0b36edb3861c2edea8de743dc251789a2e7fd
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / a4001n1.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ADB P.DG A4001N1";
9 compatible = "adb,a4001n1", "brcm,bcm6328";
10
11 chosen {
12 bootargs = "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
22 reset {
23 label = "reset";
24 gpios = <&pinctrl 23 1>;
25 linux,code = <KEY_RESTART>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 label = "wlan";
31 gpios = <&pinctrl 24 1>;
32 linux,code = <KEY_WLAN>;
33 debounce-interval = <60>;
34 };
35 };
36
37 gpio-leds {
38 compatible = "gpio-leds";
39
40 inet_red {
41 label = "A4001N1:red:inet";
42 gpios = <&pinctrl 2 1>;
43 };
44 ppp_green {
45 label = "A4001N1:green:ppp";
46 gpios = <&pinctrl 3 1>;
47 };
48 power_green {
49 label = "A4001N1:green:power";
50 gpios = <&pinctrl 4 1>;
51 default-state = "on";
52 };
53 ppp_red {
54 label = "A4001N1:red:ppp";
55 gpios = <&pinctrl 5 1>;
56 };
57 usb_green {
58 label = "A4001N1:green:3g";
59 gpios = <&pinctrl 6 1>;
60 };
61 usb_red {
62 label = "A4001N1:red:3g";
63 gpios = <&pinctrl 7 1>;
64 };
65 power_red {
66 label = "A4001N1:red:power";
67 gpios = <&pinctrl 8 1>;
68 };
69 wlan_green {
70 label = "A4001N1:green:wlan";
71 gpios = <&pinctrl 9 1>;
72 };
73 wlan_red {
74 label = "A4001N1:red:wlan";
75 gpios = <&pinctrl 10 1>;
76 };
77 inet_green {
78 label = "A4001N1:green:inet";
79 gpios = <&pinctrl 11 1>;
80 };
81 eth_red {
82 label = "A4001N1:red:eth";
83 gpios = <&pinctrl 20 1>;
84 };
85 eth_green {
86 label = "A4001N1:green:eth";
87 gpios = <&pinctrl 31 1>;
88 };
89 };
90 };
91
92 &hsspi {
93 status = "ok";
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 spi-max-frequency = <16666667>;
98 spi-tx-bus-width = <2>;
99 spi-rx-bus-width = <2>;
100 reg = <0>;
101
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 cfe@0 {
111 reg = <0x000000 0x010000>;
112 label = "cfe";
113 read-only;
114 };
115
116 linux@10000 {
117 reg = <0x010000 0xfe0000>;
118 label = "linux";
119 compatible = "brcm,bcm963xx-imagetag";
120 };
121
122 nvram@ff0000 {
123 reg = <0xff0000 0x010000>;
124 label = "nvram";
125 };
126 };
127 };
128 };
129
130 &uart0 {
131 status = "ok";
132 };