brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / dts / p870hw-51a-v2.dts
1 /dts-v1/;
2
3 /include/ "bcm6368.dtsi"
4
5 / {
6         model = "Zyxel P870HW-51a v2";
7         compatible = "zyxel,p870hw-51a-v2", "brcm,bcm6368";
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 2 1>;
19                         linux,code = <0x198>;
20                 };
21                 wps {
22                         label = "wps";
23                         gpios = <&gpio1 3 1>;
24                         linux,code = <0x211>;
25                 };
26         };
27
28         gpio-leds {
29                 compatible = "gpio-leds";
30
31                 power_green {
32                         label = "P870HW-51a:green:power";
33                         gpios = <&gpio0 0 0>;
34                         default-state = "on";
35                 };
36                 dsl_green {
37                         label = "P870HW-51a:green:dsl";
38                         gpios = <&gpio0 2 1>;
39                 };
40                 inet_green {
41                         label = "P870HW-51a:green:inet";
42                         gpios = <&gpio0 22 1>;
43                 };
44                 wps_orange {
45                         label = "P870HW-51a:orange:wps";
46                         gpios = <&gpio0 24 1>;
47                 };
48                 inet_red {
49                         label = "P870HW-51a:red:inet";
50                         gpios = <&gpio1 1 1>;
51                 };
52         };
53 };
54
55 &pflash {
56         status = "ok";
57
58         linux,part-probe = "bcm63xxpart";
59
60         cfe@0 {
61                 label = "CFE";
62                 reg = <0x000000 0x010000>;
63                 read-only;
64         };
65
66         linux@10000 {
67                 label = "linux";
68                 reg = <0x010000 0x3e0000>;
69         };
70
71         nvram@3f0000 {
72                 label = "nvram";
73                 reg = <0x3f0000 0x010000>;
74         };
75 };