bcm63xx: use generic diag.sh
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6358-bt-home-hub-2-a.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 = "bt,home-hub-2-a", "brcm,bcm6358";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_upgrading_green;
16 };
17
18 chosen {
19 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 phone {
30 label = "phone";
31 gpios = <&pinctrl 1 1>;
32 linux,code = <KEY_PHONE>;
33 debounce-interval = <60>;
34 };
35
36 reset {
37 label = "reset";
38 gpios = <&pinctrl 9 1>;
39 linux,code = <KEY_RESTART>;
40 debounce-interval = <60>;
41 };
42
43 wps {
44 label = "wps";
45 gpios = <&pinctrl 11 1>;
46 linux,code = <KEY_WPS_BUTTON>;
47 debounce-interval = <60>;
48 };
49 };
50 };
51
52 &leds {
53 status = "ok";
54
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_serial_led>;
57
58 led@0 {
59 reg = <0>;
60 active-low;
61 label = "HOMEHUB2A:red:power";
62 };
63
64 led_power_green: led@1 {
65 reg = <0>;
66 active-low;
67 label = "HOMEHUB2A:green:power";
68 default-state = "on";
69 };
70
71 led@2 {
72 reg = <2>;
73 active-low;
74 label = "HOMEHUB2A:blue:power";
75 };
76
77 led@3 {
78 reg = <3>;
79 active-low;
80 label = "HOMEHUB2A:red:broadband";
81 };
82
83 led@4 {
84 reg = <4>;
85 active-low;
86 label = "HOMEHUB2A:green:broadband";
87 };
88
89 led@5 {
90 reg = <5>;
91 active-low;
92 label = "HOMEHUB2A:blue:broadband";
93 };
94
95 led@6 {
96 reg = <6>;
97 active-low;
98 label = "HOMEHUB2A:red:wireless";
99 };
100
101 led@7 {
102 reg = <7>;
103 active-low;
104 label = "HOMEHUB2A:green:wireless";
105 };
106
107 led@8 {
108 reg = <8>;
109 active-low;
110 label = "HOMEHUB2A:blue:wireless";
111 };
112
113 led@9 {
114 reg = <9>;
115 active-low;
116 label = "HOMEHUB2A:red:phone";
117 };
118
119 led@10 {
120 reg = <10>;
121 active-low;
122 label = "HOMEHUB2A:green:phone";
123 };
124
125 led@11 {
126 reg = <11>;
127 active-low;
128 label = "HOMEHUB2A:blue:phone";
129 };
130
131 led@12 {
132 reg = <12>;
133 active-low;
134 label = "HOMEHUB2A:red:upgrading";
135 };
136
137 led_upgrading_green: led@13 {
138 reg = <13>;
139 active-low;
140 label = "HOMEHUB2A:green:upgrading";
141 };
142
143 led@14 {
144 reg = <14>;
145 active-low;
146 label = "HOMEHUB2A:blue:upgrading";
147 };
148 };
149
150 &pflash {
151 status = "ok";
152
153 partitions {
154 compatible = "fixed-partitions";
155 #address-cells = <1>;
156 #size-cells = <1>;
157
158 cfe@0 {
159 label = "CFE";
160 reg = <0x000000 0x020000>;
161 };
162
163 linux@20000 {
164 label = "linux";
165 reg = <0x020000 0xfc0000>;
166 compatible = "brcm,bcm963xx-imagetag";
167 };
168
169 nvram@fe0000 {
170 label = "nvram";
171 reg = <0xfe0000 0x020000>;
172 };
173 };
174 };
175
176 &uart0 {
177 status = "ok";
178 };