From patchwork Fri Jan 28 21:44:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 538015 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56703C433EF for ; Fri, 28 Jan 2022 21:45:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232513AbiA1VpF (ORCPT ); Fri, 28 Jan 2022 16:45:05 -0500 Received: from mout.gmx.net ([212.227.15.19]:39475 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232469AbiA1VpF (ORCPT ); Fri, 28 Jan 2022 16:45:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643406287; bh=P84tyrXYJDCkUgk9lKDmYiZswR055eF1GEXuSKNmM7g=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=AlWODT9ntTG9aoafUzGV3ofl2a1P8r1ZculmqAs0zR19VnHpz297JT/3faXeCsQAN O5q6qC+dEPjoh6cAoD5tBA2tTTDie0JfbaBwayT20vjuD2npZJRTxb0VWiGQF/LMag ZiHcEMFkd+y9Qc0nr+QKF0WSlWVxL0MRdx7hn4zI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([89.0.80.162]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MwQXH-1mM0vC1NUj-00sQZ6; Fri, 28 Jan 2022 22:44:47 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org Cc: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Daniel Lezcano , Thomas Gleixner , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: timer: nuvoton,npcm7xx-timer: Convert to YAML Date: Fri, 28 Jan 2022 22:44:26 +0100 Message-Id: <20220128214427.1990183-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:7zFHR3oZpCRvermhRWwMjjfCEewDVqTz/9ti8jC0h0TomfWOKKc 8rmAh+wu3xGqphVWIZlPwO45zoBn4aIon1nqFG7MbAahZVLifYMJBGY20kxHYeHsQ3mcKcW y92cikwXkqrP75bKDw4DeC2U5fRbzxIi2vAOP+RzpLji1QiEVv295cSFoxLH1mTywCNvVhY 7jyv0SAV/w80Y/WYyT9lg== X-UI-Out-Filterresults: notjunk:1;V03:K0:UG0/RIO59cE=:6E1eBsUUTcW3ap1iXFiUIo D/rA4pLmT4Owlbhrmz4ad0ChIq+POLcMpN4hyGp8OUEKsjS4QzqLjqniClZTy0HS4NezWy6z+ AuXAkmbrR5nu72PehsGQlZy6/4afM/FunCVQ7XPK9NJxyJbmyWTUCtNLXlnuOiEbJwRJuzkqN 7GvD0+mPIe5P4OuuvRuL/FGrm36Dv15nf69U0bT6MEzuGn182ry8AgLKyzpljKR7O/C0q5kLr C6IIwbMP3rxHXTnOltWGh9tkCiMsHSUqDVHdzRsKzUYzozLbaC8TGxqnjGHX+30m0+mgpJxUh HVBPywMmv2/fqIbKkfdWOGu2FfvMxePiL3LI73VendiHJ3b9uRH7YlZ1VyuKlwY30Na8A2cZy 200CahOBHCsUh8rUo3QEHGPutFUPUpbHLhPO3ZO6EaO9UDDFnucX7m7fTYLtrC4Wa1YIZLGLI GMkPSD2Xr1pBj4XgB2kKVSgTE3jiJQrToMU0XgwMXvgoFaEMoYGSid52NwaNsli2Ca8jmW/SA A+T6ipBnu7dCZbDmzcUEI6af/rBkWgh+0P3R2ymvut+/lXJWGH4QNtE7iIz0kpd/A3+ntAETM 20O8iRHj/3pHK32WLWg0Uzdk6qtPEovDQevuYGwib9l+qXEmWkAaT9WyR5LANDKzQoPDIu5MT HxDBGjrAGKSXRMKmK+LP1mvK2bzIXk2ChMYrzSGSdvuSoDSUF3gecPQdLKLQnnxT5+/hV+OP/ fwcocVN1PgPDy0Xj9tQTk35lQAEgohSWgHL1kEi0AGBrtrlrH2ZlSe9KGqNRDzhArP8yCbIEF 3lx0KPFTDOXDytdoY0U8XhKw9nABPg6q2y3ZhlZHUxNnoK4iaVbTcWsWaabHmu1gXidTJ9LoK QO0ScEL9CPfOTfSLzhWOwtUHXNXLHP78DEDT+DDRaR3cvL2auDRkYk1XgR4SxFcBdzWToqp9P 0wT8FCtUlge6mFWIgyZpt8JzEK+N4U7FuROLFfD6gZokf2TJIZh+uy4naGxa6ARQTgwja6dJj yKvhFyWzvnkuUXoE+BeiUcyHsfhjlGaK1yaKvA9+0cKlMNTEhMrx98Dk62AvM8mw6X2hzPg7K xCtProyB+Tw1jI= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Let's convert this devicetree binding to YAML, to make it easier to extend later. Signed-off-by: Jonathan Neuschäfer --- .../bindings/timer/nuvoton,npcm7xx-timer.txt | 21 --------- .../bindings/timer/nuvoton,npcm7xx-timer.yaml | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.yaml -- 2.34.1 diff --git a/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt b/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt deleted file mode 100644 index ac3a5e887455d..0000000000000 --- a/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt +++ /dev/null @@ -1,21 +0,0 @@ -Nuvoton NPCM7xx timer - -Nuvoton NPCM7xx have three timer modules, each timer module provides five 24-bit -timer counters. - -Required properties: -- compatible : "nuvoton,npcm750-timer" for Poleg NPCM750, or - "nuvoton,wpcm450-timer" for Hermon WPCM450. -- reg : Offset and length of the register set for the device. -- interrupts : Contain the timer interrupt of timer 0. -- clocks : phandle of timer reference clock (usually a 25 MHz clock). - -Example: - -timer@f0008000 { - compatible = "nuvoton,npcm750-timer"; - interrupts = ; - reg = <0xf0008000 0x50>; - clocks = <&clk NPCM7XX_CLK_TIMER>; -}; - diff --git a/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.yaml b/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.yaml new file mode 100644 index 0000000000000..33f9bacc8423c --- /dev/null +++ b/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/nuvoton,npcm7xx-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM7xx timer + +maintainers: + - Jonathan Neuschäfer + +properties: + compatible: + enum: + - nuvoton,wpcm450-timer # for Hermon WPCM450 + - nuvoton,npcm7xx-timer # for Poleg NPCM750 + + reg: + maxItems: 1 + + interrupts: + items: + - description: The timer interrupt of timer 0 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + #include + timer@f0008000 { + compatible = "nuvoton,npcm750-timer"; + interrupts = ; + reg = <0xf0008000 0x50>; + clocks = <&clk NPCM7XX_CLK_TIMER>; + };