7cff51a0901f995604fbfc5ef446abde75ceb796
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_netgear_sercomm.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: 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
47 reg_usb_vbus: regulator {
48 compatible = "regulator-fixed";
49 regulator-name = "usb_vbus";
50 regulator-min-microvolt = <5000000>;
51 regulator-max-microvolt = <5000000>;
52 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
53 enable-active-high;
54 };
55 };
56
57 &xhci {
58 vbus-supply = <&reg_usb_vbus>;
59 };
60
61 &pcie {
62 status = "okay";
63 };
64
65 &pcie0 {
66 wifi@0,0 {
67 compatible = "mediatek,mt76";
68 reg = <0x0 0 0 0 0>;
69 mediatek,mtd-eeprom = <&factory 0x8000>;
70 ieee80211-freq-limit = <5000000 6000000>;
71 };
72 };
73
74 &pcie1 {
75 wifi@0,0 {
76 compatible = "mediatek,mt76";
77 reg = <0x0 0 0 0 0>;
78 mediatek,mtd-eeprom = <&factory 0x0>;
79 ieee80211-freq-limit = <2400000 2500000>;
80 };
81 };
82
83 &ethernet {
84 mtd-mac-address = <&factory 0x4>;
85 };
86
87 &pinctrl {
88 state_default: pinctrl0 {
89 gpio {
90 ralink,group = "uart3", "uart2", "jtag", "wdt";
91 ralink,function = "gpio";
92 };
93 };
94 };