ramips: add proper system clock and reset driver support for legacy SoCs
[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 };
54 };
55
56 &pcie1 {
57 wlan_5g: wifi@0,0 {
58 reg = <0x0 0 0 0 0>;
59 };
60 };
61
62 &switch0 {
63 ports {
64 port@0 {
65 status = "okay";
66 label = "lan";
67 };
68 };
69 };
70
71 &state_default {
72 gpio {
73 groups = "i2c", "uart2";
74 function = "gpio";
75 };
76 };