ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043n.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 "qca956x.dtsi"
7
8 / {
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &wmac;
15 };
16
17 leds: leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "tp-link:green:system";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "heartbeat";
24 };
25
26 wifi_green {
27 label = "tp-link:green:wlan";
28 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy0tpt";
30 };
31
32 wifi_wps {
33 label = "tp-link:green:wps";
34 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
35 };
36
37 wan {
38 label = "tp-link:green:wan";
39 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
40 };
41
42 wan_fail {
43 label = "tp-link:orange:wan";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45 };
46
47 lan1 {
48 label = "tp-link:green:lan1";
49 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
50 };
51
52 lan2 {
53 label = "tp-link:green:lan2";
54 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55 };
56
57 lan3 {
58 label = "tp-link:green:lan3";
59 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
60 };
61
62 lan4 {
63 label = "tp-link:green:lan4";
64 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
65 };
66 };
67
68 keys {
69 compatible = "gpio-keys";
70
71 reset {
72 label = "Reset button";
73 linux,code = <KEY_RESTART>;
74 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
75 debounce-interval = <60>;
76 };
77
78 wifi {
79 label = "RFKILL button";
80 linux,code = <KEY_RFKILL>;
81 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
82 debounce-interval = <60>;
83 };
84 };
85 };
86
87 &uart {
88 status = "okay";
89 };
90
91 &gpio {
92 status = "okay";
93 };
94
95 &mdio0 {
96 status = "okay";
97
98 phy-mask = <0>;
99 phy0: ethernet-phy@0 {
100 reg = <0>;
101 phy-mode = "sgmii";
102 qca,mib-poll-interval = <500>;
103
104 qca,ar8327-initvals = <
105 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
106 0x7c 0x0000007e /* PORT0_STATUS */
107 >;
108 };
109 };
110
111 &eth0 {
112 status = "okay";
113
114 mtd-mac-address = <&info 0x8>;
115 phy-mode = "sgmii";
116 phy-handle = <&phy0>;
117 };
118
119 &wmac {
120 status = "okay";
121
122 mtd-cal-data = <&art 0x1000>;
123 mtd-mac-address = <&info 0x8>;
124 };