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