ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr841.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca953x.dtsi"
7
8 / {
9         aliases {
10                 label-mac-device = &wmac;
11         };
12
13         leds: leds {
14                 compatible = "gpio-leds";
15
16                 wifi {
17                         label = "tp-link:green:wlan";
18                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
19                         linux,default-trigger = "phy0tpt";
20                 };
21
22                 led_qss: qss {
23                         label = "tp-link:green:qss";
24                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
25                 };
26
27                 wan {
28                         label = "tp-link:green:wan";
29                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
30                 };
31
32                 lan1 {
33                         label = "tp-link:green:lan1";
34                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
35                 };
36
37                 lan2 {
38                         label = "tp-link:green:lan2";
39                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
40                 };
41
42                 lan3 {
43                         label = "tp-link:green:lan3";
44                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
45                 };
46
47                 lan4 {
48                         label = "tp-link:green:lan4";
49                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
50                 };
51         };
52
53         keys {
54                 compatible = "gpio-keys";
55
56                 reset {
57                         label = "Reset button";
58                         linux,code = <KEY_RESTART>;
59                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
60                         debounce-interval = <60>;
61                 };
62
63                 rfkill {
64                         label = "RFKILL button";
65                         linux,code = <KEY_RFKILL>;
66                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67                         debounce-interval = <60>;
68                 };
69         };
70 };
71
72 &uart {
73         status = "okay";
74 };
75
76 &spi {
77         status = "okay";
78
79         num-cs = <1>;
80
81         flash@0 {
82                 compatible = "jedec,spi-nor";
83                 reg = <0>;
84                 spi-max-frequency = <25000000>;
85
86                 partitions {
87                         compatible = "fixed-partitions";
88                         #address-cells = <1>;
89                         #size-cells = <1>;
90
91                         uboot: partition@0 {
92                                 label = "u-boot";
93                                 reg = <0x000000 0x020000>;
94                                 read-only;
95                         };
96
97                         partition@20000 {
98                                 compatible = "tplink,firmware";
99                                 label = "firmware";
100                                 reg = <0x020000 0x3d0000>;
101                         };
102
103                         art: partition@3f0000 {
104                                 label = "art";
105                                 reg = <0x3f0000 0x010000>;
106                                 read-only;
107                         };
108                 };
109         };
110 };
111
112 &eth1 {
113         mtd-mac-address = <&uboot 0x1fc00>;
114 };
115
116 &eth0 {
117         status = "okay";
118
119         phy-handle = <&swphy4>;
120
121         mtd-mac-address = <&uboot 0x1fc00>;
122         mtd-mac-address-increment = <1>;
123 };
124
125 &wmac {
126         status = "okay";
127
128         mtd-cal-data = <&art 0x1000>;
129         mtd-mac-address = <&uboot 0x1fc00>;
130 };