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