brcm63xx: fix HG556a C button
[openwrt/staging/yousong.git] / target / linux / brcm63xx / dts / hg556a-c.dts
1 /dts-v1/;
2
3 #include "bcm6358.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Huawei EchoLife HG556a (version C)";
9 compatible = "huawei,hg556a-c", "brcm,bcm6358";
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 help {
23 label = "help";
24 gpios = <&gpio1 4 1>;
25 linux,code = <KEY_HELP>;
26 };
27 wlan {
28 label = "wlan";
29 gpios = <&gpio0 9 1>;
30 linux,code = <KEY_WLAN>;
31 };
32 restart {
33 label = "restart";
34 gpios = <&gpio0 10 1>;
35 linux,code = <KEY_RESTART>;
36 };
37 reset {
38 label = "reset";
39 gpios = <&gpio0 11 1>;
40 linux,code = <KEY_CONFIG>;
41 };
42 };
43
44 gpio-leds {
45 compatible = "gpio-leds";
46
47 lan1_green {
48 label = "HW556:green:lan1";
49 gpios = <&gpio0 0 1>;
50 };
51 lan2_green {
52 label = "HW556:green:lan2";
53 gpios = <&gpio0 1 1>;
54 };
55 dsl_red {
56 label = "HW556:red:dsl";
57 gpios = <&gpio0 2 1>;
58 };
59 power_red {
60 label = "HW556:red:power";
61 gpios = <&gpio0 3 1>;
62 default-state = "on";
63 };
64 message_red {
65 label = "HW556:red:message";
66 gpios = <&gpio0 12 1>;
67 };
68 lan1_red {
69 label = "HW556:red:lan1";
70 gpios = <&gpio0 13 1>;
71 };
72 hspa_red {
73 label = "HW556:red:hspa";
74 gpios = <&gpio0 15 1>;
75 };
76 lan2_red {
77 label = "HW556:red:lan2";
78 gpios = <&gpio0 22 1>;
79 };
80 lan3_green {
81 label = "HW556:green:lan3";
82 gpios = <&gpio0 23 1>;
83 };
84 lan3_red {
85 label = "HW556:red:lan3";
86 gpios = <&gpio0 26 1>;
87 };
88 lan4_green {
89 label = "HW556:green:lan4";
90 gpios = <&gpio0 27 1>;
91 };
92 lan4_red {
93 label = "HW556:red:lan4";
94 gpios = <&gpio0 28 1>;
95 };
96 };
97 };
98
99 &pflash {
100 status = "ok";
101
102 linux,part-probe = "bcm63xxpart";
103
104 cfe@0 {
105 label = "CFE";
106 reg = <0x000000 0x020000>;
107 read-only;
108 };
109
110 linux@20000 {
111 label = "linux";
112 reg = <0x020000 0xec0000>;
113 };
114
115 cal_data@ee0000 {
116 label = "cal_data";
117 reg = <0xee0000 0x100000>;
118 read-only;
119 };
120
121 nvram@fe0000 {
122 label = "nvram";
123 reg = <0xfe0000 0x020000>;
124 };
125 };