Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2758363pxj; Mon, 31 May 2021 10:01:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQZB9XWoGPJj0cNcGfZ/MRicc3aW07yU4j77EKZwrKCRK4al6TQ6IlxwGjshV3tOY1bIE5 X-Received: by 2002:a05:6402:201:: with SMTP id t1mr21314669edv.149.1622480488012; Mon, 31 May 2021 10:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480488; cv=none; d=google.com; s=arc-20160816; b=AWso0mOB1NaHtZaqbnFLiXEyvnWK7r9woOSuESgsu1vhCAO/k0hzOJkYW/tSYQJEBv D2h2yegvaPm5K5hD26zhX+pgnNnVcnSWN6T7r6A4YmJQYZZd61g1Bl5+OMGd4E5sIC+5 Z3BFU6M9T2cXWSNB522HOUUvBdZa6JQBV6hPFuKlyBYuOc8g8y5Y6ochGOI9M99HehxC j9xezxF/ITRG4X8hd979mc0UkoAusCROcULe4+Rtq5pJTTn8W+Wbl8VjKkgsdPcHEdjN UFjmjWBWF9chc92N2IX/nrPALRuK+elnvHeQ5oqSicgioJsftYxHEKknLQtvxPJKiUMk M0fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uusjoI9979v1pbLqldEYIkX8H2lrvgglLvoW87oRlIw=; b=fomnGgzkQfv2YIuLJrw/kdoqgHgMGQgRpeKHU0pBGvZJbo/u06VXOPI2pIbEG0cs/p z4cdMGrmac+U7SI2qPGUj+kV6bWTXjBlwjDe+12K2cq22L/rvt7Fb8nciDqWg74UpnPp aINQdHpQAdc31p8wqNZp7JCOH+V/OzcdNqtzZgFKrtdK9qFqjURQYbSGXA7CooyWjB1k 3axTTx464a91usCogfO76JEJQSea+nWiBrgCLYhuMWxZ8Sy7J+5KEq8OZYiEBixNw35y w+CEGi/EMhCTVouPH8ayOWwGLVOKvhIhHtFSh9yqQeZWOmzSF1zS+yqUfwrbi1D7yS7B vKQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=GG4xCYlm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si11359741edd.60.2021.05.31.10.01.04; Mon, 31 May 2021 10:01:28 -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; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=GG4xCYlm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232907AbhEaRBN (ORCPT + 99 others); Mon, 31 May 2021 13:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234396AbhEaPZc (ORCPT ); Mon, 31 May 2021 11:25:32 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10745C043445 for ; Mon, 31 May 2021 07:15:43 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id b15-20020a17090a550fb029015dad75163dso80271pji.0 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=GU5026RQT5HH71i3Ws3UK2LuGIvz6IZgJkUqonJYmW1xttGpbRdqrjHounXPy8K9Gq xbYqXXfAI9G7mIGEPLWvTxLdq7EzFs/eCom8Nm+fDt7SWLR1AnGYJDpi4qX4JNTpMN1R ENn22R68/e4gOE9jBhr2eScP+oakIow5G3WytgBgeafmLLUW/14/m8PK1xG4nNi1Tagr u1/YwGSZIVz5XxlV+vmrpVGSmjGWenbYPOjjKHIwrgOI5FFJ01HXrygbB3oK7119RMLZ 0QghuXssdKIgb1m4TGPTpRHzilbXvUESjXbaFxFKbCm8gSrP93IEV6oY8Z2T8hd0Ahzv kP7w== X-Gm-Message-State: AOAM530jtRFdvBWFbZZRobOe4o3KJweuaDK0OqefOPEyMGlZGTljwQHa BVeHHLQXyf8d0wLC9vrXLRSGKrNdo/N9 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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>; + }; +... -- 2.30.0