airoha: Add new target platform
authorDaniel Danzberger <daniel@dd-wrt.com>
Wed, 3 Aug 2022 15:31:03 +0000 (17:31 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 5 Sep 2022 09:12:32 +0000 (11:12 +0200)
commitf32085fc0b87049491b07e198d924d738a1a2834
tree5383b5ef246e08830738801a12a6e8dc76b39c53
parentf1802b0db7e22f98e1718e2c8bec29b2842f5aea
airoha: Add new target platform

Airoha is a new ARM platform based on Cortex-A53 which has recently been
merged into linux-next.

Due to BootROM limitations on this platform, the Cortex-A53 can't run in
Aarch64 mode and code must be compiled for 32-Bit ARM.

This support is based mostly on those linux-next commits backported
for kernel 5.15.

Patches:
1 - platform support = linux-next
2 - clock driver = linux-next
3 - gpio driver = linux-next
4 - linux,usable-memory-range dts support = linux-next
5 - mtd spinand driver
6 - spi driver
7 - pci driver (kconfig only, uses mediatek PCI) = linux-next

Still missing:
- Ethernet driver
- Sysupgrade support

A.t.m there exists one subtarget EN7523 with only one evaluation
board.

The initramfs can be run with the following commands from u-boot:
-
u-boot> setenv bootfile \
openwrt-airoha-airoha_en7523-evb-initramfs-kernel.bin
u-boot> tftpboot
u-boot> bootm 0x81800000
-

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
18 files changed:
target/linux/airoha/Makefile [new file with mode: 0644]
target/linux/airoha/config-5.15 [new file with mode: 0644]
target/linux/airoha/dts/en7523-evb.dts [new file with mode: 0644]
target/linux/airoha/dts/en7523.dtsi [new file with mode: 0644]
target/linux/airoha/files/arch/arm/mach-airoha/Makefile [new file with mode: 0644]
target/linux/airoha/files/arch/arm/mach-airoha/airoha.c [new file with mode: 0644]
target/linux/airoha/files/drivers/clk/clk-en7523.c [new file with mode: 0644]
target/linux/airoha/files/drivers/gpio/gpio-en7523.c [new file with mode: 0644]
target/linux/airoha/files/include/dt-bindings/clock/en7523-clk.h [new file with mode: 0644]
target/linux/airoha/image/Makefile [new file with mode: 0644]
target/linux/airoha/image/en7523.mk [new file with mode: 0644]
target/linux/airoha/patches-5.15/0001-add-airoha-platform.patch [new file with mode: 0644]
target/linux/airoha/patches-5.15/0002-add-airoha-en7523-clk-driver.patch [new file with mode: 0644]
target/linux/airoha/patches-5.15/0003-add-airoha-en7523-gpio-driver.patch [new file with mode: 0644]
target/linux/airoha/patches-5.15/0004-ARM-9124-1-uncompress-Parse-linux-usable-memory-rang.patch [new file with mode: 0644]
target/linux/airoha/patches-5.15/0005-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch [new file with mode: 0644]
target/linux/airoha/patches-5.15/0006-PCI-mediatek-Allow-building-for-ARCH_AIROHA.patch [new file with mode: 0644]
target/linux/generic/pending-5.15/487-mtd-spinand-Add-support-for-Etron-EM73D044VCx.patch [new file with mode: 0644]