brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / dts / ct-5365.dts
1 /dts-v1/;
2
3 /include/ "bcm6348.dtsi"
4
5 / {
6         model = "Comtrend CT-5365";
7         compatible = "comtrend,ct-5365", "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                 wlan {
22                         label = "wlan";
23                         gpios = <&gpio1 2 1>;
24                         linux,code = <0xee>;
25                 };
26                 wps {
27                         label = "wps";
28                         gpios = <&gpio1 3 1>;
29                         linux,code = <0x211>;
30                 };
31         };
32
33         gpio-leds {
34                 compatible = "gpio-leds";
35
36                 power_green {
37                         label = "96348A-122:green:power";
38                         gpios = <&gpio0 0 1>;
39                         default-state = "on";
40                 };
41                 alarm_red {
42                         label = "96348A-122:red:alarm";
43                         gpios = <&gpio0 2 1>;
44                 };
45                 wps_green {
46                         label = "96348A-122:green:wps";
47                         gpios = <&gpio0 6 1>;
48                 };
49         };
50 };
51
52 &pflash {
53         status = "ok";
54
55         linux,part-probe = "bcm63xxpart";
56
57         cfe@0 {
58                 label = "CFE";
59                 reg = <0x000000 0x010000>;
60                 read-only;
61         };
62
63         linux@10000 {
64                 label = "linux";
65                 reg = <0x010000 0x3e0000>;
66         };
67
68         nvram@3f0000 {
69                 label = "nvram";
70                 reg = <0x3f0000 0x010000>;
71         };
72 };