ath79: drop num-cs for SPI controller
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_tplink_tl-mr3420-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341_tplink.dtsi"
4
5 / {
6 model = "TP-Link TL-MR3420 v2";
7 compatible = "tplink,tl-mr3420-v2", "qca,ar9341";
8
9 keys {
10 compatible = "gpio-keys";
11
12 rfkill {
13 label = "WiFi";
14 linux,code = <KEY_RFKILL>;
15 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
16 debounce-interval = <60>;
17 };
18
19 reset {
20 label = "Reset/WPS";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
23 debounce-interval = <60>;
24 };
25 };
26 };
27
28 &leds {
29 usb {
30 label = "green:usb";
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&hub_port>;
33 linux,default-trigger = "usbport";
34 };
35 };
36
37 &gpio {
38 usb_power {
39 gpio-hog;
40 gpios = <4 GPIO_ACTIVE_HIGH>;
41 output-high;
42 line-name = "tp-link:power:usb";
43 };
44 };
45
46 &spi {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <25000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 uboot: partition@0 {
60 label = "u-boot";
61 reg = <0x000000 0x020000>;
62 read-only;
63 };
64
65 partition@20000 {
66 compatible = "tplink,firmware";
67 label = "firmware";
68 reg = <0x020000 0x3d0000>;
69 };
70
71 art: partition@3f0000 {
72 label = "art";
73 reg = <0x3f0000 0x010000>;
74 read-only;
75 };
76 };
77 };
78 };
79
80 &usb {
81 #address-cells = <1>;
82 #size-cells = <0>;
83 status = "okay";
84
85 hub_port: port@1 {
86 reg = <1>;
87 #trigger-source-cells = <0>;
88 };
89 };
90
91 &usb_phy {
92 status = "okay";
93 };