Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2183829ybc; Wed, 20 Nov 2019 10:06:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxVb/NPfZl4GleM8cUKMVUfBQ19p1cTuc6w0GczhZY09vUS1mZzhBfBdSZ3a6W/4QPGCbmk X-Received: by 2002:a17:906:1e03:: with SMTP id g3mr7128942ejj.331.1574273192841; Wed, 20 Nov 2019 10:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574273192; cv=none; d=google.com; s=arc-20160816; b=OEgeLYiIaP/NVRzwtS1gL6x2CC5SVUXB65nubSVY0JStcowm4nmD2mO6og7gthHp7W Gh/5JZUZaXE8tkR5Ayb2W19s3yZN83SY5hVMN5PwieecjUhKKXqbETQ7EoSxX84G3vSP OsT59rY2AA4bCQMYs4gxCTBk10/RgnLEa9gJ0s8pa2N3ByPPmA6hSMg25+DM8bq/AXJe FgRVtNGYU+fCRzNt18O8ZLMymxdBAHEmtHrVQQTx5tZ9TBjyoQPHws3DtockbtvepZSy K1ANsDysntAV2wfEy3ExdDQdxKrfoRM28P7sUfS5Tcd58A5VK/2hlpGxbtdPGEh6busr TLYw== 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; bh=wn4WhuGPefkkdG2RHoEX8ty8q6GNTGVjdrwviU5xCaA=; b=CUR7M3lWcGUhl7/WCkrRQ1WVxEt9u6zSLGrRBxyRJNpvew9G/nB8DmOcC6VwgZ0HYA 2H6AB5MQw9yB0/+CgWg2FJE/M2JIDS5h3klhUR+H4C1LETyJypFSm6ijI9E72DY9WzA7 nO9nGLuaZoaRngc+69Si43LE/SSWODfU/kGKJgeoTkBa98MU6UvGozSIFYqJhaqUdlCL s7NTU39vRnA/1BGRSQCn3OvCxMIwdbC9TK3pL0/gDtkFpFDTyXByhAHC7JQCSjYU3QMn vg+Udye77TZVNDTGF9Ih+LRXGQFTYRM49mnr2FU+VgFB/bksyADL7x69TQy1yB2RXnfe G8Xg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si17758649ejq.257.2019.11.20.10.06.07; Wed, 20 Nov 2019 10:06:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbfKTSEG (ORCPT + 99 others); Wed, 20 Nov 2019 13:04:06 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:43368 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727644AbfKTSEG (ORCPT ); Wed, 20 Nov 2019 13:04:06 -0500 Received: by mail-oi1-f196.google.com with SMTP id l20so571507oie.10; 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=XZOa5HNXdPL1e0SmmnCz/SXjen9dD2ci1KMSX3icc/9nLWukAkW9UtgLIrKKWVvQAh TURMqnb9TXwq56E4MvQ2mVqIdeSBZQantviC4qVWtqEwkbQragFcVwENNX1BfbZ3x/1G ULQ+wobhTDuOYTwywJSdi7hDuUmghOhYBhQ85HyW4txXX7TEdYzSokNmgkWTCou6s4MN AH7B3/ALddfFkZdtplljE3J048r7oKEud6KXC2Bz6RHQEPl+/WStBneJWoxe5k/NKrI4 DW4sbk7jKOBbEdPe1wGPK7ECYb2ZW+lfeq5wPtqCR+z5nxpa82YWbw0IxtSFo3mrVK9s 2BmA== X-Gm-Message-State: APjAAAXVucfLtvSwG1iZF3f2wsbN6PVIkTQ2JP8Isl61EOqI52wph7tr PcQOxMw4Ig24Z4caKQRa8g== 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 Cc: broonie@kernel.org, mark.rutland@arm.com, alexandre.torgue@st.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191115142318.2909-1-benjamin.gaignard@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >