From patchwork Thu Nov 7 08:23:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yannic Moog X-Patchwork-Id: 2007881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=phytecmesstechnikgmbh.onmicrosoft.com header.i=@phytecmesstechnikgmbh.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-phytecmesstechnikgmbh-onmicrosoft-com header.b=riRlHY7N; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XkZqP0SMvz1xyW for ; Thu, 7 Nov 2024 19:24:16 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E93DC8920A; Thu, 7 Nov 2024 09:24:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=phytecmesstechnikgmbh.onmicrosoft.com header.i=@phytecmesstechnikgmbh.onmicrosoft.com header.b="riRlHY7N"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 404EB8904D; Thu, 7 Nov 2024 09:24:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on20717.outbound.protection.outlook.com [IPv6:2a01:111:f403:260c::717]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 80F3988C4D for ; Thu, 7 Nov 2024 09:24:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Y.Moog@phytec.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G+QMv9R7MqZteLYb3In6IVd7PzIHdH+YD9/ggcywl5nIbjyz/LJpszB1j/GlDGDXpTgcP4HtBRpUyxyg7/kNAkXCmPl54RUuWecWF4vsz+nDAMwXFatGQcAJFVIoJMgXS28gq9rSeDHB4SKJB4Q1OVOZpQ1UfXrKGUkrWOR4IlO/gxjvhpgb3BnOz+X9FnivwvQT9VW7rMy0fc58gEVGIY+uoNb1sdwDKHNe/ixMLDSlKR3K0hbXamiGmtepSX3Qu2Lri9Vj0oriHJfem/Mwm9qP/mZ5HpC2zE2jhmeI23Gx83x4FXge09qfi5isPupczF47cAqW7WfKyu1SkjdMrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X/a1p4Vxh5A/kYLejQxqs2fGL/JFUPYLhh8QDp54Jas=; b=aCBh3J0plAFvNAlNS+pFrfaZgurX/Nukonq773Pvm34+l4zdgXmtQJWamIiJAQ+C338C4sXOvXCSE9IlC1gJC6ke5H6fvlwsWUacNzYjiNn6LtUt1V5WIdMQTbsnA5ambAFqoRI8+xvj2u3J3017y2HvZXFjNN4Qfgr9jKsNVro3EJzuaCV+imk6MNC2keWVgSUUInKqk3M1jScSf0KO7r52RxVLgQntNB70i6JlyoTfONC2SBskUCuttzQMZdm0XzZJspOmjgBdvlqbZgvSkGbeYkR4eBDZdz0Hg3Q0ri2JlSI8sX6j8g7+rb7cAAbETloEohvhd4heb4lZ3IKgcg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 91.26.50.189) smtp.rcpttodomain=konsulko.com smtp.mailfrom=phytec.de; dmarc=none action=none header.from=phytec.de; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phytecmesstechnikgmbh.onmicrosoft.com; s=selector1-phytecmesstechnikgmbh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X/a1p4Vxh5A/kYLejQxqs2fGL/JFUPYLhh8QDp54Jas=; b=riRlHY7Nwde/EzrBJk05a6D1R0ZyS8cs8YrXfDax64knJ5ZK57gBkYSd1H9+raF7dfz9bAoPJQCzF0b9QvrEABHPzCqHLkRvPphcVs7EMOzYruHYZ3XKch2XN/qpMFP9rVOs+e3eg351IfMrnEzxtu/nqTK5/IWtEveftiKTTug= Received: from DU7P250CA0027.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:54f::22) by DU4P195MB2666.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:571::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Thu, 7 Nov 2024 08:24:01 +0000 Received: from DU2PEPF0001E9C4.eurprd03.prod.outlook.com (2603:10a6:10:54f:cafe::f2) by DU7P250CA0027.outlook.office365.com (2603:10a6:10:54f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.20 via Frontend Transport; Thu, 7 Nov 2024 08:24:01 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 91.26.50.189) smtp.mailfrom=phytec.de; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=phytec.de; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning phytec.de discourages use of 91.26.50.189 as permitted sender) Received: from Diagnostix.phytec.de (91.26.50.189) by DU2PEPF0001E9C4.mail.protection.outlook.com (10.167.8.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 08:24:01 +0000 Received: from Berlix.phytec.de (172.25.0.12) by Diagnostix.phytec.de (172.25.0.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Thu, 7 Nov 2024 09:24:00 +0100 Received: from lws-moog.phytec.de (172.25.32.77) by Berlix.phytec.de (172.25.0.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Thu, 7 Nov 2024 09:24:00 +0100 From: Yannic Moog Subject: [PATCH v2 0/6] imx8(m): add optee node to binman FIT image Date: Thu, 7 Nov 2024 09:23:27 +0100 Message-ID: <20241107-phytec_imx8m_optee-v2-0-bbc3747a60e8@phytec.de> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAP94LGcC/22Nyw6DIBBFf8XMujSARrGr/kdjDOhQZuEjYIjG+ O+ldNvFLM7NvWdOCOgJAzyKEzxGCrTMCeStgMHp+Y2MxsQguax4y0u2umPDoadpV1O/rBsiU3V ToeVC6rKGNFw9Wtqz9NUldhS2xR/5RxTfNOtEun+6KBhndqhNo4xtdWuev9J9ROiu6/oAOfTvq LQAAAA= To: Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" , Tom Rini CC: Tim Harvey , Manuel Traut , Benjamin Hahn , Teresa Remmet , Yashwanth Varakala , , , Yannic Moog X-Mailer: b4 0.14.1 X-Originating-IP: [172.25.32.77] X-ClientProxiedBy: Diagnostix.phytec.de (172.25.0.14) To Berlix.phytec.de (172.25.0.12) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C4:EE_|DU4P195MB2666:EE_ X-MS-Office365-Filtering-Correlation-Id: 4bf96131-b209-4b89-871b-08dcff0588b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?pVB333k4Ae+6itPrNTu6LPLfcabPepA?= =?utf-8?q?AQ+xB7/n8s7X+cBiM3c+UC8ZLWFJfsmDxihIK/DzhNOuMkB/k18uzKmX+b8DTwWkU?= =?utf-8?q?1vYaOMF2tiLzV5+NY4g6/44PHAHO1fJAknr8dSEws13vAG4Gm78J2JGag7WJeVo2w?= =?utf-8?q?K9RMw/r5wyK3wA0HIjoAl5RrSh0xiuFf50mYHWD5gduZuYsTcaXmoqBblg41ZGwhG?= =?utf-8?q?Ap3bSm/xT0ppJTA0EFBpkuJCJ7prIqFm2awE3/SEKgvhW50kY1oq8Vp4/G4+LXFp2?= =?utf-8?q?etBnDlFF5xiq2A6Fa+D/YYHddfiucK0VTuRjvNwA1tqkZ7ksdb7itSvKBC1I3eGf3?= =?utf-8?q?K8yqJnbRako2XqG/ak8VGAj6V8bqGClBkzxw0gCiD6ORXxg39pYpCD6FMhrU6tcdF?= =?utf-8?q?5bOc2HXYIKToQYfbLqibYxEHDgLoMKnTfcLoHhB8Xcgv2Oj09g/h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9Y2KDeMszh?= =?utf-8?q?+qZQ/yVerC7pWz2Q8lY3D7jIIaot55xfZg=3D=3D?= X-Forefront-Antispam-Report: CIP:91.26.50.189; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:Diagnostix.phytec.de; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1102; X-OriginatorOrg: phytec.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 08:24:01.2922 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4bf96131-b209-4b89-871b-08dcff0588b9 X-MS-Exchange-CrossTenant-Id: e609157c-80e2-446d-9be3-9c99c2399d29 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e609157c-80e2-446d-9be3-9c99c2399d29; Ip=[91.26.50.189]; Helo=[Diagnostix.phytec.de] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF0001E9C4.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4P195MB2666 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean There have been attempts to get op-tee node integrated upstream in the past [1][2]. The challenge is on how to handle the load and entry addresses where the op-tee image should be loaded to. Different SoC families and architectures have different RAM base addresses. Further the final addresses can vary from board to board (e.g. depending on populated RAM size). This approach follows the TI k3 kconfig solution. To be able to define a sensible default for the new config option, put it in the imx8m kconfig. For other imx families, the RAM start addresses are different and thus finding a common sensible default is not possible. I do not have a working Nano board so I was not able to test imx8mn. I included usage for PHYTEC boards for examples (with documentation). [1] https://patchwork.ozlabs.org/project/uboot/patch/20230622173006.3921891-1-tharvey@gateworks.com/ [2] https://patchwork.ozlabs.org/project/uboot/patch/ZeHDVr-Bzm935-5N@mecka.net/ --- Changes in v2 (from RFC): - Use kconfig instead of trying pure dt approach. - Add load addresses in defconfigs instead of -u-boot dts. --- Yannic Moog (6): arm: imx8m: add OP-TEE node phycore-imx8mp_defconfig: add optee load address imx8mm-phygate-tauri-l_defconfig: add optee load address phycore-imx8mm_defconfig: add optee load address doc: phytec: imx8mp: add OP-TEE documentation doc: phytec: imx8mm: add OP-TEE integration instructions arch/arm/dts/imx8mm-u-boot.dtsi | 17 ++++++++++++++++- arch/arm/dts/imx8mn-u-boot.dtsi | 17 ++++++++++++++++- arch/arm/dts/imx8mp-u-boot.dtsi | 17 ++++++++++++++++- arch/arm/mach-imx/imx8m/Kconfig | 8 ++++++++ configs/imx8mm-phygate-tauri-l_defconfig | 1 + configs/phycore-imx8mm_defconfig | 1 + configs/phycore-imx8mp_defconfig | 1 + doc/board/phytec/imx8mm-phygate-tauri-l.rst | 26 +++++++++++++++++++++++++- doc/board/phytec/phycore-imx8mm.rst | 25 ++++++++++++++++++++++++- doc/board/phytec/phycore-imx8mp.rst | 26 +++++++++++++++++++++++++- 10 files changed, 133 insertions(+), 6 deletions(-) --- base-commit: d88bcd6d247a2b5d1683e393d8c9dc0259cd29f0 change-id: 20240903-phytec_imx8m_optee-8674ef012a36 Best regards,