ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_tplink.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 leds: leds {
17 compatible = "gpio-leds";
18
19 led_power: power {
20 label = "green:power";
21 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
22 default-state = "on";
23 };
24
25 wlan {
26 label = "green:wlan";
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 qss {
32 label = "green:qss";
33 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
34 };
35
36 wan {
37 label = "green:wan";
38 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
39 };
40
41 lan1 {
42 label = "green:lan1";
43 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
44 };
45
46 lan2 {
47 label = "green:lan2";
48 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
49 };
50
51 lan3 {
52 label = "green:lan3";
53 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
54 };
55
56 lan4 {
57 label = "green:lan4";
58 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &ref {
64 clock-frequency = <25000000>;
65 };
66
67 &gpio {
68 pinctrl-names = "default";
69 pinctrl-0 = <&jtag_disable_pins &pmx_usb_power>;
70 };
71
72 &pinmux {
73 pmx_usb_power: usb_power {
74 pinctrl-single,bits = <0x4 0x0 0xff>;
75 };
76 };
77
78 &eth0 {
79 status = "okay";
80
81 phy-handle = <&swphy0>;
82 };
83
84 &eth1 {
85 gmac-config {
86 device = <&gmac>;
87 switch-phy-swap = <1>;
88 };
89 };
90
91 &wmac {
92 status = "okay";
93 };