ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e5.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-e5", "qca,qca9531";
11 model = "COMFAST CF-E5/E7";
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
24 };
25 };
26
27 leds {
28 compatible = "gpio-leds";
29 pinctrl-names = "default";
30 pinctrl-0 = <&jtag_disable_pins &led_wan_pin>;
31
32 wan {
33 function = LED_FUNCTION_WAN;
34 color = <LED_COLOR_ID_BLUE>;
35 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
36 };
37
38 lan {
39 function = LED_FUNCTION_LAN;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 };
43
44 wlan {
45 function = LED_FUNCTION_WLAN;
46 color = <LED_COLOR_ID_BLUE>;
47 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50
51 rssi0 {
52 label = "blue:rssi0";
53 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
54 };
55
56 rssi1 {
57 label = "blue:rssi1";
58 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
59 };
60
61 rssi2 {
62 label = "blue:rssi2";
63 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 };
65 };
66 };
67
68 &usb0 {
69 status = "okay";
70 };
71
72 &usb_phy {
73 status = "okay";
74 };
75
76 &spi {
77 status = "okay";
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-max-frequency = <25000000>;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partition@0 {
90 label = "u-boot";
91 reg = <0x000000 0x010000>;
92 read-only;
93 };
94
95 art: partition@10000 {
96 label = "art";
97 reg = <0x010000 0x010000>;
98 read-only;
99
100 nvmem-layout {
101 compatible = "fixed-layout";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 macaddr_art_0: macaddr@0 {
106 reg = <0x0 0x6>;
107 };
108
109 macaddr_art_6: macaddr@6 {
110 reg = <0x6 0x6>;
111 };
112 };
113 };
114
115 partition@20000 {
116 compatible = "denx,uimage";
117 label = "firmware";
118 reg = <0x020000 0xfd0000>;
119 };
120
121 partition@ff0000 {
122 label = "art-backup";
123 reg = <0xff0000 0x010000>;
124 read-only;
125 };
126 };
127 };
128 };
129
130 &eth0 {
131 status = "okay";
132
133 phy-handle = <&swphy4>;
134
135 nvmem-cells = <&macaddr_art_0>;
136 nvmem-cell-names = "mac-address";
137 };
138
139 &eth1 {
140 nvmem-cells = <&macaddr_art_6>;
141 nvmem-cell-names = "mac-address";
142 };
143
144 &wmac {
145 status = "okay";
146
147 mtd-cal-data = <&art 0x1000>;
148 };
149
150 &pinmux {
151 led_wan_pin: pinmux_led_wan_pin {
152 pinctrl-single,bits = <0x4 0x0 0xff>;
153 };
154 };