2 +++ b/configs/mt7986a_bpi-r3-mini-emmc_defconfig
5 +CONFIG_SYS_HAS_NONCACHED_MEMORY=y
6 +CONFIG_POSITION_INDEPENDENT=y
7 +CONFIG_ARCH_MEDIATEK=y
8 +CONFIG_TEXT_BASE=0x41e00000
9 +CONFIG_SYS_MALLOC_F_LEN=0x4000
10 +CONFIG_NR_DRAM_BANKS=1
11 +CONFIG_ENV_SIZE=0x40000
12 +CONFIG_ENV_OFFSET=0x400000
13 +CONFIG_DEFAULT_DEVICE_TREE="mt7986a-bpi-r3-mini"
14 +CONFIG_OF_LIBFDT_OVERLAY=y
15 +CONFIG_TARGET_MT7986=y
16 +CONFIG_SYS_LOAD_ADDR=0x46000000
17 +CONFIG_PRE_CON_BUF_ADDR=0x4007EF00
18 +CONFIG_DEBUG_UART_BASE=0x11002000
19 +CONFIG_DEBUG_UART_CLOCK=40000000
20 +CONFIG_ENV_OFFSET_REDUND=0x440000
26 +CONFIG_AUTOBOOT_KEYED=y
27 +CONFIG_AUTOBOOT_MENU_SHOW=y
28 +CONFIG_OF_SYSTEM_SETUP=y
29 +CONFIG_DEFAULT_FDT_FILE="mediatek/mt7986a-bpi-r3-mini.dtb"
31 +CONFIG_PRE_CONSOLE_BUFFER=y
33 +CONFIG_BOARD_LATE_INIT=y
35 +CONFIG_SYS_PROMPT="MT7986> "
38 +# CONFIG_CMD_BOOTEFI_BOOTMGR is not set
39 +CONFIG_CMD_BOOTMENU=y
41 +CONFIG_CMD_ERASEENV=y
42 +CONFIG_CMD_ENV_FLAGS=y
58 +CONFIG_CMD_LINK_LOCAL=y
66 +CONFIG_CMD_PSTORE_MEM_ADDR=0x42ff0000
72 +CONFIG_CMD_FS_GENERIC=y
75 +CONFIG_CMD_UBI_RENAME=y
77 +CONFIG_ENV_OVERWRITE=y
78 +CONFIG_ENV_IS_IN_MMC=y
79 +CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
80 +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
81 +CONFIG_USE_DEFAULT_ENV_FILE=y
82 +CONFIG_DEFAULT_ENV_FILE="defenvs/bananapi_bpi-r3-mini_emmc_env"
83 +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
84 +CONFIG_VERSION_VARIABLE=y
87 +CONFIG_IPADDR="192.168.1.1"
88 +CONFIG_USE_SERVERIP=y
89 +CONFIG_SERVERIP="192.168.1.254"
90 +CONFIG_NET_RANDOM_ETHADDR=y
101 +CONFIG_SUPPORT_EMMC_BOOT=y
102 +CONFIG_MMC_HS200_SUPPORT=y
106 +CONFIG_MTD_SPI_NAND=y
107 +CONFIG_DM_SPI_FLASH=y
108 +CONFIG_SPI_FLASH_WINBOND=y
109 +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
110 +CONFIG_SPI_FLASH_MTD=y
111 +CONFIG_MTD_UBI_FASTMAP=y
113 +CONFIG_PHY_AIROHA_EN8811H=y
114 +CONFIG_PHY_AIROHA_FW_IN_MMC=y
115 +CONFIG_PHY_ETHERNET_ID=y
119 +CONFIG_MEDIATEK_ETH=y
120 +CONFIG_PCIE_MEDIATEK=y
122 +CONFIG_PHY_MTK_TPHY=y
125 +CONFIG_PINCTRL_MT7622=y
126 +CONFIG_PINCTRL_MT7986=y
127 +CONFIG_POWER_DOMAIN=y
128 +CONFIG_MTK_POWER_DOMAIN=y
129 +CONFIG_DM_REGULATOR=y
130 +CONFIG_DM_REGULATOR_FIXED=y
131 +CONFIG_DM_REGULATOR_GPIO=y
137 +CONFIG_SERIAL_RX_BUFFER=y
143 +CONFIG_USB_XHCI_HCD=y
144 +CONFIG_USB_XHCI_MTK=y
145 +CONFIG_USB_STORAGE=y
149 +++ b/configs/mt7986a_bpi-r3-mini-snand_defconfig
152 +CONFIG_SYS_HAS_NONCACHED_MEMORY=y
153 +CONFIG_POSITION_INDEPENDENT=y
154 +CONFIG_ARCH_MEDIATEK=y
155 +CONFIG_TEXT_BASE=0x41e00000
156 +CONFIG_SYS_MALLOC_F_LEN=0x4000
157 +CONFIG_NR_DRAM_BANKS=1
158 +CONFIG_DEFAULT_DEVICE_TREE="mt7986a-bpi-r3-mini"
159 +CONFIG_OF_LIBFDT_OVERLAY=y
160 +CONFIG_TARGET_MT7986=y
161 +CONFIG_SYS_LOAD_ADDR=0x46000000
162 +CONFIG_PRE_CON_BUF_ADDR=0x4007EF00
163 +CONFIG_DEBUG_UART_BASE=0x11002000
164 +CONFIG_DEBUG_UART_CLOCK=40000000
170 +CONFIG_AUTOBOOT_KEYED=y
171 +CONFIG_AUTOBOOT_MENU_SHOW=y
172 +CONFIG_OF_SYSTEM_SETUP=y
173 +CONFIG_DEFAULT_FDT_FILE="mediatek/mt7986a-bpi-r3-mini.dtb"
175 +CONFIG_PRE_CONSOLE_BUFFER=y
177 +CONFIG_BOARD_LATE_INIT=y
178 +CONFIG_HUSH_PARSER=y
179 +CONFIG_SYS_PROMPT="MT7986> "
181 +CONFIG_CMD_LICENSE=y
182 +# CONFIG_CMD_BOOTEFI_BOOTMGR is not set
183 +CONFIG_CMD_BOOTMENU=y
185 +CONFIG_CMD_ERASEENV=y
186 +CONFIG_CMD_ENV_FLAGS=y
187 +CONFIG_CMD_STRINGS=y
197 +CONFIG_CMD_TFTPSRV=y
201 +CONFIG_CMD_LINK_LOCAL=y
209 +CONFIG_CMD_PSTORE_MEM_ADDR=0x42ff0000
215 +CONFIG_CMD_FS_GENERIC=y
216 +CONFIG_CMD_FS_UUID=y
218 +CONFIG_CMD_UBI_RENAME=y
220 +CONFIG_ENV_OVERWRITE=y
221 +CONFIG_ENV_IS_IN_UBI=y
222 +CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
223 +CONFIG_ENV_UBI_PART="ubi"
224 +CONFIG_ENV_UBI_VOLUME="ubootenv"
225 +CONFIG_ENV_UBI_VOLUME_REDUND="ubootenv2"
226 +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
227 +CONFIG_USE_DEFAULT_ENV_FILE=y
228 +CONFIG_DEFAULT_ENV_FILE="defenvs/bananapi_bpi-r3-mini_snand_env"
229 +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
230 +CONFIG_VERSION_VARIABLE=y
233 +CONFIG_IPADDR="192.168.1.1"
234 +CONFIG_USE_SERVERIP=y
235 +CONFIG_NET_RANDOM_ETHADDR=y
240 +CONFIG_BUTTON_GPIO=y
246 +CONFIG_SUPPORT_EMMC_BOOT=y
247 +CONFIG_MMC_HS200_SUPPORT=y
251 +CONFIG_MTD_SPI_NAND=y
252 +CONFIG_MTD_UBI_FASTMAP=y
254 +CONFIG_PHY_AIROHA_EN8811H=y
255 +CONFIG_PHY_ETHERNET_ID=y
259 +CONFIG_MEDIATEK_ETH=y
260 +CONFIG_PCIE_MEDIATEK=y
262 +CONFIG_PHY_MTK_TPHY=y
265 +CONFIG_PINCTRL_MT7622=y
266 +CONFIG_PINCTRL_MT7986=y
267 +CONFIG_POWER_DOMAIN=y
268 +CONFIG_MTK_POWER_DOMAIN=y
269 +CONFIG_DM_REGULATOR=y
270 +CONFIG_DM_REGULATOR_FIXED=y
271 +CONFIG_DM_REGULATOR_GPIO=y
277 +CONFIG_SERIAL_RX_BUFFER=y
283 +CONFIG_USB_XHCI_HCD=y
284 +CONFIG_USB_XHCI_MTK=y
285 +CONFIG_USB_STORAGE=y
289 +++ b/defenvs/bananapi_bpi-r3-mini_snand_env
292 +serverip=192.168.1.254
294 +console=earlycon=uart8250,mmio32,0x11002000 console=ttyS0
295 +bootargs=root=ubi.block=0,fit root=/dev/fit0 rootwait
296 +bootcmd=if pstore check ; then run boot_recovery ; else run boot_ubi ; fi
297 +bootconf=config-mt7986a-bananapi-bpi-r3-mini
299 +bootfile=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-initramfs-recovery.itb
300 +bootfile_bl2=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-snand-preloader.bin
301 +bootfile_fip=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-snand-bl31-uboot.fip
302 +bootfile_upg=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-squashfs-sysupgrade.itb
303 +bootfile_en8811h_fw=EthMD32.bin
304 +bootled_pwr=green:status
305 +bootled_rec=blue:status
306 +bootmenu_confirm_return=askenv - Press ENTER to return to menu ; bootmenu 60
309 +bootmenu_title=
\e[0;34m( ( (
\e[1;39mOpenWrt
\e[0;34m ) ) )
\e[0;36m[SPI-NAND]
\e[0m
310 +bootmenu_0=Initialize environment.=run _firstboot
311 +bootmenu_0d=Run default boot command.=run boot_default
312 +bootmenu_1=Boot system via TFTP.=run boot_tftp ; run bootmenu_confirm_return
313 +bootmenu_2=Boot production system from NAND.=run boot_production ; run bootmenu_confirm_return
314 +bootmenu_3=Boot recovery system from NAND.=run boot_recovery ; run bootmenu_confirm_return
315 +bootmenu_4=Load production system via TFTP then write to NAND.=setenv noboot 1 ; setenv replacevol 1 ; run boot_tftp_production ; setenv noboot ; setenv replacevol ; run bootmenu_confirm_return
316 +bootmenu_5=Load recovery system via TFTP then write to NAND.=setenv noboot 1 ; setenv replacevol 1 ; run boot_tftp_recovery ; setenv noboot ; setenv replacevol ; run bootmenu_confirm_return
317 +bootmenu_6=
\e[31mLoad Airoha EN8811H firmware via TFTP then write to NAND.
\e[0m=run boot_tftp_write_en8811h_fw ; run bootmenu_confirm_return
318 +bootmenu_7=
\e[31mLoad BL31+U-Boot FIP via TFTP then write to NAND.
\e[0m=run boot_tftp_write_fip ; run bootmenu_confirm_return
319 +bootmenu_8=
\e[31mLoad BL2 preloader via TFTP then write to NAND.
\e[0m=run boot_tftp_write_bl2 ; run bootmenu_confirm_return
320 +bootmenu_9=Reboot.=reset
321 +bootmenu_10=Reset all settings to factory defaults.=run reset_factory ; reset
322 +boot_first=if button reset ; then led $bootled_rec on ; run boot_tftp_recovery ; setenv flag_recover 1 ; run boot_default ; fi ; bootmenu
323 +boot_default=if env exists flag_recover ; then else run bootcmd ; fi ; run boot_recovery ; setenv replacevol 1 ; run boot_tftp_forever
324 +boot_production=led $bootled_pwr on ; run ubi_read_production && bootm $loadaddr#$bootconf ; led $bootled_pwr off
325 +boot_recovery=led $bootled_rec on ; run ubi_read_recovery && bootm $loadaddr#$bootconf ; led $bootled_rec off
326 +boot_ubi=run boot_production ; run boot_recovery
327 +boot_tftp_forever=led $bootled_rec on ; while true ; do run boot_tftp_recovery ; sleep 1 ; done
328 +boot_tftp_production=tftpboot $loadaddr $bootfile_upg && env exists replacevol && iminfo $loadaddr && run ubi_write_production ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
329 +boot_tftp_recovery=tftpboot $loadaddr $bootfile && env exists replacevol && iminfo $loadaddr && run ubi_write_recovery ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
330 +boot_tftp=tftpboot $loadaddr $bootfile && bootm $loadaddr#$bootconf
331 +boot_tftp_write_fip=tftpboot $loadaddr $bootfile_fip && run ubi_write_fip && run reset_factory
332 +boot_tftp_write_bl2=tftpboot $loadaddr $bootfile_bl2 && run snand_write_bl2
333 +boot_tftp_write_en8811h_fw=tftpboot $loadaddr $bootfile_en8811h_fw && run ubi_write_en8811h_fw
334 +part_default=production
335 +part_recovery=recovery
336 +reset_factory=mw $loadaddr 0xff 0x1f000 ; ubi write $loadaddr ubootenv 0x1f000 ; ubi write $loadaddr ubootenv2 0x1f000 ; ubi remove rootfs_data
337 +snand_write_bl2=mtd erase bl2 && mtd write bl2 $loadaddr 0x0 0x40000 && mtd write bl2 $loadaddr 0x40000 0x40000 && mtd write bl2 $loadaddr 0x80000 0x40000 && mtd write bl2 $loadaddr 0xc0000 0x40000
338 +ubi_create_env=ubi check ubootenv || ubi create ubootenv 0x1f000 dynamic ; ubi check ubootenv2 || ubi create ubootenv2 0x1f000 dynamic
339 +ubi_prepare_rootfs=if ubi check rootfs_data ; then else if env exists rootfs_data_max ; then ubi create rootfs_data $rootfs_data_max dynamic || ubi create rootfs_data - dynamic ; else ubi create rootfs_data - dynamic ; fi ; fi
340 +ubi_read_production=ubi read $loadaddr fit && iminfo $loadaddr && run ubi_prepare_rootfs
341 +ubi_read_recovery=ubi check recovery && ubi read $loadaddr recovery
342 +ubi_read_emmc_install=ubi check emmc_install && ubi read $loadaddr emmc_install
343 +ubi_remove_rootfs=ubi check rootfs_data && ubi remove rootfs_data
344 +ubi_write_fip=run ubi_remove_rootfs ; ubi check fip && ubi remove fip ; ubi create fip 0x200000 static ; ubi write $loadaddr fip 0x200000
345 +ubi_write_en8811h_fw=ubi check en8811h-fw && ubi remove en8811h-fw ; ubi create en8811h-fw 0x24000 static ; ubi write $loadaddr en8811h-fw 0x24000
346 +ubi_write_production=ubi check fit && ubi remove fit ; run ubi_remove_rootfs ; ubi create fit $filesize dynamic && ubi write $loadaddr fit $filesize
347 +ubi_write_recovery=ubi check recovery && ubi remove recovery ; run ubi_remove_rootfs ; ubi create recovery $filesize dynamic && ubi write $loadaddr recovery $filesize
348 +_init_env=setenv _init_env ; run ubi_create_env ; saveenv ; saveenv
349 +_firstboot=setenv _firstboot ; run _switch_to_menu ; run _init_env ; run boot_first
350 +_switch_to_menu=setenv _switch_to_menu ; setenv bootdelay 3 ; setenv bootmenu_delay 3 ; setenv bootmenu_0 $bootmenu_0d ; setenv bootmenu_0d ; run _bootmenu_update_title
351 +_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title
\e[33m$ver
\e[0m"
353 +++ b/defenvs/bananapi_bpi-r3-mini_emmc_env
356 +serverip=192.168.1.254
358 +console=earlycon=uart8250,mmio32,0x11002000 console=ttyS0
359 +bootargs=root=/dev/fit0 rootwait
360 +bootcmd=if pstore check ; then run boot_recovery ; else run boot_emmc ; fi
361 +bootconf=config-mt7986a-bananapi-bpi-r3-mini
363 +bootfile=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-initramfs-recovery.itb
364 +bootfile_bl2=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-emmc-preloader.bin
365 +bootfile_fip=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-emmc-bl31-uboot.fip
366 +bootfile_upg=openwrt-mediatek-filogic-bananapi_bpi-r3-mini-squashfs-sysupgrade.itb
367 +bootfile_en8811h_fw=EthMD32.bin
368 +bootled_pwr=green:status
369 +bootled_rec=blue:status
370 +bootmenu_confirm_return=askenv - Press ENTER to return to menu ; bootmenu 60
373 +bootmenu_title=
\e[0;34m( ( (
\e[1;39mOpenWrt
\e[0;34m ) ) )
\e[0;36m[eMMC]
\e[0m
374 +bootmenu_0=Initialize environment.=run _firstboot
375 +bootmenu_0d=Run default boot command.=run boot_default
376 +bootmenu_1=Boot system via TFTP.=run boot_tftp ; run bootmenu_confirm_return
377 +bootmenu_2=Boot production system from eMMC.=run boot_production ; run bootmenu_confirm_return
378 +bootmenu_3=Boot recovery system from eMMC.=run boot_recovery ; run bootmenu_confirm_return
379 +bootmenu_4=Load production system via TFTP then write to eMMC.=setenv noboot 1 ; setenv replacevol 1 ; run boot_tftp_production ; setenv noboot ; setenv replacevol ; run bootmenu_confirm_return
380 +bootmenu_5=Load recovery system via TFTP then write to eMMC.=setenv noboot 1 ; setenv replacevol 1 ; run boot_tftp_recovery ; setenv noboot ; setenv replacevol ; run bootmenu_confirm_return
381 +bootmenu_6=
\e[31mLoad Airoha EN8811H firmware via TFTP then write to eMMC.
\e[0m=run boot_tftp_write_en8811h_fw ; run bootmenu_confirm_return
382 +bootmenu_7=
\e[31mLoad BL31+U-Boot FIP via TFTP then write to eMMC.
\e[0m=run boot_tftp_write_fip ; run bootmenu_confirm_return
383 +bootmenu_8=
\e[31mLoad BL2 preloader via TFTP then write to eMMC.
\e[0m=run boot_tftp_write_bl2 ; run bootmenu_confirm_return
384 +bootmenu_9=Reboot.=reset
385 +bootmenu_10=Reset all settings to factory defaults.=run reset_factory ; reset
386 +boot_first=if button reset ; then led $bootled_rec on ; run boot_tftp_recovery ; setenv flag_recover 1 ; run boot_default ; fi ; bootmenu
387 +boot_default=if env exists flag_recover ; then else run bootcmd ; fi ; run boot_recovery ; setenv replacevol 1 ; run boot_tftp_forever
388 +boot_production=led $bootled_pwr on ; run emmc_read_production && bootm $loadaddr#$bootconf ; led $bootled_pwr off
389 +boot_recovery=led $bootled_rec on ; run emmc_read_recovery && bootm $loadaddr#$bootconf ; led $bootled_rec off
390 +boot_emmc=run boot_production ; run boot_recovery
391 +boot_tftp_forever=led $bootled_rec on ; while true ; do run boot_tftp_recovery ; sleep 1 ; done
392 +boot_tftp_production=tftpboot $loadaddr $bootfile_upg && env exists replacevol && iminfo $loadaddr && run emmc_write_production ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
393 +boot_tftp_recovery=tftpboot $loadaddr $bootfile && env exists replacevol && iminfo $loadaddr && run emmc_write_recovery ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
394 +boot_tftp_write_fip=tftpboot $loadaddr $bootfile_fip && run emmc_write_fip
395 +boot_tftp_write_bl2=tftpboot $loadaddr $bootfile_bl2 && run emmc_write_bl2
396 +boot_tftp_write_en8811h_fw=tftpboot $loadaddr $bootfile_en8811h_fw && run emmc_write_en8811h_fw
397 +boot_tftp=tftpboot $loadaddr $bootfile && bootm $loadaddr#$bootconf
398 +mmc_write_vol=imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc erase 0x$part_addr 0x$image_size && mmc write $loadaddr 0x$part_addr 0x$image_size
399 +mmc_read_vol=mmc read $loadaddr $part_addr 0x100 && imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc read $loadaddr 0x$part_addr 0x$image_size && setexpr filesize $image_size * 0x200
400 +part_default=production
401 +part_recovery=recovery
402 +reset_factory=eraseenv && reset
403 +emmc_read_production=part start mmc 0 $part_default part_addr && part size mmc 0 $part_default part_size && run mmc_read_vol
404 +emmc_read_recovery=part start mmc 0 $part_recovery part_addr && part size mmc 0 $part_recovery part_size && run mmc_read_vol
405 +emmc_write_en8811h_fw=mmc partconf 0 1 2 2 && mmc erase 0x0 0x120 && mmc write $fileaddr 0x0 0x120 ; mmc partconf 0 1 1 0
406 +emmc_write_bl2=mmc partconf 0 1 1 1 && mmc erase 0x0 0x400 && mmc write $fileaddr 0x0 0x400 ; mmc partconf 0 1 1 0
407 +emmc_write_fip=mmc erase 0x3400 0x2000 && mmc write $fileaddr 0x3400 0x2000 && mmc erase 0x2000 0x800
408 +emmc_write_production=part start mmc 0 $part_default part_addr && part size mmc 0 $part_default part_size && run mmc_write_vol
409 +emmc_write_recovery=part start mmc 0 $part_recovery part_addr && part size mmc 0 $part_recovery part_size && run mmc_write_vol
410 +_init_env=setenv _init_env ; setenv _create_env ; saveenv ; saveenv
411 +_firstboot=setenv _firstboot ; run _switch_to_menu ; run _init_env ; run boot_first
412 +_switch_to_menu=setenv _switch_to_menu ; setenv bootdelay 3 ; setenv bootmenu_delay 3 ; setenv bootmenu_0 $bootmenu_0d ; setenv bootmenu_0d ; run _bootmenu_update_title
413 +_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title
\e[33m$ver
\e[0m"
415 +++ b/arch/arm/dts/mt7986a-bpi-r3-mini.dts
417 +// SPDX-License-Identifier: GPL-2.0-or-later
420 +#include "mt7986.dtsi"
421 +#include <dt-bindings/gpio/gpio.h>
422 +#include <dt-bindings/input/linux-event-codes.h>
425 + #address-cells = <1>;
427 + model = "Bananapi BPi-R3 Mini";
428 + compatible = "mediatek,mt7986", "mediatek,mt7986-rfb";
431 + stdout-path = &uart0;
432 + tick-timer = &timer0;
436 + device_type = "memory";
437 + reg = <0x40000000 0x80000000>;
441 + compatible = "gpio-keys";
445 + linux,code = <KEY_RESTART>;
446 + gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
451 + compatible = "gpio-leds";
453 + status_led: led-0 {
454 + label = "green:status";
455 + gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
459 + label = "blue:wlan2g";
460 + gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
464 + label = "blue:wlan5g";
465 + gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
469 + reg_1p8v: regulator-1p8v {
470 + compatible = "regulator-fixed";
471 + regulator-name = "fixed-1.8V";
472 + regulator-min-microvolt = <1800000>;
473 + regulator-max-microvolt = <1800000>;
475 + regulator-always-on;
478 + reg_3p3v: regulator-3p3v {
479 + compatible = "regulator-fixed";
480 + regulator-name = "fixed-3.3V";
481 + regulator-min-microvolt = <3300000>;
482 + regulator-max-microvolt = <3300000>;
484 + regulator-always-on;
490 + pinctrl-names = "default";
491 + pinctrl-0 = <&mdio_pins>;
493 + mediatek,gmac-id = <0>;
494 + phy-mode = "2500base-x";
495 + phy-handle = <&phy14>;
498 + compatible = "ethernet-phy-id03a2.a411";
501 + airoha,rx-pol-reverse;
503 + reset-gpios = <&gpio 49 GPIO_ACTIVE_LOW>;
504 + reset-assert-us = <10000>;
505 + reset-deassert-us = <20000>;
510 + pinctrl-names = "default";
511 + pinctrl-0 = <&mmc0_pins_default>;
513 + max-frequency = <200000000>;
516 + vmmc-supply = <®_3p3v>;
517 + vqmmc-supply = <®_1p8v>;
523 + mdio_pins: mdio-pins {
526 + groups = "mdc_mdio";
529 + conf-en8811-pwr-a {
531 + drive-strength = <MTK_DRIVE_8mA>;
532 + bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
536 + conf-en8811-pwr-b {
538 + drive-strength = <MTK_DRIVE_8mA>;
539 + bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
544 + mmc0_pins_default: mmc0default {
546 + function = "flash";
547 + groups = "emmc_51";
551 + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2",
552 + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
553 + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
555 + drive-strength = <MTK_DRIVE_4mA>;
556 + bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
561 + drive-strength = <MTK_DRIVE_6mA>;
562 + bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
567 + bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
571 + pins = "EMMC_RSTB";
572 + drive-strength = <MTK_DRIVE_4mA>;
573 + bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
577 + spi_flash_pins: spi0-pins-func-1 {
579 + function = "flash";
580 + groups = "spi0", "spi0_wp_hold";
584 + pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
585 + drive-strength = <MTK_DRIVE_8mA>;
586 + bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
590 + pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
591 + drive-strength = <MTK_DRIVE_8mA>;
592 + bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
596 + pwm_pins: pwm0-pins-func-1 {
605 + pinctrl-names = "default";
606 + pinctrl-0 = <&pwm_pins>;
611 + #address-cells = <1>;
613 + pinctrl-names = "default";
614 + pinctrl-0 = <&spi_flash_pins>;
625 + compatible = "spi-nand";
627 + spi-max-frequency = <20000000>;
630 + compatible = "fixed-partitions";
631 + #address-cells = <1>;
636 + reg = <0x0 0x200000>;
641 + reg = <0x200000 0x7e00000>;
653 + status = "disabled";