fc5d8335b5590a9dd32b949ddb706e417c4104da
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7161_ubnt_routerstation.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 "ar7100.dtsi"
7
8 / {
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         aliases {
14                 led-boot = &led_rf;
15                 led-failsafe = &led_rf;
16                 led-running = &led_rf;
17                 led-upgrade = &led_rf;
18         };
19
20         extosc: ref {
21                 compatible = "fixed-clock";
22                 #clock-cells = <0>;
23                 clock-output-names = "ref";
24                 clock-frequency = <40000000>;
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 led_rf: rf_green {
31                         label = "ubnt:green:rf";
32                         gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
33                 };
34         };
35
36         keys {
37                 compatible = "gpio-keys";
38
39                 wps {
40                         label = "sw4";
41                         linux,code = <KEY_RESTART>;
42                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
43                         debounce-interval = <60>;
44                 };
45         };
46 };
47
48 &eth0 {
49         status = "okay";
50 };
51
52 &eth1 {
53         status = "okay";
54 };
55
56 &pcie0 {
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 = "ecoscentric,redboot-fis-partitions";
71                 };
72         };
73 };
74
75 &uart {
76         status = "okay";
77 };
78
79 &usb_phy {
80         status = "okay";
81 };
82
83 &usb1 {
84         status = "okay";
85         #address-cells = <1>;
86         #size-cells = <0>;
87
88         usb_ohci_port: port@1 {
89                 reg = <1>;
90                 #trigger-source-cells = <0>;
91         };
92 };
93
94 &usb2 {
95         status = "okay";
96         #address-cells = <1>;
97         #size-cells = <0>;
98
99         usb_ehci_port: port@1 {
100                 reg = <1>;
101                 #trigger-source-cells = <0>;
102         };
103 };