Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3445721pxb; Mon, 4 Apr 2022 17:13:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1w2JedRm3wDj8sdVyJSwg8K2jd5gfvvd4kPh8HGER1pYXWTSX8//BkDfYClxi39ILuk5q X-Received: by 2002:a05:6a00:1395:b0:4fa:e546:39c3 with SMTP id t21-20020a056a00139500b004fae54639c3mr641234pfg.33.1649117623457; Mon, 04 Apr 2022 17:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649117623; cv=none; d=google.com; s=arc-20160816; b=UO/cJWiOdoNy5MOZIuPwjtEiAZg29VjY4w3zHNCoeXVYTQ04jHlwp98cTlstb3H+3a qnKFZEdqWH0h3AsKlPshbiZC8H03wSbcXlOqV95zcEtNPjJxtMCM8Epm0L88zpoRLLmp 5drghfFSR0hzqOSBzPWrbZH+rv6XgbmK6UkLzqoM65e8OCP0BoQkhg6atddAi7JiMQxm YhxKsPZcUA0erEDSgsupQM1Ve4+JprCGfVcHnTiiHD1wcErWDOboH1aq8YyyxfmHB7eV hVq/qu4VxamusZAzrDMfhUWiV7mZvZQJxz5ipmCvrU3oP1RJrtBhp75xAArSczjUWUeI 6dlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=OmtvB1Xni4XcAR/AuctQxx0e+3Qbn5XIYUFCQaI+LJU=; b=AC06m3LuB8BLfTwLkaz/8bHAkKZ2IU61awarS+z5u3fp50f4CPx388rA/LBHzcj6vX NoqI61pg+b9i6Aho2PhGyZKISqQ7uK5NZl6z2wEnttm0I0lueKxl9ShtWS6nWMFJ44sH qeMVQ0qHypKpMSG2H1lv6AB1ke9YTEbCu1srQg3Lue0Lr0nwfZXnokzMhcSWZZeWUACG 9OnIScmWHn410lIGLpJaWhstKM2zIvIIR42sM/9zEjvUkb4uouPPDEg4GqSsb75ofgfS 938jvnRUGlkaeM6JFj0IDBE++wzbEifGFR+yGz4pFfPJAtI16APXrDt26Sw1+GuI31fN 7ZoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IErH6U0t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u10-20020a170902e80a00b00153b2d1645esi12655152plg.102.2022.04.04.17.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IErH6U0t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 59AAA3BBE0; Mon, 4 Apr 2022 16:43:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378751AbiDDPzS (ORCPT + 99 others); Mon, 4 Apr 2022 11:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347996AbiDDPzQ (ORCPT ); Mon, 4 Apr 2022 11:55:16 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A164842495; Mon, 4 Apr 2022 08:53:19 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id qh7so10849021ejb.11; Mon, 04 Apr 2022 08:53:19 -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=ebx/dPIRjVzKB5jYuokWNQZt0GvUSFkbl4Yi/kYPY58QmXRq+R0t1t3JtoM0hTGkxF NddB0DFhMYdRqmGp9tFq6de3oQXnwVC5dlsKGfm0VKegeqW+KiZ26ewb+m9NOZjX2xee 6XiLHehnpCIVCYvbcGa/Z75Vv1WVC4TKwOw6UYcOpZTy0fGQaK3wW1dX2sE7w6yNX4oK i0UYWaNS40tu6V4XJSla5T39xEBL9nl2KXe5mBsrRC+nRTB5TUGc6HF7qu3wfPSJJm1l 2AOlmuHxXZohvE1zjhc9XkMuye84CNv3LEFX4SKQCHvuQo7Y31TuBGHQ9+6+p7bRlVWT fYkA== X-Gm-Message-State: AOAM531PtynaMefMYAV2aSy00qHGitRxDVClC9KpPb4C2o9lfYm30X58 0l+Go3dFv359EVPqNq5v2sr2CjhJg9g= 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-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.25.1