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