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