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