Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1527143pxj; Fri, 4 Jun 2021 17:41:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgsk7AJTsq0sKtLvR5oymMrtfOf1s59eRppkpAJNVjDJ5CXNIhSR59lvlX0nYu32loOXe4 X-Received: by 2002:a17:906:b754:: with SMTP id fx20mr6403933ejb.201.1622853671176; Fri, 04 Jun 2021 17:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622853671; cv=none; d=google.com; s=arc-20160816; b=ZHLuTE/8ESnKulf9a7dFLHS2KJ/jzVrTPHqgOapsYOH0Xzdg8jHDCJeLfo4ZGnqXI3 788GueSmnkqmo5Ep5n1poeiFGh5bkvxSsm5ftZpzkEX3b8w6ND0TS4clHR85A1hHxKA6 2YhkxYkZ/b+KxH84cvgm6uRuLDEzjiRcEK+xHdsw5t4OTOW6qffVLYemBXU1Xjkkk4A0 1+61bLr6eXGDl4h4ZK5TyBhQTNckQYdOE4d+3wRfJLcPIO5RpPzi/zEouIK9mCgom+vt JJOg7Uxr20+ORdtBvDtd4ZJjfe8IpjLUsCUmrmEkMJUuQ5GFtdDQ0nDcW4QvcE2Gbdi6 p7sg== 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=Npywn0HnEi7TokGQksP3F7Mehjp4DGkaDdu4QW8xtjA=; b=HlLX+dl2UhjGzttm+ltHFM/snG+V7+QO0cJv2sr4bEMiYWK9PCYm0axLnoPDmzvvwP ZzXN1aMsE4ytKyG5htDQL4EhTNN5aVPvfrdw7GH2jEpOiS6bMBpw8RsD/nvwm95gtLfX PMwkIBLm3OPzABK5/mqY/ML5K/1f55ID8t8k9P+8EjazoWK1OxMRQkl0Jf7licgBUlDU eQiiY0zAna0seY3+1bub4OXII3R4ZdXtPhezoNksgYZinyTTYqcnbnqG/91Jde1bNz2f oehEiEthdWVu6BOuQRI0pUrli2uAGYPssI0n/KZnkXCH4nyidHfY3beITKt+y9Y0U5E4 EinA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=bt45kfpY; 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 a16si5752708eds.411.2021.06.04.17.40.47; Fri, 04 Jun 2021 17:41:11 -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=bt45kfpY; 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 S229873AbhFEAkW (ORCPT + 99 others); Fri, 4 Jun 2021 20:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbhFEAkV (ORCPT ); Fri, 4 Jun 2021 20:40:21 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45B3FC061766 for ; Fri, 4 Jun 2021 17:38:21 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id l23-20020a17090a0717b029016ae774f973so6157461pjl.1 for ; Fri, 04 Jun 2021 17:38:21 -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=Npywn0HnEi7TokGQksP3F7Mehjp4DGkaDdu4QW8xtjA=; b=bt45kfpYiGzbTE/1td/xLlUt7LKFR4LXmmpKxKtgoqdGUy48MaGWFyot96fJGdmrUL CGMttKF+aNbkNU8CFGAxzw0QccgGPiKt0XyDjeWhux5KRkISmW1CHx/AhnYcmHJPl7xd wr3GEFCMzpI46krvTSVbZQ8YA+eJ4F75BNzsQzLy6RncwsTYo9mS3qbYxihK86C8B031 UX4URS9pTnOlO0EYTqDo9f3BWZ/fMP8WJRVWRePJOkmYWPFemzsvfHlXSUUkGQ+5VlX9 49qqMeBdef0pLrBN3MpqD1h38aaC/F6fynw+SMrwoqvkWQNrs/hO2Y4u5kzdh4UNChTn +BYw== 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=Npywn0HnEi7TokGQksP3F7Mehjp4DGkaDdu4QW8xtjA=; b=hvGpmTFRqqn3Xt2oQBA8z7Fcabx+46yNoHz2pksGEQyHUKEUOWm7L/4ISvknSRsA5l Dh1hAtOnO/RV4GJDPWf4jqjWXeEuF3mSGhgZiYpSk0Rpgmdxl0EpuxiW4dTE1VYwACyJ oErssm3Cakaa4YAuj+9G74JlGIsVB1TCraJAiKFuZDyyPW7noXvIPjZ+i3WeMANzEqfF VEQFI6S2hbHO1gU0owoAGviRqjndfUbc6XwQPehc5CXno1sdUnrFfy7e1iyRG12qOfOu KH4Hdq71jTl8DcNEhGHR/dKlugCxZ2eMy4imNyAAy+pU7AVGHEpfLQ8uDEEAfX9flTQc WzIQ== X-Gm-Message-State: AOAM530tl7jl1k40lpB0wZLcJ/VLBV8KszQfcEoqdxjdDjMnAJKf9xZp xS1UMtpFYWtGRtXYWl/a7EKe X-Received: by 2002:a17:90a:6002:: with SMTP id y2mr20074659pji.197.1622853500758; Fri, 04 Jun 2021 17:38:20 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id t23sm3030909pgj.9.2021.06.04.17.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 17:38:20 -0700 (PDT) From: Nobuhiro Iwamatsu To: broonie@kernel.org, michal.simek@xilinx.com, robh+dt@kernel.org Cc: harinik@xilinx.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH v2] dt-bindings: spi: convert Cadence SPI bindings to YAML Date: Sat, 5 Jun 2021 09:38:11 +0900 Message-Id: <20210605003811.858676-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 --- v2: Add ref and enum is-decoded-cs. Add ref to num-cs. .../devicetree/bindings/spi/spi-cadence.txt | 30 --------- .../devicetree/bindings/spi/spi-cadence.yaml | 66 +++++++++++++++++++ 2 files changed, 66 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..9787be21318e66 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-cadence.yaml @@ -0,0 +1,66 @@ +# 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. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 4 + default: 4 + + is-decoded-cs: + description: | + Flag to indicate whether decoder is used or not. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1 ] + 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