1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "ar9341_tplink.dtsi"
6 model = "TP-Link TL-WR941ND v5";
7 compatible = "tplink,tl-wr941nd-v5", "qca,ar9341";
10 label-mac-device = &wmac;
14 compatible = "gpio-keys";
18 linux,code = <KEY_RFKILL>;
19 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
35 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
39 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
47 compatible = "jedec,spi-nor";
49 spi-max-frequency = <25000000>;
52 compatible = "fixed-partitions";
58 reg = <0x000000 0x020000>;
63 compatible = "tplink,firmware";
65 reg = <0x020000 0x3d0000>;
68 art: partition@3f0000 {
70 reg = <0x3f0000 0x010000>;
77 ð0 { // WAN port, initialized last as eth1
78 nvmem-cells = <&macaddr_uboot_1fc00>;
79 nvmem-cell-names = "mac-address";
80 mac-address-increment = <1>;
83 ð1 { // LAN ports, initialized first as eth0
84 nvmem-cells = <&macaddr_uboot_1fc00>;
85 nvmem-cell-names = "mac-address";
89 mtd-cal-data = <&art 0x1000>;
91 nvmem-cells = <&macaddr_uboot_1fc00>;
92 nvmem-cell-names = "mac-address";
96 compatible = "nvmem-cells";
100 macaddr_uboot_1fc00: macaddr@1fc00 {