ath79: DTS file style update and harmonization
[oweals/openwrt.git] / target / linux / ath79 / dts / tp9343_tplink_tl-wr940n-v4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "tp9343_tplink_tl-wr94x.dtsi"
5
6 / {
7         compatible = "tplink,tl-wr940n-v4", "qca,tp9343";
8         model = "TP-Link TL-WR940N v4";
9
10         aliases {
11                 led-boot = &led_system;
12                 led-failsafe = &led_system;
13                 led-running = &led_system;
14                 led-upgrade = &led_system;
15         };
16
17         leds {
18                 compatible = "gpio-leds";
19
20                 led_system: system {
21                         label = "tp-link:blue:system";
22                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
23                         default-state = "on";
24                 };
25
26                 qss {
27                         label = "tp-link:blue:qss";
28                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
29                 };
30
31                 wlan {
32                         label = "tp-link:blue:wlan";
33                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
34                         linux,default-trigger = "phy0tpt";
35                 };
36
37                 wan_blue {
38                         label = "tp-link:blue:wan";
39                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
40                 };
41
42                 wan_red {
43                         label = "tp-link:red:wan";
44                         gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
45                 };
46
47                 lan1 {
48                         label = "tp-link:blue:lan1";
49                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
50                 };
51
52                 lan2 {
53                         label = "tp-link:blue:lan2";
54                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
55                 };
56
57                 lan3 {
58                         label = "tp-link:blue:lan3";
59                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
60                 };
61
62                 lan4 {
63                         label = "tp-link:blue:lan4";
64                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
65                 };
66         };
67 };
68
69 &eth1 {
70         mtd-mac-address = <&uboot 0x1fc00>;
71 };