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