ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 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 = "ubnt: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 num-cs = <1>;
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <25000000>;
64
65 partitions {
66 compatible = "ecoscentric,redboot-fis-partitions";
67 };
68 };
69 };
70
71 &uart {
72 status = "okay";
73 };
74
75 &usb_phy {
76 status = "okay";
77 };
78
79 &usb1 {
80 status = "okay";
81 #address-cells = <1>;
82 #size-cells = <0>;
83
84 usb_ohci_port: port@1 {
85 reg = <1>;
86 #trigger-source-cells = <0>;
87 };
88 };
89
90 &usb2 {
91 status = "okay";
92 #address-cells = <1>;
93 #size-cells = <0>;
94
95 usb_ehci_port: port@1 {
96 reg = <1>;
97 #trigger-source-cells = <0>;
98 };
99 };