Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp243396rwj; Thu, 22 Dec 2022 02:10:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXugQQzmhy1zTdb+3mouhwgzK0PSp+sdLL/bLOow6BhW7ZwqpOsuHE6yw+ANNusYUZ3Hp8h/ X-Received: by 2002:a17:906:9f12:b0:7c1:61a6:2cd2 with SMTP id fy18-20020a1709069f1200b007c161a62cd2mr4210505ejc.9.1671703831373; Thu, 22 Dec 2022 02:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671703831; cv=none; d=google.com; s=arc-20160816; b=jIAYqlalu9f8h+KVO7Gv9IqUf+fjslD5FnYZBlWsjBV2JG2slNJHr3sxHQ39dK4R23 lHJBzS2rav63luPCKpk5YxJz1pSA65S5dG3agPdMURZ+yzBS1CedlYNTGRN/K2zTSOYO biTqOWYi7Kup3hFSzozOSzWOe3bphtzZW8UeHajQUI1iv75gnmtrFHwQNuZYtPzO7t1E SKmbCEzjeFWpFjJwi67JvreZcBA65HP6HUB4Dl3LDL+KXj0Op6ZrRcFgPBvXhLuRg/4u IQbFuPkbyseGOsMthpCQPpl6Xv8w7qBsFBceSLOjUfuP9ovWgC4gbApdM9dow5wk7N0A t3bQ== 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=xJK/PfJ7a74dAX+0p69wYwTOoPXBkawojf+F+1J+EJc=; b=0c0BDFurlKWXl7doXJhfFt8oKzqhDCWLq3EAUXYrnn/tmt/AsM8vPHiiAxb9Xgr43u D0sPKzHgnkg8+0Vms465wNAgjFG3DCzGDq4q/1PKm5RyBR5BXtseayNj+/rg8nA3+U4E yq/Wwx/dBObxeoC7TLijV8uLfOaVCK5Hmw7JGrtUpYTS/1DzzOQfY+BTe1pp+wGf5kdY NSHq2fOt2dm7Gfe6RWXlo/zrjH7ZtozG7/Un3Gio09e2xNO+1LYJWhg1KXWPtU5twzdV IKMWQT7lug2XL+KxUDS8DQa3Lx3toVnLCXlVQ2FwuYFB0q9TdlCY+2Z6e5buaW1Fawz4 OzqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=mKxCD5aT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 hg3-20020a1709072cc300b007c0b61436efsi113856ejc.1008.2022.12.22.02.10.15; Thu, 22 Dec 2022 02:10:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=mKxCD5aT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S235178AbiLVKH7 (ORCPT + 67 others); Thu, 22 Dec 2022 05:07:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234727AbiLVKHs (ORCPT ); Thu, 22 Dec 2022 05:07:48 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8DBF1EAC1; Thu, 22 Dec 2022 02:07:43 -0800 (PST) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BM7iAZA001831; Thu, 22 Dec 2022 11:07:14 +0100 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=xJK/PfJ7a74dAX+0p69wYwTOoPXBkawojf+F+1J+EJc=; b=mKxCD5aTipUU9ZfCp+7WKQXd3vfv1eVl2RpQYOtJlMexj5tTsBA98Ocjpf7r2JpZaZyf 22orp71qCycBLuFzw2Gk38L9ncJN0VLVualCtxSlKtiYmKmPp4MXz/dPtutuNkqeZN1W DHuG8WnkyudX+i/o3kSk3oSLTWg+NsrbZwEolYjS/GAZBV5omrfqXv1MqYPZnXbaBSSV CsCsOf5DSs9OWr9QXl6Nq5IDAvdu2aP185OFco6P1bkw7SpAhNqYRnKp+tbNpEzntJow 6Q37OuNBwuyBpU1Alahgv50I86kh+GsvRNYWc3vJXgIUsWY99+uLqeK8oH67e0gvdB3C Ow== 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 3mka9xfdjw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Dec 2022 11:07:14 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 876A8100050; Thu, 22 Dec 2022 11:07:11 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A957921D3D2; Thu, 22 Dec 2022 11:06:28 +0100 (CET) Received: from localhost (10.201.21.217) 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.13; Thu, 22 Dec 2022 11:06:28 +0100 From: Gatien Chevallier To: , , , , CC: , , , , , , , Subject: [RFC PATCH v2 2/7] dt-bindings: bus: add STM32 System Bus Date: Thu, 22 Dec 2022 11:04:59 +0100 Message-ID: <20221222100504.68247-3-gatien.chevallier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221222100504.68247-1-gatien.chevallier@foss.st.com> References: <20221222100504.68247-1-gatien.chevallier@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.21.217] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-22_05,2022-12-21_01,2022-06-22_01 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 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-kernel@vger.kernel.org Document STM32 System Bus. This bus is intended to control firewall access for the peripherals connected to it. Signed-off-by: Gatien Chevallier Signed-off-by: Loic PALLARDY --- Changes in V2: - Corrected errors highlighted by Rob's robot - Re-ordered Signed-off-by tags .../devicetree/bindings/bus/st,sys-bus.yaml | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/st,sys-bus.yaml diff --git a/Documentation/devicetree/bindings/bus/st,sys-bus.yaml b/Documentation/devicetree/bindings/bus/st,sys-bus.yaml new file mode 100644 index 000000000000..d246fbdd6dea --- /dev/null +++ b/Documentation/devicetree/bindings/bus/st,sys-bus.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/st,sys-bus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STM32 System Bus + +description: | + The STM32 System Bus is an internal bus to which some internal peripherals + are connected. STM32 System Bus integrates a firewall controlling access to each + device. This bus prevents non-accessible devices to be probed. + + To see which peripherals are securable, please check the SoC reference manual. + +maintainers: + - Gatien Chevallier + +allOf: + - $ref: /schemas/feature-controllers/feature-domain-controller.yaml# + +properties: + compatible: + enum: + - st,stm32mp13-sys-bus + - st,stm32mp15-sys-bus + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + '#feature-domain-cells': + minimum: 1 + + ranges: true + + feature-domain-controller: true + +patternProperties: + "^.*@[0-9a-f]+$": + description: Devices attached to system bus + type: object + properties: + feature-domains: + $ref: /schemas/feature-controllers/feature-domain-controller.yaml#/properties/feature-domains + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - feature-domain-controller + - '#feature-domain-cells' + - ranges + +additionalProperties: false + +examples: + - | + // In this example, + // - the foo1 device refers to etzpc as his domain controller. + // - same goes for foo2. + // Access rights are verified before creating devices. + + etzpc: etzpc@5c007000 { + compatible = "st,stm32mp15-sys-bus"; + reg = <0x5c007000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + feature-domain-controller; + #feature-domain-cells = <1>; + + foo1: foo@1000000 { + reg = <0x0 0x1000000>; + feature-domains = <&etzpc 0>; + }; + + foo2: foo@2000000 { + reg = <0x0 0x2000000>; + feature-domains = <&etzpc 0>; + }; + }; -- 2.25.1