brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / dts / td-w8900gb.dts
1 /dts-v1/;
2
3 /include/ "bcm6348.dtsi"
4
5 / {
6         model = "TP-Link TD-W8900GB";
7         compatible = "tp-link,td-w8900gb", "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 = "96348GW-11:green:power";
28                         gpios = <&gpio0 0 1>;
29                         default-state = "on";
30                 };
31                 stop_green {
32                         label = "96348GW-11:green:stop";
33                         gpios = <&gpio0 1 1>;
34                 };
35                 adsl_fail_green {
36                         label = "96348GW-11:green:adsl-fail";
37                         gpios = <&gpio0 2 1>;
38                 };
39                 ppp_green {
40                         label = "96348GW-11:green:ppp";
41                         gpios = <&gpio0 3 1>;
42                 };
43                 ppp_fail_green {
44                         label = "96348GW-11:green:ppp-fail";
45                         gpios = <&gpio0 4 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 0x020000>;
58                 read-only;
59         };
60
61         linux@20000 {
62                 label = "linux";
63                 reg = <0x020000 0x3d0000>;
64         };
65
66         nvram@3e0000 {
67                 label = "nvram";
68                 reg = <0x3f0000 0x010000>;
69         };
70 };