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 {
67 compatible = "mac-base";
69 #nvmem-cell-cells = <1>;
75 compatible = "tplink,firmware";
77 reg = <0x020000 0x3d0000>;
80 art: partition@3f0000 {
82 reg = <0x3f0000 0x010000>;
89 ð0 { // WAN port, initialized last as eth1
90 nvmem-cells = <&macaddr_uboot_1fc00 1>;
91 nvmem-cell-names = "mac-address";
94 ð1 { // LAN ports, initialized first as eth0
95 nvmem-cells = <&macaddr_uboot_1fc00 0>;
96 nvmem-cell-names = "mac-address";
100 mtd-cal-data = <&art 0x1000>;
102 nvmem-cells = <&macaddr_uboot_1fc00 0>;
103 nvmem-cell-names = "mac-address";