From patchwork Mon May 31 12:07:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 12289199 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=-17.1 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,URIBL_BLOCKED, 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 E931BC47080 for ; Mon, 31 May 2021 12:09:59 +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 AAB3561287 for ; Mon, 31 May 2021 12:09:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AAB3561287 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=MmT7SxS2tIV8vlL1QCHTaOEoU8wi7dKikfQ0ufSqoAY=; b=dV0W+Phznut3oI ZzC44sLbW1wI2kCmajKRHL3xTuHtBIGPCm0OIBBLbZ44Y0QvkbUhx+MDsuvZfPXshpjgE/sWpKMzy jU7AFRFKXov1kpZqvCubZGisgrqiT2PsS2K14VmnxvKNhBNTPP9EbX5wNb3uHFAorL9wsk36KqSNc QzyaVWjSYpEjSfcPGs4wzNesmDLEZTZfa7CzRBfw/o38cbBD34V/OSAY7Vkq3IgJhAk0Qy2p8BT22 jRSLg7LemSIsiYbXKQC8AWuDgwtAwQy0YdpIOUf9FLUSfSy1i38R7HK8AWJaPQhtDmPP5wbAe5Sx0 4BSs8Loe1TjQMxJLLvhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lngiN-00C6Ho-Fe; Mon, 31 May 2021 12:08:15 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lngiI-00C6Gl-UL for linux-arm-kernel@lists.infradead.org; Mon, 31 May 2021 12:08:12 +0000 Received: by mail-pg1-x532.google.com with SMTP id 29so8198077pgu.11 for ; Mon, 31 May 2021 05:08:08 -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=9giE7g3aTHBAeWI8diKUX6Zo2VQVs3w7fN4PhUxZkco=; b=IO+ET87nDkaC14cKJz5sx9p5HsHbkRWcBEfREc6D93cSLqKaXfqOd85AZ8a2LcPJmk qjDv0xHGlSQ7H+ZVpcgBaz/iCgb1iNioQ30yjMuorhfin2ULwOPUHoRiZv3q8hvMRccF gJCSaStw+8qOytvlnomWAprNjtq0VmduvYQawVPewy1uSpgybLcdpqhRebkPJEyLBt9o L6qE0Txe1/dR28CgAwG0iOQuZdgP5lh5AkCDkaXbi25N8IWug/KECI04PuZkqewZCpn1 VPVGFM1OlKqUkFyhIIaVXBqyUte6hFN38H56nzfX4LYLkSFKEiBUDDVscHtOMWMwychr R4pA== 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=9giE7g3aTHBAeWI8diKUX6Zo2VQVs3w7fN4PhUxZkco=; b=lsyaZg9/BzNG98HrDqI1Ei2iLEw4BGeJhcCd3acFy88FYThjAk9/UaTcuCeL/+uBGg Z3eyAH3boPj938NcF68G2FI4gnC8b35e5A7nnEwVfpuUbrEcMBc/OrhtDjCnUhpF3W7a OY3/01EKMVrOgHV/hR9tMoAtHFF1WPyETjlgpDGpG37wdKMGipEWEC1+cM9LhAXsNFI5 wPYrYMY+gygqfvvdE92KBjt2FxUhi5HYl4rRrMbWo+MlvkrIyH0OVRgZRygwcSGyCB80 m+2V9AyxVOOhnD3iTrZXwIEaAkg05HrkVhuHvXZi86o1bll+GKd3y6ztVK+AUwTLpcz4 fuBQ== X-Gm-Message-State: AOAM532MJlaxS9pXdoWGMdpKDnAgbZYTMofiPwqIRdYLWOYn+hSD25vJ gUJneZsbKCoTv2KIETCoZIhD X-Google-Smtp-Source: ABdhPJxmSLxiaSi1QQtJcRjqqIJZYOT3XWF7iDtUp4AAUC30VrYstwj3UKXVVw8/joonsuLFuLGslg== X-Received: by 2002:a65:6a05:: with SMTP id m5mr22252815pgu.319.1622462888382; Mon, 31 May 2021 05:08:08 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id gn4sm10925474pjb.16.2021.05.31.05.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 05:08:07 -0700 (PDT) From: Nobuhiro Iwamatsu To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Michal Simek Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Soren Brinkmann , Harini Katakam , Anurag Kumar Vulisha , Shubhrajyoti Datta , Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: gpio: zynq: convert bindings to YAML Date: Mon, 31 May 2021 21:07:53 +0900 Message-Id: <20210531120753.719381-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210531_050810_997903_343D7F0E X-CRM114-Status: GOOD ( 17.22 ) 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 gpio for Xilinx Zynq SoC bindings documentation to YAML. Signed-off-by: Nobuhiro Iwamatsu Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- .../devicetree/bindings/gpio/gpio-zynq.txt | 36 ----------- .../devicetree/bindings/gpio/gpio-zynq.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-zynq.txt create mode 100644 Documentation/devicetree/bindings/gpio/gpio-zynq.yaml diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.txt b/Documentation/devicetree/bindings/gpio/gpio-zynq.txt deleted file mode 100644 index f693e82b4c0f1b..00000000000000 --- a/Documentation/devicetree/bindings/gpio/gpio-zynq.txt +++ /dev/null @@ -1,36 +0,0 @@ -Xilinx Zynq GPIO controller Device Tree Bindings -------------------------------------------- - -Required properties: -- #gpio-cells : Should be two - - First cell is the GPIO line number - - Second cell is used to specify optional - parameters (unused) -- compatible : Should be "xlnx,zynq-gpio-1.0" or - "xlnx,zynqmp-gpio-1.0" or "xlnx,versal-gpio-1.0 - or "xlnx,pmc-gpio-1.0 -- clocks : Clock specifier (see clock bindings for details) -- gpio-controller : Marks the device node as a GPIO controller. -- interrupts : Interrupt specifier (see interrupt bindings for - details) -- interrupt-controller : Marks the device node as an interrupt controller. -- #interrupt-cells : Should be 2. The first cell is the GPIO number. - The second cell bits[3:0] is used to specify trigger type and level flags: - 1 = low-to-high edge triggered. - 2 = high-to-low edge triggered. - 4 = active high level-sensitive. - 8 = active low level-sensitive. -- reg : Address and length of the register set for the device - -Example: - gpio@e000a000 { - #gpio-cells = <2>; - compatible = "xlnx,zynq-gpio-1.0"; - clocks = <&clkc 42>; - gpio-controller; - interrupt-parent = <&intc>; - interrupts = <0 20 4>; - interrupt-controller; - #interrupt-cells = <2>; - reg = <0xe000a000 0x1000>; - }; diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml new file mode 100644 index 00000000000000..378da2649e668e --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-zynq.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Zynq GPIO controller Device Tree Bindings + +maintainers: + - Michal Simek + +properties: + compatible: + const: xlnx,zynq-gpio-1.0 + + reg: + maxItems: 1 + + "#gpio-cells": + const: 2 + + interrupts: + maxItems: 1 + + gpio-controller: true + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - "#gpio-cells" + - interrupts + - gpio-controller + - interrupt-controller + - "#interrupt-cells" + - clocks + +additionalProperties: false + +examples: + - | + gpio@e000a000 { + #gpio-cells = <2>; + compatible = "xlnx,zynq-gpio-1.0"; + clocks = <&clkc 42>; + gpio-controller; + interrupt-parent = <&intc>; + interrupts = <0 20 4>; + interrupt-controller; + #interrupt-cells = <2>; + reg = <0xe000a000 0x1000>; + };