treewide: dts: fix dtc compiler warnings
[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 = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 };
14
15 spi-gpio {
16 #address-cells = <1>;
17 #size-cells = <0>;
18 compatible = "spi-gpio";
19
20 gpio-mosi = <&gpio0 7 0>;
21 gpio-sck = <&gpio0 6 0>;
22 cs-gpios = <&gpio0 5 0>;
23 num-chipselects = <1>;
24
25 hc595: gpio-spi-controller@0 {
26 compatible = "fairchild,74hc595";
27 reg = <0>;
28 registers-number = <2>;
29 spi-max-frequency = <100000>;
30
31 gpio-controller;
32 #gpio-cells = <2>;
33 };
34 };
35
36 gpio-keys-polled {
37 compatible = "gpio-keys-polled";
38 #address-cells = <1>;
39 #size-cells = <0>;
40 poll-interval = <20>;
41 debounce-interval = <60>;
42
43 phone {
44 label = "phone";
45 gpios = <&gpio0 1 1>;
46 linux,code = <169>;
47 };
48 reset {
49 label = "reset";
50 gpios = <&gpio0 9 1>;
51 linux,code = <KEY_RESTART>;
52 };
53 wps {
54 label = "wps";
55 gpios = <&gpio0 11 1>;
56 linux,code = <KEY_WPS_BUTTON>;
57 };
58 };
59
60 gpio-leds {
61 compatible = "gpio-leds";
62
63 power_red {
64 label = "HOMEHUB2A:red:power";
65 gpios = <&hc595 0 1>;
66 };
67 power_green {
68 label = "HOMEHUB2A:green:power";
69 gpios = <&hc595 1 1>;
70 default-state = "on";
71 };
72 power_blue {
73 label = "HOMEHUB2A:blue:power";
74 gpios = <&hc595 2 1>;
75 };
76 broadband_red {
77 label = "HOMEHUB2A:red:broadband";
78 gpios = <&hc595 3 1>;
79 };
80 broadband_green {
81 label = "HOMEHUB2A:green:broadband";
82 gpios = <&hc595 4 1>;
83 };
84 broadband_blue {
85 label = "HOMEHUB2A:blue:broadband";
86 gpios = <&hc595 5 1>;
87 };
88 wireless_red {
89 label = "HOMEHUB2A:red:wireless";
90 gpios = <&hc595 6 1>;
91 };
92 wireless_green {
93 label = "HOMEHUB2A:green:wireless";
94 gpios = <&hc595 7 1>;
95 };
96 wireless_blue {
97 label = "HOMEHUB2A:blue:wireless";
98 gpios = <&hc595 8 1>;
99 };
100 phone_red {
101 label = "HOMEHUB2A:red:phone";
102 gpios = <&hc595 9 1>;
103 };
104 phone_green {
105 label = "HOMEHUB2A:green:phone";
106 gpios = <&hc595 10 1>;
107 };
108 phone_blue {
109 label = "HOMEHUB2A:blue:phone";
110 gpios = <&hc595 11 1>;
111 };
112 upgrading_red {
113 label = "HOMEHUB2A:red:upgrading";
114 gpios = <&hc595 12 1>;
115 };
116 upgrading_green {
117 label = "HOMEHUB2A:green:upgrading";
118 gpios = <&hc595 13 1>;
119 };
120 upgrading_blue {
121 label = "HOMEHUB2A:blue:upgrading";
122 gpios = <&hc595 14 1>;
123 };
124 };
125 };
126
127 &pflash {
128 status = "ok";
129
130 linux,part-probe = "bcm63xxpart";
131
132 cfe@0 {
133 label = "CFE";
134 reg = <0x000000 0x020000>;
135 };
136
137 linux@20000 {
138 label = "linux";
139 reg = <0x020000 0xfc0000>;
140 };
141
142 nvram@fe0000 {
143 label = "nvram";
144 reg = <0xfe0000 0x020000>;
145 };
146 };