From patchwork Sun Jan 30 10:27:02 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: 538307 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 B8C3EC433F5 for ; Sun, 30 Jan 2022 10:28:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241003AbiA3K2R (ORCPT ); Sun, 30 Jan 2022 05:28:17 -0500 Received: from mout.gmx.net ([212.227.15.18]:40307 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238803AbiA3K2O (ORCPT ); Sun, 30 Jan 2022 05:28:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643538476; bh=hLhVxqGCTT0SP56FBjtCArN7ldgzwA2hHFxUD+0qoX4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=jvwp6E6+c0I1HPRshmZVKx/3PmawessslXIx0iGawpZgTE+JRA7bI7yJlPwrz2STn S4UgugeSjEWGMdakugdAqTlr8wM3l3pJkg0BIqdy82vUlo9rfBOn2qnI6os4oB89Si fFoNLLAoi2vkEA+jqo1tfhiq1KHg5HVEQKR831dA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mn2W5-1mUrFb2Atz-00k7Ri; Sun, 30 Jan 2022 11:27:56 +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 v2] dt-bindings: timer: nuvoton, npcm7xx-timer: Convert to YAML Date: Sun, 30 Jan 2022 11:27:02 +0100 Message-Id: <20220130102704.2892072-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:KgtyDL+sIGlvIqmFNv5lxED6AgqBgd0MW4vhsZxXY8xPzRN58ac pvD1snTbOu6LxvDIvsPXQXg40l3eL6So6P/nIgrnSyGjL6NdoZXO1gI3lWkuj8h9joAoWk0 U/dFm0n2p/o3s5ujR5/OM2m9t9vuRGqIII2hrMI1ubtRQpe3I2+8A9LobdXZRRUvbx68GrT pWNj/e66MU/c9cRlsNUUQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:hQ45Lk3Mggk=:R+IrEDbT4qG6RbIBApp5eG 0x4AvFnZDxms0Dl9fm/Q0BnXhMkNcQGlH1hR2FgKyUTWEWZDtkwBJ6Fko925mbx9TZH5YPiNO Dr6qGq3UQfmIH2ff6AWPAw+6H2pzXAREPJsFViTMB0Yvsvv5JiziHwPIElqReI04WdAeF1Km+ invSUMnlgLC0C+VC6XC1ZbQQT5XSnI7UTSPXps2bzzQyRX8w/mwb8b+lrM1/6E4NbOTVkmPzI Kd7PU7B43cqBziZcuA215YVAU5UcsK9KU4F8uqtmsT8DUGDx3r0U0mIO80/x+aDJXddCspbL3 FslEmtXsyvNgPuoSoKeVjvA+OZiZTpVhn9IHeV5wrOQt2gJdr0iMrQ0iaiKBsYNkrFB6xnRVz j5qWGrjh8tU5TP5en3NniU+ozZdz02aIq0+6mNItk1axPNvUqk8rr1djuU+e69DoLN/iJhXJQ ZGSz0JanUaCxNUkR/eisEUfgEJksy25i5D7ihu2E+zuUnO6PXXaSeC9lZY7fgNkDJlrcdvFv9 hrxpnpHlLVCpFRpPlF4ZQVKP5ZTm97UMoJz7GBgtLXEyT3YbsA9INiRYUqOoYhC+R2YW9+MBT T9OuxHHD6FogGvaLr76gDp7A87qRCqsSabcZYXDS89eGjEVcH1Kf6SkzJa/7YOe5H+JzVCwo+ Ez9msY/8hvNPUhtp0TmadZU1qyk0SgIwmR6hK1ldVTjmkAWJ1jW9eMIRT+yhgg2cnr1f3RACy eAlCrGxOk1H28Ychc5mmzIRjrSo5Xu2il3+gU1kvN2hGT4KiQtqHdv/4/X2INy2dHc/nmVqQP 3lEpHdViBnqPYgz1KujlbNsoagPgPY/dDjC8qHf8jXrtzpJLqz/GWWid+UwvqqNtWm38H5ofI JFlgdZ4WA7gDro425m0pQm0YAEKv5hkRNRGjWfN1VlI6E3QMVy1hiRmzN4ppDIRPFJ2pNd8Mt wkDIYR7xbCW/qSbwqNGZziRGdfjDf6pPhfbLD8BNlscffxUVziydvS6YjDet4vYbntuHFjavk wDddxQbytywW6lmfGsGonxuO5P/RlLhGwwXfdS0huN2ali557LQQgtrwW/vL71u1kcxrbN9ST EuI4r6ZophnO4U= 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 --- v2: - Fix nuvoton,npcm750-timer compatible string --- .../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..0cbc26a721514 --- /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,npcm750-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>; + };