tools/patchelf: update to 0.18.0
[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
3 #include "ar9341_tplink.dtsi"
4
5 / {
6 model = "TP-Link TL-MR3420 v2";
7 compatible = "tplink,tl-mr3420-v2", "qca,ar9341";
8
9 aliases {
10 label-mac-device = &wmac;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 rfkill {
17 label = "WiFi";
18 linux,code = <KEY_RFKILL>;
19 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
20 debounce-interval = <60>;
21 };
22
23 reset {
24 label = "Reset/WPS";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
27 debounce-interval = <60>;
28 };
29 };
30 };
31
32 &leds {
33 usb {
34 label = "green:usb";
35 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
36 trigger-sources = <&hub_port>;
37 linux,default-trigger = "usbport";
38 };
39 };
40
41 &gpio {
42 usb_power {
43 gpio-hog;
44 gpios = <4 GPIO_ACTIVE_HIGH>;
45 output-high;
46 line-name = "tp-link:power:usb";
47 };
48 };
49
50 &spi {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <25000000>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 uboot: partition@0 {
64 label = "u-boot";
65 reg = <0x000000 0x020000>;
66 read-only;
67 };
68
69 partition@20000 {
70 compatible = "tplink,firmware";
71 label = "firmware";
72 reg = <0x020000 0x3d0000>;
73 };
74
75 art: partition@3f0000 {
76 label = "art";
77 reg = <0x3f0000 0x010000>;
78 read-only;
79 };
80 };
81 };
82 };
83
84 &usb {
85 status = "okay";
86 };
87
88 &usb_phy {
89 status = "okay";
90 };
91
92 &eth0 {
93 nvmem-cells = <&macaddr_uboot_1fc00>;
94 nvmem-cell-names = "mac-address";
95 mac-address-increment = <(-1)>;
96 };
97
98 &eth1 {
99 nvmem-cells = <&macaddr_uboot_1fc00>;
100 nvmem-cell-names = "mac-address";
101 };
102
103 &wmac {
104 mtd-cal-data = <&art 0x1000>;
105
106 nvmem-cells = <&macaddr_uboot_1fc00>;
107 nvmem-cell-names = "mac-address";
108 };
109
110 &uboot {
111 compatible = "nvmem-cells";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 macaddr_uboot_1fc00: macaddr@1fc00 {
116 reg = <0x1fc00 0x6>;
117 };
118 };