brcm63xx: Add Observa VH4032N support
[oweals/openwrt.git] / target / linux / brcm63xx / dts / vh4032n.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Observa VH4032N";
9         compatible = "observa,vh4032n", "brcm,bcm6368";
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 = <&gpio1 2 1>;
25                         linux,code = <KEY_RESTART>;
26                 };
27                 wps {
28                         label = "wps";
29                         gpios = <&gpio1 3 1>;
30                         linux,code = <KEY_WPS_BUTTON>;
31                 };
32         };
33
34         gpio-leds {
35                 compatible = "gpio-leds";
36
37                 dsl_blue {
38                         label = "VH4032N:blue:dsl";
39                         gpios = <&gpio0 2 1>;
40                 };
41                 dsl_red {
42                         label = "VH4032N:red:dsl";
43                         gpios = <&gpio0 5 1>;
44                 };
45                 hspa_blue {
46                         label = "VH4032N:blue:hspa";
47                         gpios = <&gpio0 11 1>;
48                 };
49                 hspa_red {
50                         label = "VH4032N:red:hspa";
51                         gpios = <&gpio0 12 1>;
52                 };
53                 power_blue {
54                         label = "VH4032N:blue:power";
55                         gpios = <&gpio0 22 0>;
56                 };
57                 power_red {
58                         label = "VH4032N:red:power";
59                         gpios = <&gpio0 24 0>;
60                         default-state = "on";
61                 };
62                 voice_blue {
63                         label = "VH4032N:blue:voice";
64                         gpios = <&gpio0 25 1>;
65                 };
66                 voice_red {
67                         label = "VH4032N:red:voice";
68                         gpios = <&gpio0 26 1>;
69                 };
70         };
71 };
72
73 &gpio0 {
74         usb_hub_reset {
75                 gpio-hog;
76                 gpios = <27 0>;
77                 output-high;
78                 line-name = "usb-hub-reset-gpio";
79         };
80 };
81
82 &pflash {
83         status = "ok";
84
85         linux,part-probe = "bcm63xxpart";
86
87         cfe@0 {
88                 label = "CFE";
89                 reg = <0x0000000 0x0020000>;
90                 read-only;
91         };
92
93         linux@20000 {
94                 label = "linux";
95                 reg = <0x0020000 0x1fc0000>;
96         };
97
98         nvram@1fe0000 {
99                 label = "nvram";
100                 reg = <0x1fe0000 0x020000>;
101         };
102 };