8662c71c655ec97344549d86f07ed0d77cef1570
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / a4001n.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ADB P.DG A4001N";
9 compatible = "adb,a4001n", "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 = "wps";
30 gpios = <&pinctrl 24 1>;
31 linux,code = <KEY_WPS_BUTTON>;
32 };
33 };
34
35 gpio-leds {
36 compatible = "gpio-leds";
37
38 inet_red {
39 label = "A4001N:red:inet";
40 gpios = <&pinctrl 1 0>;
41 };
42 power_red {
43 label = "A4001N:red:power";
44 gpios = <&pinctrl 4 0>;
45 };
46 power_green {
47 label = "A4001N:green:power";
48 gpios = <&pinctrl 8 0>;
49 default-state = "on";
50 };
51 usb_green {
52 label = "A4001N:green:usb";
53 gpios = <&pinctrl 10 1>;
54 };
55 dsl_green {
56 label = "A4001N:green:dsl";
57 gpios = <&pinctrl 11 1>;
58 };
59 };
60 };
61
62 &hsspi {
63 status = "ok";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 spi-max-frequency = <16666667>;
68 spi-tx-bus-width = <2>;
69 spi-rx-bus-width = <2>;
70 reg = <0>;
71
72 linux,part-probe = "bcm63xxpart";
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 cfe@0 {
80 reg = <0x000000 0x010000>;
81 label = "cfe";
82 read-only;
83 };
84
85 linux@10000 {
86 reg = <0x010000 0x7e0000>;
87 label = "linux";
88 compatible = "brcm,bcm963xx-imagetag";
89 };
90
91 nvram@7f0000 {
92 reg = <0x7f0000 0x010000>;
93 label = "nvram";
94 };
95 };
96 };
97 };
98
99 &uart0 {
100 status = "ok";
101 };