1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-wr941n-v7-cn", "qca,qca9558";
10 model = "TP-Link TL-WR941N v7 (CN)";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = ð0;
21 compatible = "gpio-leds";
24 label = "green:system";
25 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy0tpt";
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
53 linux,code = <KEY_WPS_BUTTON>;
54 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
55 debounce-interval = <60>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <25000000>;
69 compatible = "fixed-partitions";
75 reg = <0x000000 0x020000>;
79 compatible = "fixed-layout";
83 macaddr_uboot_1fc00: macaddr@1fc00 {
90 compatible = "tplink,firmware";
92 reg = <0x020000 0x3d0000>;
95 art: partition@7f0000 {
97 reg = <0x3f0000 0x010000>;
108 compatible = "qca,ar8236";
116 nvmem-cells = <&macaddr_uboot_1fc00>;
117 nvmem-cell-names = "mac-address";
126 mtd-cal-data = <&art 0x1000>;
127 nvmem-cells = <&macaddr_uboot_1fc00>;
128 nvmem-cell-names = "mac-address";