ramips: dts: mt7628an: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_asus_rt-ac1200.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_wps;
11 led-failsafe = &led_wps;
12 led-running = &led_wps;
13 led-upgrade = &led_wps;
14 label-mac-device = &ethernet;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led_wps: wps {
37 label = "blue:wps";
38 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
39 };
40
41 wlan2g {
42 label = "blue:wlan2g";
43 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46 };
47 };
48
49 &spi0 {
50 status = "okay";
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 reg = <0>;
55 spi-max-frequency = <58000000>;
56 m25p,fast-read;
57
58 partitions: partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 read-only;
73 };
74
75 factory: partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 read-only;
79
80 nvmem-layout {
81 compatible = "fixed-layout";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 eeprom_factory_0: eeprom@0 {
86 reg = <0x0 0x400>;
87 };
88
89 eeprom_factory_8000: eeprom@8000 {
90 reg = <0x8000 0x200>;
91 };
92
93 macaddr_factory_4: macaddr@4 {
94 reg = <0x4 0x6>;
95 };
96 };
97 };
98
99 partition@50000 {
100 compatible = "denx,uimage";
101 label = "firmware";
102 reg = <0x50000 0xfb0000>;
103 };
104 };
105 };
106 };
107
108 &gpio {
109 enable-leds {
110 gpio-hog;
111 line-name = "enable-leds";
112 output-low;
113 gpios = <4 GPIO_ACTIVE_HIGH>;
114 };
115 };
116
117 &ethernet {
118 nvmem-cells = <&macaddr_factory_4>;
119 nvmem-cell-names = "mac-address";
120 };
121
122 &esw {
123 mediatek,portmap = <0x3e>;
124 mediatek,led_source = <4>;
125 };
126
127 &wmac {
128 status = "okay";
129
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
132 };
133
134 &pcie {
135 status = "okay";
136 };
137
138 &pcie0 {
139 mt76@0,0 {
140 compatible = "mediatek,mt76";
141 reg = <0x0000 0 0 0 0>;
142 nvmem-cells = <&eeprom_factory_8000>;
143 nvmem-cell-names = "eeprom";
144 ieee80211-freq-limit = <5000000 6000000>;
145
146 led {
147 led-sources = <2>;
148 led-active-low;
149 };
150 };
151 };