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=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,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 29EF0C43215 for ; Wed, 20 Nov 2019 18:04:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F11EF20643 for ; Wed, 20 Nov 2019 18:04:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rDB5oE63" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F11EF20643 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KeEdxz1at/m4Ejs86FP2Is5SXSpSl2XntH+mTvFT9jg=; b=rDB5oE63zQB9wt ry4gh9NirMxCFeT0+IjlEc/IQN5d2vXI9wk+lf1NzsSfZBlGf0uCZwdqtYqSFdBNSm7h94TliWTKc zZeGzP+Ke3Lx+EAOW7MbG9nor8vKqS9dLGsMvZMT7IH5+RFzkvGlypOOswzgldVuFQLRRgC6M7mng r5vSZPsq3wd1eL2g1vAaK1R1FvEaq0IT7DongxUz+Jw9Y2E3jTEmJpASlr62VAQJO9KD5iHVg1hWa JszfWLGW/4Cbvz/rDGnPMlPz4k7WePThSaXHe/ZjYJO6/PG1WwHdb+DZp41pYJbmhYI7UTFqM1iKB 3iLtEZoqhFmf26D0fmwg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXUKn-0007rr-6c; Wed, 20 Nov 2019 18:04:09 +0000 Received: from mail-oi1-f193.google.com ([209.85.167.193]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXUKk-0007rL-2u for linux-arm-kernel@lists.infradead.org; Wed, 20 Nov 2019 18:04:07 +0000 Received: by mail-oi1-f193.google.com with SMTP id e9so584425oif.8 for ; Wed, 20 Nov 2019 10:04:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wn4WhuGPefkkdG2RHoEX8ty8q6GNTGVjdrwviU5xCaA=; b=TTJL0qjBk56x3iV0UiiqVOJZi+RX+n1C5qx+fmoY2yNS4WEr9hRQ55UsEXcVV+2uo6 BzA2wkfSk5VcgNeniUrvftyiruykheTUEOLn+fRwJ7tZDFgEpoDJpzxmnN283BCSCFV2 QiO8X2zOo6wI3KuAYf/cwMOndxsPaUnoUCzNyQ6wPl7nhVUuSsi4bxTvvRxzpsW6i7k0 FtffUfbJ6gdI7vAquQiCkw3sxytvgqy8/8qhmM9h5uthkP2nThUVyemzjEJWxpHDJaBz ZbDy9ztWGqynemhnIW17u0waqWXpaAfe5NfcK+dWV2u9S9+NZm+bGFqTK48PmpvJxysm az0g== X-Gm-Message-State: APjAAAVSfWmUZv6ktPQ3N3K36t5KvVrTMN6z5f+PFt0t8KSaemochfWG sXEtXNXmmtiAKINBBVmxiA== X-Google-Smtp-Source: APXvYqw6wtYV4YE9M25DCBt2w6sGKd1fC52lp5UjSjGEUK/AJNWBT/0Aw17mdvBlm+2sqn+sfEMYqQ== X-Received: by 2002:aca:b602:: with SMTP id g2mr3811454oif.7.1574273044608; Wed, 20 Nov 2019 10:04:04 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z66sm8838593ota.54.2019.11.20.10.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 10:04:04 -0800 (PST) Date: Wed, 20 Nov 2019 12:04:03 -0600 From: Rob Herring To: Benjamin Gaignard Subject: Re: [PATCH] dt-bindings: crypto: Convert stm32 QSPI bindings to json-schema Message-ID: <20191120180403.GA11687@bogus> References: <20191115142318.2909-1-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191115142318.2909-1-benjamin.gaignard@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191120_100406_124546_7078F850 X-CRM114-Status: GOOD ( 17.17 ) 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: mark.rutland@arm.com, devicetree@vger.kernel.org, alexandre.torgue@st.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, broonie@kernel.org, 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+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 15, 2019 at 03:23:18PM +0100, Benjamin Gaignard wrote: > Convert the STM32 QSPI binding to DT schema format using json-schema Leftover 'crypto' in the subject. > > Signed-off-by: Benjamin Gaignard > --- > .../devicetree/bindings/spi/spi-stm32-qspi.txt | 47 ----------- > .../devicetree/bindings/spi/st,stm32-qspi.yaml | 91 ++++++++++++++++++++++ > 2 files changed, 91 insertions(+), 47 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt > create mode 100644 Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml [...] > diff --git a/Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml b/Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml > new file mode 100644 > index 000000000000..955405d39966 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml > @@ -0,0 +1,91 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/st,stm32-qspi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics STM32 Quad Serial Peripheral Interface (QSPI) bindings > + > +maintainers: > + - Christophe Kerello > + - Patrice Chotard > + > +allOf: > + - $ref: "spi-controller.yaml#" > + > +properties: > + compatible: > + const: st,stm32f469-qspi > + > + reg: > + items: > + - description: registers > + - description: memory mapping > + minItems: 2 > + maxItems: 2 Implied by the 'items' length. > + > + reg-names: > + items: > + - const: qspi > + - const: qspi_mm > + minItems: 2 > + maxItems: 2 Implied by the 'items' length. > + > + clocks: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + dmas: > + items: > + - description: tx DMA channel > + - description: rx DMA channel > + minItems: 2 > + maxItems: 2 Implied by the 'items' length. > + > + dma-names: > + items: > + - const: tx > + - const: rx > + minItems: 2 > + maxItems: 2 Implied by the 'items' length. > + > +required: > + - compatible > + - reg > + - reg-names > + - clocks > + - interrupts > + > +examples: > + - | > + #include > + #include > + #include > + spi@58003000 { > + compatible = "st,stm32f469-qspi"; > + reg = <0x58003000 0x1000>, <0x70000000 0x10000000>; > + reg-names = "qspi", "qspi_mm"; > + interrupts = ; > + dmas = <&mdma1 22 0x10 0x100002 0x0 0x0>, > + <&mdma1 22 0x10 0x100008 0x0 0x0>; > + dma-names = "tx", "rx"; > + clocks = <&rcc QSPI_K>; > + resets = <&rcc QSPI_R>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + flash@0 { > + compatible = "jedec,spi-nor"; > + reg = <0>; > + spi-rx-bus-width = <4>; > + spi-max-frequency = <108000000>; > + }; > + }; > + > +... > -- > 2.15.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel