Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp651334ybb; Wed, 1 Apr 2020 07:17:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtH9C+/ESbuBm4IbK6yre8hJxn9AzBOyN9xLSP5Sv0BmoBord8WXT9inO9S3CPajB0tjQq2 X-Received: by 2002:a9d:69d5:: with SMTP id v21mr17672880oto.197.1585750630057; Wed, 01 Apr 2020 07:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585750630; cv=none; d=google.com; s=arc-20160816; b=az9a1CuRng2EIGhc2YJltQ2Rvfz+MkO5r/aYJTVNUThRkBRgguDPUqK8A6HucHIal+ ceIXKHh4dKAClnOzg2TXz2sNjeFb5X7Cl07gqznY9QhXgtTCF6YmUxwqZK9buSgdkJLo xi42lmjC8n4ZVO/CLG+HjxmDItEkubyeQftmzyNu4Ea/asGX5n1YZrjhM8fBfKAeUBfY 3ANSk9OeZCB97UIWgGz/vSiaUbmRCHR+mKvN8wGu/RVeigFC+y8DN20Nbr9QynLKTt81 0XfvROZuQobjSzCxIQtUlp8rrFURMSS38odzziu34gAmk6l2dzqGMXHqj3eFAlIdklaF pdSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LEOmiIfnZf4UuskndEqwJK0t3v/ejJbeSlL/pR1DNyY=; b=H2lvX0G9DMR+K5srqfHUcEn1EJG01JoEB7I7E3PWF0BumxueV7TcsXg8nTlEfrq1Ov uCH3LfQ0A2bHl94VIWeG6la05GAbiwZBHD0xmWQgmDZVwxx6aqsWa+R+H3YbfNR19/xF 27fobYYgbVlrpOHAROZ4ReAYiv+oSGAiHsn0OZIiOVXVuqlYzARJApDmU6pTZJ5xZMDq 4rE6BUCI79AwzQKTg5gVyPWK9J46LoS8mnpOfzg4xl8BNdqP/8BQr/9A7ZVB70LouOdf FAo9KnccIm9FD24MZpWjLX/48ZlfAwU4H3xpUYN3IcLYginRohZ95dsLuzVlG5azja6f Z+iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b="H+s+nfy/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si990360oig.189.2020.04.01.07.16.57; Wed, 01 Apr 2020 07:17:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b="H+s+nfy/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732995AbgDAOPK (ORCPT + 99 others); Wed, 1 Apr 2020 10:15:10 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34388 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732826AbgDAOPK (ORCPT ); Wed, 1 Apr 2020 10:15:10 -0400 Received: by mail-pl1-f195.google.com with SMTP id a23so9689927plm.1 for ; Wed, 01 Apr 2020 07:15:09 -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=LEOmiIfnZf4UuskndEqwJK0t3v/ejJbeSlL/pR1DNyY=; b=H+s+nfy/mK20JNRHDfxWOWd+Eu1wky61/AsKXrnLiemzPhc0oG6THAVOQLhUN4ezbU nLEkYb1P6HSIMGxNNd8MvbzSKzDUqxlYLqbyoV6XGa+QcAdrl/DXnGVMdq7q947FyYju o6rdjgCKc7fpUgxjE7KHoGgd1tZOZcQuIA7k22VU0kDUPBs4IIpg+BCy9qW/uiN9fUSa 54oEd2DXtNwycXx4WJouzTnOWNnvm1dry7hX8MsulEJU9xGBxDN4D1muHElbWFsme9KR XlVYMCrHajBoqBUDV4egDmJnWUZ3/p8j9W4JV1xK8bdnzNYzN9VdFbBfAeWsVt5wv5Lq QQVg== 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=LEOmiIfnZf4UuskndEqwJK0t3v/ejJbeSlL/pR1DNyY=; b=j9Ac67Dnb3ri2t81lvqHt/YBNF5u+T0lbFXThAGdKVbywRNW1FBc0uNef+i2FTGBGo vW6OMj3nxRACjofpzMA7eERPFKGJU2dm/6FB0z57D5uuYnsXtxiGd0Y3vs03BJwf+gyF z2hddXE86CiqWfxVoKSD+CceV6UaPTIx/uLaLP2RHTohckY8r2uEDVTo1d0OrPv3wNtP 7yZJD0JoavAHVtQCjNudgvijvx1uINncBx8U/KiEH/2X+3FIZFCCpa3eXnGFMHJlwvdI suvauNb4ZqNp33nVlyMSejhPIMBs3e1LSVWP74CXo4DkTnC1Ok/0nMapxqH7OCEeiNBw xNYA== X-Gm-Message-State: AGi0PuZ/22bkwVfrpwJozShQFD/+8bYHJQo3I5IOJe4kJnnnBcKshC5y SZjM/VMV6OTwdL95q+OwwHyZ X-Received: by 2002:a17:90b:1888:: with SMTP id mn8mr5243859pjb.115.1585750509254; Wed, 01 Apr 2020 07:15:09 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:bf52:1f8e:88d2:6ec]) by smtp.gmail.com with ESMTPSA id r59sm1805406pjb.45.2020.04.01.07.15.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 07:15:08 -0700 (PDT) From: Nobuhiro Iwamatsu To: devicetree@vger.kernel.org Cc: Daniel Lezcano , linux-kernel@vger.kernel.org, Rob Herring , Michal Simek , linux-arm-kernel@lists.infradead.org, Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: timer: cadence_ttc: Migrate timer-cadence-ttc documentation to YAML Date: Wed, 1 Apr 2020 23:14:49 +0900 Message-Id: <20200401141449.66905-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The document was migrated to YAML format and renamed cdns,ttc.yaml. And updated the example to the latest format. Signed-off-by: Nobuhiro Iwamatsu --- .../bindings/timer/cadence,ttc-timer.txt | 21 -------- .../devicetree/bindings/timer/cdns,ttc.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/cdns,ttc.yaml diff --git a/Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt b/Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt deleted file mode 100644 index eeee6cd51e5ce..0000000000000 --- a/Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt +++ /dev/null @@ -1,21 +0,0 @@ -Cadence TTC - Triple Timer Counter - -Required properties: -- compatible : Should be "cdns,ttc". -- reg : Specifies base physical address and size of the registers. -- interrupts : A list of 3 interrupts; one per timer channel. -- clocks: phandle to the source clock - -Optional properties: -- timer-width: Bit width of the timer, necessary if not 16. - -Example: - -ttc0: ttc0@f8001000 { - interrupt-parent = <&intc>; - interrupts = < 0 10 4 0 11 4 0 12 4 >; - compatible = "cdns,ttc"; - reg = <0xF8001000 0x1000>; - clocks = <&cpu_clk 3>; - timer-width = <32>; -}; diff --git a/Documentation/devicetree/bindings/timer/cdns,ttc.yaml b/Documentation/devicetree/bindings/timer/cdns,ttc.yaml new file mode 100644 index 0000000000000..c532b60b9c631 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/cdns,ttc.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/cdns,ttc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence TTC - Triple Timer Counter + +maintainers: + - Michal Simek + +properties: + compatible: + const: cdns,ttc + + reg: + maxItems: 1 + + interrupts: + minItems: 3 + maxItems: 3 + description: | + A list of 3 interrupts; one per timer channel. + + clocks: + maxItems: 1 + + timer-width: + $ref: "/schemas/types.yaml#/definitions/uint32" + description: | + Bit width of the timer, necessary if not 16. + +required: + - compatible + - reg + - interrupts + - clocks + +examples: + - | + ttc0: ttc0@f8001000 { + interrupt-parent = <&intc>; + interrupts = <0 10 4>, <0 11 4>, <0 12 4>; + compatible = "cdns,ttc"; + reg = <0xF8001000 0x1000>; + clocks = <&cpu_clk 3>; + timer-width = <32>; + }; -- 2.26.0