From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6871C433E4 for ; Mon, 20 Jul 2020 09:23:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A357A21775 for ; Mon, 20 Jul 2020 09:23:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VPNGY5rm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="FCelGv/m" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A357A21775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Content-ID:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NILp8tCIRWVdG63xSM6xZBAPFg4ZS33iHAUlx4K/jsE=; b=VPNGY5rmJ6jJV+X2SkIRnnZd9 XBOVVlozwmnfuJO+7/0UoAxgPfkXghEroiVt6SWbxYz5inATMDsTfKOPnhjXNos8I3aVwDbnIOYpO /YLOOQ7CY2KWqrAsFhM47a2IJza1E6nIqygzWUGTnqttTt0n4LtGwdnBbZfCSFW8dbg2fty0tQJNT nryV2kX78XyI8B7xRFUFIovGMdZAsqOH+p59uvUMdYLvFcAYBGogSZ/sK/MjM5PXArUnEOtBAqAoo 3LqrQ7/Buo4BfHK7WlxLKw3A2GXutP931ZjspI3iW9v6mUele5KyDNNXdfnGOtPWcbs/muJt19Axq t9tTFkw6g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxRzb-0006Ta-Eo; Mon, 20 Jul 2020 09:21:51 +0000 Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxRzY-0006Sj-MK for linux-arm-kernel@lists.infradead.org; Mon, 20 Jul 2020 09:21:50 +0000 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06K9EfOc031975; Mon, 20 Jul 2020 11:21:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=GN+yMTwPABdvVS7FhpTsm1OeMf5cbjvKozUPn7B/wV0=; b=FCelGv/muQ0iz9iNtNePn+kuqHIZ8Ao19lKMbdtwbZvONG8p5URLzO+HDLjxYVjsAkrr iYNd8jksWV6jSPgbNjqhj+kfsYStKHyjBz5H4Dv4WpBeSkJPmvgtl1POi6wsNWOfWs6j 1G2hvOnj9oCcQC035VphHI+hz96+vd1IWwLmb6i41dGEFM+IX0S6I8MniOgS8zacoj7X yr3SpFFR56k8oZO4sFDog1LHox4AaxzuktXEeiUNnfW/F8wi91MwOWMFbgXwO43PhuUT NcXeLG8HhHHe8mdKtTbWBBkcc2/aaNPwp6UqLWfURIay/QtgSxI7i4HdKb37m4+UIMHg oQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 32bs6uqvpb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jul 2020 11:21:36 +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 F301A10002A; Mon, 20 Jul 2020 11:21:35 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DF5FC2B33A4; Mon, 20 Jul 2020 11:21:35 +0200 (CEST) Received: from SFHDAG3NODE3.st.com (10.75.127.9) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 20 Jul 2020 11:21:35 +0200 Received: from SFHDAG3NODE3.st.com ([fe80::3507:b372:7648:476]) by SFHDAG3NODE3.st.com ([fe80::3507:b372:7648:476%20]) with mapi id 15.00.1347.000; Mon, 20 Jul 2020 11:21:35 +0200 From: Benjamin GAIGNARD To: Rob Herring Subject: Re: [PATCH v4 3/5] dt-bindings: bus: Add STM32 ETZPC firewall controller Thread-Topic: [PATCH v4 3/5] dt-bindings: bus: Add STM32 ETZPC firewall controller Thread-Index: AQHWT6sXiDhFwJxpJEGLijki4gqejakFrtAAgAp+pQA= Date: Mon, 20 Jul 2020 09:21:35 +0000 Message-ID: <98aef908-ddbb-4bcd-1880-02f2583059c6@st.com> References: <20200701132523.32533-1-benjamin.gaignard@st.com> <20200701132523.32533-4-benjamin.gaignard@st.com> <20200713170542.GA384390@bogus> In-Reply-To: <20200713170542.GA384390@bogus> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.47] Content-ID: <4A487863F4E9234D83FD1BD592691EB8@st.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-20_05:2020-07-17, 2020-07-20 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200720_052149_014491_93B0B8AD X-CRM114-Status: GOOD ( 22.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , Alexandre TORGUE , "gregkh@linuxfoundation.org" , "linus.walleij@linaro.org" , "linux-kernel@vger.kernel.org" , "tomase@xilinx.com" , "mcoquelin.stm32@gmail.com" , "stefano.stabellini@xilinx.com" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 7/13/20 7:05 PM, Rob Herring wrote: > On Wed, Jul 01, 2020 at 03:25:21PM +0200, Benjamin Gaignard wrote: >> Document STM32 ETZPC firewall controller bindings >> >> Signed-off-by: Benjamin Gaignard >> --- >> .../bindings/bus/stm32/st,stm32-etzpc.yaml | 46 ++++++++++++++++++++++ >> 1 file changed, 46 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/bus/stm32/st,stm32-etzpc.yaml >> >> diff --git a/Documentation/devicetree/bindings/bus/stm32/st,stm32-etzpc.yaml b/Documentation/devicetree/bindings/bus/stm32/st,stm32-etzpc.yaml >> new file mode 100644 >> index 000000000000..d92865fda40c >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/bus/stm32/st,stm32-etzpc.yaml >> @@ -0,0 +1,46 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/bus/stm32/st,stm32-etzpc.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: STM32 Extended TrustZone Protection controller >> + >> +maintainers: >> + - Benjamin Gaignard >> + >> +description: STMicroelectronics's STM32 firewall bus controller implementation >> + >> +allOf: >> + - $ref: "firewall-provider.yaml#" >> + - $ref: /schemas/simple-bus.yaml# > Your bus has controls/setup, it's not a simple-bus. > > Do you expect an old kernel or one with support for "st,stm32-etzpc-bus" > disabled to work? How's it going to know if certain nodes can't be > accessed without that support? It already works with simple bus. The goal behind implementing firewall bus controllers is to expose this in the DT rather than hide it in the boot stages. > >> + >> +properties: >> + compatible: >> + contains: >> + enum: >> + - st,stm32-etzpc-bus >> + >> + reg: >> + maxItems: 1 >> + >> + '#firewall-cells': >> + const: 2 >> + >> +required: >> + - compatible >> + - reg >> + - '#firewall-cells' >> + >> +examples: >> + - | >> + soc@5c007000 { >> + compatible = "st,stm32-etzpc-bus", "simple-bus"; >> + reg = <0x5c007000 0x400>; >> + #firewall-cells = <2>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges; >> + }; >> + >> +... >> -- >> 2.15.0 >> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel