qosify: update to the latest version
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_mikrotik_routerboard-lhg-5nd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_mikrotik_routerboard-16m-nor.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mikrotik,routerboard-lhg-5nd", "qca,ar9344";
10 model = "MikroTik LHG 5nD platform";
11
12 aliases {
13 led-boot = &led_user;
14 led-failsafe = &led_user;
15 led-running = &led_user;
16 led-upgrade = &led_user;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 power {
23 label = "blue:power";
24 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
25 default-state = "on";
26 };
27
28 rssilow {
29 label = "green:rssilow";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 };
32
33 rssimediumlow {
34 label = "green:rssimediumlow";
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 };
37
38 rssimedium {
39 label = "green:rssimedium";
40 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
41 };
42
43 rssimediumhigh {
44 label = "green:rssimediumhigh";
45 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
46 };
47
48 rssihigh {
49 label = "green:rssihigh";
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 };
52
53 led_user: user {
54 label = "white:user";
55 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
56 };
57
58 lan {
59 label = "green:lan";
60 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
61 };
62 };
63
64 keys {
65 compatible = "gpio-keys";
66
67 reset {
68 label = "reset";
69 linux,code = <KEY_RESTART>;
70 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
71 debounce-interval = <60>;
72 };
73 };
74 };
75
76 &eth0 {
77 status = "okay";
78
79 phy-handle = <&swphy0>;
80
81 gmac-config {
82 device = <&gmac>;
83 switch-phy-swap = <1>;
84 };
85 };
86
87 &eth1 {
88 status = "okay";
89
90 compatible = "syscon", "simple-mfd";
91 };