ath79: move dts-v1 statement to ath79.dtsi
[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
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 = "t1:blue:wan";
37 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
38 };
39
40 lan {
41 label = "t1:blue:lan";
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan {
46 label = "t1:blue:wlan";
47 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50
51 led_rssi0: rssi0 {
52 label = "t1:blue:rssi0";
53 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
54 };
55
56 rssi1 {
57 label = "t1:blue:rssi1";
58 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
59 };
60
61 rssi2 {
62 label = "t1:blue:rssi2";
63 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 };
65 };
66 };
67
68 &uart {
69 status = "okay";
70 };
71
72 &usb0 {
73 status = "okay";
74 };
75
76 &usb_phy {
77 status = "okay";
78 };
79
80 &spi {
81 status = "okay";
82 num-cs = <1>;
83
84 flash@0 {
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <25000000>;
88
89 partitions {
90 compatible = "fixed-partitions";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 partition@0 {
95 label = "u-boot";
96 reg = <0x000000 0x010000>;
97 read-only;
98 };
99
100 art: partition@10000 {
101 label = "art";
102 reg = <0x010000 0x010000>;
103 read-only;
104 };
105
106 partition@20000 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x020000 0xfd0000>;
110 };
111
112 partition@ff0000 {
113 label = "art-backup";
114 reg = <0xff0000 0x010000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &eth0 {
122 status = "okay";
123
124 phy-handle = <&swphy4>;
125
126 mtd-mac-address = <&art 0x0>;
127 };
128
129 &eth1 {
130 mtd-mac-address = <&art 0x6>;
131 };
132
133 &wmac {
134 status = "okay";
135
136 mtd-cal-data = <&art 0x1000>;
137 };
138
139 &pinmux {
140 pinmux_led_wan_pin: led_wan_pin {
141 pinctrl-single,bits = <0x4 0x0 0xff>;
142 };
143 };