mediatek: mt7988a: sync dts compatible string
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wr842n-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-WR842N/ND v2";
7 compatible = "tplink,tl-wr842n-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";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25 };
26
27 gpio-export {
28 compatible = "gpio-export";
29
30 gpio_usb_power {
31 gpio-export,name = "tp-link:power:usb";
32 gpio-export,output = <1>;
33 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
34 };
35 };
36 };
37
38 &leds {
39 usb {
40 label = "green:usb";
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42 trigger-sources = <&hub_port>;
43 linux,default-trigger = "usbport";
44 };
45 };
46
47 &spi {
48 status = "okay";
49
50 flash@0 {
51 compatible = "jedec,spi-nor";
52 reg = <0>;
53 spi-max-frequency = <25000000>;
54
55 partitions {
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 uboot: partition@0 {
61 label = "u-boot";
62 reg = <0x000000 0x020000>;
63 read-only;
64 };
65
66 partition@20000 {
67 compatible = "tplink,firmware";
68 label = "firmware";
69 reg = <0x020000 0x7d0000>;
70 };
71
72 art: partition@7f0000 {
73 label = "art";
74 reg = <0x7f0000 0x010000>;
75 read-only;
76 };
77 };
78 };
79 };
80
81 &usb {
82 #address-cells = <1>;
83 #size-cells = <0>;
84 status = "okay";
85
86 hub_port: port@1 {
87 reg = <1>;
88 #trigger-source-cells = <0>;
89 };
90 };
91
92 &usb_phy {
93 status = "okay";
94 };
95
96 &eth1 {
97 phy-handle = <&swphy4>;
98 };