ath79: fix dts of Teltonika RUT9xx devices
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e313ac.dts
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 "qca953x.dtsi"
8
9 / {
10 compatible = "comfast,cf-e313ac", "qca,qca9531";
11 model = "COMFAST CF-E313AC";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_rssihigh;
16 led-failsafe = &led_rssihigh;
17 led-upgrade = &led_rssihigh;
18 label-mac-device = &eth1;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23 pinctrl-names = "default";
24
25 wlan {
26 label = "cf-e313ac:green:wlan";
27 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 lan {
32 label = "cf-e313ac:green:lan";
33 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
34 };
35
36 wan {
37 label = "cf-e313ac:green:wan";
38 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
39 };
40
41 rssilow {
42 label = "cf-e313ac:red:rssilow";
43 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
44 };
45
46 rssimediumlow {
47 label = "cf-e313ac:red:rssimediumlow";
48 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49 };
50
51 rssimediumhigh {
52 label = "cf-e313ac:green:rssimediumhigh";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 };
55
56 led_rssihigh: rssihigh {
57 label = "cf-e313ac:green:rssihigh";
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 };
60 };
61
62 keys {
63 compatible = "gpio-keys";
64
65 reset {
66 label = "reset";
67 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
69 debounce-interval = <60>;
70 };
71 };
72 };
73
74 &spi {
75 status = "okay";
76 num-cs = <1>;
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <25000000>;
82
83 partitions {
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partition@0 {
89 label = "u-boot";
90 reg = <0x000000 0x010000>;
91 read-only;
92 };
93
94 art: partition@10000 {
95 label = "art";
96 reg = <0x010000 0x010000>;
97 read-only;
98 };
99
100 partition@20000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x020000 0x7c0000>;
104 };
105
106 partition@7e0000 {
107 label = "config";
108 reg = <0x7e0000 0x010000>;
109 read-only;
110 };
111
112 partition@7f0000 {
113 label = "nvram";
114 reg = <0x7f0000 0x010000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &uart {
122 status = "okay";
123 };
124
125 &eth0 {
126 status = "okay";
127 phy-handle = <&swphy0>;
128 mtd-mac-address = <&art 0x1002>;
129
130 gmac-config {
131 device = <&gmac>;
132 switch-phy-swap = <1>;
133 };
134 };
135
136 &eth1 {
137 status = "okay";
138 mtd-mac-address = <&art 0x0>;
139 };
140
141 &pcie0 {
142 status = "okay";
143
144 wifi@0,0 {
145 compatible = "qcom,ath10k";
146 reg = <0 0 0 0 0>;
147 };
148 };