ath79: add support for TP-Link TL-WR941N v7 (CN)
[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-polled";
39                 poll-interval = <20>;
40
41                 wps {
42                         label = "sw4";
43                         linux,code = <KEY_RESTART>;
44                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45                         debounce-interval = <60>;
46                 };
47         };
48 };
49
50 &eth0 {
51         status = "okay";
52 };
53
54 &eth1 {
55         status = "okay";
56 };
57
58 &pcie0 {
59         status = "okay";
60 };
61
62 &spi {
63         status = "okay";
64         num-cs = <1>;
65
66         flash@0 {
67                 compatible = "jedec,spi-nor";
68                 reg = <0>;
69                 spi-max-frequency = <25000000>;
70
71                 partitions {
72                         compatible = "ecoscentric,redboot-fis-partitions";
73                 };
74         };
75 };
76
77 &uart {
78         status = "okay";
79 };
80
81 &usb_phy {
82         status = "okay";
83 };
84
85 &usb1 {
86         status = "okay";
87         #address-cells = <1>;
88         #size-cells = <0>;
89
90         usb_ochi_port: port@1 {
91                 reg = <1>;
92                 #trigger-source-cells = <0>;
93         };
94 };
95
96 &usb2 {
97         status = "okay";
98         #address-cells = <1>;
99         #size-cells = <0>;
100
101         usb_echi_port: port@1 {
102                 reg = <1>;
103                 #trigger-source-cells = <0>;
104         };
105 };