ath79: drop num-cs for SPI controller
[openwrt/staging/jow.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 &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
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
105 partition@20000 {
106 compatible = "denx,uimage";
107 label = "firmware";
108 reg = <0x020000 0xfd0000>;
109 };
110
111 partition@ff0000 {
112 label = "art-backup";
113 reg = <0xff0000 0x010000>;
114 read-only;
115 };
116 };
117 };
118 };
119
120 &eth0 {
121 status = "okay";
122
123 phy-handle = <&swphy4>;
124
125 mtd-mac-address = <&art 0x0>;
126 };
127
128 &eth1 {
129 mtd-mac-address = <&art 0x6>;
130 };
131
132 &wmac {
133 status = "okay";
134
135 mtd-cal-data = <&art 0x1000>;
136 };
137
138 &pinmux {
139 pinmux_led_wan_pin: led_wan_pin {
140 pinctrl-single,bits = <0x4 0x0 0xff>;
141 };
142 };