ath79, brcm63xx: Fix debounce-interval properties in gpio-keys-polled nodes
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_xw.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar9344.dtsi"
7
8 / {
9         compatible = "ubnt,xw", "qca,ar9342";
10         model = "Ubiquiti Networks XW board";
11
12         gpio-leds {
13                 compatible = "gpio-leds";
14
15                 link1 {
16                         label = "ubnt:red:link1";
17                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
18                 };
19
20                 link2 {
21                         label = "ubnt:orange:link2";
22                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
23                 };
24
25                 link3 {
26                         label = "ubnt:green:link3";
27                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28                 };
29
30                 link4 {
31                         label = "ubnt:green:link4";
32                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33                 };
34         };
35
36         keys {
37                 compatible = "gpio-keys";
38
39                 reset {
40                         label = "Reset button";
41                         linux,code = <KEY_RESTART>;
42                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43                         debounce-interval = <60>;
44                 };
45         };
46 };
47
48 &ref {
49         clock-frequency = <40000000>;
50 };
51
52 &uart {
53         status = "okay";
54 };
55
56 &gpio {
57         status = "okay";
58 };
59
60 &spi {
61         status = "okay";
62         num-cs = <1>;
63
64         flash@0 {
65                 compatible = "jedec,spi-nor";
66                 reg = <0>;
67                 spi-max-frequency = <25000000>;
68
69                 partitions {
70                         compatible = "fixed-partitions";
71                         #address-cells = <1>;
72                         #size-cells = <1>;
73
74                         partition@0 {
75                                 label = "u-boot";
76                                 reg = <0x000000 0x040000>;
77                                 read-only;
78                         };
79
80                         partition@40000 {
81                                 label = "u-boot-env";
82                                 reg = <0x040000 0x010000>;
83                                 read-only;
84                         };
85
86                         partition@50000 {
87                                 compatible = "denx,uimage";
88                                 label = "firmware";
89                                 reg = <0x050000 0x760000>;
90                         };
91
92                         partition@fb0000 {
93                                 label = "cfg";
94                                 reg = <0x7b0000 0x040000>;
95                                 read-only;
96                         };
97
98                         eeprom: partition@ff0000 {
99                                 label = "EEPROM";
100                                 reg = <0x7f0000 0x010000>;
101                                 read-only;
102                         };
103                 };
104         };
105 };
106
107 &wmac {
108         status = "okay";
109
110         mtd-cal-data = <&eeprom 0x1000>;
111         mtd-mac-address = <&eeprom 0x1002>;
112 };