From 9e57e6ac75c60554c9e284d3e384298b95add74d Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 15:39:24 +0300 Subject: [PATCH 1/8] configs: mt8183: Regenerate MT8183 kernel config with v6.6.3 The kernel submodule we use is at v6.6.3, but the kernel configuration is for v6.7.0-rc4. Run `make ARCH=arm64 olddefconfig` to roll it back. Signed-off-by: Alper Nebi Yasak --- configs/kernel.mt8183 | 94 +++++++++---------------------------------- 1 file changed, 19 insertions(+), 75 deletions(-) diff --git a/configs/kernel.mt8183 b/configs/kernel.mt8183 index 9b6a0de..b018c45 100644 --- a/configs/kernel.mt8183 +++ b/configs/kernel.mt8183 @@ -1,21 +1,23 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm64 6.7.0-rc4 Kernel Configuration +# Linux/arm64 6.6.3 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (GCC) 13.2.1 20230728 (Red Hat Cross 13.2.1-1)" +CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (Debian 13.2.0-7) 13.2.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=130201 +CONFIG_GCC_VERSION=130200 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y -CONFIG_AS_VERSION=23900 +CONFIG_AS_VERSION=24150 CONFIG_LD_IS_BFD=y -CONFIG_LD_VERSION=23900 +CONFIG_LD_VERSION=24150 CONFIG_LLD_VERSION=0 +CONFIG_CC_CAN_LINK=y +CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y -CONFIG_PAHOLE_VERSION=125 +CONFIG_PAHOLE_VERSION=0 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y @@ -312,7 +314,6 @@ CONFIG_ARCH_MEDIATEK=y # CONFIG_ARCH_NXP is not set # CONFIG_ARCH_MA35 is not set # CONFIG_ARCH_NPCM is not set -# CONFIG_ARCH_PENSANDO is not set # CONFIG_ARCH_QCOM is not set # CONFIG_ARCH_REALTEK is not set # CONFIG_ARCH_RENESAS is not set @@ -422,7 +423,6 @@ CONFIG_ARCH_SUPPORTS_KEXEC_SIG=y CONFIG_ARCH_SUPPORTS_KEXEC_IMAGE_VERIFY_SIG=y CONFIG_ARCH_DEFAULT_KEXEC_IMAGE_VERIFY_SIG=y CONFIG_ARCH_SUPPORTS_CRASH_DUMP=y -CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION=y CONFIG_TRANS_TABLE=y # CONFIG_XEN is not set CONFIG_ARCH_FORCE_MAX_ORDER=10 @@ -710,8 +710,6 @@ CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y # end of GCOV-based kernel profiling CONFIG_HAVE_GCC_PLUGINS=y -CONFIG_GCC_PLUGINS=y -# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set CONFIG_FUNCTION_ALIGNMENT_4B=y CONFIG_FUNCTION_ALIGNMENT=4 # end of General architecture-dependent options @@ -833,7 +831,6 @@ CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1 # CONFIG_PAGE_REPORTING is not set CONFIG_MIGRATION=y CONFIG_ARCH_ENABLE_THP_MIGRATION=y -CONFIG_PCP_BATCH_SCALE_MAX=5 CONFIG_PHYS_ADDR_T_64BIT=y # CONFIG_KSM is not set CONFIG_DEFAULT_MMAP_MIN_ADDR=32768 @@ -1021,6 +1018,7 @@ CONFIG_GENERIC_ARCH_TOPOLOGY=y # # Bus devices # +# CONFIG_BRCMSTB_GISB_ARB is not set # CONFIG_MOXTET is not set # CONFIG_VEXPRESS_CONFIG is not set # CONFIG_MHI_BUS is not set @@ -1057,12 +1055,6 @@ CONFIG_GOOGLE_MEMCONSOLE_COREBOOT=y CONFIG_GOOGLE_VPD=y CONFIG_ARM_PSCI_FW=y # CONFIG_ARM_PSCI_CHECKER is not set - -# -# Qualcomm firmware drivers -# -# end of Qualcomm firmware drivers - CONFIG_HAVE_ARM_SMCCC=y CONFIG_HAVE_ARM_SMCCC_DISCOVERY=y CONFIG_ARM_SMCCC_SOC_ID=y @@ -1079,6 +1071,7 @@ CONFIG_MTD=y # # Partition parsers # +# CONFIG_MTD_AR7_PARTS is not set CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_OF_PARTS=y # CONFIG_MTD_AFS_PARTS is not set @@ -1223,7 +1216,7 @@ CONFIG_BLK_DEV_NVME=y # CONFIG_NVME_VERBOSE_ERRORS is not set # CONFIG_NVME_HWMON is not set # CONFIG_NVME_FC is not set -# CONFIG_NVME_HOST_AUTH is not set +# CONFIG_NVME_AUTH is not set # CONFIG_NVME_TARGET is not set # end of NVME Support @@ -1262,6 +1255,7 @@ CONFIG_MISC_RTSX=y # CONFIG_EEPROM_AT24=y # CONFIG_EEPROM_AT25 is not set +# CONFIG_EEPROM_LEGACY is not set # CONFIG_EEPROM_MAX6875 is not set # CONFIG_EEPROM_93CX6 is not set # CONFIG_EEPROM_93XX46 is not set @@ -1946,6 +1940,7 @@ CONFIG_GPIO_CDEV_V1=y # CONFIG_W1 is not set CONFIG_POWER_RESET=y +# CONFIG_POWER_RESET_BRCMSTB is not set # CONFIG_POWER_RESET_GPIO is not set # CONFIG_POWER_RESET_GPIO_RESTART is not set # CONFIG_POWER_RESET_LTC2952 is not set @@ -2004,7 +1999,6 @@ CONFIG_CHARGER_CROS_PCHG=y # CONFIG_CHARGER_UCS1002 is not set # CONFIG_CHARGER_BD99954 is not set # CONFIG_BATTERY_UG3105 is not set -CONFIG_FUEL_GAUGE_MM8013=y CONFIG_HWMON=y # CONFIG_HWMON_DEBUG_CHIP is not set @@ -2052,14 +2046,12 @@ CONFIG_HWMON=y # CONFIG_SENSORS_IIO_HWMON is not set # CONFIG_SENSORS_IT87 is not set # CONFIG_SENSORS_JC42 is not set -# CONFIG_SENSORS_POWERZ is not set # CONFIG_SENSORS_POWR1220 is not set # CONFIG_SENSORS_LINEAGE is not set # CONFIG_SENSORS_LTC2945 is not set # CONFIG_SENSORS_LTC2947_I2C is not set # CONFIG_SENSORS_LTC2947_SPI is not set # CONFIG_SENSORS_LTC2990 is not set -# CONFIG_SENSORS_LTC2991 is not set # CONFIG_SENSORS_LTC2992 is not set # CONFIG_SENSORS_LTC4151 is not set # CONFIG_SENSORS_LTC4215 is not set @@ -2404,7 +2396,6 @@ CONFIG_REGULATOR_GPIO=y # CONFIG_REGULATOR_LTC3589 is not set # CONFIG_REGULATOR_LTC3676 is not set # CONFIG_REGULATOR_MAX1586 is not set -# CONFIG_REGULATOR_MAX77503 is not set # CONFIG_REGULATOR_MAX77857 is not set # CONFIG_REGULATOR_MAX8649 is not set # CONFIG_REGULATOR_MAX8660 is not set @@ -2724,12 +2715,10 @@ CONFIG_DRM_PANEL_HIMAX_HX8394=y # CONFIG_DRM_PANEL_ILITEK_IL9322 is not set # CONFIG_DRM_PANEL_ILITEK_ILI9341 is not set # CONFIG_DRM_PANEL_ILITEK_ILI9881C is not set -# CONFIG_DRM_PANEL_ILITEK_ILI9882T is not set # CONFIG_DRM_PANEL_INNOLUX_EJ030NA is not set CONFIG_DRM_PANEL_INNOLUX_P079ZCA=y # CONFIG_DRM_PANEL_JADARD_JD9365DA_H3 is not set # CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set -# CONFIG_DRM_PANEL_JDI_LPM102A188A is not set # CONFIG_DRM_PANEL_JDI_R63452 is not set # CONFIG_DRM_PANEL_KHADAS_TS050 is not set # CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04 is not set @@ -2757,7 +2746,6 @@ CONFIG_DRM_PANEL_INNOLUX_P079ZCA=y # CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set # CONFIG_DRM_PANEL_RAYDIUM_RM67191 is not set # CONFIG_DRM_PANEL_RAYDIUM_RM68200 is not set -# CONFIG_DRM_PANEL_RAYDIUM_RM692E5 is not set # CONFIG_DRM_PANEL_RONBO_RB070D30 is not set # CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20 is not set # CONFIG_DRM_PANEL_SAMSUNG_DB7430 is not set @@ -2923,7 +2911,6 @@ CONFIG_FB_SYS_IMAGEBLIT=y CONFIG_FB_SYS_FOPS=y CONFIG_FB_DEFERRED_IO=y CONFIG_FB_DMAMEM_HELPERS=y -CONFIG_FB_IOMEM_FOPS=y CONFIG_FB_SYSMEM_HELPERS=y CONFIG_FB_SYSMEM_HELPERS_DEFERRED=y CONFIG_FB_MODE_HELPERS=y @@ -3123,7 +3110,6 @@ CONFIG_USB_COMMON=y CONFIG_USB_ARCH_HAS_HCD=y CONFIG_USB=y CONFIG_USB_PCI=y -# CONFIG_USB_PCI_AMD is not set CONFIG_USB_ANNOUNCE_NEW_DEVICES=y # @@ -3402,7 +3388,6 @@ CONFIG_TYPEC_ANX7411=y CONFIG_TYPEC_MUX_GPIO_SBU=y # CONFIG_TYPEC_MUX_PI3USB30532 is not set # CONFIG_TYPEC_MUX_NB7VPQ904M is not set -# CONFIG_TYPEC_MUX_PTN36502 is not set # end of USB Type-C Multiplexer/DeMultiplexer Switch support # @@ -3524,7 +3509,6 @@ CONFIG_LEDS_TRIGGERS=y # CONFIG_LEDS_TRIGGER_BACKLIGHT is not set # CONFIG_LEDS_TRIGGER_CPU is not set # CONFIG_LEDS_TRIGGER_ACTIVITY is not set -# CONFIG_LEDS_TRIGGER_GPIO is not set # CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set # @@ -3984,6 +3968,7 @@ CONFIG_MTK_IOMMU=y # # Broadcom SoC drivers # +# CONFIG_SOC_BRCMSTB is not set # end of Broadcom SoC drivers # @@ -4017,6 +4002,8 @@ CONFIG_MTK_DEVAPC=y CONFIG_MTK_INFRACFG=y CONFIG_MTK_PMIC_WRAP=y CONFIG_MTK_REGULATOR_COUPLER=y +CONFIG_MTK_SCPSYS=y +CONFIG_MTK_SCPSYS_PM_DOMAINS=y CONFIG_MTK_MMSYS=y # CONFIG_MTK_SVS is not set # end of MediaTek SoC drivers @@ -4036,38 +4023,6 @@ CONFIG_MTK_MMSYS=y # end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers -# -# PM Domains -# - -# -# Amlogic PM Domains -# -# end of Amlogic PM Domains - -# -# Broadcom PM Domains -# -# end of Broadcom PM Domains - -# -# i.MX PM Domains -# -# end of i.MX PM Domains - -# -# MediaTek PM Domains -# -CONFIG_MTK_SCPSYS=y -CONFIG_MTK_SCPSYS_PM_DOMAINS=y -# end of MediaTek PM Domains - -# -# Qualcomm PM Domains -# -# end of Qualcomm PM Domains -# end of PM Domains - CONFIG_PM_DEVFREQ=y # @@ -4196,7 +4151,6 @@ CONFIG_IIO_SW_TRIGGER=y # CONFIG_HI8435 is not set # CONFIG_HX711 is not set # CONFIG_INA2XX_ADC is not set -# CONFIG_LTC2309 is not set # CONFIG_LTC2471 is not set # CONFIG_LTC2485 is not set # CONFIG_LTC2496 is not set @@ -4211,7 +4165,6 @@ CONFIG_IIO_SW_TRIGGER=y # CONFIG_MAX9611 is not set # CONFIG_MCP320X is not set # CONFIG_MCP3422 is not set -# CONFIG_MCP3564 is not set # CONFIG_MCP3911 is not set # CONFIG_MEDIATEK_MT6360_ADC is not set CONFIG_MEDIATEK_MT6577_AUXADC=y @@ -4581,7 +4534,6 @@ CONFIG_IIO_SYSFS_TRIGGER=y # Pressure sensors # # CONFIG_ABP060MG is not set -# CONFIG_ROHM_BM1390 is not set # CONFIG_BMP280 is not set # CONFIG_IIO_CROS_EC_BARO is not set # CONFIG_DLHL60D is not set @@ -4631,7 +4583,6 @@ CONFIG_IIO_SYSFS_TRIGGER=y # # CONFIG_AD2S90 is not set # CONFIG_AD2S1200 is not set -# CONFIG_AD2S1210 is not set # end of Resolver to digital converters # @@ -4815,7 +4766,6 @@ CONFIG_FS_MBCACHE=y # CONFIG_BTRFS_FS is not set # CONFIG_NILFS2_FS is not set # CONFIG_F2FS_FS is not set -# CONFIG_BCACHEFS_FS is not set CONFIG_FS_POSIX_ACL=y CONFIG_EXPORTFS=y # CONFIG_EXPORTFS_BLOCK_OPS is not set @@ -5044,7 +4994,6 @@ CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y # CONFIG_INIT_STACK_NONE is not set # CONFIG_INIT_STACK_ALL_PATTERN is not set CONFIG_INIT_STACK_ALL_ZERO=y -# CONFIG_GCC_PLUGIN_STACKLEAK is not set CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y @@ -5059,8 +5008,6 @@ CONFIG_LIST_HARDENED=y # end of Hardening of kernel data structures CONFIG_RANDSTRUCT_NONE=y -# CONFIG_RANDSTRUCT_FULL is not set -# CONFIG_RANDSTRUCT_PERFORMANCE is not set # end of Kernel hardening options # end of Security options @@ -5215,9 +5162,7 @@ CONFIG_CRYPTO_DRBG_HMAC=y # CONFIG_CRYPTO_DRBG_CTR is not set CONFIG_CRYPTO_DRBG=y CONFIG_CRYPTO_JITTERENTROPY=y -CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKS=64 -CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKSIZE=32 -CONFIG_CRYPTO_JITTERENTROPY_OSR=1 +# CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE is not set # end of Random number generation # @@ -5370,6 +5315,7 @@ CONFIG_ZSTD_DECOMPRESS=y CONFIG_XZ_DEC=y CONFIG_XZ_DEC_X86=y CONFIG_XZ_DEC_POWERPC=y +CONFIG_XZ_DEC_IA64=y CONFIG_XZ_DEC_ARM=y CONFIG_XZ_DEC_ARMTHUMB=y CONFIG_XZ_DEC_SPARC=y @@ -5430,7 +5376,6 @@ CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y CONFIG_ARCH_STACKWALK=y CONFIG_STACKDEPOT=y CONFIG_SBITMAP=y -# CONFIG_LWQ_TEST is not set # end of Library routines CONFIG_GENERIC_IOREMAP=y @@ -5471,9 +5416,8 @@ CONFIG_DEBUG_INFO_DWARF4=y # CONFIG_DEBUG_INFO_REDUCED is not set CONFIG_DEBUG_INFO_COMPRESSED_NONE=y # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set +# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set # CONFIG_DEBUG_INFO_SPLIT is not set -CONFIG_PAHOLE_HAS_SPLIT_BTF=y -CONFIG_PAHOLE_HAS_LANG_EXCLUDE=y # CONFIG_GDB_SCRIPTS is not set CONFIG_FRAME_WARN=2048 # CONFIG_STRIP_ASM_SYMS is not set From 1ff28006badd6a18fa4faa3867ee0345ace621ea Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 16:06:29 +0300 Subject: [PATCH 2/8] configs: mt8183: Rename MT8183 kernel config to be arch-generic The kernel config for MT8183 can already boot on Hana boards. The lowest of depthcharge size limits on ARM64 is a comfortable 32MiB, so we can try to create a arch-generic kernel, and probably even an arch-generic image. Rename the config and its references to "a64" as in the Makefile. Signed-off-by: Alper Nebi Yasak --- .github/workflows/build.yml | 2 +- Makefile | 6 ++---- README.md | 2 +- configs/{kernel.mt8183 => kernel.a64} | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) rename configs/{kernel.mt8183 => kernel.a64} (99%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 255a837..f712a5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,7 +59,7 @@ jobs: run: go install github.com/u-root/u-root@$UROOT_COMMIT - name: Copy submarine kernel configuration - run: cp configs/kernel.${{ matrix.platform == 'x86_64' && 'x86' || 'mt8183' }} kernel/.config + run: cp configs/kernel.${{ matrix.platform == 'x86_64' && 'x86' || 'a64' }} kernel/.config - name: Build submarine run: make CC="ccache gcc" -j$(nproc) ${{ matrix.platform }} diff --git a/Makefile b/Makefile index f155747..a7ea3f2 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ CONFDIR=configs OUTPUTDIR=images TMPFILE=/tmp/$(project_name) -# x86 machines use common kernel configuration CONFIG_X64=kernel.x86 BZIMAGE_X64=bzImage.x86 INITFS_X64=u-root-x86.cpio @@ -14,8 +13,7 @@ INITFSZ_X64=u-root-x86.cpio.xz KPART_X64=$(project_name)-x86.kpart IMG_X64=$(project_name)-x86.bin -# The only supported ARM64 platform right now is MediaTek MT8183. -CONFIG_MT8183=kernel.mt8183 +CONFIG_A64=kernel.a64 BZIMAGE_A64=bzImage.a64 INITFS_A64=u-root-a64.cpio INITFSZ_A64=u-root-a64.cpio.xz @@ -75,7 +73,7 @@ $(KPART_A64): $(BZIMAGE_A64) @echo 'Kernel partition binary saved as "$(KPART_A64)" in "images" directory.' $(BZIMAGE_A64): $(INITFSZ_A64) - cp $(CONFDIR)/$(CONFIG_MT8183) kernel/.config + cp $(CONFDIR)/$(CONFIG_A64) kernel/.config [ uname -m = x86_64 ] && ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -C kernel || make -C kernel cp kernel/arch/arm64/boot/Image.gz $(WORKDIR)/$(BZIMAGE_A64) diff --git a/README.md b/README.md index 5a30ff4..e54dcbe 100644 --- a/README.md +++ b/README.md @@ -65,4 +65,4 @@ sudo dd if=build/submarine.bin of=/dev/sdX ## 🗒️ Todos - Create kpart on arm -- Clean up mt8183 config +- Clean up kernel configs diff --git a/configs/kernel.mt8183 b/configs/kernel.a64 similarity index 99% rename from configs/kernel.mt8183 rename to configs/kernel.a64 index b018c45..7deb6c5 100644 --- a/configs/kernel.mt8183 +++ b/configs/kernel.a64 @@ -28,11 +28,11 @@ CONFIG_THREAD_INFO_IN_TASK=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set # CONFIG_WERROR is not set -CONFIG_LOCALVERSION="-crboot-mt8183" +CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" CONFIG_DEFAULT_INIT="" -CONFIG_DEFAULT_HOSTNAME="kukui" +CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y CONFIG_SYSVIPC_COMPAT=y From 7db42d47bb6e79126e9a33f22fdeea9215ed4242 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 16:16:02 +0300 Subject: [PATCH 3/8] configs: arm64: Enable USB_UAS for external drives Enable USB-attached SCSI in the ARM64 kernel, useful for some external USB-to-SATA disks and the like. Signed-off-by: Alper Nebi Yasak --- configs/kernel.a64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/kernel.a64 b/configs/kernel.a64 index 7deb6c5..bde8b6f 100644 --- a/configs/kernel.a64 +++ b/configs/kernel.a64 @@ -3182,7 +3182,7 @@ CONFIG_USB_STORAGE=y # CONFIG_USB_STORAGE_KARMA is not set # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set # CONFIG_USB_STORAGE_ENE_UB6250 is not set -# CONFIG_USB_UAS is not set +CONFIG_USB_UAS=y # # USB Imaging devices From 55d0cdb38d859236e324828e9a4eb81ef87be004 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 19:44:50 +0300 Subject: [PATCH 4/8] configs: arm64: Enable configs for RK3399 Chromebooks Add configs for RK3399 Chromebooks based on device-tree analysis. It boots on Kevin with everything looking like it works, and even tries to boot into Debian, but can't. It can't even kexec itself, so I expect something is breaking down when it's trying to shutdown before launching the next kernel. I occasionally had display problems around suspend, so maybe rockchip-drm doesn't handle being deinitialized well. Based on the device-trees, following are still missing: INPUT_MOUSE n -> y INPUT_TOUCHSCREEN n -> y ROCKCHIP_CDN_DP n -> y SENSORS_NTC_THERMISTOR n -> y STAGING n -> y USB_UHCI_HCD n -> y +ARM_BIG_LITTLE_CPUIDLE y +ARM_CPUIDLE y +ARM_GIC_V3_ITS_FSL_MC y +BT y +BT_HCIBTUSB y +DWMAC_ROCKCHIP y +ETHERNET y +MOUSE_ELAN_I2C y +MWIFIEX y +MWIFIEX_PCIE y +NET_VENDOR_STMICRO y +PCIE_ROCKCHIP_EP y +ROCKCHIP_DTPM y +SND y +SND_SIMPLE_CARD y +SND_SOC y +SND_SOC_DA7219 y +SND_SOC_DMIC y +SND_SOC_MAX98357A y +SND_SOC_RK3399_GRU_SOUND y +SND_SOC_ROCKCHIP_I2S y +SND_SOC_ROCKCHIP_SPDIF y +SND_SOC_RT5514 y +SND_SOC_RT5514_SPI y +SND_SOC_RT5514_SPI_BUILTIN y +STMMAC_ETH y +TOUCHSCREEN_ATMEL_MXT y +TOUCHSCREEN_ELAN y +USB_PHY y +VIDEO_HANTRO y +VIDEO_OV2685 y +VIDEO_OV5695 y +VIDEO_ROCKCHIP_ISP1 y +VIDEO_ROCKCHIP_RGA y +VIDEO_ROCKCHIP_VDEC y +WLAN y +WLAN_VENDOR_MARVELL y ROCKCHIP_CDN_DP is about display over USB-C, needs firmware so disabled. USB_PHY and ARM_GIC_V3_ITS_FSL_MC cannot be selected, have no prompt. Signed-off-by: Alper Nebi Yasak --- configs/kernel.a64 | 90 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 80 insertions(+), 10 deletions(-) diff --git a/configs/kernel.a64 b/configs/kernel.a64 index bde8b6f..acf0da4 100644 --- a/configs/kernel.a64 +++ b/configs/kernel.a64 @@ -50,6 +50,7 @@ CONFIG_GENERIC_IRQ_SHOW_LEVEL=y CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y CONFIG_GENERIC_IRQ_MIGRATION=y CONFIG_HARDIRQS_SW_RESEND=y +CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_IRQ_IPI=y @@ -317,7 +318,7 @@ CONFIG_ARCH_MEDIATEK=y # CONFIG_ARCH_QCOM is not set # CONFIG_ARCH_REALTEK is not set # CONFIG_ARCH_RENESAS is not set -# CONFIG_ARCH_ROCKCHIP is not set +CONFIG_ARCH_ROCKCHIP=y # CONFIG_ARCH_SEATTLE is not set # CONFIG_ARCH_INTEL_SOCFPGA is not set # CONFIG_ARCH_STM32 is not set @@ -589,7 +590,7 @@ CONFIG_CPU_FREQ_GOV_PERFORMANCE=y # CPU frequency scaling drivers # # CONFIG_CPUFREQ_DT is not set -# CONFIG_CPUFREQ_DT_PLATDEV is not set +CONFIG_CPUFREQ_DT_PLATDEV=y CONFIG_ARM_MEDIATEK_CPUFREQ=y CONFIG_ARM_MEDIATEK_CPUFREQ_HW=y # end of CPU Frequency scaling @@ -929,6 +930,8 @@ CONFIG_PCI_HOST_COMMON=y # CONFIG_PCIE_MEDIATEK is not set CONFIG_PCIE_MEDIATEK_GEN3=y # CONFIG_PCIE_MICROCHIP_HOST is not set +CONFIG_PCIE_ROCKCHIP=y +CONFIG_PCIE_ROCKCHIP_HOST=y # CONFIG_PCI_XGENE is not set # CONFIG_PCIE_XILINX is not set @@ -949,6 +952,7 @@ CONFIG_PCIE_DW_HOST=y CONFIG_PCI_HISI=y CONFIG_PCIE_KIRIN=y # CONFIG_PCIE_DW_PLAT_HOST is not set +# CONFIG_PCIE_ROCKCHIP_DW_HOST is not set # end of DesignWare-based PCIe controllers # @@ -1712,7 +1716,7 @@ CONFIG_I2C_MT65XX=y # CONFIG_I2C_NOMADIK is not set # CONFIG_I2C_OCORES is not set # CONFIG_I2C_PCA_PLATFORM is not set -# CONFIG_I2C_RK3X is not set +CONFIG_I2C_RK3X=y # CONFIG_I2C_SIMTEC is not set # CONFIG_I2C_THUNDERX is not set # CONFIG_I2C_XILINX is not set @@ -1769,6 +1773,8 @@ CONFIG_SPI_MTK_NOR=y # CONFIG_SPI_PCI1XXXX is not set # CONFIG_SPI_PL022 is not set # CONFIG_SPI_PXA2XX is not set +CONFIG_SPI_ROCKCHIP=y +CONFIG_SPI_ROCKCHIP_SFC=y # CONFIG_SPI_SC18IS602 is not set # CONFIG_SPI_SIFIVE is not set # CONFIG_SPI_SN_F_OSPI is not set @@ -1816,6 +1822,7 @@ CONFIG_GENERIC_PINCONF=y # CONFIG_PINCTRL_MCP23S08 is not set # CONFIG_PINCTRL_MICROCHIP_SGPIO is not set # CONFIG_PINCTRL_OCELOT is not set +CONFIG_PINCTRL_ROCKCHIP=y # CONFIG_PINCTRL_SINGLE is not set # CONFIG_PINCTRL_STMFX is not set # CONFIG_PINCTRL_SX150X is not set @@ -1855,6 +1862,7 @@ CONFIG_PINCTRL_MT6397=y CONFIG_GPIOLIB=y CONFIG_GPIOLIB_FASTPATH_LIMIT=512 CONFIG_OF_GPIO=y +CONFIG_GPIOLIB_IRQCHIP=y CONFIG_DEBUG_GPIO=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_CDEV=y @@ -1876,6 +1884,7 @@ CONFIG_GPIO_CDEV_V1=y # CONFIG_GPIO_LOGICVC is not set # CONFIG_GPIO_MB86S7X is not set # CONFIG_GPIO_PL061 is not set +CONFIG_GPIO_ROCKCHIP=y # CONFIG_GPIO_SIFIVE is not set # CONFIG_GPIO_SYSCON is not set # CONFIG_GPIO_XGENE is not set @@ -2185,6 +2194,7 @@ CONFIG_CPU_FREQ_THERMAL=y CONFIG_DEVFREQ_THERMAL=y # CONFIG_THERMAL_EMULATION is not set # CONFIG_THERMAL_MMIO is not set +CONFIG_ROCKCHIP_THERMAL=y # # Mediatek thermal drivers @@ -2219,7 +2229,7 @@ CONFIG_SOFT_WATCHDOG=y # CONFIG_ARM_SP805_WATCHDOG is not set # CONFIG_ARM_SBSA_WATCHDOG is not set # CONFIG_CADENCE_WATCHDOG is not set -# CONFIG_DW_WATCHDOG is not set +CONFIG_DW_WATCHDOG=y # CONFIG_MAX63XX_WATCHDOG is not set CONFIG_MEDIATEK_WATCHDOG=y # CONFIG_ARM_SMC_WATCHDOG is not set @@ -2364,6 +2374,7 @@ CONFIG_MFD_SYSCON=y # CONFIG_MFD_STPMIC1 is not set # CONFIG_MFD_STMFX is not set # CONFIG_MFD_ATC260X_I2C is not set +# CONFIG_MFD_KHADAS_MCU is not set # CONFIG_MFD_QCOM_PM8008 is not set # CONFIG_RAVE_SP_CORE is not set # CONFIG_MFD_INTEL_M10_BMC_SPI is not set @@ -2456,7 +2467,7 @@ CONFIG_REGULATOR_PWM=y # CONFIG_REGULATOR_TPS6507X is not set # CONFIG_REGULATOR_TPS65132 is not set # CONFIG_REGULATOR_TPS6524X is not set -# CONFIG_REGULATOR_VCTRL is not set +CONFIG_REGULATOR_VCTRL=y # CONFIG_REGULATOR_QCOM_LABIBB is not set # CONFIG_RC_CORE is not set @@ -2658,6 +2669,7 @@ CONFIG_DRM_DP_AUX_BUS=y CONFIG_DRM_DISPLAY_HELPER=y CONFIG_DRM_DISPLAY_DP_HELPER=y CONFIG_DRM_DISPLAY_HDCP_HELPER=y +CONFIG_DRM_DISPLAY_HDMI_HELPER=y CONFIG_DRM_DP_AUX_CHARDEV=y # CONFIG_DRM_DP_CEC is not set CONFIG_DRM_GEM_DMA_HELPER=y @@ -2686,6 +2698,17 @@ CONFIG_DRM_SCHED=y # CONFIG_DRM_NOUVEAU is not set # CONFIG_DRM_VGEM is not set # CONFIG_DRM_VKMS is not set +CONFIG_DRM_ROCKCHIP=y +CONFIG_ROCKCHIP_VOP=y +# CONFIG_ROCKCHIP_VOP2 is not set +CONFIG_ROCKCHIP_ANALOGIX_DP=y +# CONFIG_ROCKCHIP_CDN_DP is not set +CONFIG_ROCKCHIP_DW_HDMI=y +CONFIG_ROCKCHIP_DW_MIPI_DSI=y +# CONFIG_ROCKCHIP_INNO_HDMI is not set +# CONFIG_ROCKCHIP_LVDS is not set +# CONFIG_ROCKCHIP_RGB is not set +# CONFIG_ROCKCHIP_RK3066_HDMI is not set # CONFIG_DRM_VMWGFX is not set # CONFIG_DRM_UDL is not set # CONFIG_DRM_AST is not set @@ -2721,7 +2744,7 @@ CONFIG_DRM_PANEL_INNOLUX_P079ZCA=y # CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set # CONFIG_DRM_PANEL_JDI_R63452 is not set # CONFIG_DRM_PANEL_KHADAS_TS050 is not set -# CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04 is not set +CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04=y # CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W is not set # CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829 is not set # CONFIG_DRM_PANEL_SAMSUNG_LD9040 is not set @@ -2827,6 +2850,9 @@ CONFIG_DRM_ANALOGIX_ANX7625=y # CONFIG_DRM_I2C_ADV7511 is not set # CONFIG_DRM_CDNS_DSI is not set # CONFIG_DRM_CDNS_MHDP8546 is not set +CONFIG_DRM_DW_HDMI=y +# CONFIG_DRM_DW_HDMI_CEC is not set +CONFIG_DRM_DW_MIPI_DSI=y # end of Display Interface Bridges # CONFIG_DRM_LOONGSON is not set @@ -3097,7 +3123,7 @@ CONFIG_USB_HIDDEV=y # end of USB HID support CONFIG_I2C_HID=y -# CONFIG_I2C_HID_OF is not set +CONFIG_I2C_HID_OF=y # CONFIG_I2C_HID_OF_ELAN is not set CONFIG_I2C_HID_OF_GOODIX=y CONFIG_I2C_HID_CORE=y @@ -3413,7 +3439,7 @@ CONFIG_MMC_TEST=y CONFIG_MMC_SDHCI=y # CONFIG_MMC_SDHCI_PCI is not set CONFIG_MMC_SDHCI_PLTFM=y -# CONFIG_MMC_SDHCI_OF_ARASAN is not set +CONFIG_MMC_SDHCI_OF_ARASAN=y # CONFIG_MMC_SDHCI_OF_AT91 is not set # CONFIG_MMC_SDHCI_OF_DWCMSHC is not set # CONFIG_MMC_SDHCI_CADENCE is not set @@ -3423,7 +3449,14 @@ CONFIG_MMC_SDHCI_PLTFM=y # CONFIG_MMC_SPI is not set # CONFIG_MMC_CB710 is not set # CONFIG_MMC_VIA_SDMMC is not set -# CONFIG_MMC_DW is not set +CONFIG_MMC_DW=y +CONFIG_MMC_DW_PLTFM=y +# CONFIG_MMC_DW_BLUEFIELD is not set +# CONFIG_MMC_DW_EXYNOS is not set +# CONFIG_MMC_DW_HI3798CV200 is not set +# CONFIG_MMC_DW_K3 is not set +# CONFIG_MMC_DW_PCI is not set +CONFIG_MMC_DW_ROCKCHIP=y # CONFIG_MMC_VUB300 is not set # CONFIG_MMC_USHC is not set # CONFIG_MMC_USDHI6ROL0 is not set @@ -3885,6 +3918,14 @@ CONFIG_COMMON_CLK_MT8516=y # CONFIG_COMMON_CLK_MT8516_AUDSYS is not set # end of Clock driver for MediaTek SoC +CONFIG_COMMON_CLK_ROCKCHIP=y +# CONFIG_CLK_PX30 is not set +# CONFIG_CLK_RK3308 is not set +# CONFIG_CLK_RK3328 is not set +# CONFIG_CLK_RK3368 is not set +CONFIG_CLK_RK3399=y +# CONFIG_CLK_RK3568 is not set +# CONFIG_CLK_RK3588 is not set # CONFIG_XILINX_VCU is not set # CONFIG_COMMON_CLK_XLNX_CLKWZRD is not set # CONFIG_HWSPINLOCK is not set @@ -3895,6 +3936,7 @@ CONFIG_COMMON_CLK_MT8516=y CONFIG_TIMER_OF=y CONFIG_TIMER_PROBE=y CONFIG_CLKSRC_MMIO=y +CONFIG_ROCKCHIP_TIMER=y CONFIG_ARM_ARCH_TIMER=y CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND=y @@ -3910,6 +3952,7 @@ CONFIG_MAILBOX=y # CONFIG_ARM_MHU_V2 is not set # CONFIG_PLATFORM_MHU is not set # CONFIG_PL320_MBOX is not set +CONFIG_ROCKCHIP_MBOX=y # CONFIG_ALTERA_MBOX is not set # CONFIG_MAILBOX_TEST is not set CONFIG_MTK_ADSP_MBOX=y @@ -3936,6 +3979,7 @@ CONFIG_IOMMU_DEFAULT_DMA_STRICT=y CONFIG_OF_IOMMU=y CONFIG_IOMMU_DMA=y # CONFIG_IOMMUFD is not set +CONFIG_ROCKCHIP_IOMMU=y # CONFIG_ARM_SMMU is not set # CONFIG_ARM_SMMU_V3 is not set CONFIG_MTK_IOMMU=y @@ -4015,6 +4059,9 @@ CONFIG_MTK_MMSYS=y # # end of Qualcomm SoC drivers +CONFIG_ROCKCHIP_GRF=y +CONFIG_ROCKCHIP_IODOMAIN=y +CONFIG_ROCKCHIP_PM_DOMAINS=y # CONFIG_SOC_TI is not set # @@ -4038,7 +4085,9 @@ CONFIG_DEVFREQ_GOV_PASSIVE=y # DEVFREQ Drivers # CONFIG_ARM_MEDIATEK_CCI_DEVFREQ=y -# CONFIG_PM_DEVFREQ_EVENT is not set +CONFIG_ARM_RK3399_DMC_DEVFREQ=y +CONFIG_PM_DEVFREQ_EVENT=y +CONFIG_DEVFREQ_EVENT_ROCKCHIP_DFI=y CONFIG_EXTCON=y # @@ -4172,6 +4221,7 @@ CONFIG_MEDIATEK_MT6577_AUXADC=y # CONFIG_QCOM_SPMI_IADC is not set # CONFIG_QCOM_SPMI_VADC is not set # CONFIG_QCOM_SPMI_ADC5 is not set +CONFIG_ROCKCHIP_SARADC=y # CONFIG_RICHTEK_RTQ6056 is not set # CONFIG_SD_ADC_MODULATOR is not set # CONFIG_TI_ADC081C is not set @@ -4614,6 +4664,7 @@ CONFIG_PWM_CROS_EC=y CONFIG_PWM_MTK_DISP=y CONFIG_PWM_MEDIATEK=y # CONFIG_PWM_PCA9685 is not set +CONFIG_PWM_ROCKCHIP=y # CONFIG_PWM_XILINX is not set # @@ -4633,6 +4684,7 @@ CONFIG_MST_IRQ=y # end of IRQ chip support # CONFIG_IPACK_BUS is not set +CONFIG_ARCH_HAS_RESET_CONTROLLER=y CONFIG_RESET_CONTROLLER=y CONFIG_RESET_SIMPLE=y CONFIG_RESET_TI_SYSCON=y @@ -4642,6 +4694,7 @@ CONFIG_RESET_TI_SYSCON=y # PHY Subsystem # CONFIG_GENERIC_PHY=y +CONFIG_GENERIC_PHY_MIPI_DPHY=y # CONFIG_PHY_CAN_TRANSCEIVER is not set # @@ -4668,6 +4721,18 @@ CONFIG_PHY_MTK_DP=y # CONFIG_PHY_CPCAP_USB is not set # CONFIG_PHY_MAPPHONE_MDM6600 is not set # CONFIG_PHY_OCELOT_SERDES is not set +CONFIG_PHY_ROCKCHIP_DP=y +CONFIG_PHY_ROCKCHIP_DPHY_RX0=y +CONFIG_PHY_ROCKCHIP_EMMC=y +# CONFIG_PHY_ROCKCHIP_INNO_HDMI is not set +CONFIG_PHY_ROCKCHIP_INNO_USB2=y +# CONFIG_PHY_ROCKCHIP_INNO_CSIDPHY is not set +# CONFIG_PHY_ROCKCHIP_INNO_DSIDPHY is not set +# CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY is not set +CONFIG_PHY_ROCKCHIP_PCIE=y +# CONFIG_PHY_ROCKCHIP_SNPS_PCIE3 is not set +CONFIG_PHY_ROCKCHIP_TYPEC=y +# CONFIG_PHY_ROCKCHIP_USB is not set # end of PHY Subsystem # CONFIG_POWERCAP is not set @@ -4713,6 +4778,8 @@ CONFIG_NVMEM_SYSFS=y CONFIG_NVMEM_MTK_EFUSE=y # CONFIG_NVMEM_RMEM is not set +CONFIG_NVMEM_ROCKCHIP_EFUSE=y +# CONFIG_NVMEM_ROCKCHIP_OTP is not set # CONFIG_NVMEM_SPMI_SDAM is not set CONFIG_NVMEM_U_BOOT_ENV=y @@ -5042,6 +5109,7 @@ CONFIG_CRYPTO_NULL2=y CONFIG_CRYPTO_CRYPTD=y CONFIG_CRYPTO_AUTHENC=y # CONFIG_CRYPTO_TEST is not set +CONFIG_CRYPTO_ENGINE=y # end of Crypto core or helper # @@ -5215,6 +5283,8 @@ CONFIG_CRYPTO_HW=y # CONFIG_CRYPTO_DEV_QAT_C3XXXVF is not set # CONFIG_CRYPTO_DEV_QAT_C62XVF is not set # CONFIG_CRYPTO_DEV_CAVIUM_ZIP is not set +CONFIG_CRYPTO_DEV_ROCKCHIP=y +# CONFIG_CRYPTO_DEV_ROCKCHIP_DEBUG is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set # CONFIG_CRYPTO_DEV_SAFEXCEL is not set # CONFIG_CRYPTO_DEV_CCREE is not set From 99baab4aa2488ada8a7aac2c35a3e4f239dccf9d Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 21:39:39 +0300 Subject: [PATCH 5/8] configs: arm64: Enable PINCTRL_MT8186 Enable the pin controller for MT8186. Looks like most other necessary configs for MT8186 are enabled, as far as I can tell from device tree compatibles. The following are still missing but none of which look essential for booting: INPUT_MOUSE n -> y REMOTEPROC n -> y SX9324 n -> y USB_UHCI_HCD n -> y +ARM_BIG_LITTLE_CPUIDLE y +ARM_CPUIDLE y +CROS_EC_RPMSG y +MOUSE_ELAN_I2C y +MTK_SCP y +SND y +SND_SOC y +SND_SOC_BT_SCO y +SND_SOC_DMIC y +SND_SOC_MT6358 y +SND_SOC_MT8186 y +SND_SOC_MT8186_MT6366_RT1019_RT5682S y +SND_SOC_RK3399_GRU_SOUND y +SND_SOC_RT1015P y +SND_SOC_RT5682S y +SND_SOC_SOF_MT8186 y +SND_SOC_SOF_MTK_TOPLEVEL y +USB_PHY y CROS_EC_RPMSG and REMOTEPROC are about MTK_SCP, which needs firmware. Signed-off-by: Alper Nebi Yasak --- configs/kernel.a64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/kernel.a64 b/configs/kernel.a64 index acf0da4..907497f 100644 --- a/configs/kernel.a64 +++ b/configs/kernel.a64 @@ -1845,7 +1845,7 @@ CONFIG_PINCTRL_MT6797=y # CONFIG_PINCTRL_MT8167 is not set CONFIG_PINCTRL_MT8173=y CONFIG_PINCTRL_MT8183=y -# CONFIG_PINCTRL_MT8186 is not set +CONFIG_PINCTRL_MT8186=y # CONFIG_PINCTRL_MT8188 is not set # CONFIG_PINCTRL_MT8192 is not set # CONFIG_PINCTRL_MT8195 is not set From 03376015473e9196a9e1a2f453e72934ae70c772 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 22:07:43 +0300 Subject: [PATCH 6/8] configs: arm64: Enable PINCTRL_MT8192 and MT8192 clocks Enable the MT1892 pin controller and clocks. The clocks might or might not be optional, but better not risk it being broken, we are not limited on size. Based on the device-tree, following are still missing, but none of which look essential for booting: INPUT_MOUSE n -> y INPUT_TOUCHSCREEN n -> y REMOTEPROC n -> y USB_UHCI_HCD n -> y +ARM_BIG_LITTLE_CPUIDLE y +ARM_CPUIDLE y +BT_HCIUART_3WIRE y +CROS_EC_RPMSG y +MOUSE_ELAN_I2C y +MTK_SCP y +SND y +SND_SOC y +SND_SOC_DMIC y +SND_SOC_MT8192 y +SND_SOC_RK3399_GRU_SOUND y +SND_SOC_RT1015P y +SND_SOC_RT5682_I2C y +TOUCHSCREEN_ELAN y +USB_PHY y +VIDEO_MEDIATEK_VCODEC y Signed-off-by: Alper Nebi Yasak --- configs/kernel.a64 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/configs/kernel.a64 b/configs/kernel.a64 index 907497f..c91ea95 100644 --- a/configs/kernel.a64 +++ b/configs/kernel.a64 @@ -1847,7 +1847,7 @@ CONFIG_PINCTRL_MT8173=y CONFIG_PINCTRL_MT8183=y CONFIG_PINCTRL_MT8186=y # CONFIG_PINCTRL_MT8188 is not set -# CONFIG_PINCTRL_MT8192 is not set +CONFIG_PINCTRL_MT8192=y # CONFIG_PINCTRL_MT8195 is not set # CONFIG_PINCTRL_MT8365 is not set # CONFIG_PINCTRL_MT8516 is not set @@ -3880,18 +3880,18 @@ CONFIG_COMMON_CLK_MT8188_VENCSYS=y CONFIG_COMMON_CLK_MT8188_VPPSYS=y CONFIG_COMMON_CLK_MT8188_WPESYS=y CONFIG_COMMON_CLK_MT8192=y -# CONFIG_COMMON_CLK_MT8192_AUDSYS is not set -# CONFIG_COMMON_CLK_MT8192_CAMSYS is not set -# CONFIG_COMMON_CLK_MT8192_IMGSYS is not set -# CONFIG_COMMON_CLK_MT8192_IMP_IIC_WRAP is not set -# CONFIG_COMMON_CLK_MT8192_IPESYS is not set -# CONFIG_COMMON_CLK_MT8192_MDPSYS is not set -# CONFIG_COMMON_CLK_MT8192_MFGCFG is not set +CONFIG_COMMON_CLK_MT8192_AUDSYS=y +CONFIG_COMMON_CLK_MT8192_CAMSYS=y +CONFIG_COMMON_CLK_MT8192_IMGSYS=y +CONFIG_COMMON_CLK_MT8192_IMP_IIC_WRAP=y +CONFIG_COMMON_CLK_MT8192_IPESYS=y +CONFIG_COMMON_CLK_MT8192_MDPSYS=y +CONFIG_COMMON_CLK_MT8192_MFGCFG=y # CONFIG_COMMON_CLK_MT8192_MMSYS is not set -# CONFIG_COMMON_CLK_MT8192_MSDC is not set -# CONFIG_COMMON_CLK_MT8192_SCP_ADSP is not set -# CONFIG_COMMON_CLK_MT8192_VDECSYS is not set -# CONFIG_COMMON_CLK_MT8192_VENCSYS is not set +CONFIG_COMMON_CLK_MT8192_MSDC=y +CONFIG_COMMON_CLK_MT8192_SCP_ADSP=y +CONFIG_COMMON_CLK_MT8192_VDECSYS=y +CONFIG_COMMON_CLK_MT8192_VENCSYS=y CONFIG_COMMON_CLK_MT8195=y CONFIG_COMMON_CLK_MT8195_APUSYS=y CONFIG_COMMON_CLK_MT8195_AUDSYS=y From ab41bbb2fc5a372c5340f156f96d51e77df96ac8 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 22:13:38 +0300 Subject: [PATCH 7/8] configs: arm64: Enable PINCTRL_MT8195 Enable MT8195 pin controller. Like MT8186, most essenial stuff looks like they're already enabled. Other than that, following are still missing, but none of which look essential for booting: ARM_DSU_PMU n -> y CROS_KBD_LED_BACKLIGHT n -> y INPUT_MOUSE n -> y MTK_LVTS_THERMAL n -> y PHY_MTK_UFS n -> y REMOTEPROC n -> y USB_UHCI_HCD n -> y +ARM_BIG_LITTLE_CPUIDLE y +ARM_CPUIDLE y +CROS_EC_RPMSG y +DWMAC_MEDIATEK y +ETHERNET y +MOUSE_ELAN_I2C y +MTK_SCP y +NET_VENDOR_STMICRO y +SND y +SND_SOC y +SND_SOC_DMIC y +SND_SOC_MT8195 y +SND_SOC_MT8195_MT6359 y +SND_SOC_RK3399_GRU_SOUND y +SND_SOC_RT1015P y +SND_SOC_RT5682S y +SND_SOC_RT5682_I2C y +SND_SOC_SOF_MT8195 y +SND_SOC_SOF_MTK_TOPLEVEL y +SPI_SLAVE_MT27XX y +STMMAC_ETH y +USB_PHY y +VIDEO_MEDIATEK_JPEG y +VIDEO_MEDIATEK_VCODEC y ARM_DSU_PMU is about performance monitoring. PHY_MTK_UFS and SPI_SLAVE_MT27XX actually look unused, have status = "disabled". Signed-off-by: Alper Nebi Yasak --- configs/kernel.a64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/kernel.a64 b/configs/kernel.a64 index c91ea95..be34c61 100644 --- a/configs/kernel.a64 +++ b/configs/kernel.a64 @@ -1848,7 +1848,7 @@ CONFIG_PINCTRL_MT8183=y CONFIG_PINCTRL_MT8186=y # CONFIG_PINCTRL_MT8188 is not set CONFIG_PINCTRL_MT8192=y -# CONFIG_PINCTRL_MT8195 is not set +CONFIG_PINCTRL_MT8195=y # CONFIG_PINCTRL_MT8365 is not set # CONFIG_PINCTRL_MT8516 is not set CONFIG_PINCTRL_MT6397=y From 0d7f91d0f96ba3734af94b9ab9efca7fe06dfa64 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sun, 10 Dec 2023 23:12:22 +0300 Subject: [PATCH 8/8] configs: arm64: Enable configs for SC7180 Chromebooks This tries to enable configs for SC7180 Chromebooks based on device-tree files, but I have no idea how much of it is useful, or if the end result works at all. There are more things from device-trees, but none I could justify when considering just booting: CROS_EC_MKBP_PROXIMITY n -> y INPUT_MOUSE n -> y INPUT_TOUCHSCREEN n -> y LEDS_CLASS_FLASH n -> y QCOM_SPMI_ADC_TM5 n -> y QCOM_SPMI_TEMP_ALARM n -> y QCOM_TSENS n -> y REMOTEPROC n -> y SX9310 n -> y SX9324 n -> y +ARM_BIG_LITTLE_CPUIDLE y +ARM_CPUIDLE y +ARM_GIC_V3_ITS_FSL_MC y +ATH10K y +ATH10K_SNOC y +BT_HCIUART_QCA y +LEDS_QCOM_FLASH y +MOUSE_ELAN_I2C y +QCOM_IPA y +QCOM_Q6V5_MSS y +QCOM_Q6V5_PAS y +SND y +SND_SOC y +SND_SOC_ADAU7002 y +SND_SOC_LPASS_SC7180 y +SND_SOC_MAX98357A y +SND_SOC_RT5682S y +SND_SOC_RT5682_I2C y +SND_SOC_SC7180 y +TOUCHSCREEN_ELAN y +USB_PHY y +VIDEO_QCOM_VENUS y +WLAN y +WLAN_VENDOR_ATH y QCOM_SPMI_ADC_TM5, QCOM_SPMI_TEMP_ALARM, QCOM_TSENS are for thermals. SX9310, SC9324 are proximity sensors. QCOM_IPA, QCOM_Q6V5_* are some kind of a modem. Signed-off-by: Alper Nebi Yasak --- configs/kernel.a64 | 305 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 296 insertions(+), 9 deletions(-) diff --git a/configs/kernel.a64 b/configs/kernel.a64 index be34c61..dd6359a 100644 --- a/configs/kernel.a64 +++ b/configs/kernel.a64 @@ -53,6 +53,7 @@ CONFIG_HARDIRQS_SW_RESEND=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_DOMAIN_HIERARCHY=y +CONFIG_IRQ_FASTEOI_HIERARCHY_HANDLERS=y CONFIG_GENERIC_IRQ_IPI=y CONFIG_GENERIC_MSI_IRQ=y CONFIG_IRQ_MSI_IOMMU=y @@ -315,7 +316,7 @@ CONFIG_ARCH_MEDIATEK=y # CONFIG_ARCH_NXP is not set # CONFIG_ARCH_MA35 is not set # CONFIG_ARCH_NPCM is not set -# CONFIG_ARCH_QCOM is not set +CONFIG_ARCH_QCOM=y # CONFIG_ARCH_REALTEK is not set # CONFIG_ARCH_RENESAS is not set CONFIG_ARCH_ROCKCHIP=y @@ -593,6 +594,8 @@ CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPUFREQ_DT_PLATDEV=y CONFIG_ARM_MEDIATEK_CPUFREQ=y CONFIG_ARM_MEDIATEK_CPUFREQ_HW=y +# CONFIG_ARM_QCOM_CPUFREQ_NVMEM is not set +CONFIG_ARM_QCOM_CPUFREQ_HW=y # end of CPU Frequency scaling # end of CPU Power Management @@ -952,6 +955,7 @@ CONFIG_PCIE_DW_HOST=y CONFIG_PCI_HISI=y CONFIG_PCIE_KIRIN=y # CONFIG_PCIE_DW_PLAT_HOST is not set +# CONFIG_PCIE_QCOM is not set # CONFIG_PCIE_ROCKCHIP_DW_HOST is not set # end of DesignWare-based PCIe controllers @@ -1024,6 +1028,8 @@ CONFIG_GENERIC_ARCH_TOPOLOGY=y # # CONFIG_BRCMSTB_GISB_ARB is not set # CONFIG_MOXTET is not set +CONFIG_QCOM_EBI2=y +# CONFIG_QCOM_SSC_BLOCK_BUS is not set # CONFIG_VEXPRESS_CONFIG is not set # CONFIG_MHI_BUS is not set # CONFIG_MHI_BUS_EP is not set @@ -1048,6 +1054,8 @@ CONFIG_GENERIC_ARCH_TOPOLOGY=y # CONFIG_FIRMWARE_MEMMAP is not set # CONFIG_FW_CFG_SYSFS is not set CONFIG_MTK_ADSP_IPC=y +CONFIG_QCOM_SCM=y +# CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT is not set CONFIG_ARM_FFA_TRANSPORT=y CONFIG_ARM_FFA_SMCCC=y CONFIG_GOOGLE_FIRMWARE=y @@ -1081,6 +1089,7 @@ CONFIG_MTD_OF_PARTS=y # CONFIG_MTD_AFS_PARTS is not set # CONFIG_MTD_PARSER_TRX is not set # CONFIG_MTD_REDBOOT_PARTS is not set +# CONFIG_MTD_QCOMSMEM_PARTS is not set # end of Partition parsers # @@ -1235,6 +1244,7 @@ CONFIG_BLK_DEV_NVME=y # CONFIG_ENCLOSURE_SERVICES is not set # CONFIG_HI6421V600_IRQ is not set # CONFIG_HP_ILO is not set +# CONFIG_QCOM_COINCELL is not set # CONFIG_APDS9802ALS is not set # CONFIG_ISL29003 is not set # CONFIG_ISL29020 is not set @@ -1476,6 +1486,8 @@ CONFIG_INPUT_MISC=y # CONFIG_INPUT_ATMEL_CAPTOUCH is not set # CONFIG_INPUT_BMA150 is not set # CONFIG_INPUT_E3X0_BUTTON is not set +CONFIG_INPUT_PM8941_PWRKEY=y +# CONFIG_INPUT_PM8XXX_VIBRATOR is not set # CONFIG_INPUT_MMA8450 is not set # CONFIG_INPUT_GPIO_BEEPER is not set # CONFIG_INPUT_GPIO_DECODER is not set @@ -1594,6 +1606,9 @@ CONFIG_SERIAL_OF_PLATFORM=y CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y # CONFIG_SERIAL_JSM is not set +# CONFIG_SERIAL_MSM is not set +CONFIG_SERIAL_QCOM_GENI=y +# CONFIG_SERIAL_QCOM_GENI_CONSOLE is not set # CONFIG_SERIAL_SIFIVE is not set # CONFIG_SERIAL_SCCNXP is not set # CONFIG_SERIAL_SC16IS7XX is not set @@ -1716,6 +1731,9 @@ CONFIG_I2C_MT65XX=y # CONFIG_I2C_NOMADIK is not set # CONFIG_I2C_OCORES is not set # CONFIG_I2C_PCA_PLATFORM is not set +# CONFIG_I2C_QCOM_CCI is not set +CONFIG_I2C_QCOM_GENI=y +# CONFIG_I2C_QUP is not set CONFIG_I2C_RK3X=y # CONFIG_I2C_SIMTEC is not set # CONFIG_I2C_THUNDERX is not set @@ -1775,6 +1793,9 @@ CONFIG_SPI_MTK_NOR=y # CONFIG_SPI_PXA2XX is not set CONFIG_SPI_ROCKCHIP=y CONFIG_SPI_ROCKCHIP_SFC=y +CONFIG_SPI_QCOM_QSPI=y +# CONFIG_SPI_QUP is not set +CONFIG_SPI_QCOM_GENI=y # CONFIG_SPI_SC18IS602 is not set # CONFIG_SPI_SIFIVE is not set # CONFIG_SPI_SN_F_OSPI is not set @@ -1799,6 +1820,7 @@ CONFIG_SPI_SPIDEV=y CONFIG_SPI_DYNAMIC=y CONFIG_SPMI=y # CONFIG_SPMI_HISI3670 is not set +CONFIG_SPMI_MSM_PMIC_ARB=y CONFIG_SPMI_MTK_PMIF=y # CONFIG_HSI is not set # CONFIG_PPS is not set @@ -1854,6 +1876,45 @@ CONFIG_PINCTRL_MT8195=y CONFIG_PINCTRL_MT6397=y # end of MediaTek pinctrl drivers +CONFIG_PINCTRL_MSM=y +# CONFIG_PINCTRL_IPQ5018 is not set +# CONFIG_PINCTRL_IPQ5332 is not set +# CONFIG_PINCTRL_IPQ8074 is not set +# CONFIG_PINCTRL_IPQ6018 is not set +# CONFIG_PINCTRL_IPQ9574 is not set +# CONFIG_PINCTRL_MDM9607 is not set +# CONFIG_PINCTRL_MSM8916 is not set +# CONFIG_PINCTRL_MSM8953 is not set +# CONFIG_PINCTRL_MSM8976 is not set +# CONFIG_PINCTRL_MSM8994 is not set +# CONFIG_PINCTRL_MSM8996 is not set +# CONFIG_PINCTRL_MSM8998 is not set +# CONFIG_PINCTRL_QCM2290 is not set +# CONFIG_PINCTRL_QCS404 is not set +# CONFIG_PINCTRL_QDU1000 is not set +# CONFIG_PINCTRL_SA8775P is not set +CONFIG_PINCTRL_SC7180=y +# CONFIG_PINCTRL_SC7280 is not set +# CONFIG_PINCTRL_SC8180X is not set +# CONFIG_PINCTRL_SC8280XP is not set +# CONFIG_PINCTRL_SDM660 is not set +# CONFIG_PINCTRL_SDM670 is not set +# CONFIG_PINCTRL_SDM845 is not set +# CONFIG_PINCTRL_SDX75 is not set +# CONFIG_PINCTRL_SM6115 is not set +# CONFIG_PINCTRL_SM6125 is not set +# CONFIG_PINCTRL_SM6350 is not set +# CONFIG_PINCTRL_SM6375 is not set +# CONFIG_PINCTRL_SM7150 is not set +# CONFIG_PINCTRL_SM8150 is not set +# CONFIG_PINCTRL_SM8250 is not set +# CONFIG_PINCTRL_SM8350 is not set +# CONFIG_PINCTRL_SM8450 is not set +# CONFIG_PINCTRL_SM8550 is not set +CONFIG_PINCTRL_QCOM_SPMI_PMIC=y +# CONFIG_PINCTRL_QCOM_SSBI_PMIC is not set +# CONFIG_PINCTRL_LPASS_LPI is not set + # # Renesas pinctrl drivers # @@ -1952,6 +2013,8 @@ CONFIG_POWER_RESET=y # CONFIG_POWER_RESET_BRCMSTB is not set # CONFIG_POWER_RESET_GPIO is not set # CONFIG_POWER_RESET_GPIO_RESTART is not set +# CONFIG_POWER_RESET_MSM is not set +CONFIG_POWER_RESET_QCOM_PON=y # CONFIG_POWER_RESET_LTC2952 is not set # CONFIG_POWER_RESET_MT6323 is not set # CONFIG_POWER_RESET_REGULATOR is not set @@ -1959,6 +2022,7 @@ CONFIG_POWER_RESET=y # CONFIG_POWER_RESET_XGENE is not set # CONFIG_POWER_RESET_SYSCON is not set # CONFIG_POWER_RESET_SYSCON_POWEROFF is not set +CONFIG_REBOOT_MODE=y # CONFIG_SYSCON_REBOOT_MODE is not set # CONFIG_NVMEM_REBOOT_MODE is not set CONFIG_POWER_SUPPLY=y @@ -1988,6 +2052,7 @@ CONFIG_CHARGER_GPIO=y # CONFIG_CHARGER_DETECTOR_MAX14656 is not set # CONFIG_CHARGER_MAX77976 is not set # CONFIG_CHARGER_MT6360 is not set +# CONFIG_CHARGER_QCOM_SMBB is not set # CONFIG_CHARGER_BQ2415X is not set # CONFIG_CHARGER_BQ24190 is not set # CONFIG_CHARGER_BQ24257 is not set @@ -2008,6 +2073,7 @@ CONFIG_CHARGER_CROS_PCHG=y # CONFIG_CHARGER_UCS1002 is not set # CONFIG_CHARGER_BD99954 is not set # CONFIG_BATTERY_UG3105 is not set +# CONFIG_CHARGER_QCOM_SMB2 is not set CONFIG_HWMON=y # CONFIG_HWMON_DEBUG_CHIP is not set @@ -2205,6 +2271,16 @@ CONFIG_MTK_SOC_THERMAL=y # end of Mediatek thermal drivers CONFIG_GENERIC_ADC_THERMAL=y + +# +# Qualcomm thermal drivers +# +# CONFIG_QCOM_TSENS is not set +# CONFIG_QCOM_SPMI_ADC_TM5 is not set +# CONFIG_QCOM_SPMI_TEMP_ALARM is not set +# CONFIG_QCOM_LMH is not set +# end of Qualcomm thermal drivers + CONFIG_WATCHDOG=y CONFIG_WATCHDOG_CORE=y # CONFIG_WATCHDOG_NOWAYOUT is not set @@ -2231,8 +2307,10 @@ CONFIG_SOFT_WATCHDOG=y # CONFIG_CADENCE_WATCHDOG is not set CONFIG_DW_WATCHDOG=y # CONFIG_MAX63XX_WATCHDOG is not set +CONFIG_QCOM_WDT=y CONFIG_MEDIATEK_WATCHDOG=y # CONFIG_ARM_SMC_WATCHDOG is not set +# CONFIG_PM8916_WATCHDOG is not set # CONFIG_ALIM7101_WDT is not set # CONFIG_I6300ESB_WDT is not set # CONFIG_HP_WATCHDOG is not set @@ -2317,6 +2395,8 @@ CONFIG_MFD_MT6397=y # CONFIG_MFD_NTXEC is not set # CONFIG_MFD_RETU is not set # CONFIG_MFD_PCF50633 is not set +# CONFIG_MFD_QCOM_RPM is not set +CONFIG_MFD_SPMI_PMIC=y # CONFIG_MFD_SY7636A is not set # CONFIG_MFD_RDC321X is not set # CONFIG_MFD_RT4831 is not set @@ -2439,6 +2519,8 @@ CONFIG_REGULATOR_MT6397=y # CONFIG_REGULATOR_PV88080 is not set # CONFIG_REGULATOR_PV88090 is not set CONFIG_REGULATOR_PWM=y +# CONFIG_REGULATOR_QCOM_REFGEN is not set +CONFIG_REGULATOR_QCOM_RPMH=y # CONFIG_REGULATOR_QCOM_SPMI is not set # CONFIG_REGULATOR_QCOM_USB_VBUS is not set # CONFIG_REGULATOR_RAA215300 is not set @@ -2468,6 +2550,7 @@ CONFIG_REGULATOR_PWM=y # CONFIG_REGULATOR_TPS65132 is not set # CONFIG_REGULATOR_TPS6524X is not set CONFIG_REGULATOR_VCTRL=y +# CONFIG_REGULATOR_VQMMC_IPQ4019 is not set # CONFIG_REGULATOR_QCOM_LABIBB is not set # CONFIG_RC_CORE is not set @@ -2714,6 +2797,23 @@ CONFIG_ROCKCHIP_DW_MIPI_DSI=y # CONFIG_DRM_AST is not set # CONFIG_DRM_MGAG200 is not set # CONFIG_DRM_QXL is not set +CONFIG_DRM_MSM=y +CONFIG_DRM_MSM_GPU_STATE=y +# CONFIG_DRM_MSM_GPU_SUDO is not set +CONFIG_DRM_MSM_MDSS=y +CONFIG_DRM_MSM_MDP4=y +CONFIG_DRM_MSM_MDP5=y +CONFIG_DRM_MSM_DPU=y +CONFIG_DRM_MSM_DP=y +CONFIG_DRM_MSM_DSI=y +CONFIG_DRM_MSM_DSI_28NM_PHY=y +CONFIG_DRM_MSM_DSI_20NM_PHY=y +CONFIG_DRM_MSM_DSI_28NM_8960_PHY=y +CONFIG_DRM_MSM_DSI_14NM_PHY=y +CONFIG_DRM_MSM_DSI_10NM_PHY=y +CONFIG_DRM_MSM_DSI_7NM_PHY=y +CONFIG_DRM_MSM_HDMI=y +CONFIG_DRM_MSM_HDMI_HDCP=y CONFIG_DRM_PANEL=y # @@ -2770,7 +2870,7 @@ CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04=y # CONFIG_DRM_PANEL_RAYDIUM_RM67191 is not set # CONFIG_DRM_PANEL_RAYDIUM_RM68200 is not set # CONFIG_DRM_PANEL_RONBO_RB070D30 is not set -# CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20 is not set +CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20=y # CONFIG_DRM_PANEL_SAMSUNG_DB7430 is not set # CONFIG_DRM_PANEL_SAMSUNG_S6D16D0 is not set # CONFIG_DRM_PANEL_SAMSUNG_S6D27A1 is not set @@ -2841,7 +2941,7 @@ CONFIG_DRM_SIMPLE_BRIDGE=y # CONFIG_DRM_TI_DLPC3433 is not set # CONFIG_DRM_TI_TFP410 is not set # CONFIG_DRM_TI_SN65DSI83 is not set -# CONFIG_DRM_TI_SN65DSI86 is not set +CONFIG_DRM_TI_SN65DSI86=y # CONFIG_DRM_TI_TPD12S015 is not set # CONFIG_DRM_ANALOGIX_ANX6345 is not set CONFIG_DRM_ANALOGIX_ANX78XX=y @@ -2951,7 +3051,7 @@ CONFIG_BACKLIGHT_CLASS_DEVICE=y # CONFIG_BACKLIGHT_KTD253 is not set # CONFIG_BACKLIGHT_KTZ8866 is not set CONFIG_BACKLIGHT_PWM=y -# CONFIG_BACKLIGHT_QCOM_WLED is not set +CONFIG_BACKLIGHT_QCOM_WLED=y # CONFIG_BACKLIGHT_ADP8860 is not set # CONFIG_BACKLIGHT_ADP8870 is not set # CONFIG_BACKLIGHT_LM3630A is not set @@ -3236,6 +3336,7 @@ CONFIG_USB_DWC3_DUAL_ROLE=y # CONFIG_USB_DWC3_HAPS=y CONFIG_USB_DWC3_OF_SIMPLE=y +CONFIG_USB_DWC3_QCOM=y # CONFIG_USB_DWC2 is not set # CONFIG_USB_CHIPIDEA is not set # CONFIG_USB_ISP1760 is not set @@ -3313,6 +3414,7 @@ CONFIG_USB_SERIAL_OPTION=y # CONFIG_USB_CYTHERM is not set # CONFIG_USB_IDMOUSE is not set # CONFIG_USB_APPLEDISPLAY is not set +# CONFIG_USB_QCOM_EUD is not set # CONFIG_APPLE_MFI_FASTCHARGE is not set # CONFIG_USB_SISUSBVGA is not set # CONFIG_USB_LD is not set @@ -3328,7 +3430,7 @@ CONFIG_USB_EZUSB_FX2=y # CONFIG_USB_HSIC_USB4604 is not set # CONFIG_USB_LINK_LAYER_TEST is not set # CONFIG_USB_CHAOSKEY is not set -# CONFIG_USB_ONBOARD_HUB is not set +CONFIG_USB_ONBOARD_HUB=y # # USB Physical Layer drivers @@ -3437,6 +3539,7 @@ CONFIG_MMC_TEST=y # CONFIG_MMC_DEBUG is not set # CONFIG_MMC_ARMMMCI is not set CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_IO_ACCESSORS=y # CONFIG_MMC_SDHCI_PCI is not set CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_OF_ARASAN=y @@ -3445,6 +3548,7 @@ CONFIG_MMC_SDHCI_OF_ARASAN=y # CONFIG_MMC_SDHCI_CADENCE is not set # CONFIG_MMC_SDHCI_F_SDH30 is not set # CONFIG_MMC_SDHCI_MILBEAUT is not set +CONFIG_MMC_SDHCI_MSM=y # CONFIG_MMC_TIFM_SD is not set # CONFIG_MMC_SPI is not set # CONFIG_MMC_CB710 is not set @@ -3664,6 +3768,7 @@ CONFIG_RTC_DRV_CROS_EC=y # CONFIG_RTC_DRV_PL031 is not set # CONFIG_RTC_DRV_CADENCE is not set # CONFIG_RTC_DRV_FTRTC010 is not set +# CONFIG_RTC_DRV_PM8XXX is not set # CONFIG_RTC_DRV_MT2712 is not set CONFIG_RTC_DRV_MT6397=y # CONFIG_RTC_DRV_MT7622 is not set @@ -3697,6 +3802,8 @@ CONFIG_PL330_DMA=y # CONFIG_MTK_HSDMA is not set # CONFIG_MTK_CQDMA is not set # CONFIG_MTK_UART_APDMA is not set +# CONFIG_QCOM_BAM_DMA is not set +# CONFIG_QCOM_GPI_DMA is not set # CONFIG_QCOM_HIDMA_MGMT is not set # CONFIG_QCOM_HIDMA is not set # CONFIG_DW_DMAC is not set @@ -3918,6 +4025,102 @@ CONFIG_COMMON_CLK_MT8516=y # CONFIG_COMMON_CLK_MT8516_AUDSYS is not set # end of Clock driver for MediaTek SoC +CONFIG_QCOM_GDSC=y +CONFIG_COMMON_CLK_QCOM=y +# CONFIG_QCOM_A53PLL is not set +# CONFIG_QCOM_A7PLL is not set +# CONFIG_QCOM_CLK_APCS_MSM8916 is not set +# CONFIG_QCOM_CLK_APCC_MSM8996 is not set +CONFIG_QCOM_CLK_RPMH=y +# CONFIG_IPQ_APSS_PLL is not set +# CONFIG_IPQ_APSS_6018 is not set +# CONFIG_IPQ_GCC_4019 is not set +# CONFIG_IPQ_GCC_5018 is not set +# CONFIG_IPQ_GCC_5332 is not set +# CONFIG_IPQ_GCC_6018 is not set +# CONFIG_IPQ_GCC_8074 is not set +# CONFIG_IPQ_GCC_9574 is not set +# CONFIG_MSM_GCC_8916 is not set +# CONFIG_MSM_GCC_8917 is not set +# CONFIG_MSM_GCC_8939 is not set +# CONFIG_MSM_GCC_8953 is not set +# CONFIG_MSM_GCC_8976 is not set +# CONFIG_MSM_MMCC_8994 is not set +# CONFIG_MSM_GCC_8994 is not set +# CONFIG_MSM_GCC_8996 is not set +# CONFIG_MSM_MMCC_8996 is not set +# CONFIG_MSM_GCC_8998 is not set +# CONFIG_MSM_GPUCC_8998 is not set +# CONFIG_MSM_MMCC_8998 is not set +# CONFIG_QCM_GCC_2290 is not set +# CONFIG_QCM_DISPCC_2290 is not set +# CONFIG_QCS_GCC_404 is not set +CONFIG_SC_CAMCC_7180=y +# CONFIG_SC_CAMCC_7280 is not set +CONFIG_SC_DISPCC_7180=y +# CONFIG_SC_DISPCC_7280 is not set +# CONFIG_SC_DISPCC_8280XP is not set +# CONFIG_SA_GCC_8775P is not set +# CONFIG_SA_GPUCC_8775P is not set +CONFIG_SC_GCC_7180=y +# CONFIG_SC_GCC_7280 is not set +# CONFIG_SC_GCC_8180X is not set +# CONFIG_SC_GCC_8280XP is not set +CONFIG_SC_GPUCC_7180=y +# CONFIG_SC_GPUCC_7280 is not set +# CONFIG_SC_GPUCC_8280XP is not set +# CONFIG_SC_LPASSCC_7280 is not set +# CONFIG_SC_LPASSCC_8280XP is not set +CONFIG_SC_LPASS_CORECC_7180=y +# CONFIG_SC_LPASS_CORECC_7280 is not set +# CONFIG_SC_MSS_7180 is not set +CONFIG_SC_VIDEOCC_7180=y +# CONFIG_SC_VIDEOCC_7280 is not set +# CONFIG_SDM_CAMCC_845 is not set +# CONFIG_SDM_GCC_660 is not set +# CONFIG_SDM_MMCC_660 is not set +# CONFIG_SDM_GPUCC_660 is not set +# CONFIG_QCS_TURING_404 is not set +# CONFIG_QCS_Q6SSTOP_404 is not set +# CONFIG_QDU_GCC_1000 is not set +# CONFIG_SDM_GCC_845 is not set +# CONFIG_SDM_GPUCC_845 is not set +# CONFIG_SDM_VIDEOCC_845 is not set +# CONFIG_SDM_DISPCC_845 is not set +# CONFIG_SDM_LPASSCC_845 is not set +# CONFIG_SDX_GCC_75 is not set +# CONFIG_SM_CAMCC_6350 is not set +# CONFIG_SM_CAMCC_8250 is not set +# CONFIG_SM_CAMCC_8450 is not set +# CONFIG_SM_GCC_6115 is not set +# CONFIG_SM_GCC_6125 is not set +# CONFIG_SM_GCC_6350 is not set +# CONFIG_SM_GCC_6375 is not set +# CONFIG_SM_GCC_7150 is not set +# CONFIG_SM_GCC_8150 is not set +# CONFIG_SM_GCC_8250 is not set +# CONFIG_SM_GCC_8350 is not set +# CONFIG_SM_GCC_8450 is not set +# CONFIG_SM_GCC_8550 is not set +# CONFIG_SM_GPUCC_6115 is not set +# CONFIG_SM_GPUCC_6125 is not set +# CONFIG_SM_GPUCC_6375 is not set +# CONFIG_SM_GPUCC_6350 is not set +# CONFIG_SM_GPUCC_8150 is not set +# CONFIG_SM_GPUCC_8250 is not set +# CONFIG_SM_GPUCC_8350 is not set +# CONFIG_SM_GPUCC_8450 is not set +# CONFIG_SM_GPUCC_8550 is not set +# CONFIG_SM_TCSRCC_8550 is not set +# CONFIG_SM_VIDEOCC_8150 is not set +# CONFIG_SM_VIDEOCC_8250 is not set +# CONFIG_SM_VIDEOCC_8350 is not set +# CONFIG_SM_VIDEOCC_8550 is not set +# CONFIG_SPMI_PMIC_CLKDIV is not set +# CONFIG_QCOM_HFPLL is not set +# CONFIG_KPSS_XCC is not set +# CONFIG_CLK_GFM_LPASS_SM8250 is not set +# CONFIG_SM_VIDEOCC_8450 is not set CONFIG_COMMON_CLK_ROCKCHIP=y # CONFIG_CLK_PX30 is not set # CONFIG_CLK_RK3308 is not set @@ -3928,7 +4131,8 @@ CONFIG_CLK_RK3399=y # CONFIG_CLK_RK3588 is not set # CONFIG_XILINX_VCU is not set # CONFIG_COMMON_CLK_XLNX_CLKWZRD is not set -# CONFIG_HWSPINLOCK is not set +CONFIG_HWSPINLOCK=y +CONFIG_HWSPINLOCK_QCOM=y # # Clock Source drivers @@ -3955,8 +4159,10 @@ CONFIG_MAILBOX=y CONFIG_ROCKCHIP_MBOX=y # CONFIG_ALTERA_MBOX is not set # CONFIG_MAILBOX_TEST is not set +CONFIG_QCOM_APCS_IPC=y CONFIG_MTK_ADSP_MBOX=y CONFIG_MTK_CMDQ_MBOX=y +# CONFIG_QCOM_IPCC is not set CONFIG_IOMMU_IOVA=y CONFIG_IOMMU_API=y CONFIG_IOMMU_SUPPORT=y @@ -3980,9 +4186,14 @@ CONFIG_OF_IOMMU=y CONFIG_IOMMU_DMA=y # CONFIG_IOMMUFD is not set CONFIG_ROCKCHIP_IOMMU=y -# CONFIG_ARM_SMMU is not set +CONFIG_ARM_SMMU=y +# CONFIG_ARM_SMMU_LEGACY_DT_BINDINGS is not set +CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT=y +CONFIG_ARM_SMMU_QCOM=y +# CONFIG_ARM_SMMU_QCOM_DEBUG is not set # CONFIG_ARM_SMMU_V3 is not set CONFIG_MTK_IOMMU=y +# CONFIG_QCOM_IOMMU is not set # CONFIG_VIRTIO_IOMMU is not set # @@ -3995,6 +4206,8 @@ CONFIG_MTK_IOMMU=y # Rpmsg drivers # # CONFIG_RPMSG_QCOM_GLINK_RPM is not set +# CONFIG_RPMSG_QCOM_GLINK_SMEM is not set +# CONFIG_RPMSG_QCOM_SMD is not set # CONFIG_RPMSG_VIRTIO is not set # end of Rpmsg drivers @@ -4057,6 +4270,27 @@ CONFIG_MTK_MMSYS=y # # Qualcomm SoC drivers # +CONFIG_QCOM_AOSS_QMP=y +CONFIG_QCOM_COMMAND_DB=y +# CONFIG_QCOM_CPR is not set +CONFIG_QCOM_GENI_SE=y +# CONFIG_QCOM_GSBI is not set +CONFIG_QCOM_LLCC=y +CONFIG_QCOM_MDT_LOADER=y +# CONFIG_QCOM_OCMEM is not set +# CONFIG_QCOM_RAMP_CTRL is not set +CONFIG_QCOM_RMTFS_MEM=y +# CONFIG_QCOM_RPM_MASTER_STATS is not set +CONFIG_QCOM_RPMH=y +CONFIG_QCOM_RPMHPD=y +CONFIG_QCOM_SMEM=y +CONFIG_QCOM_SMEM_STATE=y +CONFIG_QCOM_SMP2P=y +# CONFIG_QCOM_SMSM is not set +# CONFIG_QCOM_SOCINFO is not set +# CONFIG_QCOM_SPM is not set +CONFIG_QCOM_STATS=y +CONFIG_QCOM_ICC_BWMON=y # end of Qualcomm SoC drivers CONFIG_ROCKCHIP_GRF=y @@ -4098,6 +4332,7 @@ CONFIG_EXTCON=y # CONFIG_EXTCON_GPIO is not set # CONFIG_EXTCON_MAX3355 is not set # CONFIG_EXTCON_PTN5150 is not set +# CONFIG_EXTCON_QCOM_SPMI_MISC is not set # CONFIG_EXTCON_RT8973A is not set # CONFIG_EXTCON_SM5502 is not set # CONFIG_EXTCON_USB_GPIO is not set @@ -4218,9 +4453,11 @@ CONFIG_IIO_SW_TRIGGER=y # CONFIG_MEDIATEK_MT6360_ADC is not set CONFIG_MEDIATEK_MT6577_AUXADC=y # CONFIG_NAU7802 is not set +CONFIG_QCOM_VADC_COMMON=y +# CONFIG_QCOM_SPMI_RRADC is not set # CONFIG_QCOM_SPMI_IADC is not set # CONFIG_QCOM_SPMI_VADC is not set -# CONFIG_QCOM_SPMI_ADC5 is not set +CONFIG_QCOM_SPMI_ADC5=y CONFIG_ROCKCHIP_SARADC=y # CONFIG_RICHTEK_RTQ6056 is not set # CONFIG_SD_ADC_MODULATOR is not set @@ -4680,12 +4917,16 @@ CONFIG_ARM_GIC_V3_ITS_PCI=y # CONFIG_AL_FIC is not set # CONFIG_XILINX_INTC is not set CONFIG_PARTITION_PERCPU=y +CONFIG_QCOM_PDC=y +# CONFIG_QCOM_MPM is not set CONFIG_MST_IRQ=y # end of IRQ chip support # CONFIG_IPACK_BUS is not set CONFIG_ARCH_HAS_RESET_CONTROLLER=y CONFIG_RESET_CONTROLLER=y +CONFIG_RESET_QCOM_AOSS=y +CONFIG_RESET_QCOM_PDC=y CONFIG_RESET_SIMPLE=y CONFIG_RESET_TI_SYSCON=y # CONFIG_RESET_TI_TPS380X is not set @@ -4721,6 +4962,27 @@ CONFIG_PHY_MTK_DP=y # CONFIG_PHY_CPCAP_USB is not set # CONFIG_PHY_MAPPHONE_MDM6600 is not set # CONFIG_PHY_OCELOT_SERDES is not set +# CONFIG_PHY_QCOM_APQ8064_SATA is not set +# CONFIG_PHY_QCOM_EDP is not set +# CONFIG_PHY_QCOM_IPQ4019_USB is not set +# CONFIG_PHY_QCOM_IPQ806X_SATA is not set +# CONFIG_PHY_QCOM_PCIE2 is not set +CONFIG_PHY_QCOM_QMP=y +CONFIG_PHY_QCOM_QMP_COMBO=y +CONFIG_PHY_QCOM_QMP_PCIE=y +CONFIG_PHY_QCOM_QMP_PCIE_8996=y +CONFIG_PHY_QCOM_QMP_UFS=y +CONFIG_PHY_QCOM_QMP_USB=y +# CONFIG_PHY_QCOM_QMP_USB_LEGACY is not set +CONFIG_PHY_QCOM_QUSB2=y +# CONFIG_PHY_QCOM_SNPS_EUSB2 is not set +# CONFIG_PHY_QCOM_EUSB2_REPEATER is not set +# CONFIG_PHY_QCOM_M31_USB is not set +# CONFIG_PHY_QCOM_USB_SNPS_FEMTO_V2 is not set +# CONFIG_PHY_QCOM_USB_HS_28NM is not set +# CONFIG_PHY_QCOM_USB_SS is not set +# CONFIG_PHY_QCOM_IPQ806X_USB is not set +# CONFIG_PHY_QCOM_SGMII_ETH is not set CONFIG_PHY_ROCKCHIP_DP=y CONFIG_PHY_ROCKCHIP_DPHY_RX0=y CONFIG_PHY_ROCKCHIP_EMMC=y @@ -4777,6 +5039,8 @@ CONFIG_NVMEM_SYSFS=y # end of Layout Types CONFIG_NVMEM_MTK_EFUSE=y +CONFIG_NVMEM_QCOM_QFPROM=y +# CONFIG_NVMEM_QCOM_SEC_QFPROM is not set # CONFIG_NVMEM_RMEM is not set CONFIG_NVMEM_ROCKCHIP_EFUSE=y # CONFIG_NVMEM_ROCKCHIP_OTP is not set @@ -4797,7 +5061,28 @@ CONFIG_NVMEM_U_BOOT_ENV=y CONFIG_PM_OPP=y # CONFIG_SIOX is not set # CONFIG_SLIMBUS is not set -# CONFIG_INTERCONNECT is not set +CONFIG_INTERCONNECT=y +CONFIG_INTERCONNECT_QCOM=y +CONFIG_INTERCONNECT_QCOM_BCM_VOTER=y +CONFIG_INTERCONNECT_QCOM_OSM_L3=y +# CONFIG_INTERCONNECT_QCOM_QDU1000 is not set +CONFIG_INTERCONNECT_QCOM_RPMH_POSSIBLE=y +CONFIG_INTERCONNECT_QCOM_RPMH=y +# CONFIG_INTERCONNECT_QCOM_SA8775P is not set +CONFIG_INTERCONNECT_QCOM_SC7180=y +# CONFIG_INTERCONNECT_QCOM_SC7280 is not set +# CONFIG_INTERCONNECT_QCOM_SC8180X is not set +# CONFIG_INTERCONNECT_QCOM_SC8280XP is not set +# CONFIG_INTERCONNECT_QCOM_SDM670 is not set +# CONFIG_INTERCONNECT_QCOM_SDM845 is not set +# CONFIG_INTERCONNECT_QCOM_SDX55 is not set +# CONFIG_INTERCONNECT_QCOM_SDX65 is not set +# CONFIG_INTERCONNECT_QCOM_SM6350 is not set +# CONFIG_INTERCONNECT_QCOM_SM8150 is not set +# CONFIG_INTERCONNECT_QCOM_SM8250 is not set +# CONFIG_INTERCONNECT_QCOM_SM8350 is not set +# CONFIG_INTERCONNECT_QCOM_SM8450 is not set +# CONFIG_INTERCONNECT_QCOM_SM8550 is not set # CONFIG_COUNTER is not set # CONFIG_MOST is not set CONFIG_PECI=y @@ -5283,6 +5568,8 @@ CONFIG_CRYPTO_HW=y # CONFIG_CRYPTO_DEV_QAT_C3XXXVF is not set # CONFIG_CRYPTO_DEV_QAT_C62XVF is not set # CONFIG_CRYPTO_DEV_CAVIUM_ZIP is not set +# CONFIG_CRYPTO_DEV_QCE is not set +# CONFIG_CRYPTO_DEV_QCOM_RNG is not set CONFIG_CRYPTO_DEV_ROCKCHIP=y # CONFIG_CRYPTO_DEV_ROCKCHIP_DEBUG is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set