openwrt/target/linux/mediatek/dts
Valerio 'ftp21' Mancini 6bec68062b mediatek: add Zyxel EX5601-T0 with uboot custom partition
The flash procedure is similar to the Xiaomi AX6000 router.

Load openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-initramfs-recovery.itb from original Zyxel U-Boot:

tftpboot openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-initramfs-recovery.itb
bootm 0x46000000
Load mtd-rw
insmod /lib/modules/$(uname -r)/mtd-rw.ko i_want_a_brick=1

Format ubi and create ubootenv partitions

ubidetach -p /dev/mtd5; ubiformat /dev/mtd5 -y; ubiattach -p /dev/mtd5
ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB
ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB
Copy openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-initramfs-recovery.itb to /tmp and create recovery partition.
If your recovery image is larger than 10MiB, size the recovery partition accordingly to make it fit.

ubimkvol /dev/ubi0 -n 2 -N recovery -s 10MiB
ubiupdatevol /dev/ubi0_2  openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-initramfs-recovery.itb
Copy preloader and uboot to /tmp and write them in the mtd

mtd write /tmp/openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-preloader.bin bl2
mtd write /tmp/openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-bl31-uboot.fip fip
Now write the firmware:
sysupgrade -n  /tmp/openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-squashfs-sysupgrade.itb

To create a correct BL2, I had to add a profile for 'spim:4k+256' as I could not find a way to value the variable 'NAND_TYPE'.

Features and fixes from hitech95 tree has been squashed, I'm attaching his commit message:

The Power LED was not working correctly and not reacting
 to the boot process and statuses.

The board has space (footprint) for an unpopulated Zigbee chip,
 while we dont know the device model having this chip populated
 we have to assure that the common dts doesnt enable
 interfaces that share pins with such device.

In this instance the PCIe and the uart1 and uart2 are disabled.
Some of the control PCIE pins seems to be used for the Zigbee chip,
 UART1 seems to be used as a flash port while UART2 should be the
 main comunication interface of Zigbee chip.

The Zigbee chip should be a EFR32MG21. But the pins used for UART
 seems to be not on standard PINS used by other adapters.
 So it cannot run firmwares shared on the web.
 But it should be possible to build a custom firmware with
 the corrtect pinmux.

This commit also contains the following squashed commit from hitech95
 - mediatek: fix sysupgrade for Zyxel EX7601-T0 ubootmod

Changes and fixes added in common board:
 - added aliases for boot status leds.
 - added aliases for the mac-label-device.
 - added pin claims for core features (MDIO and UART 0)
 - added default LEDs configuration (01_leds)
 - added default network configuration (02_network)
 - added missing kmod-usb3 module for USB3
 - fixed LED names
 - fixed reset pin for SLIC chip
 - removed unused pinmux configurations and devices
 - fix LAN (switch) port numbering
 - using nvmem cells for wifi eeprom, dropping deprecated "mediatek,mtd-eeprom"
 - proper factory partition and mac address handling
 - cleaned up spi_nand sections and partition

Changes and fixxes added in stock layout:
 - added NMBM, if u-boot has it, the kernel must be informed.

