From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 18 Mar 2024 14:07:42 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rmCiL-00CLTV-36 for lore@lore.pengutronix.de; Mon, 18 Mar 2024 14:07:41 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rmCiL-00037w-Fw; Mon, 18 Mar 2024 14:07:41 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rmCiF-00037h-Qd; Mon, 18 Mar 2024 14:07:35 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmCiF-0075AZ-EK; Mon, 18 Mar 2024 14:07:35 +0100 Received: from mol by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rmCiF-005Vo7-1A; Mon, 18 Mar 2024 14:07:35 +0100 Date: Mon, 18 Mar 2024 14:07:35 +0100 From: Michael Olbrich To: Ahmad Fatoum Message-ID: Mail-Followup-To: Ahmad Fatoum , distrokit@pengutronix.de References: <20240315211240.3016716-1-a.fatoum@pengutronix.de> <20240315211240.3016716-12-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240315211240.3016716-12-a.fatoum@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [DistroKit] [PATCH 11/12] v7a: kernel: enable STM32MP135F-DK support X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Fri, Mar 15, 2024 at 10:12:39PM +0100, Ahmad Fatoum wrote: > The STM32MP13 shared many kernel config options with the STM32MP15, but > it requires some additional options to support SCMI-over-OP-TEE. Enable > these options as well as support for OTP-over-OPTEE and rng-over-OPTEE. > > With the SCMI options enabled, it's possible to boot the STM32MP135F-DK, > so enable build of its device tree for inclusion into the image in the > follow-up commit. > > Signed-off-by: Ahmad Fatoum > --- > configs/platform-v7a/kernelconfig | 10 ++++++++-- > configs/platform-v7a/platformconfig | 2 +- > 2 files changed, 9 insertions(+), 3 deletions(-) > > diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig > index c65bdb8da3d9..0984c8a1900c 100644 > --- a/configs/platform-v7a/kernelconfig > +++ b/configs/platform-v7a/kernelconfig > @@ -1248,7 +1248,9 @@ CONFIG_ARM_SCMI_PROTOCOL=y > # CONFIG_ARM_SCMI_RAW_MODE_SUPPORT is not set > CONFIG_ARM_SCMI_HAVE_TRANSPORT=y > CONFIG_ARM_SCMI_HAVE_SHMEM=y > +CONFIG_ARM_SCMI_HAVE_MSG=y > CONFIG_ARM_SCMI_TRANSPORT_MAILBOX=y > +CONFIG_ARM_SCMI_TRANSPORT_OPTEE=y > CONFIG_ARM_SCMI_TRANSPORT_SMC=y > # CONFIG_ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE is not set > # CONFIG_ARM_SCMI_TRANSPORT_VIRTIO is not set > @@ -1931,6 +1933,7 @@ CONFIG_HW_RANDOM_IPROC_RNG200=y > CONFIG_HW_RANDOM_OMAP=y > CONFIG_HW_RANDOM_VIRTIO=y > CONFIG_HW_RANDOM_STM32=y > +CONFIG_HW_RANDOM_OPTEE=y > # CONFIG_HW_RANDOM_CCTRNG is not set > # CONFIG_HW_RANDOM_XIPHERA is not set > # CONFIG_HW_RANDOM_ARM_SMCCC_TRNG is not set > @@ -3106,6 +3109,7 @@ CONFIG_RTC_I2C_AND_SPI=y > # CONFIG_RTC_DRV_M48T59 is not set > # CONFIG_RTC_DRV_MSM6242 is not set > # CONFIG_RTC_DRV_RP5C01 is not set > +# CONFIG_RTC_DRV_OPTEE is not set > # CONFIG_RTC_DRV_ZYNQMP is not set > > # > @@ -3578,6 +3582,7 @@ CONFIG_NVMEM_IMX_OCOTP_ELE=y > # CONFIG_NVMEM_MICROCHIP_OTPC is not set > CONFIG_NVMEM_RMEM=y > # CONFIG_NVMEM_SNVS_LPGPR is not set > +CONFIG_NVMEM_STM32_BSEC_OPTEE_TA=y > CONFIG_NVMEM_STM32_ROMEM=y > # CONFIG_NVMEM_U_BOOT_ENV is not set > > @@ -3590,7 +3595,8 @@ CONFIG_NVMEM_STM32_ROMEM=y > > # CONFIG_FPGA is not set > # CONFIG_FSI is not set > -# CONFIG_TEE is not set > +CONFIG_TEE=y > +CONFIG_OPTEE=y > CONFIG_MULTIPLEXER=y > > # > @@ -3994,7 +4000,7 @@ CONFIG_CRYPTO_XTS=y > # CONFIG_CRYPTO_MICHAEL_MIC is not set > # CONFIG_CRYPTO_POLY1305 is not set > # CONFIG_CRYPTO_RMD160 is not set > -# CONFIG_CRYPTO_SHA1 is not set > +CONFIG_CRYPTO_SHA1=y Please enable the optimized sha1 implementations for ARM as well. Michael > CONFIG_CRYPTO_SHA256=y > # CONFIG_CRYPTO_SHA512 is not set > # CONFIG_CRYPTO_SHA3 is not set > diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig > index 1ff25470bfd6..797b4cb72664 100644 > --- a/configs/platform-v7a/platformconfig > +++ b/configs/platform-v7a/platformconfig > @@ -138,7 +138,7 @@ PTXCONF_KERNEL_IMAGE_Z=y > PTXCONF_KERNEL_IMAGE="zImage" > PTXCONF_KERNEL_DTB=y > PTXCONF_KERNEL_DTS_PATH="${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts" > -PTXCONF_KERNEL_DTS="ti/omap/am335x-bone.dts ti/omap/am335x-boneblack.dts arm/vexpress-v2p-ca9.dts broadcom/bcm2836-rpi-2-b.dts nxp/imx/imx6q-sabrelite.dts nxp/imx/imx6sx-udoo-neo-full.dts nxp/imx/imx6dl-riotboard.dts nxp/imx/imx6q-nitrogen6x.dts nxp/imx/imx6qp-nitrogen6_max.dts broadcom/bcm2837-rpi-3-b.dts broadcom/bcm2837-rpi-cm3-io3.dts broadcom/bcm2711-rpi-4-b.dts broadcom/bcm2711-rpi-400.dts st/stm32mp157c-dk2.dts st/stm32mp157c-ev1.dts st/stm32mp157c-lxa-mc1.dts microchip/at91-sama5d27_som1_ek.dts at91-sama5d27_giantboard.dts at91-sama5d4_wifx_l1.dts" > +PTXCONF_KERNEL_DTS="ti/omap/am335x-bone.dts ti/omap/am335x-boneblack.dts arm/vexpress-v2p-ca9.dts broadcom/bcm2836-rpi-2-b.dts nxp/imx/imx6q-sabrelite.dts nxp/imx/imx6sx-udoo-neo-full.dts nxp/imx/imx6dl-riotboard.dts nxp/imx/imx6q-nitrogen6x.dts nxp/imx/imx6qp-nitrogen6_max.dts broadcom/bcm2837-rpi-3-b.dts broadcom/bcm2837-rpi-cm3-io3.dts broadcom/bcm2711-rpi-4-b.dts broadcom/bcm2711-rpi-400.dts st/stm32mp157c-dk2.dts st/stm32mp157c-ev1.dts st/stm32mp157c-lxa-mc1.dts st/stm32mp135f-dk.dts microchip/at91-sama5d27_som1_ek.dts at91-sama5d27_giantboard.dts at91-sama5d4_wifx_l1.dts" > # PTXCONF_KERNEL_DTBO is not set > # PTXCONF_KERNEL_CODE_SIGNING is not set > # PTXCONF_KERNEL_ZSTD is not set > -- > 2.39.2 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |