Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1193983pxb; Wed, 10 Feb 2021 02:25:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyz4ABf/8aPrD42Q24Qhui6yoTJDFQ9Wtv2ZWKeflfbsgeLdvNNbwbuY7jSqnEQ/014idQ X-Received: by 2002:a17:906:3899:: with SMTP id q25mr2270204ejd.173.1612952748906; Wed, 10 Feb 2021 02:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612952748; cv=none; d=google.com; s=arc-20160816; b=feLst/+F0ksj3Cw3cO3evv4QDgSB7T6dZ4PJZbbraJbZeWcX5BCuQr+jz5AikQ6DDL QzdKI4l0p92umemIz6kC7jkpWr7l+Idz3WkF3oiYy9PMjyOZL8w6zSaE8vOKsj5ELBKl 8g50wLhLDRNT+C8PBU9o8Cl5qCyi/r4Z0K/tYfbnirE0ZJKItA69tu8KT6QsYWwnMMvp mtHRwjgSz47reeojUV2M9SXNUSl7KtU8GlaeFHoO2akjl4gVxZyj5xwiMZZlEhZrxpRs ASLdLF3HYxJApuN8cUr+qRd/Fmngu6yIPk5RRx7DvdCovwSvz5bZ+yrv0deS4fa6N4Kg xD6g== 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:sender:dkim-signature; bh=IZiMzhLdfVQZkFKa2UC3/BywnaDXeDau8xmJtr8dU38=; b=AnBVeN2ZvZHsRvYi4QYbnnKim/+7pw1sZgANc7vPH+o/l+CX2XrZ4kmL24VY9Hj6iw dzwiRlMchwvsvM9nqNQOOK0c1hzaVmxFj3obOn+TIOea3emzbBFVuaxNFbCFWk4V+RI+ 28ooQYDTG3iPjSQOAr3aVsyadhvE63q3No6lWBnLvGzjDgImrILCjw/WWZFfMJA5xHom jP/08BckAJPdZ4MZfVCmRFBa3cQ8hbKHF7tiUW55PfXzq12oE8hpVzhg8Cpx2hg+LxRM x8FoE3uDOrdRY6D2ZMhQcB6bz43LypghowSzWjGVzb1Bq5gCcGFnA4lbUJJbRTOKKA4m 35uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=DNbGyFxx; 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 d7si1133587edn.127.2021.02.10.02.25.24; Wed, 10 Feb 2021 02:25:48 -0800 (PST) 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=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=DNbGyFxx; 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 S230231AbhBJKXu (ORCPT + 99 others); Wed, 10 Feb 2021 05:23:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbhBJKLT (ORCPT ); Wed, 10 Feb 2021 05:11:19 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99767C061793 for ; Wed, 10 Feb 2021 02:10:38 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id q2so2186812eds.11 for ; Wed, 10 Feb 2021 02:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IZiMzhLdfVQZkFKa2UC3/BywnaDXeDau8xmJtr8dU38=; b=DNbGyFxx3kCS9/j20Y9P0rU42KGYEhzoemRvo9Xx5kJTEHtH6dOpjcAMB2ApFDSSZ6 w+KePPGz15wBLKrgmQBv/viHii4cJ+ZfOBVKKMR02WAC48aYjp7NcjbGIKfP7NQ8LPk0 SSb4J4KKneDpKCbvsFqZASyTdtAFDyf5jcdwI7oSx/rA8dWPbG3dckmKRjY7Q6e9557K /SheqyDEz6J+MxjG0oAaodZtA/Dn3uKhw6UCdJdaSLL+xC8lCnhs86plQIWDtdLE4Wez Q5OanvDfJPW2jYJ83gBUDaaBcTvRloH4HjwfJwmAsFuRawX8ZMXEbcZRHgW7fXa9s0P+ osdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=IZiMzhLdfVQZkFKa2UC3/BywnaDXeDau8xmJtr8dU38=; b=rPdmyXofVaIG0h3Qrgqoaa5THfjRZ7dIdLi8I2tWvL+1vqRO1hvYwgjBn0WQpDwlt4 aTBuNaY3KIKc5zznb+CWUIQ51LXjisI7X+ppJV9fd9i74KE3C965pH9bmyvEL3voyho5 ElyRmdm4lVLJywKRGDbua28+a8Hqf9WIhNplTQ/fTAsYXLJUwxh5mYIJa4+df8jl17/V GAu+izSZI5gPp0p1TvEfOK9ktfK0jF6oWDOLln9/fRQj0bxAWsFj4Hen5xl2SV/uqn94 oBPmOICa7h7mXIlJKH7iY9oAihjRgn8kWQTwYEcbGeloDT0LXgGvEkGdc8XUNhH/JSU2 JuGA== X-Gm-Message-State: AOAM532sxi54AKLjK322B4UqiRmW/w6i7LuaKqZupaj6cz9BOTXdc5i9 KYv3qXXUb/stJkTmA/FSVEPF9riCI3VCiA== X-Received: by 2002:aa7:d790:: with SMTP id s16mr2447249edq.294.1612951830768; Wed, 10 Feb 2021 02:10:30 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id x25sm789313ejc.33.2021.02.10.02.10.30 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Feb 2021 02:10:30 -0800 (PST) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Mark Brown , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org Subject: [PATCH v2] dt-bindings: spi: zynq: Convert Zynq QSPI binding to yaml Date: Wed, 10 Feb 2021 11:10:25 +0100 Message-Id: <4ece21a7e9691ed1e775fd6b0b4046b1562e44bd.1612951821.git.michal.simek@xilinx.com> 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-zynq-qspi.txt to yaml. Signed-off-by: Michal Simek --- Changes in v2: - s/additionalProperties: true/unevaluatedProperties: false/ .../devicetree/bindings/spi/spi-zynq-qspi.txt | 25 -------- .../bindings/spi/xlnx,zynq-qspi.yaml | 59 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 60 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/spi/spi-zynq-qspi.txt create mode 100644 Documentation/devicetree/bindings/spi/xlnx,zynq-qspi.yaml diff --git a/Documentation/devicetree/bindings/spi/spi-zynq-qspi.txt b/Documentation/devicetree/bindings/spi/spi-zynq-qspi.txt deleted file mode 100644 index 16b734ad3102..000000000000 --- a/Documentation/devicetree/bindings/spi/spi-zynq-qspi.txt +++ /dev/null @@ -1,25 +0,0 @@ -Xilinx Zynq QSPI controller Device Tree Bindings -------------------------------------------------------------------- - -Required properties: -- compatible : Should be "xlnx,zynq-qspi-1.0". -- reg : Physical base address and size of QSPI 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. - -Example: - qspi: spi@e000d000 { - compatible = "xlnx,zynq-qspi-1.0"; - reg = <0xe000d000 0x1000>; - interrupt-parent = <&intc>; - interrupts = <0 19 4>; - clock-names = "ref_clk", "pclk"; - clocks = <&clkc 10>, <&clkc 43>; - num-cs = <1>; - }; diff --git a/Documentation/devicetree/bindings/spi/xlnx,zynq-qspi.yaml b/Documentation/devicetree/bindings/spi/xlnx,zynq-qspi.yaml new file mode 100644 index 000000000000..1f1c40a9f320 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/xlnx,zynq-qspi.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/xlnx,zynq-qspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Zynq QSPI controller + +description: + The Xilinx Zynq QSPI controller is used to access multi-bit serial flash + memory devices. + +allOf: + - $ref: "spi-controller.yaml#" + +maintainers: + - Michal Simek + +# Everything else is described in the common file +properties: + compatible: + const: xlnx,zynq-qspi-1.0 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: reference clock + - description: peripheral clock + + clock-names: + items: + - const: ref_clk + - const: pclk + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + spi@e000d000 { + compatible = "xlnx,zynq-qspi-1.0"; + reg = <0xe000d000 0x1000>; + interrupt-parent = <&intc>; + interrupts = <0 19 4>; + clock-names = "ref_clk", "pclk"; + clocks = <&clkc 10>, <&clkc 43>; + num-cs = <1>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 546aa66428c9..e494b061dcd1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2766,6 +2766,7 @@ W: http://wiki.xilinx.com T: git https://github.com/Xilinx/linux-xlnx.git F: Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml F: Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml +F: Documentation/devicetree/bindings/spi/xlnx,zynq-qspi.yaml F: arch/arm/mach-zynq/ F: drivers/block/xsysace.c F: drivers/clocksource/timer-cadence-ttc.c -- 2.30.0