9313b4c38eddc987ec48ec0692f82f29d2fc2035
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_ayx.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mediatek,mt7621-soc";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = &gmac0;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 wps {
23 label = "wps";
24 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27
28 wifi {
29 label = "wifi";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
46 };
47
48 led_usb: usb {
49 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
51 linux,default-trigger = "usbport";
52 };
53
54 led_internet: internet {
55 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
56 };
57
58 led_wifi: wifi {
59 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62
63 led_wps: wps {
64 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
65 };
66 };
67
68 reg_usb_vbus: regulator {
69 compatible = "regulator-fixed";
70 regulator-name = "usb_vbus";
71 regulator-min-microvolt = <5000000>;
72 regulator-max-microvolt = <5000000>;
73 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
74 enable-active-high;
75 };
76 };
77
78 &xhci {
79 vbus-supply = <&reg_usb_vbus>;
80 };
81
82 &pcie {
83 status = "okay";
84 };
85
86 &pcie0 {
87 wifi@0,0 {
88 compatible = "mediatek,mt76";
89 reg = <0x0 0 0 0 0>;
90 mediatek,mtd-eeprom = <&factory 0x8000>;
91 ieee80211-freq-limit = <5000000 6000000>;
92 };
93 };
94
95 &pcie1 {
96 wifi@0,0 {
97 compatible = "mediatek,mt76";
98 reg = <0x0 0 0 0 0>;
99 mediatek,mtd-eeprom = <&factory 0x0>;
100 ieee80211-freq-limit = <2400000 2500000>;
101 };
102 };
103
104 &gmac0 {
105 mtd-mac-address = <&factory 0x4>;
106 };
107
108 &switch0 {
109 ports {
110 port@0 {
111 status = "okay";
112 label = "lan4";
113 };
114
115 port@1 {
116 status = "okay";
117 label = "lan3";
118 };
119
120 port@2 {
121 status = "okay";
122 label = "lan2";
123 };
124
125 port@3 {
126 status = "okay";
127 label = "lan1";
128 };
129
130 port@4 {
131 status = "okay";
132 label = "wan";
133 mtd-mac-address = <&factory 0x4>;
134 mtd-mac-address-increment = <1>;
135 };
136 };
137 };
138
139 &state_default {
140 gpio {
141 groups = "uart3", "uart2", "jtag", "wdt";
142 function = "gpio";
143 };
144 };