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>;
62 compatible = "fixed-layout";
66 macaddr_uboot_1fc00: macaddr@1fc00 {
73 compatible = "tplink,firmware";
75 reg = <0x020000 0x3d0000>;
78 art: partition@3f0000 {
80 reg = <0x3f0000 0x010000>;
87 ð0 { // WAN port, initialized last as eth1
88 nvmem-cells = <&macaddr_uboot_1fc00>;
89 nvmem-cell-names = "mac-address";
90 mac-address-increment = <1>;
93 ð1 { // LAN ports, initialized first as eth0
94 nvmem-cells = <&macaddr_uboot_1fc00>;
95 nvmem-cell-names = "mac-address";
99 mtd-cal-data = <&art 0x1000>;
101 nvmem-cells = <&macaddr_uboot_1fc00>;
102 nvmem-cell-names = "mac-address";