ramips: add support for Ubiquiti UniFi 6 Lite
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_unifi.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_white;
11 led-failsafe = &led_white;
12 led-running = &led_blue;
13 led-upgrade = &led_blue;
14 label-mac-device = &gmac0;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_blue: dome_blue {
25 label = "blue:dome";
26 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
27 };
28
29 led_white: dome_white {
30 label = "white:dome";
31 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "reset";
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44 };
45
46 &pcie {
47 status = "okay";
48 };
49
50 &pcie0 {
51 wlan_2g: wifi@0,0 {
52 reg = <0x0 0 0 0 0>;
53 mediatek,mtd-eeprom = <&factory 0x0>;
54 };
55 };
56
57 &pcie1 {
58 wlan_5g: wifi@0,0 {
59 reg = <0x0 0 0 0 0>;
60 };
61 };
62
63 &gmac0 {
64 mtd-mac-address = <&eeprom 0x0>;
65 };
66
67 &switch0 {
68 ports {
69 port@0 {
70 status = "okay";
71 label = "lan";
72 };
73 };
74 };
75
76 &state_default {
77 gpio {
78 groups = "i2c", "uart2";
79 function = "gpio";
80 };
81 };