Received: by 10.223.185.116 with SMTP id b49csp7467616wrg; Thu, 1 Mar 2018 06:06:23 -0800 (PST) X-Google-Smtp-Source: AG47ELsMJXUBLxjyrX+3Wgu9ZmXh4nAqxru0a6i0XtKBMa9GRET9i908EPWLFBtwYHS3h2r8x1nM X-Received: by 10.98.194.219 with SMTP id w88mr2098397pfk.26.1519913183685; Thu, 01 Mar 2018 06:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519913183; cv=none; d=google.com; s=arc-20160816; b=GCscwFuySDk7abPM8wg8oUDBCmxAHIlGSUKkxTkd2XGNKZ6hMaBV3QkqhDzolEdyOG N8sdco9j5FKoHyUiqRqEYMeB6EjzZMGu2uSTZmucXNGZBvG6erNo/e7mzZ9guj61uy3R 0hBhxCGo/LB42QNsEmKpiXSep/XDJ2NHJyVpW3Y+fsxVrD+4Sb+rvwlMeCGFx98mLVem LbtgQm3lipi9iV1+AMmzATZkvBeBuBXpJA5f91/VTSyCTtHxmLa8VA3AxhMKD0hb2ALV zlCY1s2s7BzHCG+GzeMjLXkQHN6V70wCM2FAGoHinwnxO5CnzEQJGl3CJ01a019WDilt FDlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=JVSibjTYaHW5OZcHhz8D/P+2eZEKDuVjuOkIjqzGcSU=; b=zKUQaPHgJLdOS+i3DaCrKEAgWQXOZO8RRRbxj/s0MzYymiiOWHblXIMCLSJBRBVQmh LYfxNuvlZwy87xCxZO/i1dL4aS4RVjVCWRm/MJkoVa83CF7jNf8BZ2H63/FGyTF6+BuE gt8vuysT+YIGKBW/0hSO2q7e06swtzlbFktyoVEZqlrnvZ7hLZzHThCh/x2A0kjo9j+O zH4icJEAXsH17yDOASHA1VSIddOmTTXbUDC80F623AOdkhtn5Gb4NTiyuDppZLi51UmL UskKA0XX5Lf3CYThY6PojFUxsjjFUmUpKh/LFQUgZVV8WdaEfZEWBlQVRwmqgMXxh7MZ bhiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3-v6si3099871plb.197.2018.03.01.06.05.57; Thu, 01 Mar 2018 06:06:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031036AbeCAOD7 (ORCPT + 99 others); Thu, 1 Mar 2018 09:03:59 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38950 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030876AbeCAOD4 (ORCPT ); Thu, 1 Mar 2018 09:03:56 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5EC421529; Thu, 1 Mar 2018 06:03:56 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F4B43F246; Thu, 1 Mar 2018 06:03:54 -0800 (PST) Date: Thu, 1 Mar 2018 14:03:52 +0000 From: Mark Rutland To: Benjamin Gaignard Cc: robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, robin.murphy@arm.com, arnd@arndb.de, loic.pallardy@st.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: Re: [PATCH v2 1/2] dt-bindings: stm32: Add bindings for Extended TrustZone Protection Message-ID: <20180301140351.gokvstohs3mghz5q@lakrids.cambridge.arm.com> References: <20180301135806.19982-1-benjamin.gaignard@st.com> <20180301135806.19982-2-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180301135806.19982-2-benjamin.gaignard@st.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 01, 2018 at 02:58:05PM +0100, Benjamin Gaignard wrote: > Extended TrustZone Protection driver is very basic and only needs > to know where are the registers (no clock, no interrupt) > > Signed-off-by: Benjamin Gaignard > --- > .../bindings/arm/stm32/st,stm32mp1-etzpc.txt | 25 ++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt > > diff --git a/Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt b/Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt > new file mode 100644 > index 000000000000..9407e37f7d15 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt > @@ -0,0 +1,25 @@ > +STMicroelectronics STM32 Extended TrustZone Protection driver > + > +Required properties: > + - compatible : value should be "st,stm32mp1-etzpc" > + - reg : physical base address of the IP registers and length of memory > + mapped region. > + - protected-devices: list of phandle of devices protected by etzpc. > + Because etzpc driver rely on the phandle index in > + the list, holes must be filled with a disabled node. ... where the index corresponds to what, exactly? Padding with a disabled node seems very hacky. Thanks, Mark. > + > +Example for stm32mp1: > + > +reserved: disabled_node { > + status = "disabled"; > +}; > + > +etzpc: etzpc@5c007000 { > + compatible = "st,stm32mp1-etzpc"; > + reg = <0x5c007000 0x400>; > + protected-devices = <&usart1>, > + <&spi6>, > + <&i2c4>, > + <&reserved>, > + <&rng1>; > +}; > -- > 2.15.0 >