ath79: drop num-cs for SPI controller
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_tplink_tl-mr6400-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,tl-mr6400-v1", "qca,qca9531";
10 model = "TP-Link TL-MR6400 v1";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &wmac;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 /* D12 */
24 wan {
25 label = "white:wan";
26 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
27 };
28
29 /* D11 */
30 4g {
31 label = "white:4g";
32 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
33 };
34
35 /* D5 */
36 wps {
37 label = "white:wps";
38 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
39 };
40
41 /* D3 */
42 wlan {
43 label = "white:wlan";
44 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "phy0tpt";
46 };
47
48 /* D2 */
49 led_power: power {
50 label = "white:power";
51 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
52 };
53
54 /* D4 */
55 lan {
56 label = "white:lan";
57 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
58 };
59 };
60
61 keys {
62 compatible = "gpio-keys";
63
64 /* SW2 */
65 reset {
66 label = "Reset button";
67 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
69 debounce-interval = <60>;
70 };
71
72 /* SW3 */
73 rfkill {
74 label = "RF kill button";
75 linux,code = <KEY_RFKILL>;
76 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
78 };
79 };
80
81 gpio-export {
82 compatible = "gpio-export";
83
84 gpio_usb_power {
85 gpio-export,name = "tp-link:power:lte";
86 gpio-export,output = <0>;
87 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
88 };
89 };
90 };
91
92 &uart {
93 status = "okay";
94 };
95
96 &spi {
97 status = "okay";
98
99 flash@0 {
100 compatible = "jedec,spi-nor";
101 reg = <0>;
102 spi-max-frequency = <25000000>;
103
104 partitions {
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 uboot: partition@0 {
110 label = "u-boot";
111 reg = <0x000000 0x020000>;
112 read-only;
113 };
114
115 partition@20000 {
116 compatible = "tplink,firmware";
117 label = "firmware";
118 reg = <0x020000 0x7d0000>;
119 };
120
121 art: partition@7f0000 {
122 label = "art";
123 reg = <0x7f0000 0x010000>;
124 read-only;
125 };
126 };
127 };
128 };
129
130 &eth0 {
131 status = "okay";
132
133 phy-handle = <&swphy0>;
134
135 mtd-mac-address = <&uboot 0x1fc00>;
136 mtd-mac-address-increment = <1>;
137 };
138
139 &eth1 {
140 mtd-mac-address = <&uboot 0x1fc00>;
141 mtd-mac-address-increment = <(-1)>;
142 };
143
144 &wmac {
145 status = "okay";
146
147 mtd-cal-data = <&art 0x1000>;
148 mtd-mac-address = <&uboot 0x1fc00>;
149 };
150
151 &usb0 {
152 #address-cells = <1>;
153 #size-cells = <0>;
154 status = "okay";
155
156 hub_port: port@1 {
157 reg = <1>;
158 #trigger-source-cells = <0>;
159 };
160 };
161
162 &usb_phy {
163 status = "okay";
164 };