From patchwork Wed May 4 17:55:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 12838343 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 9A9ECC433F5 for ; Wed, 4 May 2022 17:56:27 +0000 (UTC) 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:Subject:Cc:To: From:Date: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=stugjnI9jaBGEC/1f/tFjUq/z4Q0ljSrWvugmCxaXXQ=; b=ukJMNJ6U77CTto 2MW74bQrUJ/wh777tRbvWqozSWClswm11eKeCHFW2p+LJuheQDT0/6Kb8OOpCTk3OCxBAf2bxsGMh 5mU32fGIpkRswryTMvyLPaQf6meI5pUD/M7Xx+T7Kha+LCftp5MlC6YrL0CPe3t54Huddk/T0gfIV JUfHynagYglz5gODhFwwivIIiLoyL7Uw1xEmw09RiP/UAv/03f5FkWkm9AO+qofK6xqrWWr2wnnx2 noyoc6uzytZxYCp45jmliW4EONrI1nWA8e4bk3G5cUDspRkMz6hb3/ZwBevJo1wgXpAgd61+UStzx oYxSRgiHCtXREax3wjoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmJDS-00C3Fz-N8; Wed, 04 May 2022 17:55:10 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmJDP-00C3FY-7V; Wed, 04 May 2022 17:55:08 +0000 Received: by mail-ed1-x52c.google.com with SMTP id be20so2540458edb.12; Wed, 04 May 2022 10:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=ANFltAUzgpLPAk2XFYFvIrUK7ys9TmLY8dbgINzBWf8=; b=cgUcWauL6x/U8+l2hXpSKEshHXoEOVT2KpRMdSxOS4mxRFAeHAsJRdDfEFok5DGo0u HBeUK4u0dnN7dwNrPR5AW4q7ey38U2NjRsUEsFMurtAduXSfulH0oX3RRUbax3q11PfB VViVChudwB/AjS69qvwcO1zlRsIjb5cNK1j8lMOxTfQuMm5kKs5Pj8tux0d80RJpkymw FQhrviVudNGeEp63D6OyYD9YT0oHJR8ztqpy/rwAN33zDc625l9QDK4tvYtMDtIadQrD gHPH+KbL1Sz70dl84NQVc6Stp3ySoiVxgK7Rgb8APVYhGel4ribsF3hiT9utNUEq6mDi VTtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=ANFltAUzgpLPAk2XFYFvIrUK7ys9TmLY8dbgINzBWf8=; b=iwoKu4vJFlHgNhrIIfq69ChplsAJyzJkwyt508MDGg1iH8K6/KPGbhTUR64hS9eajK awR8J4odosDal0EWFzs149biH5pFH1BrFuYwK7hnEnkQAup3A0clmjHy0N9wHcd+wV41 4OGNhhcPYjHEt7hgJwlLYqnBLvPRi4wvhquhQRnbZtVz5HjgoL6UEm4EKtMYhcfQ40GZ Uy1j1qrXI4qK7mKOrauC6ZBwgd8w6UnqCgTr3D5L4U8VAOUhGBTzEZ3kDc/HVy8aH/R4 AEoIfddlUzaci9WC2rZZl4BotLGIqVJgrbNpNzMc4Gha6C2/u+lIS6bXQvyRDo3TZqyH N/FA== X-Gm-Message-State: AOAM533K5rFXw4lXFr26eR2kVlOORS5JQK9g0hHkEQ6Brn0+ACPdcF30 al7HZJ/Ysm+BtykJEoGXRfl0vB1zcFM= X-Google-Smtp-Source: ABdhPJwEVMlQfgCa8wccsDAGEE4RbYmkj6BwXQXME2JWXPMoEMHLt75jWLHbzFKUg5xzO/KELY0WrQ== X-Received: by 2002:aa7:cd7c:0:b0:425:e59d:7353 with SMTP id ca28-20020aa7cd7c000000b00425e59d7353mr24145369edb.365.1651686905184; Wed, 04 May 2022 10:55:05 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id v3-20020aa7d9c3000000b0042617ba63cesm9366665eds.88.2022.05.04.10.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 10:55:04 -0700 (PDT) Date: Wed, 4 May 2022 19:55:02 +0200 From: Stanislav Jakubek To: Daniel Lezcano , Thomas Gleixner Cc: Rob Herring , Krzysztof Kozlowski , Krzysztof Kozlowski , Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND,v2] dt-bindings: timer: Convert rda,8810pl-timer to YAML Message-ID: <20220504175502.GA2573@standask-GA-A55M-S2HP> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220504_105507_313775_13B23C96 X-CRM114-Status: GOOD ( 17.60 ) 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 RDA Micro Timer bindings to DT schema format. Signed-off-by: Stanislav Jakubek Reviewed-by: Krzysztof Kozlowski Reviewed-by: Manivannan Sadhasivam --- Changes in v2: - Collect Krzysztof's and Manivannan's R-b's It's been a month since the original v2, 2 months since v1, so I figured it's about time for a resend. .../bindings/timer/rda,8810pl-timer.txt | 20 -------- .../bindings/timer/rda,8810pl-timer.yaml | 47 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 48 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/rda,8810pl-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt b/Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt deleted file mode 100644 index 4db542c9a0fd..000000000000 --- a/Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt +++ /dev/null @@ -1,20 +0,0 @@ -RDA Micro RDA8810PL Timer - -Required properties: -- compatible : "rda,8810pl-timer" -- reg : Offset and length of the register set for the device. -- interrupts : Should contain two interrupts. -- interrupt-names : Should be "hwtimer", "ostimer". - -Example: - - apb@20900000 { - compatible = "simple-bus"; - ... - timer@10000 { - compatible = "rda,8810pl-timer"; - reg = <0x10000 0x1000>; - interrupts = <16 IRQ_TYPE_LEVEL_HIGH>, - <17 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "hwtimer", "ostimer"; - }; diff --git a/Documentation/devicetree/bindings/timer/rda,8810pl-timer.yaml b/Documentation/devicetree/bindings/timer/rda,8810pl-timer.yaml new file mode 100644 index 000000000000..f9043a4488d6 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/rda,8810pl-timer.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/rda,8810pl-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RDA Micro RDA8810PL Timer + +maintainers: + - Manivannan Sadhasivam + +properties: + compatible: + const: rda,8810pl-timer + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + items: + - const: hwtimer + - const: ostimer + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #include + + timer@20910000 { + compatible = "rda,8810pl-timer"; + reg = <0x20910000 0x1000>; + interrupts = <16 IRQ_TYPE_LEVEL_HIGH>, + <17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hwtimer", "ostimer"; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 6d5c2c035f82..cbf91f0ecbfb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2563,7 +2563,7 @@ F: Documentation/devicetree/bindings/arm/rda.yaml F: Documentation/devicetree/bindings/gpio/gpio-rda.yaml F: Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt F: Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml -F: Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt +F: Documentation/devicetree/bindings/timer/rda,8810pl-timer.yaml F: arch/arm/boot/dts/rda8810pl-* F: drivers/clocksource/timer-rda.c F: drivers/gpio/gpio-rda.c