uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.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
8 / {
9 compatible = "telco,t1", "qca,qca9531";
10 model = "Telco T1";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_rssi0;
15 led-failsafe = &led_rssi0;
16 led-running = &led_rssi0;
17 led-upgrade = &led_rssi0;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32 pinctrl-names = "default";
33 pinctrl-0 = <&jtag_disable_pins &pinmux_led_wan_pin>;
34
35 wan {
36 label = "blue:wan";
37 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
38 };
39
40 lan {
41 label = "blue:lan";
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan {
46 label = "blue:wlan";
47 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50
51 led_rssi0: 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
101 partition@20000 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x020000 0xfd0000>;
105 };
106
107 partition@ff0000 {
108 label = "art-backup";
109 reg = <0xff0000 0x010000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &eth0 {
117 status = "okay";
118
119 phy-handle = <&swphy4>;
120
121 mtd-mac-address = <&art 0x0>;
122 };
123
124 &eth1 {
125 mtd-mac-address = <&art 0x6>;
126 };
127
128 &wmac {
129 status = "okay";
130
131 mtd-cal-data = <&art 0x1000>;
132 };
133
134 &pinmux {
135 pinmux_led_wan_pin: led_wan_pin {
136 pinctrl-single,bits = <0x4 0x0 0xff>;
137 };
138 };