1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
12 label-mac-device = &gmac0;
16 stdout-path = "serial0:115200n8";
17 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512";
22 proc-supply = <&mt6380_vcpu_reg>;
23 sram-supply = <&mt6380_vm_reg>;
27 proc-supply = <&mt6380_vcpu_reg>;
28 sram-supply = <&mt6380_vm_reg>;
33 compatible = "gpio-keys";
36 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
42 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
49 reg = <0 0x40000000 0 0x40000000>;
58 pinctrl-names = "default";
59 pinctrl-0 = <ð_pins>;
63 compatible = "mediatek,eth-mac";
64 phy-mode = "2500base-x";
66 nvmem-cells = <&macaddr_odm 1>;
67 nvmem-cell-names = "mac-address";
80 compatible = "mediatek,mt7531";
83 #interrupt-cells = <1>;
84 interrupt-parent = <&pio>;
85 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
86 reset-gpios = <&pio 54 0>;
92 nvmem-cells = <&macaddr_odm 0>;
93 nvmem-cell-names = "mac-address";
99 phy-mode = "2500base-x";
113 pinctrl-names = "default";
114 pinctrl-0 = <&pcie0_pins>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pcie1_pins>;
125 epa_elna_pins: epa-elna-pins {
128 groups = "antsel0", "antsel1", "antsel2", "antsel3",
129 "antsel4", "antsel5", "antsel6", "antsel7",
130 "antsel8", "antsel9", "antsel12", "antsel13",
131 "antsel14", "antsel15", "antsel16", "antsel17";
138 groups = "mdc_mdio", "rgmii_via_gmac2";
142 pcie0_pins: pcie0-pins {
145 groups = "pcie0_pad_perst",
151 pcie1_pins: pcie1-pins {
154 groups = "pcie1_pad_perst",
160 pmic_bus_pins: pmic-bus-pins {
167 /* Serial NAND is shared pin with SPI-NOR */
168 serial_nand_pins: serial-nand-pins {
175 uart0_pins: uart0-pins {
178 groups = "uart0_0_tx_rx";
182 watchdog_pins: watchdog-pins {
184 function = "watchdog";
191 pinctrl-names = "default";
192 pinctrl-0 = <&pmic_bus_pins>;
210 reg = <0x0000 0 0 0 0>;
211 ieee80211-freq-limit = <5000000 6000000>;
212 mediatek,mtd-eeprom = <&factory 0x05000>;
213 nvmem-cells = <&macaddr_odm 3>;
214 nvmem-cell-names = "mac-address";
219 pinctrl-names = "default";
220 pinctrl-0 = <&serial_nand_pins>;
224 compatible = "spi-nand";
225 mediatek,bmt-table-size = <0x1000>;
227 nand-ecc-engine = <&snfi>;
229 spi-rx-bus-width = <4>;
230 spi-tx-bus-width = <4>;
233 compatible = "fixed-partitions";
234 #address-cells = <1>;
239 reg = <0x00000000 0x00080000>;
245 reg = <0x00080000 0x00040000>;
250 label = "Bootloader";
251 reg = <0x000C0000 0x00080000>;
256 label = "BootConfig";
257 reg = <0x00140000 0x00040000>;
262 reg = <0x00180000 0x00040000>;
264 odm_partition: nvmem-layout {
265 compatible = "fixed-layout";
269 config1: partition@1C0000 {
270 compatible = "nvmem-cells";
272 reg = <0x001C0000 0x00080000>;
278 reg = <0x00240000 0x00080000>;
284 reg = <0x002C0000 0x02D00000>;
286 compatible = "denx,fit";
287 openwrt,cmdline-match = "boot_part=Kernel1";
290 reg = <0x00000000 0x00800000>;
295 reg = <0x00800000 0x02500000>;
301 reg = <0x02FC0000 0x02D00000>;
303 compatible = "denx,fit";
304 openwrt,cmdline-match = "boot_part=Kernel2";
307 reg = <0x00000000 0x00800000>;
312 reg = <0x00800000 0x02500000>;
316 factory: partition@5CC0000 {
318 reg = <0x05CC0000 0x00100000>;
324 reg = <0x05DC0000 0x00200000>;
330 reg = <0x05FC0000 0x00300000>;
346 pinctrl-names = "default";
347 pinctrl-0 = <&uart0_pins>;
352 pinctrl-names = "default";
353 pinctrl-0 = <&watchdog_pins>;
358 pinctrl-names = "default";
359 pinctrl-0 = <&epa_elna_pins>;
360 mediatek,mtd-eeprom = <&factory 0x0000>;
361 nvmem-cells = <&macaddr_odm 2>;
362 nvmem-cell-names = "mac-address";