From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.70.54 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796222921; b=z0LBZkntawPDkT/3z21TqxUwWxi86jGdy/4RQteGMZENel/xj4gcG5dI6yjweXT+wnJD qc5VfrEkDMi0uCuokv34tbkftV5Q9e9pdjcpop2uZd6xZzUYVNGwtaf28ANPoyRccuemM VkaRY+14KSNceend3RdPH+LPAfDpdNadbEWjSc83rbiaN2s8UhyaJD71BxaUyJZ14nDDb CQTibmVKPemc+vhDkDYhwKwHkmySRsPvfF+jSPWf74nub0apCW9PhF6VTOASamm7Ymjrc KPKeNxgo342x4zus5Eq5/Jp+5gDz7UtOEYzwQRgUmamineO5Sf9vb8oOaQTidgzbbDQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796222921; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-ID:References:In-Reply-To:To:CC: X-Mailer:X-Originating-IP:X-ClientProxiedBy:X-EOPAttributedMessage: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=9oXKujVhbUGqmRyuvrers9GzF5zJyMwJQEs40EA0oJs=; b=KPnCUJyoM/K0bhTMOOiIlCsR4M/yNuxPWapF0wjfh+eNbrUExk/a57FOsmSwMShrs48A uEkSSdD9pk0cezfrho6FK+mKtt1k39MTd2enmwQ3kjbmFOMgt/03IkClhtrISV9FnHMCN QFwzyPNNlhao2XNeloCOmTfXRuyqLx790y9cSAJm0D17pJaMc99Cb4FwY0kH5fb8RL1S0 VU4h2hjDz9yLAvJ25erkFOHCu2vo4m5nzmYsIetw5fF31dAfieVRL9kNJObvQCWgVFq3a t67p7QKAU/CMHNt03xhwQs8NoomdmbO+YlEw7wNm2LrihSwD+k3ti5ocTQelWUeuCrA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256 header.s=selector2 header.b=BkJhdMME; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.70.54 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011054.outbound.protection.outlook.com [52.101.70.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9515C606A330; Wed, 2 Dec 2026 14:48:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9515C606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256 header.s=selector2 header.b=BkJhdMME ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VzzVurmSlwJyshL25NEMgeZwUoUy+dMZcfFi7nV6Gaz6nzmZ5G7lWcaAydCZ1kmr9tnMC02aVOv4KB3tZhvbXzvrfQ+NKUW6jk1tuhWecuca2lE4+qAXp4bWY0LpaZHNnKPctC2Mikftfn2i9Q5nmKSUwl01fwh1kUl+V4F4ta+1jLtq0aZNwRmJEHdEykgA486qacMEoz2sB7TZzEb12exEQzLnoCVnxGPJ4LQwCTfZnS/ZmcIirddNO30s9wp5tZs1ZutxQbREh3AWlpssIAE0+ywQndQ2zGwyVICIwe/qo4ETA5lBGOks68ZwS+inXTCHCLoG089JbsZWiFgS1Q== 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=9oXKujVhbUGqmRyuvrers9GzF5zJyMwJQEs40EA0oJs=; b=PAtCAsTSVWL3gTY/sT7AKVe/1VKSIVrVElTCwYWsRUrLtUoCPiNkAdcGXaOF8U891zKbMK179CtPNES+ouSnou+FiievaQBGG7ZxIKCCzc4acX/axx84tyUNguqp5ax73OotTxx4VSWq667z9dsEKEgyOWimWiX1jyR6YrTm5c3zCOLHnCVdeJmbFv6+Qj6/+LUGIwg914C1Q2VwAY64Am/NrzAN9FLnF7EoZGAShlVz8lrVLV3o3HOPUJkTpaeOUvJSoPqtKCtfa76sgvAafyZ6cAkt5uycn6gJ9LDhpFttZU7PpFbRlnnkRInAn8Og4d+vNCkwYMpQefzexzDrag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 164.130.1.59) smtp.rcpttodomain=pengutronix.de smtp.mailfrom=foss.st.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=foss.st.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9oXKujVhbUGqmRyuvrers9GzF5zJyMwJQEs40EA0oJs=; b=BkJhdMMEO4mnbb64BNyDlPZSjdWrb3B665vQcaARkUjhBJB//7+yQkeGHD7puD95aDU0VAbNOoW77eoR6Mzn13kBlcCStBslmdten66GvSFuPtl69wRBhNjqZz33WMC62x5QcO3ywD/mg+Ks2yTNDOkuxYzkUih/D3LXeolDbIZeg5lCCrugwWSeqkPIOiZw4oudfsp9VGNMv9hTlbRac821odccvuU/IZFGZ+n1FrY/FrTE4Y0wl5TqlXZ9LtETQeebpqraCxva+0OQKQi2hpFXtrcsTocMYvcKCKqak7Te5YEgJZHyHiKNItcyoDRh7A7VFfpNMpt1ngt7sVmoDA== Received: from AS4P192CA0036.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::29) by PAVPR10MB7011.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:304::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Wed, 2 Dec 2026 14:48:35 +0000 Received: from ZR1PEPF0000E463.eurprd04.prod.outlook.com (2603:10a6:20b:658:cafe::1d) by AS4P192CA0036.outlook.office365.com (2603:10a6:20b:658::29) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Wed, 2 Dec 2026 14:48:34 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=fail (sender IP is 164.130.1.59) smtp.mailfrom=foss.st.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=foss.st.com; Received-SPF: Fail (protection.outlook.com: domain of foss.st.com does not designate 164.130.1.59 as permitted sender) receiver=protection.outlook.com; client-ip=164.130.1.59; helo=smtpO365.st.com; Received: from smtpO365.st.com (164.130.1.59) by ZR1PEPF0000E463.mail.protection.outlook.com (10.167.241.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Wed, 2 Dec 2026 14:48:34 +0000 Received: from STKDAG1NODE2.st.com (10.75.128.133) by smtpo365.st.com (10.250.44.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Wed, 2 Dec 2026 15:49:40 +0100 Received: from localhost (10.48.87.127) by STKDAG1NODE2.st.com (10.75.128.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Wed, 2 Dec 2026 15:48:33 +0100 From: Arnaud Pouliquen Date: Wed, 2 Dec 2026 15:48:17 +0100 Subject: [PATCH v23 1/6] dt-bindings: remoteproc: st,stm32-rproc: Add st,rproc-tee X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20261202-rproc_tee_v23-b4-v23-1-bac8e36eb405@foss.st.com> References: <20261202-rproc_tee_v23-b4-v23-0-bac8e36eb405@foss.st.com> In-Reply-To: <20261202-rproc_tee_v23-b4-v23-0-bac8e36eb405@foss.st.com> To: Bjorn Andersson , Mathieu Poirier , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , "Maxime Coquelin" , Alexandre Torgue , Fabien Dessenne , Arnaud Pouliquen , Philipp Zabel CC: , , , , , "Jens Wiklander" , X-Mailer: b4 0.13.0 X-ClientProxiedBy: STKCAS1NODE1.st.com (10.75.128.134) To STKDAG1NODE2.st.com (10.75.128.133) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZR1PEPF0000E463:EE_|PAVPR10MB7011:EE_ X-MS-Office365-Filtering-Correlation-Id: dc95e125-af1d-4abf-dcbf-08df5083576c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|36860700016|1800799024|376014|7416014|11063799006|18002099003|6133799003|261009223027099003|3023799007|13003099007|921020|22082099003|56012099006|10067099003|261021121427099003|261026121527099003|261028144727099003|261021123027099003|261102123227099003|261026140227099003|261022075727099003|261022105027099003; X-Microsoft-Antispam-Message-Info: S2WXPeOhLG9pDA+O06BoYS3yhJvmSvd8GpCiHTFOpagYXX9D8YHtY/NydPPK7pmPDiN/WEEmUyWSbR19TD7XgyKkFMqCqPVRcDgnWqIt7ugywmZeqF1xA4FAAa0CtamQf+bEDssT82oQVyScUB2GyohC9c/Cmjt+Jmy8NDBeERCqN9CMT80x5QtmjppUhnbJYOaFAjaR2fqbFihTeSzFP4pW/RqydiLAAOjO+zZCPGYwGQ8XZiXCFtwIS2UI4IE01k2ykMFoWRdhzdTiZWiiOL3TcpIzy5BkqwQ56XhLGMszsks60xd2sw/M44qttVkiWXLbPMoaDT1fx6L6qxtHiAcNcW7ovb3omHqGZ024uNmF2NvSojBtKeExciHBbOk8Uv6G13gUxIHCqDqKxRBhKG32xZWOtjQgiNNwokNDzp76TOi71/Dv5kUNY6tsckOGnRWziXMO3wJiyZGaqwpSQE/dHmekfPrNM/BPUN3UOCXcV7wWU6f7oOUqqUwbnNZTG9CgPsXh5ovIveFN/vN607IRrz2EqBkGofIJdgv+uhRmBWEPjl/Wor6/6exdDkZWGtjxQKtY6FclViejms45p49+pvbLmj1kveMqdxK6FkKp37ThWs44xsY1iHJZmlWufrl85Yrr+wN560NM7PdEuEsTwuQv762oyeFL3eRs5QnJpifM25Y/T4vfj6sO1qcRq150aht7JQSp9EWzyTcwPg== X-Forefront-Antispam-Report: CIP:164.130.1.59;CTRY:IT;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:smtpO365.st.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(82310400026)(36860700016)(1800799024)(376014)(7416014)(11063799006)(18002099003)(6133799003)(261009223027099003)(3023799007)(13003099007)(921020)(22082099003)(56012099006)(10067099003)(261021121427099003)(261026121527099003)(261028144727099003)(261021123027099003)(261102123227099003)(261026140227099003)(261022075727099003)(261022105027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zxRFlkbalcyD5iX/5tclATbBsl5JY5zjjp6+CZPBupZYGup00bAYAcxxkHmv4pelj86NNR6yODNqF/hNeJyQ9dE/YNaAq5Rc+VECLwKQtp2EG/Ra8PjiITHaiJDlV0eCW7gsxvVNECwrMTUglN4RTo7rmHCUmbICbgD7jDpa0ZlR5s1Sj3BfR603Y4i2YmkFCC+pJQi2SYumcJNG2Q9gsEJFN2C+4cc/7qu6YXYlQdaSkpuD3Z2aLW0wzsnpcDD/GOitwWXYfGjvDVdG4LUk/3kqFuDA89xn6GccmrZdbPXrxjwHAPO1KUCWL35B/nmTiNiY7O2OEbFE6BSPC76/EU521b0lkyIxLLKXEd+l/GqXdkpXjIn+739fU9A2plGH6+I6+UmSHtBnSwEwA+q4XP5pI5BpkPK5YK2F/6GV54FFqYdvWshC67kOihyu9Jm6 X-OriginatorOrg: foss.st.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 14:48:34.7339 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc95e125-af1d-4abf-dcbf-08df5083576c X-MS-Exchange-CrossTenant-Id: 75e027c9-20d5-47d5-b82f-77d7cd041e8f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=75e027c9-20d5-47d5-b82f-77d7cd041e8f;Ip=[164.130.1.59];Helo=[smtpO365.st.com] X-MS-Exchange-CrossTenant-AuthSource: ZR1PEPF0000E463.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR10MB7011 An STM32 remote processor can be controlled in two ways, depending on how the secure firmware partitions the system: - by the non-secure world, which loads the firmware and drives the MCU reset and hold-boot controls directly (existing binding); - by the secure firmware (OP-TEE), which authenticates and loads the firmware and owns the MCU reset and hold-boot controls. These are then not accessible from the non-secure world. This ownership is defined per remote processor by the secure firmware configuration: the same STM32MP15 can run either configuration depending on the secure services. Add st,rproc-tee, a reference to the OP-TEE node plus the identifier of the remote processor in the secure firmware. When it is present, resets, hold boot and the TrustZone syscon must not be described. Existing DTS without st,rproc-tee are unaffected: resets stays required for them. Signed-off-by: Arnaud Pouliquen --- Changes in v23: - st,rproc-tee now references the linaro,optee-tz node instead of a dedicated TA node; remoteproc-tee.yaml (v22 1/7) is dropped. - Rework st,rproc-tee description to describe the secure firmware ownership. - Forbid st,syscfg-tz when st,rproc-tee is present. - Example: drop the firmware node and optional syscon properties, use 4-space indentation. - v22: https://lore.kernel.org/all/20260414152904.1679724-3-arnaud.pouliquen@foss.st.com/ Changes in v22: - New patch: the st,stm32mp1-m4-tee compatible (v21) is replaced by the st,rproc-tee property referencing the OP-TEE remoteproc service. --- .../bindings/remoteproc/st,stm32-rproc.yaml | 50 ++++++++++++++++++---- 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml index 843679c557e7..0fae14952ddb 100644 --- a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml @@ -143,24 +143,48 @@ properties: maxItems: 1 description: Default name of the remote processor firmware. + st,rproc-tee: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Present when the remote processor lifecycle (firmware authentication + and loading, start/stop, reset and hold boot) is owned by the secure + firmware. Absent when the non-secure world controls the remote processor + directly. + items: + - items: + - description: phandle to the OP-TEE firmware node + - description: remote processor identifier assigned by the secure + firmware + required: - compatible - reg - - resets allOf: - if: - properties: - reset-names: - not: - contains: - const: hold_boot - then: required: - - st,syscfg-holdboot - else: + - st,rproc-tee + then: properties: + resets: false + reset-names: false st,syscfg-holdboot: false + st,syscfg-tz: false + else: + required: + - resets + if: + properties: + reset-names: + not: + contains: + const: hold_boot + then: + required: + - st,syscfg-holdboot + else: + properties: + st,syscfg-holdboot: false additionalProperties: false @@ -192,5 +216,13 @@ examples: st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>; st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>; }; + - | + m4@10000000 { + compatible = "st,stm32mp1-m4"; + reg = <0x10000000 0x40000>, + <0x30000000 0x40000>, + <0x38000000 0x10000>; + st,rproc-tee = <&optee 0>; + }; ... -- 2.43.0