Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1443541pxj; Fri, 4 Jun 2021 14:48:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4iAdPnlebc03+61XPXraPJiAxzu/ibBUGtS3UNJc0i84Z8VpjMDaUQyLXfhJzds6dOPOo X-Received: by 2002:a17:906:848:: with SMTP id f8mr6124636ejd.198.1622843317798; Fri, 04 Jun 2021 14:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622843317; cv=none; d=google.com; s=arc-20160816; b=GFpMEM6No3X34WYW/OiEsa/d6+L7IX6+qMoSobW/PY4kSR4joMBHStUCKA12e0q+dx zXFmw0kmir/VBNJHgTw7LrPNfOPBM1hZmQZm4niZIHClkZoN8UjR6ads5k8msMg4FpF0 5nbX1fvlz6Qq6vrReW2w1vEmGzJLR51fPT6zRhGsgoLcyUoBlMvAk91lMnFpBcqTRusc WIveHkkL0CLt6SULju0BFa1WunQgF2bnw7iuvy4DtAbpOYJLmb7tSOxWRaA7r16ta4je BERW8ddWjTufqoaR1NI4HkN0Bw5osTjWLfk1xK/dp5UAW+buFU63GcBynEM04BzMZgmd Se5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=MxgELyl9ZDNqb+JhNnsjnlPROT2DhakY1WRv9qMjO0o=; b=CgHqjvFmAAbqHCzf0vvRoKAIuqxXWVsCO2PH6iBRsFmp0JAaUBtLVjLjaxgvkhXxwG DVMZtQURgF7ulPqbMQvwXBkh93AnoSbaZXxmnSqKG5/wJLa2StTUnfnTRReiPAulMzYG cRZ770CpKaQ5uv9BiRPf6kW7TTalHIKkUfYdLYDpVtQ0ZrTj+Sw/6AquFIMCw7Ldlg2g 5zdnWpVzx6pgMSNqQuC8dkvOaAsWS5LTAFyfDmCvYuaTTiCHry5lDcRf1Xo84WSUwjsr E7O+7thr1Bpa1+3yChLXGJUmZibj1lZhPlh48W2d2TtgqjkO0u5GirLn6iMzeZanP3Ks EHmw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si5492412ejo.378.2021.06.04.14.48.15; Fri, 04 Jun 2021 14:48:37 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbhFDVr6 (ORCPT + 99 others); Fri, 4 Jun 2021 17:47:58 -0400 Received: from mail-oi1-f178.google.com ([209.85.167.178]:46774 "EHLO mail-oi1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbhFDVr5 (ORCPT ); Fri, 4 Jun 2021 17:47:57 -0400 Received: by mail-oi1-f178.google.com with SMTP id c13so5607693oib.13; Fri, 04 Jun 2021 14:46:10 -0700 (PDT) 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; bh=MxgELyl9ZDNqb+JhNnsjnlPROT2DhakY1WRv9qMjO0o=; b=pIVFPAcNLGFK7gX4I5Cjh2uDm7W3lDO/R544953UPhjgfWvvL/qAa8X7n2tXCjizoi 2Obeuy8OhSsiXB5t69dkqfm1yIKI4OvPr8fR+V3eaT2kADFFm73/jrjOp3w0GF3yFOvl A2xOY2cUvo1x0CHJryEjte/Ocmb5hQjBbNJwz3QJOsa2Z5WjcIodqtQfUpuBiH9UlJo2 9fKrGghfwG+EHZ53Q4+tUua5Zhab6NsqtgF6X0PPxNFKBUiUVYfamtxFAwhCwpqdVcH5 +RCgyVqB7xdo6GyFA1xbYJxg9WsKHZaNpHOO3iN6bZOeVfj+3RgsIFP8X/YvnfP1Ww0B 97nQ== X-Gm-Message-State: AOAM530/XaH+ZFoCdRAyWSzBTEDNK4ju4l8HagC1YhGaVZv8wHLVLYtW PjxG10l+aPNWrAFdD7wtwA== X-Received: by 2002:aca:670d:: with SMTP id z13mr12405152oix.24.1622843170228; Fri, 04 Jun 2021 14:46:10 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s15sm117977oih.15.2021.06.04.14.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 14:46:09 -0700 (PDT) Received: (nullmailer pid 3979057 invoked by uid 1000); Fri, 04 Jun 2021 21:46:08 -0000 Date: Fri, 4 Jun 2021 16:46:08 -0500 From: Rob Herring To: Nobuhiro Iwamatsu Cc: Mark Brown , Michal Simek , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Harini Katakam , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] dt-bindings: spi: convert Cadence SPI bindings to YAML Message-ID: <20210604214608.GA3974358@robh.at.kernel.org> References: <20210531141538.721613-1-iwamatsu@nigauri.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210531141538.721613-1-iwamatsu@nigauri.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 31, 2021 at 11:15:38PM +0900, Nobuhiro Iwamatsu wrote: > Convert spi for Cadence SPI bindings documentation to YAML. > > Signed-off-by: Nobuhiro Iwamatsu > --- > .../devicetree/bindings/spi/spi-cadence.txt | 30 --------- > .../devicetree/bindings/spi/spi-cadence.yaml | 63 +++++++++++++++++++ > 2 files changed, 63 insertions(+), 30 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/spi/spi-cadence.txt > create mode 100644 Documentation/devicetree/bindings/spi/spi-cadence.yaml > > diff --git a/Documentation/devicetree/bindings/spi/spi-cadence.txt b/Documentation/devicetree/bindings/spi/spi-cadence.txt > deleted file mode 100644 > index 05a2ef945664be..00000000000000 > --- a/Documentation/devicetree/bindings/spi/spi-cadence.txt > +++ /dev/null > @@ -1,30 +0,0 @@ > -Cadence SPI controller Device Tree Bindings > -------------------------------------------- > - > -Required properties: > -- compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6". > -- reg : Physical base address and size of SPI registers map. > -- interrupts : Property with a value describing the interrupt > - number. > -- clock-names : List of input clock names - "ref_clk", "pclk" > - (See clock bindings for details). > -- clocks : Clock phandles (see clock bindings for details). > - > -Optional properties: > -- num-cs : Number of chip selects used. > - If a decoder is used, this will be the number of > - chip selects after the decoder. > -- is-decoded-cs : Flag to indicate whether decoder is used or not. > - > -Example: > - > - spi@e0007000 { > - compatible = "xlnx,zynq-spi-r1p6"; > - clock-names = "ref_clk", "pclk"; > - clocks = <&clkc 26>, <&clkc 35>; > - interrupt-parent = <&intc>; > - interrupts = <0 49 4>; > - num-cs = <4>; > - is-decoded-cs = <0>; > - reg = <0xe0007000 0x1000>; > - } ; > diff --git a/Documentation/devicetree/bindings/spi/spi-cadence.yaml b/Documentation/devicetree/bindings/spi/spi-cadence.yaml > new file mode 100644 > index 00000000000000..27a7121ed0f9ae > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/spi-cadence.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/spi-cadence.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cadence SPI controller Device Tree Bindings > + > +maintainers: > + - Michal Simek > + > +allOf: > + - $ref: "spi-controller.yaml#" > + > +properties: > + compatible: > + enum: > + - cdns,spi-r1p6 > + - xlnx,zynq-spi-r1p6 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clock-names: > + items: > + - const: ref_clk > + - const: pclk > + > + clocks: > + maxItems: 2 > + > + num-cs: > + description: | > + Number of chip selects used. If a decoder is used, > + this will be the number of chip selects after the > + decoder. > + minimum: 1 > + maximum: 4 > + default: 4 > + > + is-decoded-cs: Needs a type ref. Despite being called a 'flag' looks like it's an uint32. Presumably, it also needs: enum: [ 0, 1 ] > + description: | > + Flag to indicate whether decoder is used or not. > + default: 0 > + > +unevaluatedProperties: false > + > +examples: > + - | > + spi@e0007000 { > + compatible = "xlnx,zynq-spi-r1p6"; > + clock-names = "ref_clk", "pclk"; > + clocks = <&clkc 26>, <&clkc 35>; > + interrupt-parent = <&intc>; > + interrupts = <0 49 4>; > + num-cs = <4>; > + is-decoded-cs = <0>; > + reg = <0xe0007000 0x1000>; > + }; > +... > -- > 2.30.0