brcm63xx: move buttons and leds to dts files
[openwrt/staging/mkresin.git] / target / linux / brcm63xx / dts / a4001n.dts
1 /dts-v1/;
2
3 /include/ "bcm6328.dtsi"
4
5 / {
6 model = "ADB P.DG A4001N";
7 compatible = "adb,a4001n", "brcm,bcm6328";
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 = <&gpio0 23 1>;
19 linux,code = <0x198>;
20 };
21 wps {
22 label = "wps";
23 gpios = <&gpio0 24 1>;
24 linux,code = <0x211>;
25 };
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 inet_red {
32 label = "A4001N:red:inet";
33 gpios = <&gpio0 1 0>;
34 };
35 power_red {
36 label = "A4001N:red:power";
37 gpios = <&gpio0 4 0>;
38 };
39 power_green {
40 label = "A4001N:green:power";
41 gpios = <&gpio0 8 0>;
42 default-state = "on";
43 };
44 usb_green {
45 label = "A4001N:green:usb";
46 gpios = <&gpio0 10 1>;
47 };
48 dsl_green {
49 label = "A4001N:green:dsl";
50 gpios = <&gpio0 11 1>;
51 };
52 };
53 };