From patchwork Fri Feb 25 17:37:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 12760769 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 4FB6DC433EF for ; Fri, 25 Feb 2022 18:15:51 +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=MfaxUvQ5F5j3Ek1cScwNH94LsUoxK0/fEC6lBLhQUI8=; b=S46Syq9KEPZ047 3ii2oqZTb0R2lx0E6CXVBFMPjhXOVpdVDVUAi1tKT5vS6uvmGlCXA75lNmZuwk03PSjJDO8j523gK XDdGfgGiVV5Q9eZYqziu80l/ndhd6yNtFp8mojFMPx+KC5uRsjy5BgXU9Kyn20at6Q8hEUZCeiBm/ YDRWgdFetQsnwE1jH+gXZMp3Gna8x6TdSe8LjH70Kq/kaesaAnenq6MVHrcpb/5jdOwwYbKms6UFx i8x3NREvJeB9Rct7pfoEFNF5ntFy62681m6sh4J64ikEpRIAELdNqFYUecFujPpGeXGkNYrAMLHnz QHOScL4CJPePaY8vLOAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNf6O-006VeL-Qi; Fri, 25 Feb 2022 18:14:03 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNeXD-006HXw-0V; Fri, 25 Feb 2022 17:37:40 +0000 Received: by mail-ej1-x631.google.com with SMTP id bg10so12279526ejb.4; Fri, 25 Feb 2022 09:37:37 -0800 (PST) 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=bZwpA1Ih/7cGxWJSLmyCFGC1CzE5h6NX4RJcebkcxjM=; b=Iy0CtH0KQ1YwGiUJvk/g6Fs4SLoWhssKTrLqVTU6ifAXiKxsr5qk46cc4txnxdgtXy qE6w8bEQnb/NtByYXNsgApM7Dg5JV+Ruj7od8uj0xAi5pp92eQfX+mA/Gayex+xxaP2K +QLTURAFqGaCD4zLcWKz0arNYsb4rQoCzt7LTcYPwGMKjl3cvMTVTKuR/5YQ118L1Xzu QSlSrtudTY13RyxCPbwZ/Af8LEXC6HndNyUvTrHxYzmP9cHa+ufvKIGvfQAjR7Q1Ov5i zsFRsdeAsu8XuYdkPlwsOFpW4ilBY7IVsHtmc0aKCt7K0VJyVe5yM6HRm9IyPPfXGmRg 9EmA== 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=bZwpA1Ih/7cGxWJSLmyCFGC1CzE5h6NX4RJcebkcxjM=; b=lN9RAf34XUKqJeSsdq94izRaq7HKJstjdMDtSUwiq8mrRqimR6Z6/ErjB3yVr6A2hU 0aQ+408SmnrkqFrT5Y81zL13+GV3W6WPfJ+yiWf/rXTQDTedwYg3BQIMfPCr23iyAkra 0PmQiQzGqI6wUNReeuE189nctxx7PPcnApCWyVVuaJpNG98UU+kKjCYMxTF1zU69WMg1 ehpTKtYn7cjdpOc61zhDta/qUsboKQsa3nq78GCOEMpFsP+ZMZF6Q5RduP1ZZXGqn9Hg a1qTSZfEafmjNEH4lYugAQKB9bG1y75oUTWzmFFltwYmxppgA3F4wSzeTd1xrxEcG5wJ Dqmg== X-Gm-Message-State: AOAM533wn0kG2T7tSv1E7RZ9cippybqC7J+MLhn03/RO3SiddIjmd1g1 c3oo38f4DiITBl5HKE8MAa6awyuqQt8xOQ== X-Google-Smtp-Source: ABdhPJxYqWlapcSd5iouZ8kav+wYU+humGtyJFEzU/21Iy1c2SWoZs7dgILvXGd2kclfrboz7mrlFg== X-Received: by 2002:a17:906:3a15:b0:6cf:ea4e:a1cc with SMTP id z21-20020a1709063a1500b006cfea4ea1ccmr6992153eje.753.1645810656255; Fri, 25 Feb 2022 09:37:36 -0800 (PST) Received: from standask-GA-A55M-S2HP ([188.123.115.255]) by smtp.gmail.com with ESMTPSA id p23-20020a170906605700b006ccebe7f75dsm1238421ejj.123.2022.02.25.09.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 09:37:35 -0800 (PST) Date: Fri, 25 Feb 2022 18:37:34 +0100 From: Stanislav Jakubek To: Manivannan Sadhasivam , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: timer: Convert rda,8810pl-timer to YAML Message-ID: <20220225173734.GA7573@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-20220225_093739_103907_11A63FBA X-CRM114-Status: GOOD ( 15.93 ) 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 --- .../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