brcm63xx: setup internal switch leds for bcm6368
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / vr-3026e.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Comtrend VR-3026e";
9 compatible = "comtrend,vr-3026e", "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 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 dsl_green {
33 label = "VR-3026e:green:dsl";
34 gpios = <&gpio0 2 1>;
35 };
36 inet_green {
37 label = "VR-3026e:green:inet";
38 gpios = <&gpio0 5 0>;
39 };
40 power_green {
41 label = "VR-3026e:green:power";
42 gpios = <&gpio0 22 0>;
43 default-state = "on";
44 };
45 power_red {
46 label = "VR-3026e:red:power";
47 gpios = <&gpio0 24 0>;
48 };
49 inet_red {
50 label = "VR-3026e:red:inet";
51 gpios = <&gpio0 31 0>;
52 };
53 };
54 };
55
56 &pflash {
57 status = "ok";
58
59 linux,part-probe = "bcm63xxpart";
60
61 cfe@0 {
62 label = "CFE";
63 reg = <0x000000 0x010000>;
64 read-only;
65 };
66
67 linux@10000 {
68 label = "linux";
69 reg = <0x010000 0x7e0000>;
70 };
71
72 nvram@7f0000 {
73 label = "nvram";
74 reg = <0x7f0000 0x010000>;
75 };
76 };