Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp751000rwb; Wed, 26 Jul 2023 02:08:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHA1BbyQAczBsU9bSKlYgT+/qKI6cUThH+DiXMTbtWrwI9eCVAzWXe9SvsLg2pPHDgVFNXh X-Received: by 2002:a05:6808:1a0c:b0:3a4:243d:dc76 with SMTP id bk12-20020a0568081a0c00b003a4243ddc76mr2045134oib.21.1690362535589; Wed, 26 Jul 2023 02:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690362535; cv=none; d=google.com; s=arc-20160816; b=O99klFoKZi/I4cba8rPyXYz9cjEtdENCYBp7htiDaBG65bv6G6wLuHcGE6BxSlaiuf N2rdkP3NVxNfNiBJ9JOZihvefq3uwrimedUbug911JlS+6TnZJUqdu/COFwhaAtBO03+ XI9RDEvsUR5LGv+vbgWjOxmEBNzmPbqRO1pkFJc4mPHQJUJqUSY+eM3fHIpvZMRuXG9M 55ky0WLPBtHyQhZ2M/NgPQFqbGrNLxSED8P2UFKkRyNPIwP+kjey9Zn8DM/eapszhINY WgA6DAxroypRpuXnWsElqrJG57YO9X5FEdmny/E2MhhRvzrbuSa6CpPsAZnsxBPLH0Bt FM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ovit7dM+DyWt/6Patj4mHOnfPKNp+g/2O5XpZ5R9Woo=; fh=g7GqlZE04QsNOmYs+9z7kEYOw3uK6dvWSfADM5wx2I4=; b=i763tqbwbH/Kt9Sf9vkmjKNrEQ616C9xhklReuaoIiCghWBRE2YuDhMNBi0INKcpGm 84QKEURlx4YPbbnEEjhWhvU1bNKUrtRWGv9c9HiBWwZEgHH0HTMAiSJrub/uNCwpva1X oh7o3E5fWoUkREVCQYOgxazkn8qx5hYmADE/2mSzR71eXa7mNsiZRhf2Byc1URrPMSsa TsBA04gPNu4naTVldCPO8kKf6cwND9HNTiJDRWIZwfu/2rMV8r25ABY//2Mhfl6p8nJi hrb5Lv/LETa6sqgvqSLzE5HZNe3NeV9ngDwZnizLudQqFzpHngklAJf2stPBwvlYecDq lI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PRRi4eEf; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a63af50000000b00563e080a7cdsi997809pgo.242.2023.07.26.02.08.42; Wed, 26 Jul 2023 02:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PRRi4eEf; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233089AbjGZJGI (ORCPT + 99 others); Wed, 26 Jul 2023 05:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233244AbjGZJEu (ORCPT ); Wed, 26 Jul 2023 05:04:50 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B054213A; Wed, 26 Jul 2023 02:02:57 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36Q7VXSt007938; Wed, 26 Jul 2023 11:02:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=ovit7dM+DyWt/6Patj4mHOnfPKNp+g/2O5XpZ5R9Woo=; b=PRRi4eEfiiks3woFwZ1r6W6rvzdrHZSpOPPeFzHI+xgMZfoqWMuVFf8usyevsHg+D/AM +dC4f8qqqVx1F+B7ZyKqMJbUVJbL1ciyJ51pFR+2Dga+a/eVlfXrf7kPGw4wJZV+S/j0 wmrrMx8fPV/pP5oYBD+YJc+wbP2NQ6WCOx4EWChYR9KSgs/vjIDqykMytEtcy+e+TkLm K9LEj3KxsQ/yyjMtcdmKNDw+42DYsYClwOnE3IV7e+0ewE4kD/lYeVNnaQpY9ZuHVvh+ 0ejuBv5UKISNPHgsmvsvkc+dKSO8HNkpSJIBvF8k4PSYGdj9LVOyOZo64ZpqnebGIFRx 9Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3s2y640q3p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 11:02:18 +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 4A179100069; Wed, 26 Jul 2023 11:01:43 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1F0FD2115E0; Wed, 26 Jul 2023 11:01:43 +0200 (CEST) Received: from localhost (10.201.21.121) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 26 Jul 2023 11:01:42 +0200 From: Gatien Chevallier To: , , , , , , , , , , , , , , , , , , , , , , , , , Frank Rowand CC: , , , , , , , , , , , , , , , , Gatien Chevallier Subject: [PATCH v3 04/11] dt-bindings: bus: document ETZPC Date: Wed, 26 Jul 2023 11:01:22 +0200 Message-ID: <20230726090129.233316-1-gatien.chevallier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230726083810.232100-1-gatien.chevallier@foss.st.com> References: <20230726083810.232100-1-gatien.chevallier@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.21.121] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_01,2023-07-25_01,2023-05-22_02 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Document ETZPC (Extended TrustZone protection controller). ETZPC is a firewall controller. Signed-off-by: Gatien Chevallier --- Changes in V2: - Corrected errors highlighted by Rob's robot - No longer define the maxItems for the "feature-domains" property - Fix example (node name, status) - Declare "feature-domain-names" as an optional property for child nodes - Fix description of "feature-domains" property - Reorder the properties so it matches RIFSC - Add missing "feature-domain-controller" property .../bindings/bus/st,stm32-etzpc.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/st,stm32-etzpc.yaml diff --git a/Documentation/devicetree/bindings/bus/st,stm32-etzpc.yaml b/Documentation/devicetree/bindings/bus/st,stm32-etzpc.yaml new file mode 100644 index 000000000000..ef5979c0d6f2 --- /dev/null +++ b/Documentation/devicetree/bindings/bus/st,stm32-etzpc.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/st,stm32-etzpc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STM32 Extended TrustZone protection controller + +description: | + The ETZPC configures TrustZone security in a SoC having bus masters and + devices with programmable-security attributes (securable resources). + +maintainers: + - Gatien Chevallier + +properties: + compatible: + contains: + const: st,stm32-etzpc + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + + "#feature-domain-cells": + const: 1 + + feature-domain-controller: true + +patternProperties: + "^.*@[0-9a-f]+$": + description: Peripherals + type: object + properties: + feature-domains: + minItems: 1 + description: + The phandle of the firewall controller of the peripheral and the + platform-specific firewall ID of the peripheral. + + feature-domain-names: + minItems: 1 + + required: + - feature-domains + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - feature-domain-controller + - "#feature-domain-cells" + - ranges + +additionalProperties: false + +examples: + - | + // In this example, the usart2 device refers to rifsc as its domain + // controller. + // Access rights are verified before creating devices. + + #include + #include + #include + + etzpc: bus@5c007000 { + compatible = "st,stm32-etzpc"; + reg = <0x5c007000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + feature-domain-controller; + #feature-domain-cells = <1>; + ranges; + + usart2: serial@4c001000 { + compatible = "st,stm32h7-uart"; + reg = <0x4c001000 0x400>; + interrupts-extended = <&exti 27 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&rcc USART2_K>; + resets = <&rcc USART2_R>; + wakeup-source; + dmas = <&dmamux1 43 0x400 0x5>, + <&dmamux1 44 0x400 0x1>; + dma-names = "rx", "tx"; + feature-domains = <&etzpc 17>; + }; + }; -- 2.25.1