From patchwork Mon Apr 4 15:53:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 12800522 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 61BB3C433EF for ; Mon, 4 Apr 2022 15:54:23 +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=N8/5r2YdwXMr5drWR5T2/Rt/In4LX/MdDVAAvFlzuYE=; b=l4qRZj7Lp5BRAn 1O3+DQybnhraUX26ca7+IRMFVyehRR6gxyVp97Q9YqbaMYR4OhTe5m7+eBRXEfMahw2UcMBnyil7c jj3oJtCj2JZrwQNtSoRAY+D4GzEHBeaBikR0hLERC5GokqgQzNj4yG25bLrVL2c4S4YxgcO8t2y2V V/JdnWvZj6WTMLauhI5R9EzoKBPHy7ol1qPpTACZGHwm/4j80QG2V1uNqIEUr9z1knZres2IYPQmL 2GCDhC7cCAK9i3WVA/JyJqrBNOelmwH4IEFC+om2UJbBe1GfuTkzpOmRLdozrz2wRU6NPt8jaJFGr wV1J5fnOvIDPHc/XJDWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbP19-00FctS-Q0; Mon, 04 Apr 2022 15:53:23 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbP14-00Fcr7-Py; Mon, 04 Apr 2022 15:53:22 +0000 Received: by mail-ej1-x629.google.com with SMTP id bg10so20916906ejb.4; Mon, 04 Apr 2022 08:53:17 -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=OmtvB1Xni4XcAR/AuctQxx0e+3Qbn5XIYUFCQaI+LJU=; b=IErH6U0tNhUU8vEfXOEKllxvqP6wDQePPXjFRl5gQAFvyCiAE+c1BLD7aj7n1hlLnK +dEDAUOSXj+tbMoP8aMJywR3DucL6MOnODJgN/4icDWumqxEFCX2hv91uDZiOBfRDkNp OLQTZM/0mRPaQFObQvNz9CpM3jp3dv8HyhI3h21pGSRrrmELiHFxmZt7FXdcEeSI5SZb GVdHAgv14c2mK7KEF6r1ss72VzUXIAN8O5+JhDr66lWa6MYGOknvFL3ZHqag3xGIETmA SFjpSiMOOX4IJiZLDeLvkGPyFEUxXOi58wFEnfiGBSTsrmwBmhC4F2se1jXGIGxNBNm4 oKLg== 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=OmtvB1Xni4XcAR/AuctQxx0e+3Qbn5XIYUFCQaI+LJU=; b=7/4gcnDd+Mw1PS4mYfqlsV6IeuVmEajR+sT1IqZ1pPKTcKXlb3dFCGAHpLv1F1J83U KIoxKusXL2UkGITkCobThUy3rWyPd4Gc1nKQudzQY0iIrAC2paKll1fMp8JYGd6kz1er dFevkmdFVyYy+0ID0J6zWn9mD9YerdGR94bB+WSSC7Sp+5EfmGA9siwErIgy6qpId2s5 5T6yMQv8U5j6CT0dRYDIPRKH06UVBMEdsxKw/36vNgjySm/11FHEl0aO0OxVsDTrW53u xwgfpvAeNfCaxLkwmHRgTTUMNDmiHspt+Cbjxhb/5WghMWsQjdi5RMwsbQOrmsQW9vWW UMPA== X-Gm-Message-State: AOAM533kX0TIj5KIXdCMIHdMQL12lGZugUt/oclVJ0ITHaKnQwHU4hbx Vvfy4BlsMq1k6+5ZSJUfbV0= X-Google-Smtp-Source: ABdhPJzwJeGc1YsWyZ3XejtT7WJTyL7+GNgDVEBCrVG0A1kNQ2ykFToGbKHEcYTmznych0HjS5D5TA== X-Received: by 2002:a17:907:d13:b0:6e0:b799:8fcc with SMTP id gn19-20020a1709070d1300b006e0b7998fccmr769623ejc.11.1649087596477; Mon, 04 Apr 2022 08:53:16 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.115.255]) by smtp.gmail.com with ESMTPSA id a5-20020aa7cf05000000b0041919e52a38sm5532723edy.46.2022.04.04.08.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 08:53:16 -0700 (PDT) Date: Mon, 4 Apr 2022 17:53:14 +0200 From: Stanislav Jakubek To: Daniel Lezcano Cc: Manivannan Sadhasivam , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: timer: Convert rda,8810pl-timer to YAML Message-ID: <20220404155314.GA2944@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-20220404_085318_886326_1D96A76C X-CRM114-Status: GOOD ( 16.44 ) 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 .../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