brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / dts / spw500v.dts
1 /dts-v1/;
2
3 /include/ "bcm6348.dtsi"
4
5 / {
6         model = "T-Com Speedport W500 V";
7         compatible = "t-com,spw500v", "brcm,bcm6348";
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                 reset {
17                         label = "reset";
18                         gpios = <&gpio1 1 1>;
19                         linux,code = <0x198>;
20                 };
21         };
22
23         gpio-leds {
24                 compatible = "gpio-leds";
25
26                 power_green {
27                         label = "SPW500V:green:power";
28                         gpios = <&gpio0 0 1>;
29                         default-state = "on";
30                 };
31                 power_red {
32                         label = "SPW500V:red:power";
33                         gpios = <&gpio0 1 1>;
34                 };
35                 ppp_green {
36                         label = "SPW500V:green:ppp";
37                         gpios = <&gpio0 3 1>;
38                 };
39                 pstn_green {
40                         label = "SPW500V:green:pstn";
41                         gpios = <&gpio0 28 1>;
42                 };
43                 voip_green {
44                         label = "SPW500V:green:voip";
45                         gpios = <&gpio1 0 1>;
46                 };
47         };
48 };
49
50 &pflash {
51         status = "ok";
52
53         linux,part-probe = "bcm63xxpart";
54
55         cfe@0 {
56                 label = "CFE";
57                 reg = <0x000000 0x010000>;
58                 read-only;
59         };
60
61         linux@10000 {
62                 label = "linux";
63                 reg = <0x010000 0x3e0000>;
64         };
65
66         nvram@3f0000 {
67                 label = "nvram";
68                 reg = <0x3f0000 0x010000>;
69         };
70 };