From patchwork Sun Jun 13 21:28:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 12317881 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.9 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,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 7932CC48BE8 for ; Sun, 13 Jun 2021 21:32:11 +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 2443C6120E for ; Sun, 13 Jun 2021 21:32:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2443C6120E 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=57+YUR0T2PgjfmK1xVhlnz/IfFxC8WVcv+z5V667XZ4=; b=HYAINx+6yGLPMb 0HwiHdu9V0mwrFK3iuUJh6lX1i0ffpcUQfiUtHo6OX9iyalgIjmYYGP0+0eu0LuLamWS+FDmDNqyg X3DrVwpljsI9tTWnOZqaUtuoUMQcQnnjR3CmjyZ2BNzx6PNR8vNlaraJVl7tXZb5lXPvb59QtcUEF TYcYHiNNRqgsF2oLOb8A+eBCQtXjudkBxlvyfl5J2wKM9vrgXHlA8B7KHQDqi9iTiKp8I0P1hwdZg 1tqWw8aY2zyUXw/9trFPFfWZz6DH/UBLGbaBCtBQvONodgkK3p4cBJxifh3S1tSBABvU42PN4GckW ptsnHpxueC3suM1/eb4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsXgc-00BK41-9r; Sun, 13 Jun 2021 21:30:30 +0000 Received: from mail-pf1-f169.google.com ([209.85.210.169]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsXgY-00BK11-6Y for linux-arm-kernel@lists.infradead.org; Sun, 13 Jun 2021 21:30:28 +0000 Received: by mail-pf1-f169.google.com with SMTP id k15so9094604pfp.6 for ; Sun, 13 Jun 2021 14:30:23 -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=v+U5yHEUqdMTROj7uMRwfEteYut+EmPEud6gYJLYiFQ=; b=sgY/Idbxj8Sp5P11pa+MocZHR0W9u/r4+nJ5n/DikJczLPMbCsbm/Ym0rxJ0NAtKmP XKlAjuN7WIrjP8qdgh8beks0junSpWFtWqaBrUKLLYuwDvt5YtnKKpc89NoJ1JcElfqk 8yTq2B+6UrVvPxLy+zVT1fUP/PNqIGu/nxstx+C/Qr+NZRnRK45EpnnK9qR6BcDNemn7 qczobuBjEtx6yFsWFw19N81CyZCeejGA8du4L2xAk/JGaS3piHM4qps1Dmatv47wxZR6 4ZJQR3qUf7Q4lkRj1Vk9d4sj8hnHu1oJ8lOm4ASxSE/k7IXm65omhfn1/kOTAUi6DBdA Bz7A== 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=v+U5yHEUqdMTROj7uMRwfEteYut+EmPEud6gYJLYiFQ=; b=O6sgndG1rdbdviQi7D62jkvJWQyPqBiWkQBJ+QDCMFHcCqniBjafO/YA2W0Q0iTiep PCUlsMh2gnU0whgd/WkLZyCa1E/VJzUCaPoyaHFmnagQ9PkadSOg3Ub7FAZTuVFX/rIV W+A+WA0DeCJEAqrKM0Yu6DOLECiFe/XO1DP1o/akk4Fq3J+8Sv87gmnQsodrQcP1/FnR Abt1u+7/dsbFQRqMEsWvPFZULEw5wR3ObJYj4rFhKnYds73F27kPAAkuTvNqf6krCHTJ fmeElyVtJp6kmXPDa6AVoZQ5/31ew7qM67E+i/C/rnc+BZQs83SMcyfSfpRnb9IEEWfb 7jdw== X-Gm-Message-State: AOAM530uBXDzjYhxiG9LNeZhBIlcbEnE5942eF7FZgWLHKXPcVzaDTqS 1pybKbPl7PzF4WHorc639zj89KrqtnrNoMA= X-Google-Smtp-Source: ABdhPJxmr/Hrz/E4RLtlhawcGS+HmW1ekreB0+nEtYZjD40aH5KGF5t8/d6QgcB06neLtxja2+pWsw== X-Received: by 2002:a63:6e09:: with SMTP id j9mr14063297pgc.275.1623619763290; Sun, 13 Jun 2021 14:29:23 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id k21sm10609804pgb.56.2021.06.13.14.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 14:29:22 -0700 (PDT) From: Nobuhiro Iwamatsu To: robh@kernel.org, moritz.fischer@ettus.com, michal.simek@xilinx.com, trix@redhat.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: fpga: zynq: convert bindings to YAML Date: Mon, 14 Jun 2021 06:28:56 +0900 Message-Id: <20210613212856.296153-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210613_143026_298474_87F3EEBF X-CRM114-Status: GOOD ( 14.60 ) 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 FPGA for Xilinx Zynq SoC bindings documentation to YAML. Signed-off-by: Nobuhiro Iwamatsu --- .../bindings/fpga/xilinx-zynq-fpga-mgr.txt | 19 ------- .../bindings/fpga/xilinx-zynq-fpga-mgr.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.txt create mode 100644 Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.yaml diff --git a/Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.txt b/Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.txt deleted file mode 100644 index 7018aa89683591..00000000000000 --- a/Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.txt +++ /dev/null @@ -1,19 +0,0 @@ -Xilinx Zynq FPGA Manager - -Required properties: -- compatible: should contain "xlnx,zynq-devcfg-1.0" -- reg: base address and size for memory mapped io -- interrupts: interrupt for the FPGA manager device -- clocks: phandle for clocks required operation -- clock-names: name for the clock, should be "ref_clk" -- syscon: phandle for access to SLCR registers - -Example: - devcfg: devcfg@f8007000 { - compatible = "xlnx,zynq-devcfg-1.0"; - reg = <0xf8007000 0x100>; - interrupts = <0 8 4>; - clocks = <&clkc 12>; - clock-names = "ref_clk"; - syscon = <&slcr>; - }; diff --git a/Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.yaml b/Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.yaml new file mode 100644 index 00000000000000..29daca4be47fcd --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/xilinx-zynq-fpga-mgr.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fpga/xilinx-zynq-fpga-mgr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Zynq FPGA Manager Device Tree Bindings + +maintainers: + - Michal Simek + +properties: + compatible: + const: xlnx,zynq-devcfg-1.0 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ref_clk + + syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to syscon block which provide access to SLCR registers + +required: + - compatible + - reg + - clocks + - clock-names + - syscon + +additionalProperties: false + +examples: + - | + devcfg: devcfg@f8007000 { + compatible = "xlnx,zynq-devcfg-1.0"; + reg = <0xf8007000 0x100>; + interrupts = <0 8 4>; + clocks = <&clkc 12>; + clock-names = "ref_clk"; + syscon = <&slcr>; + };