ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e130n-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "comfast,cf-e130n-v2", "qca,qca9531";
11 model = "COMFAST CF-E130N v2";
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
24 pinctrl-names = "default";
25
26 wlan {
27 function = LED_FUNCTION_WLAN;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy0tpt";
31 };
32
33 lan {
34 function = LED_FUNCTION_LAN;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
37 };
38
39 unused {
40 label = "green:unused";
41 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
42 };
43
44 rssilow {
45 label = "red:rssilow";
46 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
47 };
48
49 rssimediumlow {
50 label = "red:rssimediumlow";
51 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
52 };
53
54 rssimediumhigh {
55 label = "green:rssimediumhigh";
56 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 };
58
59 led_rssihigh: rssihigh {
60 label = "green:rssihigh";
61 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 keys {
66 compatible = "gpio-keys";
67
68 reset {
69 label = "reset";
70 linux,code = <KEY_RESTART>;
71 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
72 debounce-interval = <60>;
73 };
74 };
75 };
76
77 &spi {
78 status = "okay";
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <25000000>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x000000 0x010000>;
93 read-only;
94 };
95
96 art: partition@10000 {
97 label = "art";
98 reg = <0x010000 0x010000>;
99 read-only;
100
101 nvmem-layout {
102 compatible = "fixed-layout";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 macaddr_art_0: macaddr@0 {
107 reg = <0x0 0x6>;
108 };
109 };
110 };
111
112 partition@20000 {
113 compatible = "denx,uimage";
114 label = "firmware";
115 reg = <0x020000 0x7c0000>;
116 };
117
118 partition@7e0000 {
119 label = "configs";
120 reg = <0x7e0000 0x010000>;
121 read-only;
122 };
123
124 partition@7f0000 {
125 label = "nvram";
126 reg = <0x7f0000 0x010000>;
127 read-only;
128 };
129 };
130 };
131 };
132
133 &eth1 {
134 nvmem-cells = <&macaddr_art_0>;
135 nvmem-cell-names = "mac-address";
136
137 gmac-config {
138 device = <&gmac>;
139 switch-phy-swap = <1>;
140 };
141 };
142
143 &wmac {
144 status = "okay";
145
146 nvmem-cells = <&macaddr_art_0>;
147 nvmem-cell-names = "mac-address";
148 mtd-cal-data = <&art 0x1000>;
149 };