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