ath79: correctly define WiFi switch for TL-WR841ND v8
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wr841-v8.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "ar9341_tplink.dtsi"
5
6 / {
7 model = "TP-Link TL-WR841N/ND v8";
8 compatible = "tplink,tl-wr841-v8", "qca,ar9341";
9
10 keys {
11 compatible = "gpio-keys";
12
13 rfkill {
14 label = "WiFi";
15 linux,code = <KEY_RFKILL>;
16 linux,input-type = <EV_SW>;
17 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
18 debounce-interval = <60>;
19 };
20
21 reset {
22 label = "Reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28 };
29
30 &spi {
31 num-cs = <1>;
32
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <25000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 uboot: partition@0 {
46 label = "u-boot";
47 reg = <0x000000 0x020000>;
48 read-only;
49 };
50
51 partition@20000 {
52 compatible = "tplink,firmware";
53 label = "firmware";
54 reg = <0x020000 0x3d0000>;
55 };
56
57 art: partition@3f0000 {
58 label = "art";
59 reg = <0x3f0000 0x010000>;
60 read-only;
61 };
62 };
63 };
64 };