Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29351351rwd; Wed, 5 Jul 2023 10:30:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4lt0AqoQrKEZh+DdvC+qBR+AEBBx7CostOAja9N7wefBFFnHNiJ/2edaqTjt7NEg6vUc+Q X-Received: by 2002:a05:6a20:8e08:b0:121:84ce:c629 with SMTP id y8-20020a056a208e0800b0012184cec629mr25744586pzj.0.1688578259528; Wed, 05 Jul 2023 10:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688578259; cv=none; d=google.com; s=arc-20160816; b=HDPpH0leX7nM0vT7yJY0ToK1JnpBLSc2BjRRlE92igx6inb2xaxEBw+42FHTYaAIpK WkOh/wAmOp6XT1/tY5KRaxaNOi/L/O/UEfJvzXpsbwjeHi6hrOuuL2fBlapSHGLBNw6S gpIxsK9t+vCIFkgpnDR6wKGQ4leI0U4ZFYZ4d+sn6/hkNWilsFLP47CcK3/ToDmMOXkR NZYH2/wvJ+VnlgWjrdmQ4wuAP1kFplpI7uzKESxpmBgvqIuebg0sSC1e9BNOV55YA2oW ECOlTzXZUOCox+4RS7qXpc1PfxTIaboMpQNnGckelyDGzDQyj3G7KUc6G/kBc0yGe9FF KOpw== 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=aw+a9oxu/DBhq69Yh+u1WoOOa0pn8inaUz2S9U2iiVA=; fh=qsahxGDwZasYT390xuVqEpdKG5tXNGNIQf2WVwiisng=; b=NLxGEs76IIgZNiTstOmW62JcOSie0bhF/q9C2OFrskBozF2RFSVm/nJL/hzb1dhCz8 BQD7e/EyiUdtrxwkRkSBhNmYZklDtOLwD1hdr6N5YswbTU2Khlqal/lhelw7qSGSjaVb LMWR3t1lpKRfXa/ZQYpXViK4VGxI/4m9OJE3r8cIllhOSC5I1KD/I69Szm9zSqFZYERZ cze/HKRJg75rJLLwQQJFp/o2mInXkt2qvL8pw1KRpfy4ESQyPJ2/bEah/bGq2q1iQdGD jVy2KxT4EmH7a0m/MbECT3/qbvxoi6NfBgiXtaYt+ppc9iyWpfN2n+2Zg1RWEoV/1/DA GVMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=spkRAyPc; 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 r12-20020a6560cc000000b0055383df74c7si23164392pgv.224.2023.07.05.10.30.44; Wed, 05 Jul 2023 10:30:59 -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=spkRAyPc; 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 S232934AbjGER3e (ORCPT + 99 others); Wed, 5 Jul 2023 13:29:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbjGER33 (ORCPT ); Wed, 5 Jul 2023 13:29:29 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC0991992; Wed, 5 Jul 2023 10:29:14 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 365FgASP003096; Wed, 5 Jul 2023 19:28:34 +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=aw+a9oxu/DBhq69Yh+u1WoOOa0pn8inaUz2S9U2iiVA=; b=spkRAyPc38MCEtiCx+SwGKvhQ0FVQ9Y+uy0pFuBrSe8QXFUdhaPdgjBKd3Ss/2f25uR5 MM7mk5xgq6to4YthbPEaFRGfvAOaU+BlsVzk1LMA2E5GKUXc4SQfWfSnD0yfxQxw2edp ZpdSC7ZKS5PP8pUVe1ncgQPifd11nUDTItDCEGRnp5L9NAf931knw/qxBXiCgmdoxzLx ET26EdL7UsCiJM9eZSxPiXfUiwjr1y9RZFjSL7k/A4NlHkhCz+9ur5bM6IjL7/UD2W/c K+jUwtGqzdn/0fe16bAfzRIiD7UqYlp4LDtevSWe9GUAgKlF3OsWeKclVIJntKIzNiMy zA== 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 3rn8c9t2d7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jul 2023 19:28:34 +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 5EF6A100057; Wed, 5 Jul 2023 19:28:33 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 54E1524C42F; Wed, 5 Jul 2023 19:28:33 +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, 5 Jul 2023 19:28:32 +0200 From: Gatien Chevallier To: , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , , , Gatien Chevallier Subject: [PATCH 03/10] dt-bindings: bus: add device tree bindings for ETZPC Date: Wed, 5 Jul 2023 19:27:52 +0200 Message-ID: <20230705172759.1610753-4-gatien.chevallier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230705172759.1610753-1-gatien.chevallier@foss.st.com> References: <20230705172759.1610753-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: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-05_09,2023-07-05_01,2023-05-22_02 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,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 --- .../bindings/bus/st,stm32-etzpc.yaml | 90 +++++++++++++++++++ 1 file changed, 90 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..327fb0b84c0b --- /dev/null +++ b/Documentation/devicetree/bindings/bus/st,stm32-etzpc.yaml @@ -0,0 +1,90 @@ +# 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 bindings + +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: + const: "st,stm32-etzpc" + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + feature-domain-controller: true + +patternProperties: + "^.*@[0-9a-f]+$": + description: Peripherals + type: object + properties: + feature-domains: + minItems: 1 + maxItems: 2 + description: + The first argument must always be a phandle that references to the + firewall controller of the peripheral. The second can contain the + platform specific firewall ID of the peripheral. + +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: etzpc@5c007000 { + compatible = "st,stm32mp13-sys-bus"; + reg = <0x5c007000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + feature-domain-controller; + #feature-domain-cells = <1>; + + 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>; + status = "disabled"; + }; + }; -- 2.25.1