uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_r6220.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "mediatek,mt7621-soc";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,57600";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_power: power {
27 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28 };
29
30 led_usb: usb {
31 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
33 linux,default-trigger = "usbport";
34 };
35
36 led_internet: internet {
37 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
38 };
39
40 led_wifi: wifi {
41 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
42 };
43
44 led_wps: wps {
45 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys-polled";
51 poll-interval = <20>;
52
53 wps {
54 label = "wps";
55 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
56 linux,code = <KEY_WPS_BUTTON>;
57 };
58
59 wifi {
60 label = "wifi";
61 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
62 linux,code = <KEY_RFKILL>;
63 };
64
65 reset {
66 label = "reset";
67 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
68 linux,code = <KEY_RESTART>;
69 };
70 };
71
72 reg_usb_vbus: regulator {
73 compatible = "regulator-fixed";
74 regulator-name = "usb_vbus";
75 regulator-min-microvolt = <5000000>;
76 regulator-max-microvolt = <5000000>;
77 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
78 enable-active-high;
79 };
80 };
81
82 &xhci {
83 vbus-supply = <&reg_usb_vbus>;
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &pcie0 {
91 wifi@0,0 {
92 compatible = "pci14c3,7662";
93 reg = <0x0000 0 0 0 0>;
94 mediatek,mtd-eeprom = <&factory 0x8000>;
95 ieee80211-freq-limit = <5000000 6000000>;
96 };
97 };
98
99 &pcie1 {
100 wifi@0,0 {
101 compatible = "pci14c3,7603";
102 reg = <0x0000 0 0 0 0>;
103 mediatek,mtd-eeprom = <&factory 0x0000>;
104 ieee80211-freq-limit = <2400000 2500000>;
105 };
106 };
107
108 &ethernet {
109 mtd-mac-address = <&factory 0x00000004>;
110 };
111
112 &pinctrl {
113 state_default: pinctrl0 {
114 gpio {
115 ralink,group = "uart3", "uart2", "jtag", "wdt";
116 ralink,function = "gpio";
117 };
118 };
119 };