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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 4E44FC4743C for ; Fri, 4 Jun 2021 21:48:06 +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 1417961402 for ; Fri, 4 Jun 2021 21:48:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1417961402 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+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.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=l2bVf4wl0/fKzOCAQp2tcPASnAB8WqYVcO8vEl0OWUk=; b=zy7+Qo05tSodW7 h26+KC1BCMTn0vW8P5NeUAIelocDifLYzG/WXWo4hzJq/8dL4xqzziputiKa7sNXxwPuW5ViQkEaV AMK6CMAtMDIk22H5Fj2puVqWWsm4zPXa27FOyoegicsQvIwD5CfWf1o4VEHPMHLd0Otvi78LnKses kntZhg2IFtIa9oKZbORl+bZm3Zv8m/JIZs2I3H+XKOafnP2OT8YfykYFp/ZByGWL5ofa54DiiUcdI ZYYZPHLct0UF6WUbc8V2m4O6Dn4XYkHoXGmMWWQtsLyGwtTTR5XCcKc4HbWnuhIvb2vUvAjUT7iqW aq2gGzy92PTuxyFIY6SA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpHdz-00FMfp-FQ; Fri, 04 Jun 2021 21:46:19 +0000 Received: from mail-oi1-f175.google.com ([209.85.167.175]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpHdt-00FMeU-65 for linux-arm-kernel@lists.infradead.org; Fri, 04 Jun 2021 21:46:16 +0000 Received: by mail-oi1-f175.google.com with SMTP id a21so11180310oiw.3 for ; Fri, 04 Jun 2021 14:46:12 -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=CVC0vKu8GZpjQEsVXV2IImfk3Jt46tjXUmWUYIql26Wt0/VYXBsJTYm46ts1CGI3Cl sxofBxDXRHZ79GSfGOwwqZgNkLvq6HKm5k10hVUT/+PbG+eWtULnErLT9UU5hwEeDEvs uSxcttbaLzIZH6uH3BHN//zDsYCMiudHy0xzJq5BugURIBW/mLiCtlqP0NsgZrrMFDf1 E63Sq/D5UtwP1EmHo2gvhDg4tLCoVHTrvgi/773u58EYGjYY0WQ/KUO4qB6e1VFKrhyB mW+RxmuT1jD5KW8WYjFTGol5YDAlCa+nFZGDe1Mk6MHt4HX/ri4nqF1rLOJP19hWmqhq EBQQ== X-Gm-Message-State: AOAM531ujpzRUdgK0ANYjrClhHL1QyKGvFDLMEMgcn0R88S5Dc6d7XT/ lm5ODEp6LHxjsFgVULpo1w== X-Google-Smtp-Source: ABdhPJybUqJWZvBq74kjHndi571LzDfY6PMchE2P6H5ykzbgzu5zwjVbZ/u+xwihB6VH2rMS6e1ZHA== 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-Disposition: inline In-Reply-To: <20210531141538.721613-1-iwamatsu@nigauri.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210604_144613_254603_AC51CE47 X-CRM114-Status: GOOD ( 22.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel