ath79: provide label MAC address
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_tl-wdr3500-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "ar9344_tplink_tl-wdrxxxx.dtsi"
5
6 / {
7         model = "TP-Link TL-WDR3500 v1";
8         compatible = "tplink,tl-wdr3500-v1", "qca,ar9344";
9
10         aliases {
11                 label-mac-device = &wmac;
12         };
13 };
14
15 &leds {
16         usb {
17                 label = "tp-link:green:usb";
18                 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
19                 linux,default-trigger = "usbport";
20                 trigger-sources = <&hub_port>;
21         };
22 };
23
24 &gpio {
25         usb_power {
26                 gpio-hog;
27                 gpios = <12 GPIO_ACTIVE_HIGH>;
28                 output-high;
29                 line-name = "tp-link:power:usb";
30         };
31 };
32
33 &pinmux {
34         pmx_led_wan_lan: pinmux_led_wan_lan {
35                 pinctrl-single,bits = <0x10 0x2c2d0000 0xffff0000>,
36                         <0x14 0x292a2b 0xffffff>;
37         };
38 };
39
40 &builtin_switch {
41         pinctrl-names = "default";
42         pinctrl-0 = <&pmx_led_wan_lan>;
43 };
44
45 &usb {
46         #address-cells = <1>;
47         #size-cells = <0>;
48         status = "okay";
49
50         hub_port: port@1 {
51                 reg = <1>;
52                 #trigger-source-cells = <0>;
53         };
54 };
55
56 &usb_phy {
57         status = "okay";
58 };
59
60 &ath9k {
61         mtd-mac-address = <&uboot 0x1fc00>;
62         mtd-mac-address-increment = <1>;
63 };
64
65 &wmac {
66         mtd-mac-address = <&uboot 0x1fc00>;
67 };
68
69 &eth1 {
70         status = "okay";
71
72         mtd-mac-address = <&uboot 0x1fc00>;
73         mtd-mac-address-increment = <(-1)>;
74
75         gmac-config {
76                 device = <&gmac>;
77                 switch-phy-swap = <0>;
78                 switch-only-mode = <1>;
79         };
80 };
81
82 &eth0 {
83         status = "okay";
84
85         phy-handle = <&swphy4>;
86
87         mtd-mac-address = <&uboot 0x1fc00>;
88         mtd-mac-address-increment = <2>;
89 };