ath79: fix dts warnings
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9331_tplink_tl-wr741nd-v4.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 "ar9331.dtsi"
8
9 / {
10 compatible = "tplink,tl-wr741n-v4", "qca,ar9331";
11 model = "TP-Link TL-WR741N/ND v4";
12
13 aliases {
14 serial0 = &uart;
15 led-status = &led_system;
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 poll-interval = <20>;
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 label = "wps";
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
33 debounce-interval = <60>;
34 };
35 };
36
37 gpio-leds {
38 compatible = "gpio-leds";
39 pinctrl-names = "default";
40 pinctrl-0 = <&switch_led_pins>;
41
42 lan1 {
43 label = "tp-link:green:lan1";
44 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
45 };
46
47 lan2 {
48 label = "tp-link:green:lan2";
49 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
50 };
51
52 lan3 {
53 label = "tp-link:green:lan3";
54 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
55 };
56
57 lan4 {
58 label = "tp-link:green:lan4";
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
60 };
61
62 qss {
63 label = "tp-link:green:qss";
64 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
65 };
66
67 led_system: system {
68 label = "tp-link:green:system";
69 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
70 };
71
72 wan {
73 label = "tp-link:green:wan";
74 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
75 };
76
77 wlan {
78 label = "tp-link:green:wlan";
79 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
80 default-state = "off";
81 linux,default-trigger = "phy0tpt";
82 };
83 };
84 };
85
86 &spi {
87 status = "okay";
88 num-cs = <1>;
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <25000000>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 uboot: partition@0 {
101 reg = <0x0 0x20000>;
102 label = "u-boot";
103 read-only;
104 };
105
106 firmware: partition@20000 {
107 reg = <0x20000 0x3d0000>;
108 label = "firmware";
109 };
110
111 art: partition@3f0000 {
112 reg = <0x3f0000 0x10000>;
113 label = "art";
114 read-only;
115 };
116 };
117 };
118 };
119
120 &eth0 {
121 status = "okay";
122
123 mtd-mac-address = <&uboot 0x1fc00>;
124 mtd-mac-address-increment = <1>;
125
126 gmac-config {
127 device = <&gmac>;
128
129 switch-phy-addr-swap = <1>;
130 switch-phy-swap = <1>;
131 };
132 };
133
134 &eth1 {
135 status = "okay";
136
137 mtd-mac-address = <&uboot 0x1fc00>;
138 mtd-mac-address-increment = <(-1)>;
139 };
140
141 &gpio {
142 status = "okay";
143 };
144
145 &uart {
146 status = "okay";
147 };
148
149 &wmac {
150 status = "okay";
151 mtd-cal-data = <&art 0x1000>;
152 mtd-mac-address = <&uboot 0x1fc00>;
153 };