Co-authored-by: Nicolò Veronese <nicveronese@gmail.com>
Co-developed-by: Nicolò Veronese <nicveronese@gmail.com>
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
Signed-off-by: Valerio 'ftp21' Mancini <ftp21@ftp21.eu>
(cherry picked from commit b5df398a36)
2024-02-27 17:42:30 +00:00
..
mt7622-buffalo-wsr-2533dhp2.dts mediatek: separate dts/dtsi for Buffalo WSR series 2024-02-27 17:42:30 +00:00
mt7622-buffalo-wsr-3200ax4s.dts mediatek: add support for Buffalo WSR-3200AX4S 2024-02-27 17:42:30 +00:00
mt7622-buffalo-wsr.dtsi mediatek: separate dts/dtsi for Buffalo WSR series 2024-02-27 17:42:30 +00:00
mt7622-dlink-eagle-pro-ai-m32-a1.dts mediatek: Add support for D-Link EAGLE PRO AI M32 2024-02-27 17:42:30 +00:00
mt7622-elecom-wrc-2533gent.dts mediatek: add an upstreamed spi-nand driver 2022-04-28 18:06:00 +08:00
mt7622-elecom-wrc-x3200gst3.dts treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7622-linksys-e8450-ubi.dts mediatek: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
mt7622-linksys-e8450.dts mediatek: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
mt7622-linksys-e8450.dtsi treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7622-netgear-wax206.dts mediatek: no longer hard-code WAN PHY of Netgear WAX206 2023-04-30 17:27:00 +01:00
mt7622-reyee-ax3200-e5.dts mediatek: also move &slot0 from dtsi down to board dts 2022-12-07 01:45:14 +00:00
mt7622-rfb1-ubi.dts mediatek: add an upstreamed spi-nand driver 2022-04-28 18:06:00 +08:00
mt7622-ruijie-rg-ew3200.dtsi treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7622-ruijie-rg-ew3200gx-pro.dts mediatek: also move &slot0 from dtsi down to board dts 2022-12-07 01:45:14 +00:00
mt7622-totolink-a8000ru.dts mediatek: mt7622: add missing vbus regulator node to totolink-a8000ru dts 2022-07-07 00:22:23 +01:00
mt7622-ubnt-unifi-6-lr-v1-ubootmod.dts mediatek: mt7622: fix DTS compatible of UniFi 6 LR variants 2022-09-03 02:27:59 +01:00
mt7622-ubnt-unifi-6-lr-v1.dts mediatek: mt7622: fix DTS compatible of UniFi 6 LR variants 2022-09-03 02:27:59 +01:00
mt7622-ubnt-unifi-6-lr-v1.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v2-ubootmod.dts mediatek: mt7622: fix DTS compatible of UniFi 6 LR variants 2022-09-03 02:27:59 +01:00
mt7622-ubnt-unifi-6-lr-v2.dts mediatek: add Ubiquiti UniFi 6 LR v2 targets 2022-06-11 19:51:33 +01:00
mt7622-ubnt-unifi-6-lr-v2.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v3-ubootmod.dts mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v3.dts mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v3.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-xiaomi-redmi-router-ax6s.dts treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7623a-unielec-u7623-02-emmc-512m.dts mediatek: u7623-02: enable early console also in legacy image 2022-01-31 00:10:38 +00:00
mt7623a-unielec-u7623-02.dts mediatek: mt7623: rework images for U7623-02 board 2022-01-23 20:20:37 +00:00
mt7623a-unielec-u7623-02.dtsi treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7629-iptime-a6004mx.dts treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7629-netgear-ex6250-v2.dts mediatek: add support for Netgear EX6250v2 series 2023-07-13 12:05:28 +01:00
mt7629-tplink_eap225-v5.dts mediatek: Add support for TP-Link EAP225v5 2024-02-27 17:42:30 +00:00
mt7981a-ubnt-unifi-6-plus.dts mediatek: filogic: add support for Ubiquiti UniFi 6 Plus (U6+) 2023-12-07 09:45:33 +01:00
mt7981b-cetron-ct3003.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-cmcc-rax3000m-emmc.dtso mediatek: add CMCC RAX3000M support 2023-11-07 00:46:00 +01:00
mt7981b-cmcc-rax3000m-nand.dtso mediatek: add CMCC RAX3000M support 2023-11-07 00:46:00 +01:00
mt7981b-cmcc-rax3000m.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-confiabits-mt7981.dts mediatek: add SPDX header for Confiabits MT7981 DTS 2023-12-18 08:34:10 +01:00
mt7981b-cudy-wr3000-v1.dts mediatek: filogic: Cudy WR3000 v1 wps button fix 2024-02-27 12:46:06 +01:00
mt7981b-glinet-gl-mt3000.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00
mt7981b-h3c-magic-nx30-pro.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-jcg-q30-pro.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-qihoo-360t7.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-routerich-ax3000.dts mediatek: add support for Routerich AX3000 2024-01-04 21:47:43 +01:00
mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts mediatek: filogic: add specific layout for WR30U 2023-08-07 16:31:27 +01:00
mt7981b-xiaomi-mi-router-wr30u-stock.dts mediatek: filogic: add support for Xiaomi WR30U 2023-08-07 16:31:27 +01:00
mt7981b-xiaomi-mi-router-wr30u-ubootmod.dts mediatek: filogic: add support for Xiaomi WR30U 2023-08-07 16:31:27 +01:00
mt7981b-xiaomi-mi-router-wr30u.dtsi mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-zbtlink-zbt-z8102ax.dts mediatek: add support for Zbtlink ZBT-Z8102AX 2023-12-09 13:39:53 +01:00
mt7981b-zyxel-nwa50ax-pro.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00
mt7986a-acelink-ew-7886cax.dts mediatek: filogic: add Acelink EW-7886CAX support 2023-12-12 11:02:39 +01:00
mt7986a-acer-predator-w6.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-asus-rt-ax59u.dts mediatek: filogic: add support ASUS RT-AX59U 2024-01-20 19:07:15 +01:00
mt7986a-asus-tuf-ax4200.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-asus-tuf-ax6000.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-glinet-gl-mt6000.dts mediatek: GL-MT6000: Change LED colors 2024-01-15 17:34:30 +01:00
mt7986a-tplink-tl-xdr4288.dts mediatek: sync MT7986 device trees with upstream 2023-06-09 19:23:03 +01:00
mt7986a-tplink-tl-xdr6086.dts mediatek: sync MT7986 device trees with upstream 2023-06-09 19:23:03 +01:00
mt7986a-tplink-tl-xdr6088.dts mediatek: sync MT7986 device trees with upstream 2023-06-09 19:23:03 +01:00
mt7986a-tplink-tl-xdr-common.dtsi mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-xiaomi-redmi-router-ax6000-stock.dts mediatek: add new layout for Xiaomi Redmi Router AX6000 for OpenWrt U-Boot 2022-12-29 03:00:31 +00:00
mt7986a-xiaomi-redmi-router-ax6000-ubootmod.dts mediatek: add new layout for Xiaomi Redmi Router AX6000 for OpenWrt U-Boot 2022-12-29 03:00:31 +00:00
mt7986a-xiaomi-redmi-router-ax6000.dtsi mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-zyxel-ex5601-t0-common.dtsi mediatek: add Zyxel EX5601-T0 with uboot custom partition 2024-02-27 17:42:30 +00:00
mt7986a-zyxel-ex5601-t0-stock.dts mediatek: add Zyxel EX5601-T0 with uboot custom partition 2024-02-27 17:42:30 +00:00
mt7986a-zyxel-ex5601-t0-ubootmod.dts mediatek: add Zyxel EX5601-T0 with uboot custom partition 2024-02-27 17:42:30 +00:00
mt7986a-zyxel-ex5700-telenor.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00
mt7986b-mercusys-mr90x-v1.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986b-netgear-wax220.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00