Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C677C4338F for ; Mon, 16 Aug 2021 11:42:25 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B81F26322D for ; Mon, 16 Aug 2021 11:42:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B81F26322D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8D6AB82BD6; Mon, 16 Aug 2021 13:42:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="MWtYVIlZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 53FF382DA7; Mon, 16 Aug 2021 13:42:21 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C6E3282BD6 for ; Mon, 16 Aug 2021 13:42:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=286253c946=patrice.chotard@foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17GBfhGj009332; Mon, 16 Aug 2021 13:42:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : subject : to : cc : message-id : date : mime-version : content-type : content-transfer-encoding; s=selector1; bh=ykCZLDK1Tig5sugBdKhVOkc+UsD2qjq7/y9DzN2SbTg=; b=MWtYVIlZUmHa1jpcLUozITX7ZjgGIZfQls8zhHG3xPUYba56FdXdAJp1hQK5O/k6/740 Q0PMY9V8mY/aqUqhQXo6oIdzu//TKQ/mVXnrsbbiCm/3elnPNY1M+rc9zvpqjLsKBo0M uFtrx8rPduLXDP6424TRYihHbw7jc5qZO1mO28FXHu3kenLY9vjMYRYxGiWa/u8I+qaJ 4Gg2FeM/5bo6hFyR+FQA9AEGWDk3IkPnNlIoTbQNVbV77rXUYGCwDonCZ7ApihtZhTyT M9TEYXBrejBo6+SPue94Z2EN1W6buH3S30yafIiz72twJ9r0ydPzuULF5uczh+pGo9Uj tA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3af28xmm2t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Aug 2021 13:42:15 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BB84F10002A; Mon, 16 Aug 2021 13:42:14 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AF91523144E; Mon, 16 Aug 2021 13:42:14 +0200 (CEST) Received: from lmecxl0573.lme.st.com (10.75.127.46) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 Aug 2021 13:42:14 +0200 From: Patrice CHOTARD Subject: [PULL] Pull request for u-boot master / v2021.10 = u-boot-stm32-20210816 To: Tom Rini , "u-boot@lists.denx.de" CC: Alexandru Gagniuc , marek Vasut , Patrice CHOTARD - foss , Patrick Delaunay Message-ID: <4405ace5-671e-8472-9503-02cb10fab943@foss.st.com> Date: Mon, 16 Aug 2021 13:42:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-16_04:2021-08-16, 2021-08-16 signatures=0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Tom Please pull the STM32 related patches for u-boot/master, v2021.10: u-boot-stm32-20210816 CI status : https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/8728 Thanks Patrice ---------------------------------------------------------------- Highlights: - Handle TF-A boot with FIP for STM32MP1 - Fix board_get_usable_ram_top(0) for STM32MP1 - DT alignement with kernel v5.14 for STM32MP1 - SPI-NOR DT update for DHSOM - Add UCLASS API for ECDSA singnature and implement it for STM32MP1 ---------------------------------------------------------------- The following changes since commit fdc4fda33051bcb9eb782001afe2bdd3c0d09eae: Merge tag 'efi-2021-10-rc2-2' of https://source.denx.de/u-boot/custodians/u-boot-efi (2021-08-15 13:42:42 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-stm.git for you to fetch changes up to 46a738a4ec81959c7545a4bb07e4f5232bbcfefe: test: dm: Add test for ECDSA UCLASS support (2021-08-16 10:49:35 +0200) ---------------------------------------------------------------- Alexandru Gagniuc (5): dm: crypto: Define UCLASS API for ECDSA signature verification lib: ecdsa: Implement UCLASS_ECDSA verification on target arm: stm32mp1: Implement ECDSA signature verification Kconfig: FIT_SIGNATURE should not select RSA_VERIFY test: dm: Add test for ECDSA UCLASS support Marek Vasut (2): ARM: stm32: Set environment sector size to 4k on DHSOM ARM: dts: stm32: Reduce DHCOR SPI NOR frequency to 50 MHz Patrick Delaunay (8): clk: stm32mp1: add support of BSEC clock arm: stm32mp: add config for STM32IMAGE support arm: stm32mp: handle the OP-TEE nodes in DT with FIP support arm: stm32mp: add defconfig for trusted boot with FIP doc: st: stm32mp1: Add FIP support for trusted boot stm32mp1: stm32prog: remove stm32prog_get_tee_partitions with FIP stm32mp: correctly handle board_get_usable_ram_top(0) arm: dts: stm32mp15: alignment with v5.14 arch/arm/dts/stm32mp15-pinctrl.dtsi | 33 +++ arch/arm/dts/stm32mp151.dtsi | 16 +- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 9 +- ...m32mp157a-microgea-stm32mp1-microdev2.0-of7.dts | 2 +- arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 9 +- arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi | 2 +- arch/arm/mach-stm32mp/Kconfig | 16 + arch/arm/mach-stm32mp/Makefile | 1 + .../arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 2 + arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 4 + arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h | 2 + arch/arm/mach-stm32mp/config.mk | 2 +- arch/arm/mach-stm32mp/dram_init.c | 3 + arch/arm/mach-stm32mp/ecdsa_romapi.c | 102 +++++++ arch/arm/mach-stm32mp/fdt.c | 11 +- arch/arm/mach-stm32mp/include/mach/stm32prog.h | 2 + board/st/common/Kconfig | 21 +- board/st/common/stm32mp_mtdparts.c | 31 +- board/st/stm32mp1/MAINTAINERS | 1 + board/st/stm32mp1/stm32mp1.c | 10 +- common/Kconfig.boot | 8 +- configs/sandbox_defconfig | 2 + configs/stm32mp15_defconfig | 158 ++++++++++ configs/stm32mp15_dhcom_basic_defconfig | 2 +- configs/stm32mp15_dhcor_basic_defconfig | 2 +- configs/stm32mp15_trusted_defconfig | 1 + doc/board/st/stm32mp1.rst | 328 +++++++++++++++------ drivers/clk/clk_stm32mp1.c | 1 + include/crypto/ecdsa-uclass.h | 39 +++ include/dm/uclass-id.h | 1 + lib/Kconfig | 1 + lib/Makefile | 1 + lib/ecdsa/Kconfig | 23 ++ lib/ecdsa/Makefile | 1 + lib/ecdsa/ecdsa-verify.c | 134 +++++++++ test/dm/Makefile | 1 + test/dm/ecdsa.c | 38 +++ 37 files changed, 887 insertions(+), 133 deletions(-) create mode 100644 arch/arm/mach-stm32mp/ecdsa_romapi.c create mode 100644 configs/stm32mp15_defconfig create mode 100644 include/crypto/ecdsa-uclass.h create mode 100644 lib/ecdsa/Kconfig create mode 100644 lib/ecdsa/Makefile create mode 100644 lib/ecdsa/ecdsa-verify.c create mode 100644 test/dm/ecdsa.c