Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
18
target/linux/imx/Makefile
Normal file
18
target/linux/imx/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013-2014 OpenWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
BOARD:=imx
|
||||
BOARDNAME:=NXP i.MX
|
||||
FEATURES:=audio display fpu gpio pcie rtc usb usbgadget squashfs targz nand ubifs boot-part rootfs-part
|
||||
SUBTARGETS:=cortexa7 cortexa9 cortexa53
|
||||
|
||||
KERNEL_PATCHVER:=6.6
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
DEFAULT_PACKAGES += uboot-envtools mkf2fs e2fsprogs blkid
|
||||
|
||||
$(eval $(call BuildTarget))
|
||||
4
target/linux/imx/base-files/etc/inittab
Normal file
4
target/linux/imx/base-files/etc/inittab
Normal file
@@ -0,0 +1,4 @@
|
||||
::sysinit:/etc/init.d/rcS S boot
|
||||
::shutdown:/etc/init.d/rcS K shutdown
|
||||
::askconsole:/usr/libexec/login.sh
|
||||
tty1::askfirst:/usr/libexec/login.sh
|
||||
66
target/linux/imx/base-files/lib/imx.sh
Normal file
66
target/linux/imx/base-files/lib/imx.sh
Normal file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# Copyright (C) 2010-2013 OpenWrt.org
|
||||
#
|
||||
|
||||
rootpartuuid() {
|
||||
local cmdline=$(cat /proc/cmdline)
|
||||
local bootpart=${cmdline##*root=}
|
||||
bootpart=${bootpart%% *}
|
||||
local uuid=${bootpart#PARTUUID=}
|
||||
echo ${uuid%-02}
|
||||
}
|
||||
|
||||
bootdev_from_uuid() {
|
||||
blkid | grep "PTUUID=\"$(rootpartuuid)\"" | cut -d : -f1
|
||||
}
|
||||
|
||||
bootpart_from_uuid() {
|
||||
blkid | grep $(rootpartuuid)-01 | cut -d : -f1
|
||||
}
|
||||
|
||||
rootpart_from_uuid() {
|
||||
blkid | grep $(rootpartuuid)-02 | cut -d : -f1
|
||||
}
|
||||
|
||||
imx_sdcard_mount_boot() {
|
||||
mkdir -p /boot
|
||||
[ -f /boot/uImage ] || {
|
||||
mount -o rw,noatime $(bootpart_from_uuid) /boot > /dev/null
|
||||
}
|
||||
}
|
||||
|
||||
imx_sdcard_copy_config() {
|
||||
imx_sdcard_mount_boot
|
||||
cp -af "$UPGRADE_BACKUP" "/boot/$BACKUP_FILE"
|
||||
sync
|
||||
umount /boot
|
||||
}
|
||||
|
||||
imx_sdcard_do_upgrade() {
|
||||
local board_dir="$(tar tf "${1}" | grep -m 1 '^sysupgrade-.*/$')"
|
||||
board_dir="${board_dir%/}"
|
||||
|
||||
imx_sdcard_mount_boot
|
||||
get_image "$1" | tar Oxf - ${board_dir}/kernel > /boot/uImage-new && \
|
||||
mv /boot/uImage-new /boot/uImage && \
|
||||
sync && \
|
||||
get_image "$1" | tar Oxf - ${board_dir}/root > $(rootpart_from_uuid) && \
|
||||
sync
|
||||
|
||||
umount /boot
|
||||
}
|
||||
|
||||
imx_sdcard_pre_upgrade() {
|
||||
[ -z "$UPGRADE_BACKUP" ] && {
|
||||
jffs2reset -y
|
||||
umount /overlay
|
||||
}
|
||||
}
|
||||
|
||||
imx_sdcard_move_config() {
|
||||
if [ -b $(bootpart_from_uuid) ]; then
|
||||
imx_sdcard_mount_boot
|
||||
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
|
||||
umount /boot
|
||||
fi
|
||||
}
|
||||
491
target/linux/imx/config-6.6
Normal file
491
target/linux/imx/config-6.6
Normal file
@@ -0,0 +1,491 @@
|
||||
CONFIG_ALIGNMENT_TRAP=y
|
||||
CONFIG_ARCH_32BIT_OFF_T=y
|
||||
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
|
||||
CONFIG_ARCH_KEEP_MEMBLOCK=y
|
||||
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
|
||||
CONFIG_ARCH_MMAP_RND_BITS_MAX=15
|
||||
CONFIG_ARCH_MULTIPLATFORM=y
|
||||
CONFIG_ARCH_MULTI_V6_V7=y
|
||||
CONFIG_ARCH_MULTI_V7=y
|
||||
CONFIG_ARCH_MXC=y
|
||||
CONFIG_ARCH_NR_GPIO=0
|
||||
CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y
|
||||
CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y
|
||||
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
|
||||
CONFIG_ARCH_SPARSEMEM_ENABLE=y
|
||||
CONFIG_ARCH_SUSPEND_POSSIBLE=y
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARM_ARCH_TIMER=y
|
||||
CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
|
||||
CONFIG_ARM_ERRATA_754322=y
|
||||
CONFIG_ARM_ERRATA_764369=y
|
||||
CONFIG_ARM_ERRATA_775420=y
|
||||
CONFIG_ARM_ERRATA_814220=y
|
||||
CONFIG_ARM_HAS_GROUP_RELOCS=y
|
||||
CONFIG_ARM_HEAVY_MB=y
|
||||
# CONFIG_ARM_IMX6Q_CPUFREQ is not set
|
||||
# CONFIG_ARM_IMX_CPUFREQ_DT is not set
|
||||
CONFIG_ARM_L1_CACHE_SHIFT=6
|
||||
CONFIG_ARM_L1_CACHE_SHIFT_6=y
|
||||
CONFIG_ARM_PATCH_IDIV=y
|
||||
CONFIG_ARM_PATCH_PHYS_VIRT=y
|
||||
CONFIG_ARM_THUMB=y
|
||||
CONFIG_ARM_UNWIND=y
|
||||
CONFIG_ARM_VIRT_EXT=y
|
||||
CONFIG_ASN1=y
|
||||
CONFIG_ASSOCIATIVE_ARRAY=y
|
||||
CONFIG_ATA=y
|
||||
CONFIG_ATAGS=y
|
||||
# CONFIG_ATA_SFF is not set
|
||||
CONFIG_AUTO_ZRELADDR=y
|
||||
CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_BLK_PM=y
|
||||
CONFIG_CACHE_L2X0=y
|
||||
CONFIG_CC_HAVE_STACKPROTECTOR_TLS=y
|
||||
CONFIG_CLKSRC_IMX_GPT=y
|
||||
CONFIG_CLKSRC_MMIO=y
|
||||
# CONFIG_CLK_IMX8MM is not set
|
||||
# CONFIG_CLK_IMX8MN is not set
|
||||
# CONFIG_CLK_IMX8MP is not set
|
||||
# CONFIG_CLK_IMX8MQ is not set
|
||||
# CONFIG_CLK_IMX8ULP is not set
|
||||
# CONFIG_CLK_IMX93 is not set
|
||||
CONFIG_CLONE_BACKWARDS=y
|
||||
CONFIG_CLZ_TAB=y
|
||||
CONFIG_COMMON_CLK=y
|
||||
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1
|
||||
CONFIG_COMPAT_32BIT_TIME=y
|
||||
CONFIG_CONTEXT_TRACKING=y
|
||||
CONFIG_CONTEXT_TRACKING_IDLE=y
|
||||
CONFIG_CPUFREQ_DT=y
|
||||
CONFIG_CPUFREQ_DT_PLATDEV=y
|
||||
CONFIG_CPU_32v6K=y
|
||||
CONFIG_CPU_32v7=y
|
||||
CONFIG_CPU_ABRT_EV7=y
|
||||
CONFIG_CPU_CACHE_V7=y
|
||||
CONFIG_CPU_CACHE_VIPT=y
|
||||
CONFIG_CPU_COPY_V6=y
|
||||
CONFIG_CPU_CP15=y
|
||||
CONFIG_CPU_CP15_MMU=y
|
||||
CONFIG_CPU_FREQ=y
|
||||
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
|
||||
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
|
||||
CONFIG_CPU_FREQ_GOV_COMMON=y
|
||||
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
|
||||
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
|
||||
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
|
||||
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
|
||||
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
|
||||
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
||||
CONFIG_CPU_FREQ_STAT=y
|
||||
CONFIG_CPU_FREQ_THERMAL=y
|
||||
CONFIG_CPU_HAS_ASID=y
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
CONFIG_CPU_PABRT_V7=y
|
||||
CONFIG_CPU_RMAP=y
|
||||
CONFIG_CPU_SPECTRE=y
|
||||
CONFIG_CPU_THERMAL=y
|
||||
CONFIG_CPU_THUMB_CAPABLE=y
|
||||
CONFIG_CPU_TLB_V7=y
|
||||
CONFIG_CPU_V7=y
|
||||
CONFIG_CRC16=y
|
||||
CONFIG_CRYPTO_AES_ARM=y
|
||||
CONFIG_CRYPTO_AES_ARM_BS=y
|
||||
CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S=y
|
||||
CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=y
|
||||
CONFIG_CRYPTO_AUTHENC=y
|
||||
CONFIG_CRYPTO_BLAKE2S_ARM=y
|
||||
CONFIG_CRYPTO_CBC=y
|
||||
CONFIG_CRYPTO_CHACHA20=y
|
||||
CONFIG_CRYPTO_CHACHA20_NEON=y
|
||||
CONFIG_CRYPTO_CRC32=y
|
||||
CONFIG_CRYPTO_CRC32C=y
|
||||
CONFIG_CRYPTO_CRC32_ARM_CE=y
|
||||
CONFIG_CRYPTO_CRYPTD=y
|
||||
CONFIG_CRYPTO_CTS=y
|
||||
CONFIG_CRYPTO_DEFLATE=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_COMMON=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
|
||||
# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
|
||||
# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_PRNG_API=y
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
|
||||
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
|
||||
# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set
|
||||
CONFIG_CRYPTO_DRBG=y
|
||||
CONFIG_CRYPTO_DRBG_HMAC=y
|
||||
CONFIG_CRYPTO_DRBG_MENU=y
|
||||
CONFIG_CRYPTO_ECB=y
|
||||
CONFIG_CRYPTO_ECDH=y
|
||||
CONFIG_CRYPTO_ENGINE=y
|
||||
CONFIG_CRYPTO_HASH_INFO=y
|
||||
CONFIG_CRYPTO_HMAC=y
|
||||
CONFIG_CRYPTO_HW=y
|
||||
CONFIG_CRYPTO_JITTERENTROPY=y
|
||||
CONFIG_CRYPTO_LIB_CHACHA_GENERIC=y
|
||||
CONFIG_CRYPTO_LIB_DES=y
|
||||
CONFIG_CRYPTO_LIB_SHA1=y
|
||||
CONFIG_CRYPTO_LIB_SHA256=y
|
||||
CONFIG_CRYPTO_LIB_UTILS=y
|
||||
CONFIG_CRYPTO_LZO=y
|
||||
CONFIG_CRYPTO_RNG=y
|
||||
CONFIG_CRYPTO_RNG2=y
|
||||
CONFIG_CRYPTO_RNG_DEFAULT=y
|
||||
CONFIG_CRYPTO_RSA=y
|
||||
CONFIG_CRYPTO_SEQIV=y
|
||||
CONFIG_CRYPTO_SHA1=y
|
||||
CONFIG_CRYPTO_SHA1_ARM=y
|
||||
CONFIG_CRYPTO_SHA1_ARM_NEON=y
|
||||
CONFIG_CRYPTO_SHA256=y
|
||||
CONFIG_CRYPTO_SHA256_ARM=y
|
||||
CONFIG_CRYPTO_SHA512=y
|
||||
CONFIG_CRYPTO_SHA512_ARM=y
|
||||
CONFIG_CRYPTO_SIMD=y
|
||||
CONFIG_CRYPTO_XTS=y
|
||||
CONFIG_CRYPTO_ZSTD=y
|
||||
CONFIG_CURRENT_POINTER_IN_TPIDRURO=y
|
||||
CONFIG_DCACHE_WORD_ACCESS=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
|
||||
CONFIG_DEBUG_MISC=y
|
||||
CONFIG_DECOMPRESS_BZIP2=y
|
||||
CONFIG_DECOMPRESS_GZIP=y
|
||||
CONFIG_DECOMPRESS_LZO=y
|
||||
CONFIG_DECOMPRESS_XZ=y
|
||||
CONFIG_DMADEVICES=y
|
||||
CONFIG_DMA_ENGINE=y
|
||||
CONFIG_DMA_OF=y
|
||||
CONFIG_DMA_OPS=y
|
||||
CONFIG_DMA_VIRTUAL_CHANNELS=y
|
||||
# CONFIG_DRM_DW_HDMI_GP_AUDIO is not set
|
||||
# CONFIG_DRM_FSL_LDB is not set
|
||||
# CONFIG_DRM_IMX8QM_LDB is not set
|
||||
# CONFIG_DRM_IMX8QXP_LDB is not set
|
||||
# CONFIG_DRM_IMX8QXP_PIXEL_COMBINER is not set
|
||||
# CONFIG_DRM_IMX8QXP_PIXEL_LINK_TO_DPI is not set
|
||||
# CONFIG_DRM_IMX_LCDC is not set
|
||||
CONFIG_DTC=y
|
||||
CONFIG_EDAC_ATOMIC_SCRUB=y
|
||||
CONFIG_EDAC_SUPPORT=y
|
||||
CONFIG_ENCRYPTED_KEYS=y
|
||||
CONFIG_EXCLUSIVE_SYSTEM_RAM=y
|
||||
CONFIG_EXT4_FS=y
|
||||
CONFIG_EXTCON=y
|
||||
CONFIG_F2FS_FS=y
|
||||
CONFIG_FEC=y
|
||||
CONFIG_FIXED_PHY=y
|
||||
CONFIG_FIX_EARLYCON_MEM=y
|
||||
# CONFIG_FSL_DPAA2_SWITCH is not set
|
||||
CONFIG_FSL_GUTS=y
|
||||
CONFIG_FS_ENCRYPTION=y
|
||||
CONFIG_FS_ENCRYPTION_ALGS=y
|
||||
CONFIG_FS_IOMAP=y
|
||||
CONFIG_FS_MBCACHE=y
|
||||
CONFIG_FWNODE_MDIO=y
|
||||
CONFIG_FW_LOADER_PAGED_BUF=y
|
||||
CONFIG_FW_LOADER_SYSFS=y
|
||||
CONFIG_GENERIC_ALLOCATOR=y
|
||||
CONFIG_GENERIC_ARCH_TOPOLOGY=y
|
||||
CONFIG_GENERIC_BUG=y
|
||||
CONFIG_GENERIC_CLOCKEVENTS=y
|
||||
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
|
||||
CONFIG_GENERIC_CPU_AUTOPROBE=y
|
||||
CONFIG_GENERIC_CPU_VULNERABILITIES=y
|
||||
CONFIG_GENERIC_EARLY_IOREMAP=y
|
||||
CONFIG_GENERIC_GETTIMEOFDAY=y
|
||||
CONFIG_GENERIC_IDLE_POLL_SETUP=y
|
||||
CONFIG_GENERIC_IRQ_CHIP=y
|
||||
CONFIG_GENERIC_IRQ_MULTI_HANDLER=y
|
||||
CONFIG_GENERIC_IRQ_SHOW=y
|
||||
CONFIG_GENERIC_IRQ_SHOW_LEVEL=y
|
||||
CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED=y
|
||||
CONFIG_GENERIC_MSI_IRQ=y
|
||||
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_GENERIC_PCI_IOMAP=y
|
||||
CONFIG_GENERIC_PINCONF=y
|
||||
CONFIG_GENERIC_PINCTRL_GROUPS=y
|
||||
CONFIG_GENERIC_PINMUX_FUNCTIONS=y
|
||||
CONFIG_GENERIC_SCHED_CLOCK=y
|
||||
CONFIG_GENERIC_SMP_IDLE_THREAD=y
|
||||
CONFIG_GENERIC_STRNCPY_FROM_USER=y
|
||||
CONFIG_GENERIC_STRNLEN_USER=y
|
||||
CONFIG_GENERIC_TIME_VSYSCALL=y
|
||||
CONFIG_GENERIC_VDSO_32=y
|
||||
# CONFIG_GIANFAR is not set
|
||||
CONFIG_GLOB=y
|
||||
CONFIG_GPIOLIB_IRQCHIP=y
|
||||
CONFIG_GPIO_CDEV=y
|
||||
CONFIG_GPIO_GENERIC=y
|
||||
CONFIG_GPIO_MXC=y
|
||||
CONFIG_GPIO_VF610=y
|
||||
CONFIG_GRO_CELLS=y
|
||||
CONFIG_HARDEN_BRANCH_PREDICTOR=y
|
||||
CONFIG_HARDIRQS_SW_RESEND=y
|
||||
CONFIG_HAS_DMA=y
|
||||
CONFIG_HAS_IOMEM=y
|
||||
CONFIG_HAS_IOPORT_MAP=y
|
||||
CONFIG_HAVE_SMP=y
|
||||
CONFIG_HWMON=y
|
||||
CONFIG_HW_RANDOM=y
|
||||
CONFIG_HZ_FIXED=0
|
||||
CONFIG_HZ_PERIODIC=y
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I2C_BOARDINFO=y
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_IMX=y
|
||||
# CONFIG_I2C_IMX_LPI2C is not set
|
||||
CONFIG_I2C_SLAVE=y
|
||||
# CONFIG_I2C_SLAVE_TESTUNIT is not set
|
||||
CONFIG_IMX2_WDT=y
|
||||
# CONFIG_IMX7ULP_WDT is not set
|
||||
# CONFIG_IMX8MM_THERMAL is not set
|
||||
# CONFIG_IMX93_ADC is not set
|
||||
CONFIG_IMX_DMA=y
|
||||
# CONFIG_IMX_GPCV2_PM_DOMAINS is not set
|
||||
CONFIG_IMX_INTMUX=y
|
||||
CONFIG_IMX_IRQSTEER=y
|
||||
CONFIG_IMX_MU_MSI=m
|
||||
CONFIG_IMX_SDMA=y
|
||||
CONFIG_IMX_THERMAL=y
|
||||
# CONFIG_IMX_WEIM is not set
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
# CONFIG_INPUT_BBNSM_PWRKEY is not set
|
||||
CONFIG_IRQCHIP=y
|
||||
CONFIG_IRQSTACKS=y
|
||||
CONFIG_IRQ_DOMAIN=y
|
||||
CONFIG_IRQ_DOMAIN_HIERARCHY=y
|
||||
CONFIG_IRQ_FORCED_THREADING=y
|
||||
CONFIG_IRQ_WORK=y
|
||||
CONFIG_JBD2=y
|
||||
# CONFIG_JFFS2_FS is not set
|
||||
CONFIG_KEYS=y
|
||||
CONFIG_LIBFDT=y
|
||||
CONFIG_LOCK_DEBUGGING_SUPPORT=y
|
||||
CONFIG_LOCK_SPIN_ON_OWNER=y
|
||||
CONFIG_LZO_COMPRESS=y
|
||||
CONFIG_LZO_DECOMPRESS=y
|
||||
CONFIG_MDIO_BUS=y
|
||||
CONFIG_MDIO_DEVICE=y
|
||||
CONFIG_MDIO_DEVRES=y
|
||||
CONFIG_MEMFD_CREATE=y
|
||||
CONFIG_MFD_SYSCON=y
|
||||
CONFIG_MIGHT_HAVE_CACHE_L2X0=y
|
||||
CONFIG_MIGRATION=y
|
||||
CONFIG_MMC=y
|
||||
CONFIG_MMC_BLOCK=y
|
||||
CONFIG_MMC_CQHCI=y
|
||||
# CONFIG_MMC_MXC is not set
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ESDHC_IMX=y
|
||||
CONFIG_MMC_SDHCI_IO_ACCESSORS=y
|
||||
CONFIG_MMC_SDHCI_OF_ESDHC=y
|
||||
CONFIG_MMC_SDHCI_PLTFM=y
|
||||
CONFIG_MODULES_USE_ELF_REL=y
|
||||
CONFIG_MPILIB=y
|
||||
CONFIG_MTD_NAND_CORE=y
|
||||
CONFIG_MTD_NAND_ECC=y
|
||||
CONFIG_MTD_NAND_ECC_SW_HAMMING=y
|
||||
CONFIG_MTD_NAND_GPMI_NAND=y
|
||||
CONFIG_MTD_RAW_NAND=y
|
||||
CONFIG_MTD_UBI=y
|
||||
CONFIG_MTD_UBI_BEB_LIMIT=20
|
||||
CONFIG_MTD_UBI_BLOCK=y
|
||||
CONFIG_MTD_UBI_WL_THRESHOLD=4096
|
||||
CONFIG_MUTEX_SPIN_ON_OWNER=y
|
||||
# CONFIG_MX3_IPU is not set
|
||||
CONFIG_MXC_CLK=y
|
||||
CONFIG_MXS_DMA=y
|
||||
CONFIG_NEED_DMA_MAP_STATE=y
|
||||
CONFIG_NEON=y
|
||||
CONFIG_NET_DEVLINK=y
|
||||
CONFIG_NET_DSA=y
|
||||
# CONFIG_NET_DSA_MICROCHIP_KSZ_PTP is not set
|
||||
CONFIG_NET_DSA_TAG_DSA=y
|
||||
CONFIG_NET_DSA_TAG_DSA_COMMON=y
|
||||
CONFIG_NET_DSA_TAG_EDSA=y
|
||||
CONFIG_NET_FLOW_LIMIT=y
|
||||
CONFIG_NET_PTP_CLASSIFY=y
|
||||
CONFIG_NET_SELFTESTS=y
|
||||
CONFIG_NET_SWITCHDEV=y
|
||||
CONFIG_NLS=y
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NR_CPUS=4
|
||||
CONFIG_NVMEM=y
|
||||
# CONFIG_NVMEM_IMX_IIM is not set
|
||||
CONFIG_NVMEM_IMX_OCOTP=y
|
||||
# CONFIG_NVMEM_IMX_OCOTP_ELE is not set
|
||||
CONFIG_NVMEM_LAYOUTS=y
|
||||
# CONFIG_NVMEM_SNVS_LPGPR is not set
|
||||
CONFIG_NVMEM_SYSFS=y
|
||||
CONFIG_OF=y
|
||||
CONFIG_OF_ADDRESS=y
|
||||
CONFIG_OF_EARLY_FLATTREE=y
|
||||
CONFIG_OF_FLATTREE=y
|
||||
CONFIG_OF_GPIO=y
|
||||
CONFIG_OF_IRQ=y
|
||||
CONFIG_OF_KOBJ=y
|
||||
CONFIG_OF_MDIO=y
|
||||
CONFIG_OLD_SIGACTION=y
|
||||
CONFIG_OLD_SIGSUSPEND3=y
|
||||
CONFIG_OUTER_CACHE=y
|
||||
CONFIG_OUTER_CACHE_SYNC=y
|
||||
CONFIG_PADATA=y
|
||||
CONFIG_PAGE_OFFSET=0x80000000
|
||||
CONFIG_PAGE_POOL=y
|
||||
CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
|
||||
CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
|
||||
CONFIG_PCI_IMX6_HOST=y
|
||||
CONFIG_PERF_USE_VMALLOC=y
|
||||
CONFIG_PGTABLE_LEVELS=2
|
||||
CONFIG_PHYLIB=y
|
||||
CONFIG_PHYLINK=y
|
||||
CONFIG_PINCTRL=y
|
||||
# CONFIG_PINCTRL_IMX8ULP is not set
|
||||
# CONFIG_PINCTRL_IMX93 is not set
|
||||
# CONFIG_PINCTRL_IMXRT1050 is not set
|
||||
# CONFIG_PINCTRL_IMXRT1170 is not set
|
||||
CONFIG_PL310_ERRATA_769419=y
|
||||
CONFIG_PM=y
|
||||
CONFIG_PM_CLK=y
|
||||
CONFIG_PM_OPP=y
|
||||
CONFIG_PPS=y
|
||||
CONFIG_PREEMPT_NONE_BUILD=y
|
||||
CONFIG_PTP_1588_CLOCK=y
|
||||
CONFIG_PTP_1588_CLOCK_OPTIONAL=y
|
||||
CONFIG_PWM=y
|
||||
# CONFIG_PWM_IMX1 is not set
|
||||
CONFIG_PWM_IMX27=y
|
||||
# CONFIG_PWM_IMX_TPM is not set
|
||||
CONFIG_PWM_SYSFS=y
|
||||
CONFIG_RANDSTRUCT_NONE=y
|
||||
CONFIG_RAS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RD_BZIP2=y
|
||||
CONFIG_RD_GZIP=y
|
||||
CONFIG_RD_LZO=y
|
||||
CONFIG_RD_XZ=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_I2C=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_REGULATOR=y
|
||||
CONFIG_REGULATOR_ANATOP=y
|
||||
CONFIG_REGULATOR_FIXED_VOLTAGE=y
|
||||
CONFIG_REGULATOR_PFUZE100=y
|
||||
CONFIG_RESET_CONTROLLER=y
|
||||
CONFIG_RFS_ACCEL=y
|
||||
CONFIG_RPS=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
# CONFIG_RTC_DRV_BBNSM is not set
|
||||
# CONFIG_RTC_DRV_CMOS is not set
|
||||
# CONFIG_RTC_DRV_IMXDI is not set
|
||||
# CONFIG_RTC_DRV_MXC is not set
|
||||
# CONFIG_RTC_DRV_MXC_V2 is not set
|
||||
CONFIG_RTC_I2C_AND_SPI=y
|
||||
CONFIG_RWSEM_SPIN_ON_OWNER=y
|
||||
CONFIG_SCHED_THERMAL_PRESSURE=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_SCSI_COMMON=y
|
||||
CONFIG_SERIAL_8250_FSL=y
|
||||
CONFIG_SERIAL_IMX=y
|
||||
CONFIG_SERIAL_IMX_CONSOLE=y
|
||||
CONFIG_SERIAL_IMX_EARLYCON=y
|
||||
CONFIG_SERIAL_MCTRL_GPIO=y
|
||||
CONFIG_SGL_ALLOC=y
|
||||
CONFIG_SG_POOL=y
|
||||
CONFIG_SMP=y
|
||||
CONFIG_SMP_ON_UP=y
|
||||
CONFIG_SOCK_RX_QUEUE_MAPPING=y
|
||||
CONFIG_SOC_BUS=y
|
||||
# CONFIG_SOC_IMX50 is not set
|
||||
# CONFIG_SOC_IMX51 is not set
|
||||
# CONFIG_SOC_IMX53 is not set
|
||||
# CONFIG_SOC_IMX6Q is not set
|
||||
# CONFIG_SOC_IMX6SL is not set
|
||||
# CONFIG_SOC_IMX6SLL is not set
|
||||
# CONFIG_SOC_IMX6SX is not set
|
||||
# CONFIG_SOC_IMX6UL is not set
|
||||
# CONFIG_SOC_IMX7D is not set
|
||||
# CONFIG_SOC_IMX7ULP is not set
|
||||
# CONFIG_SOC_IMX8M is not set
|
||||
# CONFIG_SOC_IMX9 is not set
|
||||
# CONFIG_SOC_LS1021A is not set
|
||||
# CONFIG_SOC_VF610 is not set
|
||||
CONFIG_SOFTIRQ_ON_OWN_STACK=y
|
||||
CONFIG_SPARSE_IRQ=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_BITBANG=y
|
||||
# CONFIG_SPI_FSL_LPSPI is not set
|
||||
# CONFIG_SPI_FSL_QUADSPI is not set
|
||||
CONFIG_SPI_IMX=y
|
||||
CONFIG_SPI_MASTER=y
|
||||
CONFIG_SRAM=y
|
||||
CONFIG_SRAM_EXEC=y
|
||||
CONFIG_SRCU=y
|
||||
CONFIG_STMP_DEVICE=y
|
||||
CONFIG_SWPHY=y
|
||||
CONFIG_SWP_EMULATE=y
|
||||
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
|
||||
CONFIG_THERMAL=y
|
||||
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
|
||||
CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0
|
||||
CONFIG_THERMAL_GOV_STEP_WISE=y
|
||||
CONFIG_THERMAL_OF=y
|
||||
CONFIG_THREAD_INFO_IN_TASK=y
|
||||
CONFIG_TICK_CPU_ACCOUNTING=y
|
||||
CONFIG_TIMER_OF=y
|
||||
CONFIG_TIMER_PROBE=y
|
||||
CONFIG_TREE_RCU=y
|
||||
CONFIG_TREE_SRCU=y
|
||||
CONFIG_UBIFS_FS=y
|
||||
# CONFIG_UCLAMP_TASK is not set
|
||||
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
|
||||
CONFIG_UNWINDER_ARM=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_CHIPIDEA=y
|
||||
CONFIG_USB_CHIPIDEA_HOST=y
|
||||
CONFIG_USB_CHIPIDEA_IMX=y
|
||||
CONFIG_USB_CHIPIDEA_UDC=y
|
||||
CONFIG_USB_COMMON=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_MXS_PHY=y
|
||||
CONFIG_USB_OTG=y
|
||||
CONFIG_USB_PHY=y
|
||||
CONFIG_USB_ROLE_SWITCH=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_USB_SUPPORT=y
|
||||
CONFIG_USB_ULPI_BUS=y
|
||||
CONFIG_USE_OF=y
|
||||
CONFIG_VFP=y
|
||||
CONFIG_VFPv3=y
|
||||
# CONFIG_VIDEO_DW100 is not set
|
||||
# CONFIG_VIDEO_HANTRO is not set
|
||||
# CONFIG_VIDEO_IMX7_CSI is not set
|
||||
# CONFIG_VIDEO_IMX8MQ_MIPI_CSI2 is not set
|
||||
# CONFIG_VIDEO_IMX8_ISI is not set
|
||||
# CONFIG_VIDEO_IMX_MIPI_CSIS is not set
|
||||
# CONFIG_VIDEO_ROCKCHIP_ISP1 is not set
|
||||
CONFIG_VMSPLIT_2G=y
|
||||
# CONFIG_VMSPLIT_3G is not set
|
||||
CONFIG_WATCHDOG_CORE=y
|
||||
CONFIG_XPS=y
|
||||
CONFIG_XXHASH=y
|
||||
CONFIG_XZ_DEC_ARM=y
|
||||
CONFIG_XZ_DEC_ARMTHUMB=y
|
||||
CONFIG_XZ_DEC_BCJ=y
|
||||
CONFIG_ZBOOT_ROM_BSS=0
|
||||
CONFIG_ZBOOT_ROM_TEXT=0
|
||||
CONFIG_ZLIB_DEFLATE=y
|
||||
CONFIG_ZLIB_INFLATE=y
|
||||
CONFIG_ZSTD_COMMON=y
|
||||
CONFIG_ZSTD_COMPRESS=y
|
||||
CONFIG_ZSTD_DECOMPRESS=y
|
||||
27
target/linux/imx/cortexa53/base-files/etc/board.d/02_network
Normal file
27
target/linux/imx/cortexa53/base-files/etc/board.d/02_network
Normal file
@@ -0,0 +1,27 @@
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
board_config_update
|
||||
|
||||
case "$board" in
|
||||
gw,imx8mm-gw72xx-0x|\
|
||||
gw,imx8mp-gw72xx-2x|\
|
||||
gw,imx8mm-gw73xx-0x|\
|
||||
gw,imx8mp-gw73xx-2x|\
|
||||
gw,imx8mm-gw7902-0x)
|
||||
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
|
||||
;;
|
||||
gw,imx8mm-gw7901)
|
||||
ucidef_set_interfaces_lan_wan 'lan2 lan3 lan4' 'lan1'
|
||||
;;
|
||||
gateworks,imx8mp-gw74xx)
|
||||
ucidef_set_network_device_path "eth0" "platform/soc@0/30800000.bus/30bf0000.ethernet"
|
||||
ucidef_set_network_device_path "eth1" "platform/soc@0/30800000.bus/30be0000.ethernet"
|
||||
ucidef_set_interfaces_lan_wan 'lan1 lan2 lan3 lan4' 'eth0'
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,17 @@
|
||||
. /lib/functions.sh
|
||||
. /lib/upgrade/common.sh
|
||||
|
||||
move_config() {
|
||||
local board=$(board_name)
|
||||
local partdev
|
||||
|
||||
export_bootdevice && export_partdevice partdev 1 && {
|
||||
mount -o rw,noatime "/dev/$partdev" /mnt
|
||||
[ -f "/mnt/$BACKUP_FILE" ] && {
|
||||
mv -f "/mnt/$BACKUP_FILE" /
|
||||
}
|
||||
umount /mnt
|
||||
}
|
||||
}
|
||||
|
||||
boot_hook_add preinit_mount_root move_config
|
||||
53
target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh
Executable file
53
target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh
Executable file
@@ -0,0 +1,53 @@
|
||||
|
||||
enable_image_metadata_check() {
|
||||
case "$(board_name)" in
|
||||
gw,imx8m*)
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
enable_image_metadata_check
|
||||
|
||||
platform_check_image() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
gw,imx8m*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Sysupgrade is not yet supported on $board."
|
||||
return 1
|
||||
}
|
||||
|
||||
platform_do_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
gw,imx8m*)
|
||||
export_bootdevice && export_partdevice diskdev 0 || {
|
||||
echo "Unable to find root device."
|
||||
return 1
|
||||
}
|
||||
v "Updating /dev/$diskdev..."
|
||||
get_image "$@" | dd of="/dev/$diskdev" bs=4096 conv=fsync
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_copy_config() {
|
||||
local board=$(board_name)
|
||||
local partdev
|
||||
|
||||
case "$board" in
|
||||
gw,imx8m*)
|
||||
export_partdevice partdev 1 && {
|
||||
v "Storing $UPGRADE_BACKUP on /dev/$partdev..."
|
||||
mount -o rw,noatime "/dev/$partdev" /mnt
|
||||
cp -af "$UPGRADE_BACKUP" "/mnt/$BACKUP_FILE"
|
||||
umount /mnt
|
||||
}
|
||||
;;
|
||||
esac
|
||||
}
|
||||
175
target/linux/imx/cortexa53/config-default
Normal file
175
target/linux/imx/cortexa53/config-default
Normal file
@@ -0,0 +1,175 @@
|
||||
CONFIG_64BIT=y
|
||||
CONFIG_ARCH_BINFMT_ELF_EXTRA_PHDRS=y
|
||||
CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y
|
||||
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
|
||||
CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
|
||||
CONFIG_ARCH_MMAP_RND_BITS=18
|
||||
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
|
||||
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
|
||||
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
|
||||
CONFIG_ARCH_NXP=y
|
||||
CONFIG_ARCH_PROC_KCORE_TEXT=y
|
||||
CONFIG_ARCH_STACKWALK=y
|
||||
CONFIG_ARCH_WANTS_NO_INSTR=y
|
||||
CONFIG_ARCH_WANTS_THP_SWAP=y
|
||||
CONFIG_ARM64=y
|
||||
CONFIG_ARM64_4K_PAGES=y
|
||||
CONFIG_ARM64_ERRATUM_843419=y
|
||||
CONFIG_ARM64_LD_HAS_FIX_ERRATUM_843419=y
|
||||
CONFIG_ARM64_PAGE_SHIFT=12
|
||||
CONFIG_ARM64_PA_BITS=48
|
||||
CONFIG_ARM64_PA_BITS_48=y
|
||||
CONFIG_ARM64_TAGGED_ADDR_ABI=y
|
||||
CONFIG_ARM64_VA_BITS=39
|
||||
CONFIG_ARM64_VA_BITS_39=y
|
||||
CONFIG_ARM_AMBA=y
|
||||
CONFIG_ARM_GIC=y
|
||||
CONFIG_ARM_GIC_V2M=y
|
||||
CONFIG_ARM_GIC_V3=y
|
||||
CONFIG_ARM_GIC_V3_ITS=y
|
||||
CONFIG_ARM_GIC_V3_ITS_PCI=y
|
||||
# CONFIG_ARM_IMX8M_DDRC_DEVFREQ is not set
|
||||
CONFIG_ARM_IMX_BUS_DEVFREQ=y
|
||||
CONFIG_ARM_IMX_CPUFREQ_DT=y
|
||||
CONFIG_ARM_PSCI_FW=y
|
||||
CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y
|
||||
CONFIG_BLK_MQ_PCI=y
|
||||
CONFIG_CC_HAVE_SHADOW_CALL_STACK=y
|
||||
CONFIG_CC_HAVE_STACKPROTECTOR_SYSREG=y
|
||||
CONFIG_CLK_IMX8MM=y
|
||||
CONFIG_CLK_IMX8MN=y
|
||||
CONFIG_CLK_IMX8MP=y
|
||||
CONFIG_CLK_IMX8MQ=y
|
||||
CONFIG_CMA=y
|
||||
CONFIG_CMA_AREAS=7
|
||||
# CONFIG_CMA_DEBUG is not set
|
||||
# CONFIG_CMA_DEBUGFS is not set
|
||||
# CONFIG_CMA_SYSFS is not set
|
||||
# CONFIG_COMMON_CLK_BD718XX is not set
|
||||
CONFIG_CONSOLE_TRANSLATIONS=y
|
||||
CONFIG_CONTIG_ALLOC=y
|
||||
CONFIG_CRYPTO_AES_ARM64=y
|
||||
CONFIG_CRYPTO_AES_ARM64_CE=y
|
||||
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
|
||||
CONFIG_CRYPTO_AES_ARM64_CE_CCM=y
|
||||
CONFIG_CRYPTO_GHASH_ARM64_CE=y
|
||||
CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y
|
||||
CONFIG_CRYPTO_SHA1_ARM64_CE=y
|
||||
CONFIG_CRYPTO_SHA256_ARM64=y
|
||||
CONFIG_CRYPTO_SHA2_ARM64_CE=y
|
||||
CONFIG_CRYPTO_SHA512_ARM64=y
|
||||
CONFIG_CRYPTO_SHA512_ARM64_CE=y
|
||||
# CONFIG_DEVFREQ_GOV_PASSIVE is not set
|
||||
# CONFIG_DEVFREQ_GOV_PERFORMANCE is not set
|
||||
# CONFIG_DEVFREQ_GOV_POWERSAVE is not set
|
||||
# CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND is not set
|
||||
CONFIG_DEVFREQ_GOV_USERSPACE=y
|
||||
# CONFIG_DEVFREQ_THERMAL is not set
|
||||
# CONFIG_DMA_CMA is not set
|
||||
CONFIG_DMA_DIRECT_REMAP=y
|
||||
# CONFIG_DRM_IMX_DCSS is not set
|
||||
CONFIG_DUMMY_CONSOLE=y
|
||||
CONFIG_DWMAC_DWC_QOS_ETH=y
|
||||
CONFIG_DWMAC_GENERIC=y
|
||||
CONFIG_DWMAC_IMX8=y
|
||||
CONFIG_EXTCON_USB_GPIO=y
|
||||
CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx7d.bin"
|
||||
CONFIG_EXTRA_FIRMWARE_DIR="firmware"
|
||||
CONFIG_FRAME_POINTER=y
|
||||
CONFIG_GCC_SUPPORTS_DYNAMIC_FTRACE_WITH_REGS=y
|
||||
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
|
||||
CONFIG_GENERIC_CSUM=y
|
||||
CONFIG_GENERIC_IOREMAP=y
|
||||
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
|
||||
CONFIG_GENERIC_PHY=y
|
||||
CONFIG_GPIO_PCA953X=y
|
||||
CONFIG_GPIO_PCA953X_IRQ=y
|
||||
CONFIG_HW_CONSOLE=y
|
||||
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
|
||||
CONFIG_IMX8MM_THERMAL=y
|
||||
CONFIG_IMX_GPCV2=y
|
||||
CONFIG_IMX_GPCV2_PM_DOMAINS=y
|
||||
CONFIG_INPUT=y
|
||||
CONFIG_INTERCONNECT=y
|
||||
CONFIG_INTERCONNECT_IMX=y
|
||||
CONFIG_INTERCONNECT_IMX8MM=y
|
||||
CONFIG_INTERCONNECT_IMX8MN=y
|
||||
CONFIG_INTERCONNECT_IMX8MP=y
|
||||
CONFIG_INTERCONNECT_IMX8MQ=y
|
||||
CONFIG_MEMORY_ISOLATION=y
|
||||
CONFIG_MFD_CORE=y
|
||||
CONFIG_MFD_ROHM_BD718XX=y
|
||||
# CONFIG_MMC_SDHCI_PCI is not set
|
||||
CONFIG_MODULES_USE_ELF_RELA=y
|
||||
CONFIG_NEED_SG_DMA_LENGTH=y
|
||||
# CONFIG_NET_DSA_MICROCHIP_KSZ8863_SMI is not set
|
||||
CONFIG_NET_DSA_MICROCHIP_KSZ9477_I2C=y
|
||||
CONFIG_NET_DSA_MICROCHIP_KSZ_COMMON=y
|
||||
# CONFIG_NET_DSA_MICROCHIP_KSZ_SPI is not set
|
||||
CONFIG_NET_DSA_TAG_KSZ=y
|
||||
CONFIG_NOP_USB_XCEIV=y
|
||||
CONFIG_PARTITION_PERCPU=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_PCIEAER=y
|
||||
CONFIG_PCIEPORTBUS=y
|
||||
CONFIG_PCIE_DW=y
|
||||
CONFIG_PCIE_DW_HOST=y
|
||||
CONFIG_PCIE_PME=y
|
||||
CONFIG_PCI_DOMAINS=y
|
||||
CONFIG_PCI_DOMAINS_GENERIC=y
|
||||
CONFIG_PCI_IMX6=y
|
||||
CONFIG_PCI_MSI=y
|
||||
CONFIG_PCI_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_PCS_XPCS=y
|
||||
CONFIG_PGTABLE_LEVELS=3
|
||||
CONFIG_PHYLIB_LEDS=y
|
||||
CONFIG_PHYS_ADDR_T_64BIT=y
|
||||
CONFIG_PHY_FSL_IMX8MQ_USB=y
|
||||
CONFIG_PHY_FSL_IMX8M_PCIE=y
|
||||
# CONFIG_PHY_MIXEL_LVDS_PHY is not set
|
||||
CONFIG_PINCTRL_IMX=y
|
||||
CONFIG_PINCTRL_IMX8MM=y
|
||||
CONFIG_PINCTRL_IMX8MN=y
|
||||
CONFIG_PINCTRL_IMX8MP=y
|
||||
CONFIG_PINCTRL_IMX8MQ=y
|
||||
CONFIG_PM_DEVFREQ=y
|
||||
# CONFIG_PM_DEVFREQ_EVENT is not set
|
||||
CONFIG_PM_GENERIC_DOMAINS=y
|
||||
CONFIG_PM_GENERIC_DOMAINS_OF=y
|
||||
CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
|
||||
CONFIG_POWER_RESET=y
|
||||
CONFIG_POWER_SUPPLY=y
|
||||
CONFIG_QUEUED_RWLOCKS=y
|
||||
CONFIG_QUEUED_SPINLOCKS=y
|
||||
CONFIG_REGMAP_IRQ=y
|
||||
CONFIG_REGULATOR_BD718XX=y
|
||||
CONFIG_REGULATOR_MP5416=y
|
||||
CONFIG_REGULATOR_PCA9450=y
|
||||
CONFIG_REGULATOR_ROHM=y
|
||||
CONFIG_RESET_IMX7=y
|
||||
CONFIG_RODATA_FULL_DEFAULT_ENABLED=y
|
||||
CONFIG_SOC_IMX8M=y
|
||||
CONFIG_SPARSEMEM=y
|
||||
CONFIG_SPARSEMEM_EXTREME=y
|
||||
CONFIG_SPARSEMEM_VMEMMAP=y
|
||||
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
|
||||
CONFIG_STMMAC_ETH=y
|
||||
CONFIG_STMMAC_PLATFORM=y
|
||||
CONFIG_SWIOTLB=y
|
||||
CONFIG_SYSCTL_EXCEPTION_TRACE=y
|
||||
CONFIG_TIMER_IMX_SYS_CTR=y
|
||||
CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y
|
||||
CONFIG_UNMAP_KERNEL_AT_EL0=y
|
||||
CONFIG_USB_CONN_GPIO=y
|
||||
CONFIG_USB_DWC3=y
|
||||
CONFIG_USB_DWC3_DUAL_ROLE=y
|
||||
# CONFIG_USB_DWC3_GADGET is not set
|
||||
# CONFIG_USB_DWC3_HOST is not set
|
||||
CONFIG_USB_DWC3_IMX8MP=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_XHCI_PLATFORM=y
|
||||
CONFIG_VMAP_STACK=y
|
||||
CONFIG_VT=y
|
||||
CONFIG_VT_CONSOLE=y
|
||||
CONFIG_VT_HW_CONSOLE_BINDING=y
|
||||
CONFIG_ZONE_DMA32=y
|
||||
8
target/linux/imx/cortexa53/target.mk
Normal file
8
target/linux/imx/cortexa53/target.mk
Normal file
@@ -0,0 +1,8 @@
|
||||
ARCH:=aarch64
|
||||
BOARDNAME:=NXP i.MX with Cortex-A53 (ARM64)
|
||||
CPU_TYPE:=cortex-a53
|
||||
KERNELNAME:=Image dtbs
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for NXP i.MX (Cortex-A53) based boards.
|
||||
endef
|
||||
18
target/linux/imx/cortexa7/base-files/etc/board.d/02_network
Normal file
18
target/linux/imx/cortexa7/base-files/etc/board.d/02_network
Normal file
@@ -0,0 +1,18 @@
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
board_config_update
|
||||
|
||||
case "$board" in
|
||||
technexion,imx7d-pico-pi)
|
||||
ucidef_set_interface_lan "eth0"
|
||||
;;
|
||||
*)
|
||||
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,15 @@
|
||||
. /lib/imx.sh
|
||||
. /lib/functions.sh
|
||||
. /lib/upgrade/common.sh
|
||||
|
||||
move_config() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
technexion,imx7d-pico-pi)
|
||||
imx_sdcard_move_config
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
boot_hook_add preinit_mount_root move_config
|
||||
55
target/linux/imx/cortexa7/base-files/lib/upgrade/platform.sh
Normal file
55
target/linux/imx/cortexa7/base-files/lib/upgrade/platform.sh
Normal file
@@ -0,0 +1,55 @@
|
||||
. /lib/imx.sh
|
||||
|
||||
RAMFS_COPY_BIN='blkid jffs2reset'
|
||||
|
||||
enable_image_metadata_check() {
|
||||
case "$(board_name)" in
|
||||
technexion,imx7d-pico-pi)
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
enable_image_metadata_check
|
||||
|
||||
platform_check_image() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
technexion,imx7d-pico-pi)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Sysupgrade is not yet supported on $board."
|
||||
return 1
|
||||
}
|
||||
|
||||
platform_do_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
technexion,imx7d-pico-pi)
|
||||
imx_sdcard_do_upgrade "$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_copy_config() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
technexion,imx7d-pico-pi)
|
||||
imx_sdcard_copy_config
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_pre_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
technexion,imx7d-pico-pi)
|
||||
imx_sdcard_pre_upgrade
|
||||
;;
|
||||
esac
|
||||
}
|
||||
89
target/linux/imx/cortexa7/config-default
Normal file
89
target/linux/imx/cortexa7/config-default
Normal file
@@ -0,0 +1,89 @@
|
||||
CONFIG_ARM_CPU_SUSPEND=y
|
||||
CONFIG_ARM_GIC=y
|
||||
CONFIG_ARM_IMX_CPUFREQ_DT=y
|
||||
CONFIG_ARM_PSCI=y
|
||||
CONFIG_ARM_PSCI_FW=y
|
||||
CONFIG_AT803X_PHY=y
|
||||
CONFIG_BACKLIGHT_CLASS_DEVICE=y
|
||||
CONFIG_BACKLIGHT_PWM=y
|
||||
CONFIG_CLK_IMX6UL=y
|
||||
CONFIG_CLK_IMX7D=y
|
||||
CONFIG_CMA=y
|
||||
CONFIG_CMA_AREAS=7
|
||||
# CONFIG_CMA_DEBUG is not set
|
||||
# CONFIG_CMA_DEBUGFS is not set
|
||||
# CONFIG_CMA_SYSFS is not set
|
||||
CONFIG_CONSOLE_TRANSLATIONS=y
|
||||
CONFIG_CONTIG_ALLOC=y
|
||||
# CONFIG_DMA_CMA is not set
|
||||
CONFIG_DMA_SHARED_BUFFER=y
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_BRIDGE=y
|
||||
CONFIG_DRM_DISPLAY_CONNECTOR=y
|
||||
CONFIG_DRM_DP_AUX_BUS=y
|
||||
CONFIG_DRM_FBDEV_EMULATION=y
|
||||
CONFIG_DRM_FBDEV_OVERALLOC=100
|
||||
CONFIG_DRM_GEM_CMA_HELPER=y
|
||||
CONFIG_DRM_KMS_CMA_HELPER=y
|
||||
CONFIG_DRM_KMS_HELPER=y
|
||||
CONFIG_DRM_MXS=y
|
||||
CONFIG_DRM_MXSFB=y
|
||||
CONFIG_DRM_PANEL=y
|
||||
CONFIG_DRM_PANEL_BRIDGE=y
|
||||
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
|
||||
CONFIG_DRM_PANEL_SIMPLE=y
|
||||
CONFIG_DRM_SIMPLE_BRIDGE=y
|
||||
CONFIG_DUMMY_CONSOLE=y
|
||||
CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx7d.bin"
|
||||
CONFIG_EXTRA_FIRMWARE_DIR="firmware"
|
||||
CONFIG_FB=y
|
||||
CONFIG_FB_CFB_COPYAREA=y
|
||||
CONFIG_FB_CFB_FILLRECT=y
|
||||
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||
CONFIG_FB_CMDLINE=y
|
||||
CONFIG_FB_DEFERRED_IO=y
|
||||
CONFIG_FB_SYS_COPYAREA=y
|
||||
CONFIG_FB_SYS_FILLRECT=y
|
||||
CONFIG_FB_SYS_FOPS=y
|
||||
CONFIG_FB_SYS_IMAGEBLIT=y
|
||||
CONFIG_FONT_8x16=y
|
||||
CONFIG_FONT_8x8=y
|
||||
CONFIG_FONT_SUPPORT=y
|
||||
CONFIG_FRAMEBUFFER_CONSOLE=y
|
||||
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
|
||||
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
|
||||
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
|
||||
# CONFIG_HARDEN_BRANCH_HISTORY is not set
|
||||
# CONFIG_HARDEN_BRANCH_PREDICTOR is not set
|
||||
CONFIG_HDMI=y
|
||||
CONFIG_HW_CONSOLE=y
|
||||
CONFIG_HW_RANDOM_IMX_RNGC=y
|
||||
CONFIG_I2C_ALGOBIT=y
|
||||
CONFIG_IMX_GPCV2=y
|
||||
CONFIG_IMX_GPCV2_PM_DOMAINS=y
|
||||
CONFIG_INPUT=y
|
||||
CONFIG_JFFS2_FS=y
|
||||
CONFIG_KCMP=y
|
||||
CONFIG_LEDS_GPIO=y
|
||||
CONFIG_MEMORY_ISOLATION=y
|
||||
CONFIG_MTD_SPI_NOR=y
|
||||
CONFIG_MTD_SPLIT_FIRMWARE=y
|
||||
CONFIG_MTD_SPLIT_FIT_FW=y
|
||||
CONFIG_NOP_USB_XCEIV=y
|
||||
CONFIG_PINCTRL_IMX=y
|
||||
CONFIG_PINCTRL_IMX6UL=y
|
||||
CONFIG_PINCTRL_IMX7D=y
|
||||
CONFIG_PM_GENERIC_DOMAINS=y
|
||||
CONFIG_PM_GENERIC_DOMAINS_OF=y
|
||||
CONFIG_RESET_IMX7=y
|
||||
CONFIG_SOC_IMX6=y
|
||||
CONFIG_SOC_IMX6UL=y
|
||||
CONFIG_SOC_IMX7D=y
|
||||
CONFIG_SOC_IMX7D_CA7=y
|
||||
CONFIG_SPI_FSL_QUADSPI=y
|
||||
CONFIG_SPI_MEM=y
|
||||
CONFIG_SYNC_FILE=y
|
||||
CONFIG_VIDEOMODE_HELPERS=y
|
||||
CONFIG_VT=y
|
||||
CONFIG_VT_CONSOLE=y
|
||||
CONFIG_VT_HW_CONSOLE_BINDING=y
|
||||
9
target/linux/imx/cortexa7/target.mk
Normal file
9
target/linux/imx/cortexa7/target.mk
Normal file
@@ -0,0 +1,9 @@
|
||||
ARCH:=arm
|
||||
BOARDNAME:=NXP i.MX with Cortex-A7
|
||||
CPU_TYPE:=cortex-a7
|
||||
CPU_SUBTYPE:=neon-vfpv4
|
||||
KERNELNAME:=zImage dtbs
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for NXP i.MX (Cortex-A7) based boards.
|
||||
endef
|
||||
46
target/linux/imx/cortexa9/base-files/etc/board.d/02_network
Normal file
46
target/linux/imx/cortexa9/base-files/etc/board.d/02_network
Normal file
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (C) 2013-2015 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
board_config_update
|
||||
|
||||
case "$board" in
|
||||
gw,imx6dl-gw51xx|\
|
||||
gw,imx6dl-gw52xx|\
|
||||
gw,imx6dl-gw5904|\
|
||||
gw,imx6dl-gw5907|\
|
||||
gw,imx6dl-gw5910|\
|
||||
gw,imx6dl-gw5912|\
|
||||
gw,imx6dl-gw5913|\
|
||||
gw,imx6q-gw51xx|\
|
||||
gw,imx6q-gw52xx|\
|
||||
gw,imx6q-gw5904|\
|
||||
gw,imx6q-gw5907|\
|
||||
gw,imx6q-gw5910|\
|
||||
gw,imx6q-gw5912|\
|
||||
gw,imx6q-gw5913|\
|
||||
solidrun,cubox-i/dl|\
|
||||
solidrun,cubox-i/q)
|
||||
ucidef_set_interface_lan 'eth0'
|
||||
;;
|
||||
gw,imx6dl-gw53xx|\
|
||||
gw,imx6dl-gw54xx|\
|
||||
gw,imx6dl-gw552x|\
|
||||
gw,imx6q-gw53xx|\
|
||||
gw,imx6q-gw5400-a|\
|
||||
gw,imx6q-gw54xx|\
|
||||
gw,imx6q-gw552x)
|
||||
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
|
||||
;;
|
||||
wand,imx6dl-wandboard)
|
||||
ucidef_set_interface_wan 'eth0'
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,17 @@
|
||||
. /lib/imx.sh
|
||||
. /lib/functions.sh
|
||||
. /lib/upgrade/common.sh
|
||||
|
||||
move_config() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_move_config
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
boot_hook_add preinit_mount_root move_config
|
||||
124
target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh
Executable file
124
target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh
Executable file
@@ -0,0 +1,124 @@
|
||||
#
|
||||
# Copyright (C) 2010-2015 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/imx.sh
|
||||
|
||||
RAMFS_COPY_BIN='blkid jffs2reset'
|
||||
|
||||
enable_image_metadata_check() {
|
||||
case "$(board_name)" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
enable_image_metadata_check
|
||||
|
||||
platform_check_image() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
gw,imx6dl-gw51xx|\
|
||||
gw,imx6dl-gw52xx|\
|
||||
gw,imx6dl-gw53xx|\
|
||||
gw,imx6dl-gw54xx|\
|
||||
gw,imx6dl-gw551x|\
|
||||
gw,imx6dl-gw552x|\
|
||||
gw,imx6dl-gw553x|\
|
||||
gw,imx6dl-gw5904|\
|
||||
gw,imx6dl-gw5907|\
|
||||
gw,imx6dl-gw5910|\
|
||||
gw,imx6dl-gw5912|\
|
||||
gw,imx6dl-gw5913|\
|
||||
gw,imx6q-gw51xx|\
|
||||
gw,imx6q-gw52xx|\
|
||||
gw,imx6q-gw53xx|\
|
||||
gw,imx6q-gw5400-a|\
|
||||
gw,imx6q-gw54xx|\
|
||||
gw,imx6q-gw551x|\
|
||||
gw,imx6q-gw552x|\
|
||||
gw,imx6q-gw553x|\
|
||||
gw,imx6q-gw5904|\
|
||||
gw,imx6q-gw5907|\
|
||||
gw,imx6q-gw5910|\
|
||||
gw,imx6q-gw5912|\
|
||||
gw,imx6q-gw5913)
|
||||
nand_do_platform_check $board $1
|
||||
return $?;
|
||||
;;
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Sysupgrade is not yet supported on $board."
|
||||
return 1
|
||||
}
|
||||
|
||||
platform_do_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
gw,imx6dl-gw51xx|\
|
||||
gw,imx6dl-gw52xx|\
|
||||
gw,imx6dl-gw53xx|\
|
||||
gw,imx6dl-gw54xx|\
|
||||
gw,imx6dl-gw551x|\
|
||||
gw,imx6dl-gw552x|\
|
||||
gw,imx6dl-gw553x|\
|
||||
gw,imx6dl-gw5904|\
|
||||
gw,imx6dl-gw5907|\
|
||||
gw,imx6dl-gw5910|\
|
||||
gw,imx6dl-gw5912|\
|
||||
gw,imx6dl-gw5913|\
|
||||
gw,imx6q-gw51xx|\
|
||||
gw,imx6q-gw52xx|\
|
||||
gw,imx6q-gw53xx|\
|
||||
gw,imx6q-gw5400-a|\
|
||||
gw,imx6q-gw54xx|\
|
||||
gw,imx6q-gw551x|\
|
||||
gw,imx6q-gw552x|\
|
||||
gw,imx6q-gw553x|\
|
||||
gw,imx6q-gw5904|\
|
||||
gw,imx6q-gw5907|\
|
||||
gw,imx6q-gw5910|\
|
||||
gw,imx6q-gw5912|\
|
||||
gw,imx6q-gw5913)
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_do_upgrade "$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_copy_config() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_copy_config
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_pre_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_pre_upgrade
|
||||
;;
|
||||
esac
|
||||
}
|
||||
53
target/linux/imx/cortexa9/config-default
Normal file
53
target/linux/imx/cortexa9/config-default
Normal file
@@ -0,0 +1,53 @@
|
||||
CONFIG_AHCI_IMX=y
|
||||
CONFIG_ARM_CPU_SUSPEND=y
|
||||
CONFIG_ARM_GIC=y
|
||||
CONFIG_ARM_IMX6Q_CPUFREQ=y
|
||||
CONFIG_ATA_SFF=y
|
||||
CONFIG_BLK_MQ_PCI=y
|
||||
CONFIG_CLK_IMX6Q=y
|
||||
CONFIG_CLK_IMX6SL=y
|
||||
CONFIG_CLK_IMX6SX=y
|
||||
CONFIG_CMDLINE="pci=nomsi"
|
||||
CONFIG_CMDLINE_EXTEND=y
|
||||
CONFIG_E1000E=y
|
||||
CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx6q.bin"
|
||||
CONFIG_EXTRA_FIRMWARE_DIR="firmware"
|
||||
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
|
||||
CONFIG_GENERIC_MSI_IRQ=y
|
||||
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_GPIOLIB_IRQCHIP=y
|
||||
CONFIG_GPIO_PCA953X=y
|
||||
CONFIG_GPIO_PCA953X_IRQ=y
|
||||
CONFIG_HW_RANDOM_IMX_RNGC=y
|
||||
# CONFIG_INITRAMFS_FORCE is not set
|
||||
CONFIG_MARVELL_PHY=y
|
||||
CONFIG_MICREL_PHY=y
|
||||
# CONFIG_MMC_SDHCI_PCI is not set
|
||||
CONFIG_NET_DSA_MV88E6XXX=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_PCIEAER=y
|
||||
CONFIG_PCIEPORTBUS=y
|
||||
CONFIG_PCIE_DW=y
|
||||
CONFIG_PCIE_DW_HOST=y
|
||||
CONFIG_PCIE_PME=y
|
||||
CONFIG_PCI_DOMAINS=y
|
||||
CONFIG_PCI_DOMAINS_GENERIC=y
|
||||
CONFIG_PCI_IMX6=y
|
||||
CONFIG_PCI_MSI=y
|
||||
CONFIG_PCI_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_PINCTRL_IMX=y
|
||||
CONFIG_PINCTRL_IMX6Q=y
|
||||
CONFIG_PINCTRL_IMX6SL=y
|
||||
CONFIG_PINCTRL_IMX6SX=y
|
||||
CONFIG_PM_GENERIC_DOMAINS=y
|
||||
CONFIG_PM_GENERIC_DOMAINS_OF=y
|
||||
CONFIG_REGMAP_I2C=y
|
||||
CONFIG_REGULATOR_LTC3676=y
|
||||
CONFIG_RTC_DRV_DS1307=y
|
||||
CONFIG_RTC_DRV_DS1672=y
|
||||
CONFIG_SATA_HOST=y
|
||||
CONFIG_SENSORS_AD7418=y
|
||||
CONFIG_SOC_IMX6=y
|
||||
CONFIG_SOC_IMX6Q=y
|
||||
CONFIG_SOC_IMX6SL=y
|
||||
CONFIG_SOC_IMX6SX=y
|
||||
9
target/linux/imx/cortexa9/target.mk
Normal file
9
target/linux/imx/cortexa9/target.mk
Normal file
@@ -0,0 +1,9 @@
|
||||
ARCH:=arm
|
||||
BOARDNAME:=NXP i.MX with Cortex-A9
|
||||
CPU_TYPE:=cortex-a9
|
||||
CPU_SUBTYPE:=neon
|
||||
KERNELNAME:=zImage dtbs
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for NXP i.MX (Cortex-A9) based boards.
|
||||
endef
|
||||
BIN
target/linux/imx/files/firmware/imx/sdma/sdma-imx6q.bin
Normal file
BIN
target/linux/imx/files/firmware/imx/sdma/sdma-imx6q.bin
Normal file
Binary file not shown.
BIN
target/linux/imx/files/firmware/imx/sdma/sdma-imx7d.bin
Normal file
BIN
target/linux/imx/files/firmware/imx/sdma/sdma-imx7d.bin
Normal file
Binary file not shown.
10
target/linux/imx/image/Makefile
Normal file
10
target/linux/imx/image/Makefile
Normal file
@@ -0,0 +1,10 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/image.mk
|
||||
|
||||
include $(SUBTARGET).mk
|
||||
|
||||
$(eval $(call BuildImage))
|
||||
41
target/linux/imx/image/bootscript-gateworks_venice
Normal file
41
target/linux/imx/image/bootscript-gateworks_venice
Normal file
@@ -0,0 +1,41 @@
|
||||
# distro-config bootscript
|
||||
# - use only well-known variable names provided by U-Boot Distro boot
|
||||
# - devtype - device type script run from (mmc|usb|scsi)
|
||||
# - devnum - device number script run from (0 based int)
|
||||
# - distro_bootpart - partition script run from (0 based int)
|
||||
# - prefix - directory boot script was found in
|
||||
# - kernel_addr_r - address to load kernel image to
|
||||
# - fdt_addr_r - address to load dtb to
|
||||
# - ftdcontroladdr - address dtb is at
|
||||
# - fdt_file{1,2,3,4,5} name of fdt to load
|
||||
# - fdt_overlays - list of fdt overlay files to load and apply
|
||||
echo "Gateworks Venice OpenWrt Boot script v1.0"
|
||||
|
||||
# determine root device using PARTUUID:
|
||||
# - this avoids any difference beteween uboot's device names/numbers
|
||||
# not matching Linux as device enumeration is not a set API.
|
||||
# - PARTUUID is disk UUID concatenated with partition number
|
||||
# - for MBR disk UUID is unique disk id at offset 440
|
||||
# - for GPT disk UUID is GPT UUID
|
||||
# - for OpenWrt the squasfs rootfs is not readable by U-Boot so we have
|
||||
# a 'boot' partition containing bootscript kernel dtbs followed by the rootfs
|
||||
# partition, therefore we add 1 to the current partition
|
||||
setexpr rootpart ${distro_bootpart} + 1 # root on 'next' partition
|
||||
part uuid ${devtype} ${devnum}:${rootpart} uuid
|
||||
setenv bootargs ${bootargs} console=${console} root=PARTUUID=${uuid} rootfstype=squashfs,ext4,f2fs rootwait
|
||||
|
||||
# load dtb (we try fdt_file and then fdt_file{1,2,3,4,5})
|
||||
echo "loading DTB..."
|
||||
setenv fdt_addr
|
||||
setenv fdt_list $fdt_file $fdt_file1 $fdt_file2 $fdt_file3 $fdt_file4 $fdt_file5
|
||||
setenv load_fdt 'echo Loading $fdt...; load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${fdt} && setenv fdt_addr ${fdt_addr_r}'
|
||||
setenv apply_overlays 'fdt addr $fdt_addr_r && fdt resize && for fdt in "$fdt_overlays"; do load ${devtype} ${devnum}:${distro_bootpart} $loadaddr $prefix/$fdt && fdt apply $loadaddr && echo applied $prefix/$fdt; done'
|
||||
for fdt in ${fdt_list}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${fdt}; then run load_fdt; fi; done
|
||||
if test -z "$fdt_addr"; then echo "Warning: Using bootloader DTB"; setenv fdt_addr $fdtcontroladdr; fi
|
||||
if test -n "$fdt_overlays"; then echo "Applying overlays"; run apply_overlays; fi
|
||||
if test -n "$fixfdt"; then echo "Adjusting FDT"; run fixfdt; fi
|
||||
|
||||
# load and boot kernel
|
||||
echo "loading kernel..."
|
||||
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} ${prefix}Image &&
|
||||
booti ${kernel_addr_r} - ${fdt_addr}
|
||||
31
target/linux/imx/image/bootscript-solidrun_cubox-i
Normal file
31
target/linux/imx/image/bootscript-solidrun_cubox-i
Normal file
@@ -0,0 +1,31 @@
|
||||
echo "CuBox OpenWrt Boot script"
|
||||
|
||||
# Set console variable for both UART and HDMI
|
||||
setenv console console=ttymxc0,115200 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32
|
||||
|
||||
# Find correct dtb
|
||||
if test ${board_rev} = MX6DL; then
|
||||
setenv fdt_soc_type imx6dl;
|
||||
elif test ${board_rev} = MX6Q; then
|
||||
setenv fdt_soc_type imx6q;
|
||||
fi
|
||||
if test ${board_name} = CUBOXI; then
|
||||
setenv fdt_name ${fdt_soc_type}-cubox-i.dtb;
|
||||
elif test ${board_name} = HUMMINGBOARD; then
|
||||
setenv fdt_name ${fdt_soc_type}-hummingboard.dtb;
|
||||
fi
|
||||
|
||||
# Set correct devtype and partition
|
||||
if test ${devtype} != mmc; then setenv devtype mmc; fi
|
||||
if mmc dev 0; then
|
||||
setenv mmcdev 0
|
||||
elif mmc dev 1; then
|
||||
setenv mmcdev 1
|
||||
fi
|
||||
|
||||
# Boot from the SD card is supported at the moment
|
||||
setenv bootargs "${console} root=/dev/mmcblk1p2 rw rootwait"
|
||||
mmc dev ${mmcdev}
|
||||
load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /uImage
|
||||
load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /${fdt_name}
|
||||
bootz ${kernel_addr_r} - ${fdt_addr_r}
|
||||
18
target/linux/imx/image/bootscript-technexion_imx7d-pico-pi
Normal file
18
target/linux/imx/image/bootscript-technexion_imx7d-pico-pi
Normal file
@@ -0,0 +1,18 @@
|
||||
echo "PICO-PI-IMX7 OpenWrt boot script"
|
||||
|
||||
# Initial setup, avoid overwriting environment every boot
|
||||
if test ${bootm_boot_mode} != nonsec; then setenv bootm_boot_mode nonsec; setenv bootcmd run bootcmd_mmc0; saveenv; fi
|
||||
|
||||
# Set console variable for both UART and HDMI
|
||||
setenv console "console=ttymxc4,115200 console=tty0 video=DPI-1:800x480-32"
|
||||
setenv fdt_name imx7d-pico-pi.dtb
|
||||
setenv mmcdev 0
|
||||
setenv mmcrootpart 2
|
||||
part uuid mmc ${mmcdev}:${mmcrootpart} uuid
|
||||
|
||||
# Boot from eMMC is the only supported option
|
||||
setenv bootargs "${console} root=PARTUUID=${uuid} rw rootwait"
|
||||
mmc dev ${mmcdev}
|
||||
load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /uImage
|
||||
load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /${fdt_name}
|
||||
bootm ${kernel_addr_r} - ${fdt_addr_r}
|
||||
23
target/linux/imx/image/bootscript-toradex_apalis
Normal file
23
target/linux/imx/image/bootscript-toradex_apalis
Normal file
@@ -0,0 +1,23 @@
|
||||
echo "Toradex Apalis OpenWrt Boot script v1.1"
|
||||
|
||||
setenv mmcdev 0
|
||||
setenv mmcrootpart 2
|
||||
part uuid mmc ${mmcdev}:${mmcrootpart} uuid
|
||||
|
||||
setenv nextcon 0
|
||||
setenv boot_file uImage
|
||||
setenv fdt_file imx6q-apalis-ixora.dtb
|
||||
setenv root root=PARTUUID=${uuid} rootfstype=squashfs rootwait
|
||||
setenv bootargs earlyprintk console=${console},${baudrate}n8 ${root}
|
||||
setenv fsload ext4load mmc ${mmcdev}:${mmcbootpart}
|
||||
|
||||
if ${fsload} ${kernel_addr_r} ${boot_file}; then
|
||||
if ${fsload} ${fdt_addr_r} ${fdt_file}; then
|
||||
test -n "$fdt_fixup" && run fdt_fixup
|
||||
bootm ${kernel_addr_r} - ${fdt_addr_r}
|
||||
else
|
||||
echo "Error loading device-tree"
|
||||
fi
|
||||
else
|
||||
echo "Error loading kernel image"
|
||||
fi
|
||||
85
target/linux/imx/image/bootscript-ventana
Normal file
85
target/linux/imx/image/bootscript-ventana
Normal file
@@ -0,0 +1,85 @@
|
||||
echo "Gateworks Ventana OpenWrt Boot script v1.02"
|
||||
|
||||
# set some defaults
|
||||
# set some defaults
|
||||
test -n "$fs" || fs=ext2
|
||||
test -n "$disk" || disk=0
|
||||
setenv nextcon 0
|
||||
setenv bootargs console=${console},${baudrate}
|
||||
setenv loadaddr 10800000
|
||||
setenv fdt_addr 18000000
|
||||
|
||||
# detect dtype by looking for kernel on media the bootloader
|
||||
# has mounted (in order of preference: usb/mmc/sata)
|
||||
#
|
||||
# This assumes the bootloader has already started the respective subsystem
|
||||
# or mounted the filesystem if appropriate to get to this bootscript
|
||||
#
|
||||
# To Speed up boot set dtype manually
|
||||
if test -n "$dtype" ; then
|
||||
echo "Using dtype from env: $dtype"
|
||||
else
|
||||
echo "Detecting boot device (dtype)..."
|
||||
if ${fs}load usb ${disk}:1 ${loadaddr} ${bootdir}/uImage ; then
|
||||
dtype=usb
|
||||
elif ${fs}load mmc ${disk}:1 ${loadaddr} ${bootdir}/uImage ; then
|
||||
dtype=mmc
|
||||
elif ${fs}load sata ${disk}:1 ${loadaddr} ${bootdir}/uImage ; then
|
||||
dtype=sata
|
||||
elif ubifsload ${loadaddr} ${bootdir}/uImage ; then
|
||||
dtype=nand
|
||||
fi
|
||||
echo "detected dtype:$dtype"
|
||||
fi
|
||||
|
||||
echo "Booting from ${dtype}..."
|
||||
if itest.s "x${dtype}" == "xnand" ; then
|
||||
# fix partition name
|
||||
# OpenWrt kernel bug prevents partition name of 'rootfs' from booting
|
||||
# instead name the partition ubi which is what is looked for by
|
||||
# procd sysupgrade
|
||||
mtdparts del rootfs && mtdparts add nand0 - ubi
|
||||
echo "mtdparts:${mtdparts}"
|
||||
setenv fsload ubifsload
|
||||
setenv root "ubi0:ubi ubi.mtd=2 rootfstype=squashfs,ubifs"
|
||||
else
|
||||
setenv fsload "${fs}load ${dtype} ${disk}:1"
|
||||
part uuid ${dtype} ${disk}:2 uuid
|
||||
if test -z "${uuid}"; then
|
||||
# fallback to bootdev
|
||||
if test -n "$bootdev" ; then
|
||||
echo "Using bootdev from env: $bootdev"
|
||||
else
|
||||
if itest.s "x${dtype}" == "xmmc" ; then
|
||||
bootdev=mmcblk0p1
|
||||
else
|
||||
bootdev=sda1
|
||||
fi
|
||||
fi
|
||||
setenv root "root=/dev/${bootdev}"
|
||||
else
|
||||
setenv root "root=PARTUUID=${uuid}"
|
||||
fi
|
||||
setenv root "$root rootfstype=squashfs rootwait"
|
||||
fi
|
||||
|
||||
setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}"
|
||||
if ${fsload} ${loadaddr} ${bootdir}/uImage; then
|
||||
if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then
|
||||
echo Loaded DTB from ${bootdir}/${fdt_file}
|
||||
test -n "$fixfdt" && run fixfdt
|
||||
bootm ${loadaddr} - ${fdt_addr}
|
||||
elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then
|
||||
echo Loaded DTB from ${bootdir}/${fdt_file1}
|
||||
test -n "$fixfdt" && run fixfdt
|
||||
bootm ${loadaddr} - ${fdt_addr}
|
||||
elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then
|
||||
echo Loaded DTB from ${bootdir}/${fdt_file2}
|
||||
test -n "$fixfdt" && run fixfdt
|
||||
bootm ${loadaddr} - ${fdt_addr}
|
||||
else
|
||||
echo "Error loading device-tree"
|
||||
fi
|
||||
else
|
||||
echo "Error loading kernel image"
|
||||
fi
|
||||
61
target/linux/imx/image/common.mk
Normal file
61
target/linux/imx/image/common.mk
Normal file
@@ -0,0 +1,61 @@
|
||||
define Build/imx-combined-image-prepare
|
||||
rm -rf $@.boot
|
||||
mkdir -p $@.boot
|
||||
endef
|
||||
|
||||
define Build/imx-combined-image-clean
|
||||
rm -rf $@.boot $@.fs
|
||||
endef
|
||||
|
||||
define Build/imx-combined-image
|
||||
$(CP) $(IMAGE_KERNEL) $@.boot/uImage
|
||||
|
||||
$(foreach dts,$(DEVICE_DTS), \
|
||||
$(CP) \
|
||||
$(DTS_DIR)/$(dts).dtb \
|
||||
$@.boot/;
|
||||
)
|
||||
|
||||
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
||||
-n '$(DEVICE_ID) OpenWrt bootscript' \
|
||||
-d bootscript-$(DEVICE_NAME) \
|
||||
$@.boot/boot.scr
|
||||
|
||||
cp $@ $@.fs
|
||||
|
||||
$(SCRIPT_DIR)/gen_image_generic.sh $@ \
|
||||
$(CONFIG_TARGET_KERNEL_PARTSIZE) \
|
||||
$@.boot \
|
||||
$(CONFIG_TARGET_ROOTFS_PARTSIZE) \
|
||||
$@.fs \
|
||||
1024
|
||||
endef
|
||||
|
||||
define Build/imx-sdcard
|
||||
$(Build/imx-combined-image-prepare)
|
||||
|
||||
if [ -f $(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot.img ]; then \
|
||||
$(CP) $(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot.img \
|
||||
$@.boot/u-boot.img; \
|
||||
fi
|
||||
|
||||
if [ -f $(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot-dtb.img ]; then \
|
||||
$(CP) $(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot-dtb.img \
|
||||
$@.boot/u-boot-dtb.img; \
|
||||
fi
|
||||
|
||||
$(Build/imx-combined-image)
|
||||
dd if=$(STAGING_DIR_IMAGE)/$(UBOOT)-SPL of=$@ bs=1024 seek=1 conv=notrunc
|
||||
|
||||
$(Build/imx-combined-image-clean)
|
||||
endef
|
||||
|
||||
define Build/imx-sdcard-raw-uboot
|
||||
$(Build/imx-combined-image-prepare)
|
||||
|
||||
$(Build/imx-combined-image)
|
||||
dd if=$(STAGING_DIR_IMAGE)/$(UBOOT)-SPL of=$@ bs=1024 seek=1 conv=notrunc
|
||||
dd if=$(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot-dtb.img of=$@ bs=1024 seek=69 conv=notrunc
|
||||
|
||||
$(Build/imx-combined-image-clean)
|
||||
endef
|
||||
60
target/linux/imx/image/cortexa53.mk
Normal file
60
target/linux/imx/image/cortexa53.mk
Normal file
@@ -0,0 +1,60 @@
|
||||
define Build/boot-scr
|
||||
rm -f $@-boot.scr
|
||||
mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 \
|
||||
-d bootscript-$(BOOT_SCRIPT) $@-boot.scr
|
||||
endef
|
||||
|
||||
define Build/boot-img-ext4
|
||||
rm -fR $@.boot
|
||||
mkdir -p $@.boot
|
||||
$(foreach dts,$(DEVICE_DTS), $(CP) $(KDIR)/image-$(dts).dtb $@.boot/$(dts).dtb;)
|
||||
$(CP) $(IMAGE_KERNEL) $@.boot/$(KERNEL_NAME)
|
||||
-$(CP) $@-boot.scr $@.boot/boot.scr
|
||||
make_ext4fs -J -L kernel -l $(CONFIG_TARGET_KERNEL_PARTSIZE)M \
|
||||
$(if $(SOURCE_DATE_EPOCH),-T $(SOURCE_DATE_EPOCH)) \
|
||||
$@.bootimg $@.boot
|
||||
endef
|
||||
|
||||
define Build/sdcard-img-ext4
|
||||
SIGNATURE="$(IMG_PART_SIGNATURE)" \
|
||||
PARTOFFSET="$(PARTITION_OFFSET)" PADDING=1 \
|
||||
$(if $(filter $(1),efi),GUID="$(IMG_PART_DISKGUID)") $(SCRIPT_DIR)/gen_image_generic.sh \
|
||||
$@ \
|
||||
$(CONFIG_TARGET_KERNEL_PARTSIZE) $@.boot \
|
||||
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \
|
||||
256
|
||||
endef
|
||||
|
||||
define Device/Default
|
||||
PROFILES := Default
|
||||
FILESYSTEMS := squashfs ubifs ext4
|
||||
DEVICE_DTS_DIR := $(DTS_DIR)/freescale
|
||||
KERNEL_INSTALL := 1
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
endef
|
||||
|
||||
define Device/imx8m
|
||||
DEVICE_VENDOR := NXP
|
||||
DEVICE_MODEL := i.MX8M
|
||||
DEVICE_DTS := $(basename $(notdir $(wildcard $(DTS_DIR)/freescale/imx8m*.dts)))
|
||||
endef
|
||||
TARGET_DEVICES += imx8m
|
||||
|
||||
define Device/gateworks_venice
|
||||
$(call Device/Default)
|
||||
FILESYSTEMS := squashfs ext4
|
||||
DEVICE_VENDOR := Gateworks
|
||||
DEVICE_MODEL := i.MX8M Venice
|
||||
BOOT_SCRIPT := gateworks_venice
|
||||
PARTITION_OFFSET := 16M
|
||||
DEVICE_DTS := $(basename $(notdir $(wildcard $(DTS_DIR)/freescale/imx8m*-venice*.dts)))
|
||||
DEVICE_PACKAGES := \
|
||||
kmod-hwmon-gsc kmod-rtc-ds1672 kmod-eeprom-at24 \
|
||||
kmod-gpio-button-hotplug kmod-leds-gpio kmod-pps-gpio \
|
||||
kmod-lan743x kmod-sky2 kmod-iio-st_accel-i2c \
|
||||
kmod-can kmod-can-flexcan kmod-can-mcp251x
|
||||
IMAGES := img.gz
|
||||
IMAGE/img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
endef
|
||||
TARGET_DEVICES += gateworks_venice
|
||||
31
target/linux/imx/image/cortexa7.mk
Normal file
31
target/linux/imx/image/cortexa7.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
DEVICE_VARS += UBOOT
|
||||
|
||||
include common.mk
|
||||
|
||||
define Device/Default
|
||||
PROFILES := Default
|
||||
FILESYSTEMS := squashfs ext4
|
||||
KERNEL_INSTALL := 1
|
||||
KERNEL_SUFFIX := -uImage
|
||||
KERNEL_NAME := zImage
|
||||
KERNEL := kernel-bin | uImage none
|
||||
KERNEL_LOADADDR := 0x80008000
|
||||
DTS_DIR := $(DTS_DIR)/nxp/imx
|
||||
IMAGES :=
|
||||
endef
|
||||
|
||||
define Device/technexion_imx7d-pico-pi
|
||||
DEVICE_VENDOR := TechNexion
|
||||
DEVICE_MODEL := PICO-PI-IMX7D
|
||||
UBOOT := pico-pi-imx7d
|
||||
DEVICE_DTS := imx7d-pico-pi
|
||||
DEVICE_PACKAGES := kmod-sound-core kmod-sound-soc-imx kmod-sound-soc-imx-sgtl5000 \
|
||||
kmod-can kmod-can-flexcan kmod-can-raw kmod-leds-gpio \
|
||||
kmod-input-touchscreen-edt-ft5x06 kmod-usb-hid kmod-btsdio \
|
||||
kmod-brcmfmac brcmfmac-firmware-4339-sdio cypress-nvram-4339-sdio
|
||||
FILESYSTEMS := squashfs
|
||||
IMAGES := combined.bin sysupgrade.bin
|
||||
IMAGE/combined.bin := append-rootfs | pad-extra 128k | imx-sdcard-raw-uboot
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
endef
|
||||
TARGET_DEVICES += technexion_imx7d-pico-pi
|
||||
195
target/linux/imx/image/cortexa9.mk
Normal file
195
target/linux/imx/image/cortexa9.mk
Normal file
@@ -0,0 +1,195 @@
|
||||
DEVICE_VARS += MKUBIFS_OPTS UBOOT
|
||||
|
||||
include common.mk
|
||||
|
||||
define Build/boot-overlay
|
||||
rm -rf $@.boot
|
||||
mkdir -p $@.boot
|
||||
|
||||
$(CP) $@ $@.boot/$(IMG_PREFIX)-uImage
|
||||
ln -sf $(IMG_PREFIX)-uImage $@.boot/uImage
|
||||
|
||||
$(foreach dts,$(DEVICE_DTS), \
|
||||
$(CP) \
|
||||
$(DTS_DIR)/$(dts).dtb \
|
||||
$@.boot/$(IMG_PREFIX)-$(dts).dtb; \
|
||||
ln -sf \
|
||||
$(IMG_PREFIX)-$(dts).dtb \
|
||||
$@.boot/$(dts).dtb; \
|
||||
)
|
||||
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
||||
-n '$(DEVICE_ID) OpenWrt bootscript' \
|
||||
-d ./bootscript-$(DEVICE_NAME) \
|
||||
$@.boot/6x_bootscript-$(DEVICE_NAME)
|
||||
|
||||
$(STAGING_DIR_HOST)/bin/mkfs.ubifs \
|
||||
--space-fixup --compr=zlib --squash-uids \
|
||||
$(MKUBIFS_OPTS) -c 16248 \
|
||||
-o $@.boot.ubifs -d $@.boot
|
||||
|
||||
$(TAR) -C $@.boot -cf $@.boot.tar .
|
||||
endef
|
||||
|
||||
define Build/bootfs.tar.gz
|
||||
rm -rf $@.boot
|
||||
mkdir -p $@.boot
|
||||
|
||||
$(TAR) -C $@.boot -xf $(IMAGE_KERNEL).boot.tar
|
||||
$(TAR) -C $@.boot \
|
||||
--numeric-owner --owner=0 --group=0 --transform "s,./,./boot/," \
|
||||
-czvf $@ .
|
||||
endef
|
||||
|
||||
define Build/recovery-scr
|
||||
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
||||
-n '$(DEVICE_ID) OpenWrt recovery bootscript' \
|
||||
-d ./recovery-$(DEVICE_NAME) $@
|
||||
endef
|
||||
|
||||
define Build/apalis-emmc
|
||||
$(Build/imx-combined-image-prepare)
|
||||
$(Build/imx-combined-image)
|
||||
$(Build/imx-combined-image-clean)
|
||||
endef
|
||||
|
||||
define Build/ventana-img
|
||||
rm -rf $@.boot
|
||||
mkdir -p $@.boot/boot
|
||||
$(CP) $(IMAGE_KERNEL) $@.boot/boot/uImage
|
||||
$(foreach dts,$(DEVICE_DTS), \
|
||||
$(CP) \
|
||||
$(DTS_DIR)/$(dts).dtb \
|
||||
$@.boot/boot/;
|
||||
)
|
||||
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
||||
-n '$(DEVICE_ID) OpenWrt bootscript' \
|
||||
-d bootscript-$(DEVICE_NAME) \
|
||||
$@.boot/boot/6x_bootscript-ventana
|
||||
cp $@ $@.fs
|
||||
|
||||
$(SCRIPT_DIR)/gen_image_generic.sh $@ \
|
||||
$(CONFIG_TARGET_KERNEL_PARTSIZE) \
|
||||
$@.boot \
|
||||
$(CONFIG_TARGET_ROOTFS_PARTSIZE) \
|
||||
$@.fs \
|
||||
1024
|
||||
$(Build/imx-combined-image-clean)
|
||||
endef
|
||||
|
||||
define Device/Default
|
||||
PROFILES := Default
|
||||
FILESYSTEMS := squashfs ext4
|
||||
KERNEL_INSTALL := 1
|
||||
KERNEL_SUFFIX := -uImage
|
||||
KERNEL_NAME := zImage
|
||||
KERNEL := kernel-bin | uImage none
|
||||
KERNEL_LOADADDR := 0x10008000
|
||||
DTS_DIR := $(DTS_DIR)/nxp/imx
|
||||
IMAGES :=
|
||||
endef
|
||||
|
||||
define Device/gateworks_ventana
|
||||
DEVICE_VENDOR := Gateworks
|
||||
DEVICE_MODEL := Ventana family
|
||||
DEVICE_VARIANT := normal NAND flash
|
||||
DEVICE_NAME := ventana
|
||||
DEVICE_DTS:= \
|
||||
imx6dl-gw51xx \
|
||||
imx6dl-gw52xx \
|
||||
imx6dl-gw53xx \
|
||||
imx6dl-gw54xx \
|
||||
imx6dl-gw551x \
|
||||
imx6dl-gw552x \
|
||||
imx6dl-gw553x \
|
||||
imx6dl-gw5904 \
|
||||
imx6dl-gw5907 \
|
||||
imx6dl-gw5910 \
|
||||
imx6dl-gw5912 \
|
||||
imx6dl-gw5913 \
|
||||
imx6q-gw51xx \
|
||||
imx6q-gw52xx \
|
||||
imx6q-gw53xx \
|
||||
imx6q-gw54xx \
|
||||
imx6q-gw5400-a \
|
||||
imx6q-gw551x \
|
||||
imx6q-gw552x \
|
||||
imx6q-gw553x \
|
||||
imx6q-gw5904 \
|
||||
imx6q-gw5907 \
|
||||
imx6q-gw5910 \
|
||||
imx6q-gw5912 \
|
||||
imx6q-gw5913
|
||||
DEVICE_PACKAGES := kmod-sky2 kmod-sound-core kmod-sound-soc-imx \
|
||||
kmod-sound-soc-imx-sgtl5000 kmod-can kmod-can-flexcan kmod-can-raw \
|
||||
kmod-hwmon-gsc kmod-leds-gpio kmod-pps-gpio kobs-ng \
|
||||
kmod-gpio-button-hotplug
|
||||
KERNEL += | boot-overlay
|
||||
IMAGES := img.gz nand.ubi bootfs.tar.gz dtb
|
||||
IMAGE/nand.ubi := append-ubi
|
||||
IMAGE/bootfs.tar.gz := bootfs.tar.gz
|
||||
IMAGE/dtb := install-dtb
|
||||
IMAGE/img.gz := append-rootfs | pad-extra 128k | ventana-img | gzip
|
||||
UBINIZE_PARTS = boot=$$(KDIR_KERNEL_IMAGE).boot.ubifs=15
|
||||
PAGESIZE := 2048
|
||||
BLOCKSIZE := 128k
|
||||
MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB
|
||||
endef
|
||||
TARGET_DEVICES += gateworks_ventana
|
||||
|
||||
define Device/gateworks_ventana-large
|
||||
$(Device/gateworks_ventana)
|
||||
DEVICE_VARIANT := large NAND flash
|
||||
IMAGES := nand.ubi
|
||||
PAGESIZE := 4096
|
||||
BLOCKSIZE := 256k
|
||||
MKUBIFS_OPTS := -m $$(PAGESIZE) -e 248KiB
|
||||
endef
|
||||
TARGET_DEVICES += gateworks_ventana-large
|
||||
|
||||
define Device/solidrun_cubox-i
|
||||
DEVICE_VENDOR := SolidRun
|
||||
DEVICE_MODEL := CuBox-i
|
||||
DEVICE_DTS := \
|
||||
imx6q-cubox-i \
|
||||
imx6dl-cubox-i \
|
||||
imx6q-hummingboard \
|
||||
imx6dl-hummingboard
|
||||
DEVICE_PACKAGES := kmod-drm-imx kmod-drm-imx-hdmi kmod-usb-hid
|
||||
UBOOT := mx6cuboxi
|
||||
KERNEL := kernel-bin
|
||||
KERNEL_SUFFIX := -zImage
|
||||
FILESYSTEMS := squashfs
|
||||
IMAGES := combined.bin dtb
|
||||
IMAGE/combined.bin := append-rootfs | pad-extra 128k | imx-sdcard
|
||||
IMAGE/dtb := install-dtb
|
||||
endef
|
||||
TARGET_DEVICES += solidrun_cubox-i
|
||||
|
||||
define Device/toradex_apalis
|
||||
DEVICE_VENDOR := Toradex
|
||||
DEVICE_MODEL := Apalis family
|
||||
SUPPORTED_DEVICES := apalis,ixora apalis,eval
|
||||
DEVICE_DTS := \
|
||||
imx6q-apalis-eval \
|
||||
imx6q-apalis-ixora \
|
||||
imx6q-apalis-ixora-v1.1
|
||||
DEVICE_PACKAGES := \
|
||||
kmod-can kmod-can-flexcan kmod-can-raw \
|
||||
kmod-leds-gpio kmod-gpio-button-hotplug \
|
||||
kmod-pps-gpio kmod-rtc-ds1307
|
||||
FILESYSTEMS := squashfs
|
||||
IMAGES := combined.bin sysupgrade.bin
|
||||
DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1).$$(2)
|
||||
IMAGE/combined.bin := append-rootfs | pad-extra 128k | apalis-emmc
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
ARTIFACTS := recovery.scr
|
||||
ARTIFACT/recovery.scr := recovery-scr
|
||||
endef
|
||||
TARGET_DEVICES += toradex_apalis
|
||||
|
||||
define Device/wandboard_dual
|
||||
DEVICE_VENDOR := Wandboard
|
||||
DEVICE_MODEL := Dual
|
||||
DEVICE_DTS := imx6dl-wandboard
|
||||
endef
|
||||
TARGET_DEVICES += wandboard_dual
|
||||
15
target/linux/imx/image/recovery-toradex_apalis
Normal file
15
target/linux/imx/image/recovery-toradex_apalis
Normal file
@@ -0,0 +1,15 @@
|
||||
# flash u-boot-with-spl.imx
|
||||
# using fixed size of 1M for U-Boot + SPL
|
||||
mmc dev 0 1
|
||||
mmc write 0x12100000 0x2 0x800
|
||||
|
||||
# flash openwrt-imx6-apalis-squashfs.combined.bin
|
||||
setenv set_blkcnt 'setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200'
|
||||
run set_blkcnt
|
||||
mmc dev 0 0
|
||||
mmc write 0x12500000 0 ${blkcnt}
|
||||
|
||||
env default -f -a
|
||||
saveenv
|
||||
|
||||
reset
|
||||
11
target/linux/imx/patches-6.6/100-bootargs.patch
Normal file
11
target/linux/imx/patches-6.6/100-bootargs.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/arch/arm/boot/dts/nxp/imx/imx6dl-wandboard.dts
|
||||
+++ b/arch/arm/boot/dts/nxp/imx/imx6dl-wandboard.dts
|
||||
@@ -16,4 +16,8 @@
|
||||
device_type = "memory";
|
||||
reg = <0x10000000 0x40000000>;
|
||||
};
|
||||
+
|
||||
+ chosen {
|
||||
+ bootargs = "console=ttymxc0,115200";
|
||||
+ };
|
||||
};
|
||||
@@ -0,0 +1,96 @@
|
||||
From 68604e89335ccb3e893b5a05b2c0d5cd2eaaf6ec Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
|
||||
Date: Tue, 3 Mar 2020 15:14:40 +0100
|
||||
Subject: [PATCH] ARM: dts: imx6q-apalis: ixora: add status LEDs aliases
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Petr Štetiar <ynezz@true.cz>
|
||||
---
|
||||
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.1.dts | 16 ++++++++++------
|
||||
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts | 12 ++++++++----
|
||||
2 files changed, 18 insertions(+), 10 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts
|
||||
+++ b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts
|
||||
@@ -24,6 +24,10 @@
|
||||
i2c2 = &i2c2;
|
||||
rtc0 = &rtc_i2c;
|
||||
rtc1 = &snvs_rtc;
|
||||
+ led-boot = &led_boot;
|
||||
+ led-failsafe = &led_failsafe;
|
||||
+ led-running = &led_running;
|
||||
+ led-upgrade = &led_upgrade;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@@ -35,22 +39,22 @@
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_leds_ixora>;
|
||||
|
||||
- led4-green {
|
||||
+ led_running: led4-green {
|
||||
gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_4_GREEN";
|
||||
};
|
||||
|
||||
- led4-red {
|
||||
+ led_upgrade: led4-red {
|
||||
gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_4_RED";
|
||||
};
|
||||
|
||||
- led5-green {
|
||||
+ led_boot: led5-green {
|
||||
gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_5_GREEN";
|
||||
};
|
||||
|
||||
- led5-red {
|
||||
+ led_failsafe: led5-red {
|
||||
gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_5_RED";
|
||||
};
|
||||
--- a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
|
||||
+++ b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
|
||||
@@ -24,6 +24,10 @@
|
||||
i2c2 = &i2c2;
|
||||
rtc0 = &rtc_i2c;
|
||||
rtc1 = &snvs_rtc;
|
||||
+ led-boot = &led_boot;
|
||||
+ led-failsafe = &led_failsafe;
|
||||
+ led-running = &led_running;
|
||||
+ led-upgrade = &led_upgrade;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@@ -36,22 +40,22 @@
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_leds_ixora>;
|
||||
|
||||
- led4-green {
|
||||
- gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
|
||||
+ led_running: led4-green {
|
||||
+ gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_4_GREEN";
|
||||
};
|
||||
|
||||
- led4-red {
|
||||
- gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
|
||||
+ led_upgrade: led4-red {
|
||||
+ gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_4_RED";
|
||||
};
|
||||
|
||||
- led5-green {
|
||||
+ led_boot: led5-green {
|
||||
gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_5_GREEN";
|
||||
};
|
||||
|
||||
- led5-red {
|
||||
+ led_failsafe: led5-red {
|
||||
gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED_5_RED";
|
||||
};
|
||||
@@ -0,0 +1,78 @@
|
||||
From b6764bb27c819cdcf854371db485a43d71f579f3 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
|
||||
Date: Tue, 3 Mar 2020 15:15:57 +0100
|
||||
Subject: [PATCH] ARM: dts: imx6q-apalis: ixora: make switch3 reset button
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Petr Štetiar <ynezz@true.cz>
|
||||
---
|
||||
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.1.dts | 15 ++++++++++++++-
|
||||
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts | 15 ++++++++++++++-
|
||||
2 files changed, 28 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts
|
||||
+++ b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts
|
||||
@@ -59,6 +59,17 @@
|
||||
label = "LED_5_RED";
|
||||
};
|
||||
};
|
||||
+
|
||||
+ gpio-keys {
|
||||
+ pinctrl-0 = <&pinctrl_gpio_keys &pinctrl_switch3_ixora>;
|
||||
+
|
||||
+ reset {
|
||||
+ label = "reset";
|
||||
+ gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ debounce-interval = <10>;
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
&can1 {
|
||||
@@ -183,4 +194,10 @@
|
||||
MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
|
||||
>;
|
||||
};
|
||||
+
|
||||
+ pinctrl_switch3_ixora: switch3ixora {
|
||||
+ fsl,pins = <
|
||||
+ MX6QDL_PAD_SD1_DAT0__GPIO1_IO16 0x1b0b0
|
||||
+ >;
|
||||
+ };
|
||||
};
|
||||
--- a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
|
||||
+++ b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
|
||||
@@ -61,6 +61,17 @@
|
||||
};
|
||||
};
|
||||
|
||||
+ gpio-keys {
|
||||
+ pinctrl-0 = <&pinctrl_gpio_keys &pinctrl_switch3_ixora>;
|
||||
+
|
||||
+ reset {
|
||||
+ label = "reset";
|
||||
+ gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ debounce-interval = <10>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
reg_3v3_vmmc: regulator-3v3-vmmc {
|
||||
compatible = "regulator-fixed";
|
||||
enable-active-high;
|
||||
@@ -264,6 +275,12 @@
|
||||
>;
|
||||
};
|
||||
|
||||
+ pinctrl_switch3_ixora: switch3ixora {
|
||||
+ fsl,pins = <
|
||||
+ MX6QDL_PAD_SD1_DAT0__GPIO1_IO16 0x1b0b0
|
||||
+ >;
|
||||
+ };
|
||||
+
|
||||
pinctrl_mmc_cd_sleep: mmccdslpgrp {
|
||||
fsl,pins = <
|
||||
/* MMC1 CD */
|
||||
@@ -0,0 +1,24 @@
|
||||
--- a/arch/arm/boot/dts/nxp/imx/imx7d-pico-pi.dts
|
||||
+++ b/arch/arm/boot/dts/nxp/imx/imx7d-pico-pi.dts
|
||||
@@ -8,12 +8,20 @@
|
||||
model = "TechNexion PICO-IMX7D Board and PI baseboard";
|
||||
compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";
|
||||
|
||||
+ aliases {
|
||||
+ led-boot = &led_system;
|
||||
+ led-failsafe = &led_system;
|
||||
+ led-running = &led_system;
|
||||
+ led-upgrade = &led_system;
|
||||
+ label-mac-device = &fec1;
|
||||
+ };
|
||||
+
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gpio_leds>;
|
||||
|
||||
- led {
|
||||
+ led_system: led {
|
||||
label = "gpio-led";
|
||||
gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
From 6e8e5ccfbee7a531b035ffce3f95f3901946fa9d Mon Sep 17 00:00:00 2001
|
||||
From: Robert Nelson <robertcnelson@gmail.com>
|
||||
Date: Wed, 9 Jan 2019 14:33:24 -0600
|
||||
Subject: [PATCH] ARM: imx7d-pico-pi.dts: add default stdout-path
|
||||
|
||||
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/nxp/imx/imx7d-pico-pi.dts | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
--- a/arch/arm/boot/dts/nxp/imx/imx7d-pico-pi.dts
|
||||
+++ b/arch/arm/boot/dts/nxp/imx/imx7d-pico-pi.dts
|
||||
@@ -16,6 +16,10 @@
|
||||
label-mac-device = &fec1;
|
||||
};
|
||||
|
||||
+ chosen {
|
||||
+ stdout-path = "serial4:115200n8";
|
||||
+ };
|
||||
+
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
@@ -0,0 +1,136 @@
|
||||
From 60fd951029603a0a6e019f16d53fb329dbd001f4 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Fri, 7 Jul 2023 16:24:19 -0700
|
||||
Subject: [PATCH 400/413] 6.7: arm64: dts: imx8mp: add
|
||||
imx8mp-venice-gw74xx-imx219 overlay for rpi v2 camera
|
||||
|
||||
Add support for the RaspberryPi Camera v2 which is an IMX219 8MP module:
|
||||
- https://datasheets.raspberrypi.com/camera/camera-v2-schematics.pdf
|
||||
- has its own on-board 24MHz osc so no clock required from baseboard
|
||||
- pin 11 enables 1.8V and 2.8V LDO which is connected to
|
||||
GW74xx MIPI_GPIO4 (IMX8MP GPIO1_IO4) so we use this as a gpio
|
||||
|
||||
Support is added via a device-tree overlay.
|
||||
|
||||
The IMX219 supports RAW8/RAW10 image formats.
|
||||
|
||||
Example configuration:
|
||||
media-ctl -l "'imx219 3-0010':0->'csis-32e40000.csi':0[1]"
|
||||
media-ctl -v -V "'imx219 3-0010':0 [fmt:SRGGB8/640x480 field:none]"
|
||||
media-ctl -v -V "'crossbar':0 [fmt:SRGGB8/640x480 field:none]"
|
||||
media-ctl -v -V "'mxc_isi.0':0 [fmt:SRGGB8/640x480 field:none]"
|
||||
v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=RGGB
|
||||
v4l2-ctl --stream-mmap --stream-to=frame.raw --stream-count=1
|
||||
convert -size 640x480 -depth 8 gray:frame.raw frame.png
|
||||
gst-launch-1.0 v4l2src ! \
|
||||
video/x-bayer,format=rggb,width=640,height=480,framerate=10/1 ! \
|
||||
bayer2rgb ! fbdevsink
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/Makefile | 2 +
|
||||
.../imx8mp-venice-gw74xx-imx219.dtso | 80 +++++++++++++++++++
|
||||
2 files changed, 82 insertions(+)
|
||||
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx-imx219.dtso
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/Makefile
|
||||
+++ b/arch/arm64/boot/dts/freescale/Makefile
|
||||
@@ -159,6 +159,7 @@ imx8mm-venice-gw73xx-0x-rpidsi-dtbs := i
|
||||
imx8mm-venice-gw73xx-0x-rs232-rts-dtbs := imx8mm-venice-gw73xx-0x.dtb imx8mm-venice-gw73xx-0x-rs232-rts.dtbo
|
||||
imx8mm-venice-gw73xx-0x-rs422-dtbs := imx8mm-venice-gw73xx-0x.dtb imx8mm-venice-gw73xx-0x-rs422.dtbo
|
||||
imx8mm-venice-gw73xx-0x-rs485-dtbs := imx8mm-venice-gw73xx-0x.dtb imx8mm-venice-gw73xx-0x-rs485.dtbo
|
||||
+imx8mp-venice-gw74xx-imx219-dtbs := imx8mp-venice-gw74xx.dtb imx8mp-venice-gw74xx-imx219.dtbo
|
||||
imx8mp-venice-gw74xx-rpidsi-dtbs := imx8mp-venice-gw74xx.dtb imx8mp-venice-gw74xx-rpidsi.dtbo
|
||||
|
||||
dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw72xx-0x-imx219.dtb
|
||||
@@ -171,6 +172,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-
|
||||
dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x-rs232-rts.dtb
|
||||
dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x-rs422.dtb
|
||||
dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x-rs485.dtb
|
||||
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-venice-gw74xx-imx219.dtb
|
||||
dtb-$(CONFIG_ARCH_MXC) += imx8mp-venice-gw74xx-rpidsi.dtb
|
||||
|
||||
dtb-$(CONFIG_ARCH_S32) += s32g274a-evb.dtb
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx-imx219.dtso
|
||||
@@ -0,0 +1,80 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright 2023 Gateworks Corporation
|
||||
+ */
|
||||
+
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+
|
||||
+#include "imx8mp-pinfunc.h"
|
||||
+
|
||||
+/dts-v1/;
|
||||
+/plugin/;
|
||||
+
|
||||
+&{/} {
|
||||
+ compatible = "gw,imx8mp-gw74xx", "fsl,imx8mp";
|
||||
+
|
||||
+ reg_cam: regulator-cam {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pinctrl_reg_cam>;
|
||||
+ compatible = "regulator-fixed";
|
||||
+ regulator-name = "reg_cam";
|
||||
+ gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
|
||||
+ enable-active-high;
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
+ regulator-max-microvolt = <1800000>;
|
||||
+ };
|
||||
+
|
||||
+ cam24m: cam24m {
|
||||
+ compatible = "fixed-clock";
|
||||
+ #clock-cells = <0>;
|
||||
+ clock-frequency = <24000000>;
|
||||
+ clock-output-names = "cam24m";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&i2c4 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ imx219: sensor@10 {
|
||||
+ compatible = "sony,imx219";
|
||||
+ reg = <0x10>;
|
||||
+ clocks = <&cam24m>;
|
||||
+ VDIG-supply = <®_cam>;
|
||||
+
|
||||
+ port {
|
||||
+ /* MIPI CSI-2 bus endpoint */
|
||||
+ imx219_to_mipi_csi2: endpoint {
|
||||
+ remote-endpoint = <&mipi_csi_0_in>;
|
||||
+ clock-lanes = <0>;
|
||||
+ data-lanes = <1 2>;
|
||||
+ link-frequencies = /bits/ 64 <456000000>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&isi_0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&mipi_csi_0 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ports {
|
||||
+ port@0 {
|
||||
+ mipi_csi_0_in: endpoint {
|
||||
+ remote-endpoint = <&imx219_to_mipi_csi2>;
|
||||
+ data-lanes = <1 2>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&iomuxc {
|
||||
+ pinctrl_reg_cam: regcamgrp {
|
||||
+ fsl,pins = <
|
||||
+ MX8MP_IOMUXC_GPIO1_IO04__GPIO1_IO04 0x41
|
||||
+ >;
|
||||
+ };
|
||||
+};
|
||||
@@ -0,0 +1,39 @@
|
||||
From 816e40232faaa4aa0364ca8da7f86eaf27b0d9ff Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Mon, 26 Jun 2023 11:51:13 -0700
|
||||
Subject: [PATCH 401/413] 6.7: arm64: dts: imx8mm-venice-gw73xx: add TPM device
|
||||
|
||||
Add the TPM device found on the GW73xx revision F PCB.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi
|
||||
@@ -104,8 +104,15 @@
|
||||
&ecspi2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_spi2>;
|
||||
- cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
|
||||
+ cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
|
||||
+ <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ tpm@1 {
|
||||
+ compatible = "tcg,tpm_tis-spi";
|
||||
+ reg = <0x1>;
|
||||
+ spi-max-frequency = <36000000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
@@ -362,6 +369,7 @@
|
||||
MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0xd6
|
||||
MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0xd6
|
||||
MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0xd6
|
||||
+ MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0xd6
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 916ffc08e8cdd3beccd78291eac9dc5592d83de1 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Thu, 24 Aug 2023 11:07:48 -0700
|
||||
Subject: [PATCH 402/413] 6.7: arm64: dts: imx8mp-venice-gw73xx: add TPM device
|
||||
|
||||
Add the TPM device found on the GW73xx revision F PCB.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi
|
||||
@@ -95,8 +95,15 @@
|
||||
&ecspi2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_spi2>;
|
||||
- cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
|
||||
+ cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
|
||||
+ <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ tpm@1 {
|
||||
+ compatible = "tcg,tpm_tis-spi";
|
||||
+ reg = <0x1>;
|
||||
+ spi-max-frequency = <36000000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&gpio4 {
|
||||
@@ -327,6 +334,7 @@
|
||||
MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x140
|
||||
MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x140
|
||||
MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x140
|
||||
+ MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10 0x140
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 0adf19579692623d9d9202d2868aa7cd81451148 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Thu, 28 Sep 2023 14:10:39 -0700
|
||||
Subject: [PATCH 403/413] 6.8: arm64: dts: imx8mm-venice-gw72xx: add TPM device
|
||||
|
||||
Add the TPM device found on the GW72xx revision F PCB.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi
|
||||
@@ -84,8 +84,15 @@
|
||||
&ecspi2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_spi2>;
|
||||
- cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
|
||||
+ cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
|
||||
+ <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ tpm@1 {
|
||||
+ compatible = "tcg,tpm_tis-spi";
|
||||
+ reg = <0x1>;
|
||||
+ spi-max-frequency = <36000000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
@@ -313,6 +320,7 @@
|
||||
MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0xd6
|
||||
MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0xd6
|
||||
MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0xd6
|
||||
+ MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0xd6
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 9d3932717327f6086a9a81a41df5bf5250aee782 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Thu, 28 Sep 2023 14:11:01 -0700
|
||||
Subject: [PATCH 404/413] 6.8: arm64: dts: imx8mp-venice-gw72xx: add TPM device
|
||||
|
||||
Add the TPM device found on the GW72xx revision F PCB.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi
|
||||
@@ -83,8 +83,15 @@
|
||||
&ecspi2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_spi2>;
|
||||
- cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
|
||||
+ cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
|
||||
+ <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ tpm@1 {
|
||||
+ compatible = "tcg,tpm_tis-spi";
|
||||
+ reg = <0x1>;
|
||||
+ spi-max-frequency = <36000000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&gpio4 {
|
||||
@@ -286,6 +293,7 @@
|
||||
MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x140
|
||||
MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x140
|
||||
MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x140
|
||||
+ MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10 0x140
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 6cea7c46172eca323e9ce7e6aab8f8506eb92b4b Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Wed, 29 Nov 2023 09:53:04 -0800
|
||||
Subject: [PATCH 405/413] 6.9: arm64: dts: imx8mm-venice-gw71xx: add TPM device
|
||||
|
||||
Add the TPM device found on the GW71xx revision E PCB.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi
|
||||
@@ -53,8 +53,15 @@
|
||||
&ecspi2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_spi2>;
|
||||
- cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
|
||||
+ cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
|
||||
+ <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ tpm@1 {
|
||||
+ compatible = "tcg,tpm_tis-spi";
|
||||
+ reg = <0x1>;
|
||||
+ spi-max-frequency = <36000000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
@@ -201,6 +208,7 @@
|
||||
MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0xd6
|
||||
MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0xd6
|
||||
MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0xd6
|
||||
+ MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0xd6
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 9095a68c0b7084a7819e697ef38d0c987531c8ab Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Wed, 29 Nov 2023 17:11:51 -0800
|
||||
Subject: [PATCH 406/413] 6.9: arm64: dts: imx8mp-venice-gw71xx: add TPM device
|
||||
|
||||
Add the TPM device found on the GW71xx revision E PCB.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../arm64/boot/dts/freescale/imx8mp-venice-gw71xx.dtsi | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw71xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw71xx.dtsi
|
||||
@@ -48,8 +48,15 @@
|
||||
&ecspi2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_spi2>;
|
||||
- cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
|
||||
+ cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
|
||||
+ <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ tpm@1 {
|
||||
+ compatible = "tcg,tpm_tis-spi";
|
||||
+ reg = <0x1>;
|
||||
+ spi-max-frequency = <36000000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&gpio4 {
|
||||
@@ -217,6 +224,7 @@
|
||||
MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x140
|
||||
MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x140
|
||||
MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x140
|
||||
+ MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10 0x140
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From e5bc89e60590581b0d31e8c6c6361c6caf5583bb Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Tue, 21 Nov 2023 11:12:24 -0800
|
||||
Subject: [PATCH 407/413] 6.9: arm64: dts: imx8mm-venice-gw7901: add digital
|
||||
I/O direction control GPIO's
|
||||
|
||||
The GW7901 has GPIO's to configure the direction of its isolated
|
||||
digital I/O signals. Add the GPIO pinmux and line names.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
|
||||
@@ -319,7 +319,7 @@
|
||||
|
||||
&gpio4 {
|
||||
gpio-line-names = "", "", "", "",
|
||||
- "", "", "uart3_rs232#", "uart3_rs422#",
|
||||
+ "dig1_ctl", "dig2_ctl", "uart3_rs232#", "uart3_rs422#",
|
||||
"uart3_rs485#", "", "", "", "", "", "", "",
|
||||
"", "", "", "", "", "", "", "",
|
||||
"", "", "", "uart4_rs485#", "", "sim1det#", "sim2det#", "";
|
||||
@@ -842,6 +842,8 @@
|
||||
|
||||
pinctrl_hog: hoggrp {
|
||||
fsl,pins = <
|
||||
+ MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4 0x40000041 /* DIG1_CTL */
|
||||
+ MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x40000041 /* DIG2_CTL */
|
||||
MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x40000041 /* DIG2_OUT */
|
||||
MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4 0x40000041 /* DIG2_IN */
|
||||
MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x40000041 /* DIG1_IN */
|
||||
@@ -0,0 +1,45 @@
|
||||
From f905e9a03cdf8edf6fa719ba89f37e6138c33834 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Tue, 21 Nov 2023 11:44:38 -0800
|
||||
Subject: [PATCH 408/413] 6.9: arm64: dts: imx8mm-venice-gw7901: add TPM device
|
||||
|
||||
Add the TPM device found on the GW7901 revision D PCB.
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
|
||||
@@ -285,7 +285,8 @@
|
||||
&ecspi1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_spi1>;
|
||||
- cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
|
||||
+ cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>,
|
||||
+ <&gpio4 24 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
@@ -294,6 +295,12 @@
|
||||
spi-max-frequency = <40000000>;
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+ tpm@1 {
|
||||
+ compatible = "tcg,tpm_tis-spi";
|
||||
+ reg = <0x1>;
|
||||
+ spi-max-frequency = <36000000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&fec1 {
|
||||
@@ -989,6 +996,7 @@
|
||||
MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x82
|
||||
MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x82
|
||||
MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x140
|
||||
+ MX8MM_IOMUXC_SAI2_TXFS_GPIO4_IO24 0x140
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
From fddb089c2ccfb8bc4bd3aba605f7eadfd9f36cfd Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Wed, 28 Feb 2024 10:22:11 -0800
|
||||
Subject: [PATCH 409/413] 6.9: arm64: dts: freescale: imx8mp-venice-gw72xx-2x:
|
||||
fix USB vbus regulator
|
||||
|
||||
When using usb-conn-gpio to control USB role and VBUS, the vbus-supply
|
||||
property must be present in the usb-conn-gpio node. Additionally it
|
||||
should not be present in the phy node as that isn't what controls vbus
|
||||
and will upset the use count.
|
||||
|
||||
This resolves an issue where VBUS is enabled with OTG in peripheral
|
||||
mode.
|
||||
|
||||
Fixes: 86c43ae03ab9 ("arm64: dts: freescale: Add imx8mp-venice-gw72xx-2x")
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi
|
||||
@@ -169,7 +169,6 @@
|
||||
};
|
||||
|
||||
&usb3_phy0 {
|
||||
- vbus-supply = <®_usb1_vbus>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -189,6 +188,7 @@
|
||||
pinctrl-0 = <&pinctrl_usbcon1>;
|
||||
type = "micro";
|
||||
label = "otg";
|
||||
+ vbus-supply = <®_usb1_vbus>;
|
||||
id-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
From 69e3ce6d0c2f518bf9574112f3d4cc619c38602c Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Wed, 28 Feb 2024 10:24:19 -0800
|
||||
Subject: [PATCH 410/413] 6.9: arm64: dts: freescale: imx8mp-venice-gw73xx-2x:
|
||||
fix USB vbus regulator
|
||||
|
||||
When using usb-conn-gpio to control USB role and VBUS, the vbus-supply
|
||||
property must be present in the usb-conn-gpio node. Additionally it
|
||||
should not be present in the phy node as that isn't what controls vbus
|
||||
and will upset the use count.
|
||||
|
||||
This resolves an issue where VBUS is enabled with OTG in peripheral
|
||||
mode.
|
||||
|
||||
Fixes: 716ced308234 ("arm64: dts: freescale: Add imx8mp-venice-gw73xx-2x")
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi
|
||||
@@ -188,7 +188,6 @@
|
||||
};
|
||||
|
||||
&usb3_phy0 {
|
||||
- vbus-supply = <®_usb1_vbus>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -208,6 +207,7 @@
|
||||
pinctrl-0 = <&pinctrl_usbcon1>;
|
||||
type = "micro";
|
||||
label = "otg";
|
||||
+ vbus-supply = <®_usb1_vbus>;
|
||||
id-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
From 9d75bdd797d32c859d0dd9f54acc30de63831eb1 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Mon, 29 Jan 2024 15:28:39 -0800
|
||||
Subject: [PATCH 411/413] 6.10: arm64: dts: imx8mp-venice-gw74xx: add ADC rail
|
||||
for VDD_1P0
|
||||
|
||||
The imx8mp-venice-gw74xx revB PCB added an ADC rail for
|
||||
VDD_1P0. Add it to the GSC ADC rails.
|
||||
|
||||
Fixes: 531936b218d8 ("arm64: dts: imx8mp-venice-gw74xx: update to revB PCB")
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts
|
||||
@@ -391,6 +391,12 @@
|
||||
label = "vdd_dram";
|
||||
};
|
||||
|
||||
+ channel@9e {
|
||||
+ gw,mode = <2>;
|
||||
+ reg = <0x9e>;
|
||||
+ label = "vdd_1p0";
|
||||
+ };
|
||||
+
|
||||
channel@a2 {
|
||||
gw,mode = <2>;
|
||||
reg = <0xa2>;
|
||||
@@ -0,0 +1,80 @@
|
||||
From 482fe0cb90d3376051304531a01edccac9ca1868 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Thu, 29 Feb 2024 10:05:26 -0800
|
||||
Subject: [PATCH 412/413] 6.10: arm64: dts: imx8mp-venice-gw72xx: add mac addr
|
||||
for eth1
|
||||
|
||||
Add the PCI bus topology for eth1 so that boot firmware can set the
|
||||
local-mac-address property.
|
||||
|
||||
The eth1 device is behind a PCI switch:
|
||||
# lspci -n
|
||||
00:00.0 0604: 16c3:abcd (rev 01)
|
||||
01:00.0 0604: 12d8:b404 (rev 01)
|
||||
02:01.0 0604: 12d8:b404 (rev 01)
|
||||
02:02.0 0604: 12d8:b404 (rev 01)
|
||||
02:03.0 0604: 12d8:b404 (rev 01)
|
||||
05:00.0 0200: 11ab:4380
|
||||
# lspci -t
|
||||
-[0000:00]---00.0-[01-ff]----00.0-[02-05]--+-01.0-[03]--
|
||||
+-02.0-[04]--
|
||||
\-03.0-[05]----00.0
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../dts/freescale/imx8mp-venice-gw72xx.dtsi | 37 +++++++++++++++++++
|
||||
1 file changed, 37 insertions(+)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw72xx.dtsi
|
||||
@@ -8,6 +8,10 @@
|
||||
#include <dt-bindings/phy/phy-imx8-pcie.h>
|
||||
|
||||
/ {
|
||||
+ aliases {
|
||||
+ ethernet1 = ð1;
|
||||
+ };
|
||||
+
|
||||
led-controller {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
@@ -137,6 +141,39 @@
|
||||
pinctrl-0 = <&pinctrl_pcie0>;
|
||||
reset-gpio = <&gpio4 29 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ pcie@0,0 {
|
||||
+ reg = <0x0000 0 0 0 0>;
|
||||
+ device_type = "pci";
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ pcie@0,0 {
|
||||
+ reg = <0x0000 0 0 0 0>;
|
||||
+ device_type = "pci";
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ pcie@3,0 {
|
||||
+ reg = <0x1800 0 0 0 0>;
|
||||
+ device_type = "pci";
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ eth1: ethernet@0,0 {
|
||||
+ reg = <0x0000 0 0 0 0>;
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ local-mac-address = [00 00 00 00 00 00];
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
/* GPS */
|
||||
@@ -0,0 +1,82 @@
|
||||
From caac9b614ee63f875b290fda429706f6ef36e2f1 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Harvey <tharvey@gateworks.com>
|
||||
Date: Thu, 29 Feb 2024 10:12:49 -0800
|
||||
Subject: [PATCH 413/413] 6.10: arm64: dts: imx8mp-venice-gw73xx: add mac addr
|
||||
for eth1
|
||||
|
||||
Add the PCI bus topology for eth1 so that boot firmware can set the
|
||||
local-mac-address property.
|
||||
|
||||
The eth1 device is behind a PCI switch:
|
||||
# lspci -n
|
||||
00:00.0 0604: 16c3:abcd (rev 01)
|
||||
01:00.0 0604: 12d8:2608
|
||||
02:01.0 0604: 12d8:2608
|
||||
02:02.0 0604: 12d8:2608
|
||||
02:03.0 0604: 12d8:2608
|
||||
02:04.0 0604: 12d8:2608
|
||||
c0:00.0 0200: 1055:7430 (rev 11)
|
||||
# lspci -t
|
||||
-[0000:00]---00.0-[01-ff]----00.0-[02-fe]--+-01.0-[03-41]--
|
||||
+-02.0-[42-80]--
|
||||
+-03.0-[81-bf]--
|
||||
\-04.0-[c0-fe]----00.0
|
||||
|
||||
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||
---
|
||||
.../dts/freescale/imx8mp-venice-gw73xx.dtsi | 37 +++++++++++++++++++
|
||||
1 file changed, 37 insertions(+)
|
||||
|
||||
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw73xx.dtsi
|
||||
@@ -8,6 +8,10 @@
|
||||
#include <dt-bindings/phy/phy-imx8-pcie.h>
|
||||
|
||||
/ {
|
||||
+ aliases {
|
||||
+ ethernet1 = ð1;
|
||||
+ };
|
||||
+
|
||||
led-controller {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
@@ -149,6 +153,39 @@
|
||||
pinctrl-0 = <&pinctrl_pcie0>;
|
||||
reset-gpio = <&gpio4 29 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
+
|
||||
+ pcie@0,0 {
|
||||
+ reg = <0x0000 0 0 0 0>;
|
||||
+ device_type = "pci";
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ pcie@0,0 {
|
||||
+ reg = <0x0000 0 0 0 0>;
|
||||
+ device_type = "pci";
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ pcie@4,0 {
|
||||
+ reg = <0x2000 0 0 0 0>;
|
||||
+ device_type = "pci";
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ eth1: ethernet@0,0 {
|
||||
+ reg = <0x0000 0 0 0 0>;
|
||||
+ #address-cells = <3>;
|
||||
+ #size-cells = <2>;
|
||||
+ ranges;
|
||||
+
|
||||
+ local-mac-address = [00 00 00 00 00 00];
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
/* GPS */
|
||||
14
target/linux/imx/profiles/100-default.mk
Normal file
14
target/linux/imx/profiles/100-default.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
|
||||
define Profile/Default
|
||||
PRIORITY:=1
|
||||
NAME:=Default Profile
|
||||
endef
|
||||
|
||||
define Profile/Default/Description
|
||||
Package set compatible with most NXP i.MX based boards.
|
||||
endef
|
||||
|
||||
$(eval $(call Profile,Default))
|
||||
Reference in New Issue
Block a user