44dec9ef85ac1d418400230d6f619085700fc4f7
[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 label-mac-device = &ethernet;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,57600";
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 led_power: power {
28 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
29 };
30
31 led_usb: usb {
32 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
34 linux,default-trigger = "usbport";
35 };
36
37 led_internet: internet {
38 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
39 };
40
41 led_wifi: wifi {
42 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 led_wps: wps {
47 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys-polled";
53 poll-interval = <20>;
54
55 wps {
56 label = "wps";
57 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
58 linux,code = <KEY_WPS_BUTTON>;
59 };
60
61 wifi {
62 label = "wifi";
63 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
64 linux,code = <KEY_RFKILL>;
65 };
66
67 reset {
68 label = "reset";
69 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
70 linux,code = <KEY_RESTART>;
71 };
72 };
73
74 reg_usb_vbus: regulator {
75 compatible = "regulator-fixed";
76 regulator-name = "usb_vbus";
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
79 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
80 enable-active-high;
81 };
82 };
83
84 &xhci {
85 vbus-supply = <&reg_usb_vbus>;
86 };
87
88 &pcie {
89 status = "okay";
90 };
91
92 &pcie0 {
93 wifi@0,0 {
94 compatible = "pci14c3,7662";
95 reg = <0x0000 0 0 0 0>;
96 mediatek,mtd-eeprom = <&factory 0x8000>;
97 ieee80211-freq-limit = <5000000 6000000>;
98 };
99 };
100
101 &pcie1 {
102 wifi@0,0 {
103 compatible = "pci14c3,7603";
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x0000>;
106 ieee80211-freq-limit = <2400000 2500000>;
107 };
108 };
109
110 &ethernet {
111 mtd-mac-address = <&factory 0x4>;
112 };
113
114 &pinctrl {
115 state_default: pinctrl0 {
116 gpio {
117 ralink,group = "uart3", "uart2", "jtag", "wdt";
118 ralink,function = "gpio";
119 };
120 };
121 };