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