Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp410390ybj; Tue, 5 May 2020 00:35:41 -0700 (PDT) X-Google-Smtp-Source: APiQypICuJTkgx84gHOpefsddqd4pMXDMlVMMXdAjL4j8L5DuQ085OsdUHphyNVCPz2dFy1GiUix X-Received: by 2002:a17:906:b2c2:: with SMTP id cf2mr1390255ejb.262.1588664141591; Tue, 05 May 2020 00:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588664141; cv=none; d=google.com; s=arc-20160816; b=VzFrtG9B4DLgYFalLgEg23djaKm16sEKdUyFaMBivCEUtjyCPxDFeNFV0vthGJqU3T tdWk3FfTJAnFpVzt82uVMgg9OIp29it5X3ByaF3K15sNqLjW+WfBVhxQ1YPBItled6ak sxsM84s9BljIguTa3isqgwnCpV5MJkqNtNeFA0ZqdskpS21ml3kfCOSEIkyIq6YdMU0p prpNS1br5igGQMWIhwmgS5j7VzRNOHAvDpqqIlY1hv7paJGcw2GGplUhJS6ejl1JbioU 5gBJ+GmGre7D1PRJL+HZLXBt8/tPZnSE2FAtHIReE5o8R1K75vIT9n5XaX7MWsBrUqmT Da8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=95ku3/6d1RqLRL3+9BXCw/qoEPmvHEydQikv3nokkHE=; b=LafL6kRP9LhK4tV1Vli1rkOoelpMFBIh10s+IsM8tt7bxZuZIs5D0hc6rwjbOrclQH nONVYxqYoqvop5vuYHr4KUWGkf3OP8ErVW5IZaGjB25t6B3ipKMPJ5NBHstj/Te+NwEI bU0RHoXVufIXHzTmXyND2gwZ6z/XS6zrbtodhC2EiTRpu2k+QWqVPlv6JlizC+UDx/Cd fnzIuY3N53KCaKHRXy4Iu4yyXUKyxjnnC8EKlkoW2sYn9uJaq5341U34o6/sOdD8vQKu 80W24FIi3NLV3ZNA91xyDh+BkbvR3DUk9WTXozfhzt6Qr6pzDsCseF9UwX9RhHQ3JbdW bU2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wq54FGb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c21si861344edx.105.2020.05.05.00.35.19; Tue, 05 May 2020 00:35:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wq54FGb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728376AbgEEHdo (ORCPT + 99 others); Tue, 5 May 2020 03:33:44 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:42312 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727938AbgEEHdn (ORCPT ); Tue, 5 May 2020 03:33:43 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0457RaST021748; Tue, 5 May 2020 09:33:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=95ku3/6d1RqLRL3+9BXCw/qoEPmvHEydQikv3nokkHE=; b=wq54FGb2PUTIfZ0Z4HWOhJtYsxNX08QLoHAcCvalnRvHeOwIkMrGccNgOT5kIC7rpGdW 7R20/3opU85slWnUWzV9CcVaryFNqiNQyPU4nOfznM5dmRkJvTMxsXLGqxsKKo58MFO1 DYKOXEfDQeCMx6J9oX8CpMHedKRokE8ZCBoNDUqzf8rwl5Sut/CaDYpHjd2WwCJHoaEU mcL9aUEizkntHgg/ldYqosPhOVgLvwXBCYCodWa0ULgrxL58W+WxtbJN3fPKOamuaNim rVrAio9RVpA8NxQAw0bdW73n6EH3dnulJG1bLvldrmhSAyK9eYR0xE963eYNdiHmgAN5 Vg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30ryrj6f49-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 May 2020 09:33:26 +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 0B30F10002A; Tue, 5 May 2020 09:33:26 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EEE642A4927; Tue, 5 May 2020 09:33:25 +0200 (CEST) Received: from localhost (10.75.127.48) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 5 May 2020 09:33:25 +0200 From: Benjamin Gaignard To: , , , , , CC: , , , , Benjamin Gaignard Subject: [PATCH v3 1/5] dt-bindings: bus: Add firewall bindings Date: Tue, 5 May 2020 09:33:04 +0200 Message-ID: <20200505073308.22914-2-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20200505073308.22914-1-benjamin.gaignard@st.com> References: <20200505073308.22914-1-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG8NODE3.st.com (10.75.127.24) To SFHDAG3NODE3.st.com (10.75.127.9) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-05-05_04:2020-05-04,2020-05-05 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add schemas for firewall consumer and provider. Signed-off-by: Benjamin Gaignard Reviewed-by: Linus Walleij --- version 3: - add description in firewall consumer bindings - add Linus reviewed-by tag .../bindings/bus/stm32/firewall-consumer.yaml | 36 ++++++++++++++++++++++ .../bindings/bus/stm32/firewall-provider.yaml | 18 +++++++++++ 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/stm32/firewall-consumer.yaml create mode 100644 Documentation/devicetree/bindings/bus/stm32/firewall-provider.yaml diff --git a/Documentation/devicetree/bindings/bus/stm32/firewall-consumer.yaml b/Documentation/devicetree/bindings/bus/stm32/firewall-consumer.yaml new file mode 100644 index 000000000000..d3d76f99b38d --- /dev/null +++ b/Documentation/devicetree/bindings/bus/stm32/firewall-consumer.yaml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/stm32/firewall-consumer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Bus Firewall consumer binding + +description: | + Firewall properties provide the possible firewall bus controller + configurations for a device. + Bus firewall controllers are typically used to control if a hardware + block can perform read or write operations on bus. + The contents of the firewall bus configuration properties are defined by + the binding for the individual firewall controller device. + + The first configuration 'firewall-0' or the one named 'default' is + applied before probing the device itself. + +maintainers: + - Benjamin Gaignard + +# always select the core schema +select: true + +properties: + firewall-0: true + + firewall-names: true + +patternProperties: + "firewall-[0-9]": + $ref: "/schemas/types.yaml#/definitions/phandle-array" + +dependencies: + firewall-names: [ firewall-0 ] diff --git a/Documentation/devicetree/bindings/bus/stm32/firewall-provider.yaml b/Documentation/devicetree/bindings/bus/stm32/firewall-provider.yaml new file mode 100644 index 000000000000..299824c620ea --- /dev/null +++ b/Documentation/devicetree/bindings/bus/stm32/firewall-provider.yaml @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/stm32/firewall-provider.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Bus Firewall provider binding + +maintainers: + - Benjamin Gaignard + +properties: + '#firewall-cells': + $ref: /schemas/types.yaml#/definitions/uint32 + description: Number of cells in a bus firewall specifier + +required: + - '#firewall-cells' -- 2.15.0