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