ath79: TP-Link EAP245 v3: convert radios to nvmem-cells
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_mikrotik_routerboard-wap-2nd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9533_mikrotik_routerboard-16m.dtsi"
4
5 / {
6 compatible = "mikrotik,routerboard-wap-2nd", "qca,qca9533";
7 model = "MikroTik RouterBOARD wAP-2nD (wAP)";
8
9 aliases {
10 led-boot = &led_user;
11 led-failsafe = &led_user;
12 led-running = &led_user;
13 led-upgrade = &led_user;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18 pinctrl-names = "default";
19 pinctrl-0 = <&led_lan_pin>;
20
21 lan {
22 label = "green:lan";
23 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
24 };
25
26 wlan {
27 label = "green:wlan";
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy0tpt";
30 };
31
32 led_user: user {
33 label = "green:user";
34 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 };
36 };
37 };
38
39 &eth0 {
40 status = "okay";
41
42 phy-handle = <&swphy0>;
43
44 gmac-config {
45 device = <&gmac>;
46 switch-phy-swap = <1>;
47 };
48 };
49
50 &eth1 {
51 compatible = "syscon", "simple-mfd";
52 };
53
54 &pinmux {
55 led_lan_pin: pinmux_led_lan_pin {
56 pinctrl-single,bits = <0x4 0x0 0xff>;
57 };
58 };