5448b7beb0e7fc8d191f6aa2df6be8f824b9c0bc
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_mikrotik_routerboard-lhg-hb.dtsi
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-lhg-hb", "qca,qca9533";
7 model = "MikroTik RouterBOARD LHG-HB platform";
8
9 aliases {
10 led-boot = &led_user;
11 led-failsafe = &led_user;
12 led-upgrade = &led_user;
13 led-running = &led_user;
14 serial0 = &uart;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19 pinctrl-names = "default";
20 pinctrl-0 = <&led_wan_pin>;
21
22 power {
23 label = "blue:power";
24 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
25 default-state = "on";
26 };
27
28 led_user: user {
29 label = "green:user";
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 };
32
33 lan {
34 label = "green:lan";
35 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
36 };
37
38 wlan {
39 label = "green:wlan";
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy0tpt";
42 };
43
44 rssilow {
45 label = "green:rssilow";
46 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
47 };
48
49 rssimediumlow {
50 label = "green:rssimediumlow";
51 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
52 };
53
54 rssimediumhigh {
55 label = "green:rssimediumhigh";
56 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
57 };
58
59 /* The rssihigh LED GPIO 16 is shared with the reset button, so it remains
60 unregistered here to avoid conflict.
61
62 rssihigh {
63 label = "green:rssihigh";
64 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
65 };
66 */
67 };
68 };
69
70 &eth0 {
71 status = "okay";
72
73 phy-handle = <&swphy0>;
74
75 gmac-config {
76 device = <&gmac>;
77 switch-phy-swap = <1>;
78 };
79 };
80
81 &eth1 {
82 compatible = "syscon", "simple-mfd";
83 };
84
85 &pinmux {
86 led_wan_pin: pinmux_led_wan_pin {
87 pinctrl-single,bits = <0x4 0x0 0xff>;
88 };
89 };