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: 459589 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, USER_AGENT_GIT autolearn=ham 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 A5E7AC48BDF for ; Sun, 13 Jun 2021 21:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7007C61357 for ; Sun, 13 Jun 2021 21:29:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232106AbhFMVb0 (ORCPT ); Sun, 13 Jun 2021 17:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232099AbhFMVbZ (ORCPT ); Sun, 13 Jun 2021 17:31:25 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F4212C061767 for ; Sun, 13 Jun 2021 14:29:23 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id w31so4573486pga.6 for ; Sun, 13 Jun 2021 14:29: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=FekVUBT/Yw1zl6AVOuhHdgDFkeCFUk59rertXc17ALpfs/cr/krakFPmIkHKt06e94 mHRwf6VcxjiGcPI3DKIPUX3iTOe0Vlh68jsyWVG3hk+bK5WKhiBEKYYRvCk6FlTtFKN+ t9pGp8T22MIoOBv4Yb8DqjQQVPUKtQ2Vqrv5NtDfGs4ja7RxLzLCTvZXu99u1HNSpoAS Y01jhKT6XJHShJ6ZGPMpLkkgY6YdCskOM+5/FF/MQniGQEjQ8hmhPHWlfP9+xSfpjgfU MeD26gC9cn4u8g0YcUHCHDgCipZszonk6cSppqyhz+XDrkwU5CD3PIREpEdxEqkRZ3ce mRIQ== X-Gm-Message-State: AOAM532gUWJcsYHslQWFq2hGj6u78t3JnXr1tIdFR9vR8/uBHpQwK6EK qExo0eCVw+V+0DGdgYyQB/cO 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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>; + };