brcm63xx: setup internal switch leds for bcm6368
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / hg655b.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Huawei HG655b";
9 compatible = "huawei,hg655b", "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 wps {
23 label = "wps";
24 gpios = <&gpio0 12 1>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27 wlan {
28 label = "wlan";
29 gpios = <&gpio0 23 1>;
30 linux,code = <KEY_WLAN>;
31 };
32 reset {
33 label = "reset";
34 gpios = <&gpio1 2 1>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 dsl_green {
43 label = "HW65x:green:dsl";
44 gpios = <&gpio0 2 1>;
45 };
46 internet_green {
47 label = "HW65x:green:internet";
48 gpios = <&gpio0 5 1>;
49 };
50 usb_green {
51 label = "HW65x:green:usb";
52 gpios = <&gpio0 14 1>;
53 };
54 power_green {
55 label = "HW65x:green:power";
56 gpios = <&gpio0 22 1>;
57 default-state = "on";
58 };
59 voip_green {
60 label = "HW65x:green:voip";
61 gpios = <&gpio0 25 1>;
62 };
63 wps_green {
64 label = "HW65x:green:wps";
65 gpios = <&gpio0 27 1>;
66 };
67 };
68 };
69
70 &pflash {
71 status = "ok";
72
73 linux,part-probe = "bcm63xxpart";
74
75 cfe@0 {
76 label = "CFE";
77 reg = <0x000000 0x020000>;
78 };
79
80 linux@20000 {
81 label = "linux";
82 reg = <0x020000 0x770000>;
83 };
84
85 board_data@790000 {
86 label = "board_data";
87 reg = <0x790000 0x030000>;
88 };
89
90 cal_data@7c0000 {
91 label = "cal_data";
92 reg = <0x7c0000 0x020000>;
93 read-only;
94 };
95
96 nvram@7d0000 {
97 label = "nvram";
98 reg = <0x7e0000 0x020000>;
99 };
100 };