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