dfc3f1380b2c56dedcdce9154da53d2f3d2c953c
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / homehub2a.dts
1 /dts-v1/;
2
3 #include "bcm6358.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "BT Home Hub 2.0 Type A";
9 compatible = "thomson,homehub2a", "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 phone {
24 label = "phone";
25 gpios = <&pinctrl 1 1>;
26 linux,code = <KEY_PHONE>;
27 };
28 reset {
29 label = "reset";
30 gpios = <&pinctrl 9 1>;
31 linux,code = <KEY_RESTART>;
32 };
33 wps {
34 label = "wps";
35 gpios = <&pinctrl 11 1>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39 };
40
41 &leds {
42 status = "ok";
43
44 pinctrl-names = "default";
45 pinctrl-0 = <&pinctrl_serial_led>;
46
47 led@0 {
48 reg = <0>;
49 active-low;
50 label = "HOMEHUB2A:red:power";
51 };
52
53 led@1 {
54 reg = <0>;
55 active-low;
56 label = "HOMEHUB2A:green:power";
57 default-state = "on";
58 };
59
60 led@2 {
61 reg = <2>;
62 active-low;
63 label = "HOMEHUB2A:blue:power";
64 };
65
66 led@3 {
67 reg = <3>;
68 active-low;
69 label = "HOMEHUB2A:red:broadband";
70 };
71
72 led@4 {
73 reg = <4>;
74 active-low;
75 label = "HOMEHUB2A:green:broadband";
76 };
77
78 led@5 {
79 reg = <5>;
80 active-low;
81 label = "HOMEHUB2A:blue:broadband";
82 };
83
84 led@6 {
85 reg = <6>;
86 active-low;
87 label = "HOMEHUB2A:red:wireless";
88 };
89
90 led@7 {
91 reg = <7>;
92 active-low;
93 label = "HOMEHUB2A:green:wireless";
94 };
95
96 led@8 {
97 reg = <8>;
98 active-low;
99 label = "HOMEHUB2A:blue:wireless";
100 };
101
102 led@9 {
103 reg = <9>;
104 active-low;
105 label = "HOMEHUB2A:red:phone";
106 };
107
108 led@10 {
109 reg = <10>;
110 active-low;
111 label = "HOMEHUB2A:green:phone";
112 };
113
114 led@11 {
115 reg = <11>;
116 active-low;
117 label = "HOMEHUB2A:blue:phone";
118 };
119
120 led@12 {
121 reg = <12>;
122 active-low;
123 label = "HOMEHUB2A:red:upgrading";
124 };
125
126 led@13 {
127 reg = <13>;
128 active-low;
129 label = "HOMEHUB2A:green:upgrading";
130 };
131
132 led@14 {
133 reg = <14>;
134 active-low;
135 label = "HOMEHUB2A:blue:upgrading";
136 };
137 };
138
139 &pflash {
140 status = "ok";
141
142 partitions {
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
145 #size-cells = <1>;
146
147 cfe@0 {
148 label = "CFE";
149 reg = <0x000000 0x020000>;
150 };
151
152 linux@20000 {
153 label = "linux";
154 reg = <0x020000 0xfc0000>;
155 compatible = "brcm,bcm963xx-imagetag";
156 };
157
158 nvram@fe0000 {
159 label = "nvram";
160 reg = <0xfe0000 0x020000>;
161 };
162 };
163 };
164
165 &uart0 {
166 status = "ok";
167 };