From patchwork Mon May 31 14:15:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 450675 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=-16.8 required=3.0 tests=BAYES_00,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 2F62BC47082 for ; Mon, 31 May 2021 15:30:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 08CFE6124B for ; Mon, 31 May 2021 15:30:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbhEaPbh (ORCPT ); Mon, 31 May 2021 11:31:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234397AbhEaPZc (ORCPT ); Mon, 31 May 2021 11:25:32 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 134ABC043447 for ; Mon, 31 May 2021 07:15:43 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id x10so4381291plg.3 for ; Mon, 31 May 2021 07:15:43 -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=uusjoI9979v1pbLqldEYIkX8H2lrvgglLvoW87oRlIw=; b=GG4xCYlmpXHc9owVweFw1MlfjhetkfkHGQvpNlAQcwNDM6WdV0akk4Gc8nqFcgfOBM eR8PyLnQDmnrR3tCAyZt4pLadiRKtAK2QOMEcfsHunZWOg1ZkBDaYbcFXMZ6ZsRE9DgE iWJDErwKg71ftjOoikFj1/5qzrK6JKw/PQW57R/DaB2oSzxAW1LBw6eSNANS21Sk/unj 3KtALWLdlUc3vitPyjhuiQxitwhQvZYXXkksXfJa4YbnV2afFKL8XkC5vUYVXCvW4IY4 f/90/5HT9dy1puAE6tMGTuvvY1MEH69aadXV53J8/921ufGZYNwdeLpEeQR5V2ypY3NI KhqQ== 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=uusjoI9979v1pbLqldEYIkX8H2lrvgglLvoW87oRlIw=; b=NZnFdfknAKtzzoM3++ojfpTxe8R/DsWbYaA9BN4Le4BGVuRsShrOsgBh9zwywA0kbH E4cATG+SzLFlOCjQ8WIXkyQXSbUeWgBUqF3nP+DGfYWEkFdaDBvcY8d+OvNRDN43PF4W kojAEqA7Dp7H1nJGl5rXjlIkYWr/OMuuPcgaFJlig35zd3dS2tomwZixPyqp8jGj7+E+ dt/Q3uew/tjbbrStWwHUshpqIQ8iYdJJ+edFuf0N4e6qSUpo6Q9d3mSXMCRfuHtYsAfP g7CLbSofgW7Ny+O8ZdoXp0RYInCLuIf7t3OyqnYBkF8nV9lRhz3gbo3ublCSHhlBX1zS p0Ww== X-Gm-Message-State: AOAM531wZttJk35y1p0h5Fz0Zq+avAk3XdTBuoGJwFuIAW13IEpCkV64 k2hw2qGSPYIgWYOYjj2gMpWo X-Google-Smtp-Source: ABdhPJyqhZTIi030YGA5BmhjsNzclYh89CN4yKsyoGmPMTBP4RYkN9dcT6zmYrIL3nwREUDCs39qmQ== X-Received: by 2002:a17:902:c406:b029:ef:7ba2:f308 with SMTP id k6-20020a170902c406b02900ef7ba2f308mr20965460plk.9.1622470542580; Mon, 31 May 2021 07:15:42 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id m2sm1370557pjf.24.2021.05.31.07.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 07:15:42 -0700 (PDT) From: Nobuhiro Iwamatsu To: Mark Brown , Rob Herring , Michal Simek Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Harini Katakam , linux-arm-kernel@lists.infradead.org, Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: spi: convert Cadence SPI bindings to YAML Date: Mon, 31 May 2021 23:15:38 +0900 Message-Id: <20210531141538.721613-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org 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: + 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>; + }; +...