treewide: remove dts-v1 identifier from DTSI files
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_tplink.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 "ar9341.dtsi"
7
8 / {
9 aliases {
10 serial0 = &uart;
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = &wmac;
16 };
17
18 keys: keys {
19 compatible = "gpio-keys";
20
21 pinctrl-names = "default";
22 pinctrl-0 = <&jtag_disable_pins>;
23
24 rfkill {
25 label = "WiFi";
26 linux,code = <KEY_RFKILL>;
27 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds: leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "tp-link:green:power";
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 wlan {
42 label = "tp-link:green:wlan";
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46
47 qss {
48 label = "tp-link:green:qss";
49 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
50 };
51
52 wan {
53 label = "tp-link:green:wan";
54 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
55 };
56
57 lan1 {
58 label = "tp-link:green:lan1";
59 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
60 };
61
62 lan2 {
63 label = "tp-link:green:lan2";
64 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
65 };
66
67 lan3 {
68 label = "tp-link:green:lan3";
69 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
70 };
71
72 lan4 {
73 label = "tp-link:green:lan4";
74 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &ref {
80 clock-frequency = <25000000>;
81 };
82
83 &uart {
84 status = "okay";
85 };
86
87 &gpio {
88 status = "okay";
89 };
90
91 &eth0 {
92 status = "okay";
93
94 phy-handle = <&swphy0>;
95
96 mtd-mac-address = <&uboot 0x1fc00>;
97 mtd-mac-address-increment = <(-1)>;
98 };
99
100 &eth1 {
101 mtd-mac-address = <&uboot 0x1fc00>;
102
103 gmac-config {
104 device = <&gmac>;
105 switch-phy-swap = <1>;
106 };
107 };
108
109 &wmac {
110 status = "okay";
111
112 mtd-cal-data = <&art 0x1000>;
113 mtd-mac-address = <&uboot 0x1fc00>;
114 };