ath79, brcm63xx: Fix debounce-interval properties in gpio-keys-polled nodes
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9330_glinet_ar150.dts
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 "ar9330.dtsi"
8
9 / {
10         model = "GL.iNet GL-AR150";
11         compatible = "glinet,ar150", "qca,ar9330";
12
13         aliases {
14                 serial0 = &uart;
15                 led-boot = &wlan;
16                 led-failsafe = &wlan;
17                 led-upgrade = &wlan;
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 wlan: wlan {
24                         label = "gl-ar150:orange:wlan";
25                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26                         default-state = "off";
27                         linux,default-trigger = "phy0tpt";
28                 };
29
30                 lan {
31                         label = "gl-ar150:green:lan";
32                         gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
33                         default-state = "off";
34                 };
35
36                 wan {
37                         label = "gl-ar150:green:wan";
38                         gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
39                         default-state = "off";
40                 };
41         };
42
43         keys {
44                 compatible = "gpio-keys-polled";
45                 poll-interval = <100>;
46
47                 manual {
48                         label = "manual";
49                         linux,code = <BTN_7>;
50                         gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
51                 };
52
53                 auto {
54                         label = "auto";
55                         linux,code = <BTN_8>;
56                         gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
57                 };
58
59                 reset {
60                         label = "reset";
61                         linux,code = <KEY_RESTART>;
62                         gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
63                 };
64         };
65 };
66
67 &uart {
68         status = "okay";
69 };
70
71 &gpio {
72         status = "okay";
73 };
74
75 &usb {
76         dr_mode = "host";
77         status = "okay";
78 };
79
80 &usb_phy {
81         status = "okay";
82         gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
83 };
84
85 &spi {
86         num-chipselects = <1>;
87         status = "okay";
88
89         flash@0 {
90                 compatible = "jedec,spi-nor";
91                 spi-max-frequency = <104000000>;
92                 reg = <0>;
93
94                 partitions {
95                         compatible = "fixed-partitions";
96                         #address-cells = <1>;
97                         #size-cells = <1>;
98
99                         partition@0 {
100                                 label = "u-boot";
101                                 reg = <0x000000 0x040000>;
102                                 read-only;
103                         };
104
105                         partition@1 {
106                                 label = "u-boot-env";
107                                 reg = <0x040000 0x010000>;
108                         };
109
110                         partition@2 {
111                                 compatible = "denx,uimage";
112                                 label = "firmware";
113                                 reg = <0x050000 0xfa0000>;
114                         };
115
116                         art: partition@3 {
117                                 label = "ART";
118                                 reg = <0xff0000 0x010000>;
119                                 read-only;
120                         };
121                 };
122         };
123 };
124
125 &eth0 {
126         status = "okay";
127
128         mtd-mac-address = <&art 0x0>;
129 };
130
131 &eth1 {
132         status = "okay";
133
134         mtd-mac-address = <&art 0x0>;
135
136         gmac-config {
137                 device = <&gmac>;
138
139                 switch-phy-addr-swap = <0>;
140                 switch-phy-swap = <0>;
141         };
142 };
143
144 &wmac {
145         status = "okay";
146         mtd-cal-data = <&art 0x1000>;
147         mtd-mac-address = <&art 0x0>;
148 };