From patchwork Mon May 31 05:21:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 12288673 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 B8E7BC47082 for ; Mon, 31 May 2021 05:23:22 +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 7446560551 for ; Mon, 31 May 2021 05:23:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7446560551 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=nigauri.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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HCWLKpKN/QLH3Wgia48NkY5/2x1IXo/JvA7arDIYiH0=; b=jtI4ScX7t6KlRN 6vFtysSpmCTBDUE43B+h0v5eamzmznPa8B0S17rBXbAgx0BzrQb94KdAn4vASKHy/poh7UH0dO919 JAVI0blgaE5StQNSLexO2/PUrTunzmxoJiYnnE0V5z70laah3h3HfobMvW/LzXMHvGLQmlXavXa75 i1zBZCfqVxX4fTJ9vG4Y/plc91tsJ532GE0uQogrPPH8M4fisA+VkokPxPk9mbYLdX6qzoo2KvfE/ w4jFjfyYD/P5Vf0HxSKBXs0pr9vLfZJX4SqrPkFrywXiMQ1TbtUJOvewsBGaTLTmaoNeVjYki7taQ 5hHk+mW2E92dlw7fYcpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnaN9-00ApEL-A1; Mon, 31 May 2021 05:21:55 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnaN5-00ApDe-N6 for linux-arm-kernel@lists.infradead.org; Mon, 31 May 2021 05:21:53 +0000 Received: by mail-pg1-x52e.google.com with SMTP id e22so7473599pgv.10 for ; Sun, 30 May 2021 22:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E3q0ltUCFlSFseFjGj/1JuyMtl0G1U7pcNWroIzsbf8=; b=p1vx7rRbhioTXeIw85nkmMjInDyqreY9bHa5TuENc4iYfontBGckFW11pHqbBGmFlA VsvyzHohQTLr3Xlgqsf0nmlkRdTH0yvTW7xBKqhsG9rmw9jDfLoKIZGGwd2TtUKim3tJ Sp0FDcS+Rtp9wlK1yAxjjLkXgysgrogQ8VVVCuZf/A/2RjcXTuI7loCo1yjVTQyoTUol klGs+rXLKNTN7TmmGb5lkC71s2/prsiNK1ZB/GO6v1lEQy5yoGdnTdUy5pjnkN5wZXe0 +Ktq+blfteTSnoJni50AwSFRuyh5FfjkEoOCX7LBl2AqAQy2Ys6g2o36LS/qi1l+6SCZ fyfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E3q0ltUCFlSFseFjGj/1JuyMtl0G1U7pcNWroIzsbf8=; b=YonJwyNm81lWWtcRtYrjsnEQPNPnPD8QaM3Vn9/eeutklI1KZNTZ2HE+X0+DoSchtS XMhGK6DykbBxxnTXmG35TKWFPIfjHg2xXMZ67WwLceNTiazmcTRyi7xjsBRgvN8Ngc6S jHnPsbGDcX1P/gOz8SRxTey1jRd2pHuSKYMFChQLfCMC7RaUOllEI7NXGnOq2vT2fIFO +jmWqAfZs7/Tpq27ccQ/A83v0YwyEVAQU/XMT3TIBjJHOK3TSO5uDToZpsOzQ4rK9muG gNS8+XmLtc5kul3bveLUjLdeuDfaly9BN4Al4l6x+vx5Z8GufraHBGuXZGd6HyrLrvrq XhKA== X-Gm-Message-State: AOAM5322YzfEB2yc316BSVLKUhdjC5kSgNNuOwJwWcGdjm8H/jF9Qq94 O0Wc42aWI+mRKauCz73xN23U X-Google-Smtp-Source: ABdhPJx13Hy5iHnn4j54rkqO+jQQvuruShVRfadlrgD/A/1CxNcr3mqofJZ1qsW46Uu67C8P80c+wA== X-Received: by 2002:a65:5c4a:: with SMTP id v10mr21009984pgr.142.1622438508391; Sun, 30 May 2021 22:21:48 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id t12sm2898165pfc.133.2021.05.30.22.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 May 2021 22:21:47 -0700 (PDT) From: Nobuhiro Iwamatsu To: Michal Simek , Rob Herring , Mark Brown Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: spi: xilinx: convert to yaml Date: Mon, 31 May 2021 14:21:42 +0900 Message-Id: <20210531052142.695430-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210530_222151_848271_DEA97326 X-CRM114-Status: GOOD ( 15.61 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert SPI for Xilinx bindings documentation to YAML schemas. Signed-off-by: Nobuhiro Iwamatsu --- .../devicetree/bindings/spi/spi-xilinx.txt | 23 --------- .../devicetree/bindings/spi/spi-xilinx.yaml | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/spi/spi-xilinx.txt create mode 100644 Documentation/devicetree/bindings/spi/spi-xilinx.yaml diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.txt b/Documentation/devicetree/bindings/spi/spi-xilinx.txt deleted file mode 100644 index 5f4ed3e5c9942c..00000000000000 --- a/Documentation/devicetree/bindings/spi/spi-xilinx.txt +++ /dev/null @@ -1,23 +0,0 @@ -Xilinx SPI controller Device Tree Bindings -------------------------------------------------- - -Required properties: -- compatible : Should be "xlnx,xps-spi-2.00.a", "xlnx,xps-spi-2.00.b" or "xlnx,axi-quad-spi-1.00.a" -- reg : Physical base address and size of SPI registers map. -- interrupts : Property with a value describing the interrupt - number. - -Optional properties: -- xlnx,num-ss-bits : Number of chip selects used. -- xlnx,num-transfer-bits : Number of bits per transfer. This will be 8 if not specified - -Example: - axi_quad_spi@41e00000 { - compatible = "xlnx,xps-spi-2.00.a"; - interrupt-parent = <&intc>; - interrupts = <0 31 1>; - reg = <0x41e00000 0x10000>; - xlnx,num-ss-bits = <0x1>; - xlnx,num-transfer-bits = <32>; - }; - diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml new file mode 100644 index 00000000000000..17463151b36a02 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/spi-xilinx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx SPI controller Device Tree Bindings + +maintainers: + - Michal Simek + +allOf: + - $ref: "spi-controller.yaml#" + +properties: + compatible: + oneOf: + - const: xlnx,xps-spi-2.00.a + - const: xlnx,xps-spi-2.00.b + - const: xlnx,axi-quad-spi-1.00.a + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + xlnx,num-ss-bits: + description: Number of chip selects used. + + xlnx,num-transfer-bits: + description: Number of bits per transfer. This will be 8 if not specified. + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + spi0: spi@41e00000 { + compatible = "xlnx,xps-spi-2.00.a"; + interrupt-parent = <&intc>; + interrupts = <0 31 1>; + reg = <0x41e00000 0x10000>; + xlnx,num-ss-bits = <0x1>; + xlnx,num-transfer-bits = <32>; + }; +...