Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1211496rwr; Wed, 26 Apr 2023 11:30:31 -0700 (PDT) X-Google-Smtp-Source: AKy350aIddYaguCXaFqP86PsISrlmrAWj4HL7f9toZnbc/EBjraCTs2AzR3tRkwzAvrffbBQSZ85 X-Received: by 2002:a17:902:d709:b0:19a:bbd0:c5cc with SMTP id w9-20020a170902d70900b0019abbd0c5ccmr18513942ply.60.1682533830977; Wed, 26 Apr 2023 11:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682533830; cv=none; d=google.com; s=arc-20160816; b=MC5FEqtzMdmgLPO7u9Sxq0jTksTvQNvw4vl6YnkSfJ/zW3K6YvtOoDzkpKtRalo7Ug 7+FMUB8p4RwijrCgTMqVs0cXo1VDgyDIyuRxEjbrncDwyM865hZ9HTEPMQU2EDAV3hr8 F/F4zCmYKUI/lfhTVIdUtZZYflNkyjnSt6sxW1TQwpSUh7TGBNorUImCSBf+IGSLdEU0 KQ6wil4VNvClAGlAvAlJLR7jozoBZt/9PpY94TimsFfNTaM1H93yxp7tMSobSocMWNe8 398sqPOLTwWLjMXNgv4KvgW8ZmU7wrlCkDuHjTXLIe5laKAmyRMfy39YKhkOVW0xCb1t 5jjA== 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=zyzX5FFZMMCDfRy8AcL0TL3fxW2nxpzs6bzkB27YBtw=; b=yuO0d2/zmxD0TYbygI8JSmlD45M8IObJOCQpW9VyS+zrm866jDXzc+OHgLZ31xLPXN ymBF10kRxbngMD7+mE388K92TOPlA9OnFSVBUUYy5P83n+ilqriHN9lhG4gidYUGxV3v tNrg+Kz1sZMfqA30FRxMkn2xzqG6GV6Ph3Yuy/LvtYO4qPk+PY8YtCvZkJGqgIBcbIap lOKUPEyoMfWTZyA/xJkvdYssTa0o126GG7TJxHewTbQFyU6BjuaiTbzwkGf9Mhzurrs/ 1vj0P3D0fMvnb/Ai15J+pup2xQZ+ggljZK4C4jpHMqmZ6GRPB6SxYKYEOX5MKPLIdFzd RxBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=edKi3SAC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc7-20020a170902fa8700b001a9813e7039si6180043plb.174.2023.04.26.11.30.20; Wed, 26 Apr 2023 11:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=edKi3SAC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbjDZS3A (ORCPT + 99 others); Wed, 26 Apr 2023 14:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbjDZS27 (ORCPT ); Wed, 26 Apr 2023 14:28:59 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B5D8132; Wed, 26 Apr 2023 11:28:58 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f1cfed93e2so47708835e9.3; Wed, 26 Apr 2023 11:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682533737; x=1685125737; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=zyzX5FFZMMCDfRy8AcL0TL3fxW2nxpzs6bzkB27YBtw=; b=edKi3SAC9R7jXENJBEwCvadKFYC6oOmLfId6cd7JSHVFMP/+yDgq0S/ja1R6YIp7xL iwdfr5vo0jtDEETxW2/r5ric8hPwG2mtON+sAkzTJ78R2zDp0NLC1dMkWts2sbPG1hAB JPtUB0fL8nUFzSyfqiIe4L2HgaTCa1GJmcVwsNtzoy8sjZXpcAHQr9Mynuka+EU6xxtW VP3GSLEd4TXM7Dab/1KXF+fJuAAaASYoKfB9pJ8ehjshzewScZOqIx5caCQb0cmm8QM2 VofCzQkg9FHZRv4x6RsJDk/X3QsV9plUym2ua//NEdwBVrzveXJ8Qbs+uaDoT0XvV0AX O4Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682533737; x=1685125737; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zyzX5FFZMMCDfRy8AcL0TL3fxW2nxpzs6bzkB27YBtw=; b=C0Fk4QvdT6c1YQLF0IDmZkKltXVd7mCUfTlrvZa75gEZMecydvx20oa9n8Z+CUc2Gh qxVuH4wIyzDXFbGXcfkOvSLyfS64td5juU6LeM0xWJjfH07ez8zbtP1Y6O7RJnv9220w APs1GROcSshrv2H1J9SA2yEwzKM9Hm+3VtcuM0g85MuwqTYfd8SyDD1seeCxMvqrQXXz mxT66vx3qQ/avGKtYjZLT0fGzGbz8tvoFyM0gTZHEeq+B6XcS26ucMM8CObRH/+b7OUC mL1aOpw3x8lYChN+SXze3X+74jb2h+x8TMMTcNSO69Vm+DyVOYeU8czIL38Ot1rd7L2T ASxA== X-Gm-Message-State: AAQBX9c4DEAmTBtGHjQdFapELn3KGebQ/M9MDUIakc+QH0B2S1/0+yit Sj0HcIV3rfqgRvy5z32Z6Ks= X-Received: by 2002:a5d:5960:0:b0:2f9:9f6f:e4d with SMTP id e32-20020a5d5960000000b002f99f6f0e4dmr13373236wri.39.1682533736685; Wed, 26 Apr 2023 11:28:56 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id x8-20020a05600c21c800b003f2390bdd0csm10173427wmj.32.2023.04.26.11.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 11:28:56 -0700 (PDT) Date: Wed, 26 Apr 2023 20:28:54 +0200 From: Stanislav Jakubek To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: timer: brcm,kona-timer: convert to YAML Message-ID: <20230426182854.GA9571@standask-GA-A55M-S2HP> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 Broadcom Kona family timer bindings to DT schema. Signed-off-by: Stanislav Jakubek --- .../bindings/timer/brcm,kona-timer.txt | 25 --------- .../bindings/timer/brcm,kona-timer.yaml | 55 +++++++++++++++++++ 2 files changed, 55 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/brcm,kona-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/brcm,kona-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/brcm,kona-timer.txt b/Documentation/devicetree/bindings/timer/brcm,kona-timer.txt deleted file mode 100644 index 39adf54b4388..000000000000 --- a/Documentation/devicetree/bindings/timer/brcm,kona-timer.txt +++ /dev/null @@ -1,25 +0,0 @@ -Broadcom Kona Family timer ------------------------------------------------------ -This timer is used in the following Broadcom SoCs: - BCM11130, BCM11140, BCM11351, BCM28145, BCM28155 - -Required properties: -- compatible : "brcm,kona-timer" -- DEPRECATED: compatible : "bcm,kona-timer" -- reg : Register range for the timer -- interrupts : interrupt for the timer -- clocks: phandle + clock specifier pair of the external clock -- clock-frequency: frequency that the clock operates - -Only one of clocks or clock-frequency should be specified. - -Refer to clocks/clock-bindings.txt for generic clock consumer properties. - -Example: - timer@35006000 { - compatible = "brcm,kona-timer"; - reg = <0x35006000 0x1000>; - interrupts = <0x0 7 0x4>; - clocks = <&hub_timer_clk>; - }; - diff --git a/Documentation/devicetree/bindings/timer/brcm,kona-timer.yaml b/Documentation/devicetree/bindings/timer/brcm,kona-timer.yaml new file mode 100644 index 000000000000..579a8e190c10 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/brcm,kona-timer.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/brcm,kona-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Kona family timer + +maintainers: + - Florian Fainelli + +properties: + compatible: + oneOf: + - const: brcm,kona-timer + - const: bcm,kona-timer + deprecated: true + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-frequency: true + +oneOf: + - required: + - clocks + - required: + - clock-frequency + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + #include "dt-bindings/clock/bcm281xx.h" + + timer@35006000 { + compatible = "brcm,kona-timer"; + reg = <0x35006000 0x1000>; + interrupts = ; + clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>; + }; +... -- 2.25.1