Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2548546pxj; Mon, 31 May 2021 05:10:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3zEcVv22aQLk/E7cmu9h4QWgVxu78cvSeOZ/VmyECNoiCn0eLzRLR8j8eTaTfjT0QNpj0 X-Received: by 2002:a05:6638:2728:: with SMTP id m40mr20407770jav.55.1622463039546; Mon, 31 May 2021 05:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622463039; cv=none; d=google.com; s=arc-20160816; b=GTjsjAPgixNiFQTk5NM4D+2afpin7ZA5iZhbmTyCwjJbQVPp8q4c3NSGobzuktyPnm eNfLfs97gv8QW28kUJ/1tlErGa4NCG+PpNP8QVVSrUyUFdiqCt0X8LZVVmUXPezxutjO nnmmBDdIOMNd1bExv4WW3hfZ/jtMzBG5ujt+t9wLbPGtZllE/I6fRZW6zYB2DITV21Sz KqBcyo8GSdMRg67NAQ7i+BIWoYhCV72Tw+YSMMT3/Xygyz+3m/owb3vbIZh1IoSG+XAz 8/gbVUMmKkskQwgB9j6otNcsLRCk1s9gkENwx3TUp2DST62xntqoFc2yRWMwRLX5mb11 suXw== 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=9giE7g3aTHBAeWI8diKUX6Zo2VQVs3w7fN4PhUxZkco=; b=jey5DwwZxYTLA11YIcaHK8bm1qFURe2aRmj+k8mEfOLZ9CtUD/FFHgCWOdhXrpavAi 0ktaUGVd99abPkofhtQ9hsM88O5NA5ns/H0AQPHxNG85V8Fw8rt9tfyxKuWh64/oZL4b sLEdl5vFNaXNj551g95rpyF70qC6q1UDUNoGbhtLL5dfJ4EPyu5btOuXIwaoufe7QAMW ClzaAJwZKQHJgKTkk18mQRbRorRwq8UzWIoL/EreX3/GrWing4KM70BPyO0n7IReT9DW 1S1gygyhQTIc3wAp8dk0kckE7FfHONEqKCyrkbx4YthkFDwb+DRnieEimdOl5t/+t1XY oQeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=IO+ET87n; 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 t13si15768133ilu.151.2021.05.31.05.10.26; Mon, 31 May 2021 05:10:39 -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=IO+ET87n; 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 S231397AbhEaMKF (ORCPT + 99 others); Mon, 31 May 2021 08:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231449AbhEaMJs (ORCPT ); Mon, 31 May 2021 08:09:48 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA47C061760 for ; Mon, 31 May 2021 05:08:08 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id r1so8196774pgk.8 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=H3cvDwATJke8b9SFWMwylTLGFQ45F3kBP5u6OQxUG1KzOnXb8sXssXD1PAtXjrTPZ0 XL3Prs4ov2mH1GIjvh8kj223H7x/2VlWOH4jstBmkosVJ1aCAtO8QUfO+nWwwEgswn80 z/KZaKe8QK1Ee+l/tzLaGJciM5efi6nNwfOFE2W1opuKVqeRq0xMEVaAevYZ+7qhSysr ayhYKnfrax+UKNxLvr7NUQhx+au2RKTN7w7v1NQSmhOUhqYWHxpkghFF2XmbJ9x+SGQ4 A92gyoHK4bfm5OThjoYVE49KL8iGbCP9u1URylqXclpO1CEdTzdGvj+gZxTqTV5ELqFg fu4w== X-Gm-Message-State: AOAM533N12RnGYslJtL8cdvcMbqgyIhFlYRS3wGiwqu9ZNV1bm6h5bcr ZrSCMJib3P5thwaUgLP3vCEt 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert gpio for Xilinx Zynq SoC bindings documentation to YAML. Signed-off-by: Nobuhiro Iwamatsu --- .../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>; + }; -- 2.30.0