203ca995ac8b7b29534dc24549d096b673e5af1d
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / hg556a-b.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 B)";
9 compatible = "huawei,hg556a-b", "brcm,bcm6358";
10
11 chosen {
12 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 stdout-path = "serial0:115200n8";
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 #address-cells = <1>;
19 #size-cells = <0>;
20 poll-interval = <20>;
21 debounce-interval = <60>;
22
23 help {
24 label = "help";
25 gpios = <&pinctrl 8 1>;
26 linux,code = <KEY_HELP>;
27 };
28 wlan {
29 label = "wlan";
30 gpios = <&pinctrl 9 1>;
31 linux,code = <KEY_WLAN>;
32 };
33 restart {
34 label = "restart";
35 gpios = <&pinctrl 10 1>;
36 linux,code = <KEY_RESTART>;
37 };
38 reset {
39 label = "reset";
40 gpios = <&pinctrl 11 1>;
41 linux,code = <KEY_CONFIG>;
42 };
43 };
44
45 gpio-leds {
46 compatible = "gpio-leds";
47
48 message_red {
49 label = "HW556:red:message";
50 gpios = <&pinctrl 0 1>;
51 };
52 hspa_red {
53 label = "HW556:red:hspa";
54 gpios = <&pinctrl 1 1>;
55 };
56 dsl_red {
57 label = "HW556:red:dsl";
58 gpios = <&pinctrl 2 1>;
59 };
60 power_red {
61 label = "HW556:red:power";
62 gpios = <&pinctrl 3 1>;
63 default-state = "on";
64 };
65 all_red {
66 label = "HW556:red:all";
67 gpios = <&pinctrl 6 1>;
68 default-state = "on";
69 };
70 lan1_green {
71 label = "HW556:green:lan1";
72 gpios = <&pinctrl 12 1>;
73 };
74 lan1_red {
75 label = "HW556:red:lan1";
76 gpios = <&pinctrl 13 1>;
77 };
78 lan2_green {
79 label = "HW556:green:lan2";
80 gpios = <&pinctrl 15 1>;
81 };
82 lan2_red {
83 label = "HW556:red:lan2";
84 gpios = <&pinctrl 22 1>;
85 };
86 lan3_green {
87 label = "HW556:green:lan3";
88 gpios = <&pinctrl 23 1>;
89 };
90 lan3_red {
91 label = "HW556:red:lan3";
92 gpios = <&pinctrl 26 1>;
93 };
94 lan4_green {
95 label = "HW556:green:lan4";
96 gpios = <&pinctrl 27 1>;
97 };
98 lan4_red {
99 label = "HW556:red:lan4";
100 gpios = <&pinctrl 28 1>;
101 };
102 };
103 };
104
105 &pflash {
106 status = "ok";
107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 cfe@0 {
114 label = "CFE";
115 reg = <0x000000 0x020000>;
116 read-only;
117 };
118
119 linux@20000 {
120 label = "linux";
121 reg = <0x020000 0xec0000>;
122 compatible = "brcm,bcm963xx-imagetag";
123 };
124
125 cal_data@ee0000 {
126 label = "cal_data";
127 reg = <0xee0000 0x100000>;
128 read-only;
129 };
130
131 nvram@fe0000 {
132 label = "nvram";
133 reg = <0xfe0000 0x020000>;
134 };
135 };
136 };
137
138 &uart0 {
139 status = "ok";
140 };