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