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