ath79: convert devices to interrupt-driven gpio-keys
[oweals/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         leds {
29                 compatible = "gpio-leds";
30
31                 rf: rf_green {
32                         label = "ubnt:green:rf";
33                         gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
34                 };
35         };
36
37         keys {
38                 compatible = "gpio-keys";
39
40                 wps {
41                         label = "sw4";
42                         linux,code = <KEY_RESTART>;
43                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44                         debounce-interval = <60>;
45                 };
46         };
47 };
48
49 &eth0 {
50         status = "okay";
51 };
52
53 &eth1 {
54         status = "okay";
55 };
56
57 &pcie0 {
58         status = "okay";
59 };
60
61 &spi {
62         status = "okay";
63         num-cs = <1>;
64
65         flash@0 {
66                 compatible = "jedec,spi-nor";
67                 reg = <0>;
68                 spi-max-frequency = <25000000>;
69
70                 partitions {
71                         compatible = "ecoscentric,redboot-fis-partitions";
72                 };
73         };
74 };
75
76 &uart {
77         status = "okay";
78 };
79
80 &usb_phy {
81         status = "okay";
82 };
83
84 &usb1 {
85         status = "okay";
86         #address-cells = <1>;
87         #size-cells = <0>;
88
89         usb_ochi_port: port@1 {
90                 reg = <1>;
91                 #trigger-source-cells = <0>;
92         };
93 };
94
95 &usb2 {
96         status = "okay";
97         #address-cells = <1>;
98         #size-cells = <0>;
99
100         usb_echi_port: port@1 {
101                 reg = <1>;
102                 #trigger-source-cells = <0>;
103         };
104 };