ath79, brcm63xx: Fix debounce-interval properties in gpio-keys-polled nodes
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_ubnt_routerstation.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar7100.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 aliases {
15 led-boot = &rf;
16 led-failsafe = &rf;
17 led-running = &rf;
18 led-upgrade = &rf;
19 };
20
21 extosc: ref {
22 compatible = "fixed-clock";
23 #clock-cells = <0>;
24 clock-output-names = "ref";
25 clock-frequency = <40000000>;
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 rf: rf_green {
32 label = "ubnt:green:rf";
33 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
34 default-state = "off";
35 };
36 };
37
38 gpio-keys-polled {
39 compatible = "gpio-keys-polled";
40 poll-interval = <20>;
41
42 wps {
43 label = "sw4";
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
47 };
48 };
49 };
50
51 &eth0 {
52 status = "okay";
53 };
54
55 &eth1 {
56 status = "okay";
57 };
58
59 &pcie0 {
60 status = "okay";
61 };
62
63 &spi {
64 status = "okay";
65 num-cs = <1>;
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <25000000>;
71
72 partitions {
73 compatible = "ecoscentric,redboot-fis-partitions";
74 };
75 };
76 };
77
78 &uart {
79 status = "okay";
80 };
81
82 &usb_phy {
83 status = "okay";
84 };
85
86 &usb1 {
87 status = "okay";
88 #address-cells = <1>;
89 #size-cells = <0>;
90
91 usb_ochi_port: port@1 {
92 reg = <1>;
93 #trigger-source-cells = <0>;
94 };
95 };
96
97 &usb2 {
98 status = "okay";
99 #address-cells = <1>;
100 #size-cells = <0>;
101
102 usb_echi_port: port@1 {
103 reg = <1>;
104 #trigger-source-cells = <0>;
105 };
106 };