d29b834a3afac6ced870230afe567404f31c298f
[openwrt/staging/mkresin.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 = "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 wps {
28 label = "wps";
29 gpios = <&pinctrl 24 1>;
30 linux,code = <KEY_WPS_BUTTON>;
31 };
32 };
33
34 gpio-leds {
35 compatible = "gpio-leds";
36
37 inet_red {
38 label = "A4001N:red:inet";
39 gpios = <&pinctrl 1 0>;
40 };
41 power_red {
42 label = "A4001N:red:power";
43 gpios = <&pinctrl 4 0>;
44 };
45 power_green {
46 label = "A4001N:green:power";
47 gpios = <&pinctrl 8 0>;
48 default-state = "on";
49 };
50 usb_green {
51 label = "A4001N:green:usb";
52 gpios = <&pinctrl 10 1>;
53 };
54 dsl_green {
55 label = "A4001N:green:dsl";
56 gpios = <&pinctrl 11 1>;
57 };
58 };
59 };
60
61 &hsspi {
62 status = "ok";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 spi-max-frequency = <16666667>;
67 spi-tx-bus-width = <2>;
68 spi-rx-bus-width = <2>;
69 reg = <0>;
70
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 linux,part-probe = "bcm63xxpart";
75
76 cfe@0 {
77 reg = <0x000000 0x010000>;
78 label = "cfe";
79 read-only;
80 };
81
82 linux@10000 {
83 reg = <0x010000 0x7e0000>;
84 label = "linux";
85 };
86
87 nvram@7f0000 {
88 reg = <0x7f0000 0x010000>;
89 label = "nvram";
90 };
91 };
92 };