ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wr842n-v2.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-WR842N/ND v2";
8         compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
9
10         gpio-export {
11                 compatible = "gpio-export";
12
13                 gpio_usb_power {
14                         gpio-export,name = "tp-link:power:usb";
15                         gpio-export,output = <1>;
16                         gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
17                 };
18         };
19 };
20
21 &keys {
22         reset {
23                 label = "Reset";
24                 linux,code = <KEY_RESTART>;
25                 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26                 debounce-interval = <60>;
27         };
28 };
29
30 &leds {
31         usb {
32                 label = "tp-link:green:usb";
33                 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
34                 trigger-sources = <&hub_port>;
35                 linux,default-trigger = "usbport";
36         };
37 };
38
39 &spi {
40         status = "okay";
41
42         num-cs = <1>;
43
44         flash@0 {
45                 compatible = "jedec,spi-nor";
46                 reg = <0>;
47                 spi-max-frequency = <25000000>;
48
49                 partitions {
50                         compatible = "fixed-partitions";
51                         #address-cells = <1>;
52                         #size-cells = <1>;
53
54                         uboot: partition@0 {
55                                 label = "u-boot";
56                                 reg = <0x000000 0x020000>;
57                                 read-only;
58                         };
59
60                         partition@20000 {
61                                 compatible = "tplink,firmware";
62                                 label = "firmware";
63                                 reg = <0x020000 0x7d0000>;
64                         };
65
66                         art: partition@7f0000 {
67                                 label = "art";
68                                 reg = <0x7f0000 0x010000>;
69                                 read-only;
70                         };
71                 };
72         };
73 };
74
75 &usb {
76         #address-cells = <1>;
77         #size-cells = <0>;
78         status = "okay";
79
80         hub_port: port@1 {
81                 reg = <1>;
82                 #trigger-source-cells = <0>;
83         };
84 };
85
86 &usb_phy {
87         status = "okay";
88 };
89
90 &eth1 {
91         phy-handle = <&swphy4>;
92 };