Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5248232rwd; Sun, 18 Jun 2023 07:56:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5I2hSdrjDYa9OM/0qjI5b0ealRsxINz8611EhkTyAHBUJZhlmHpr+w5bRkrQvp5CIl+KxG X-Received: by 2002:a17:90a:f2c3:b0:25e:9e59:af1a with SMTP id gt3-20020a17090af2c300b0025e9e59af1amr3768957pjb.21.1687100205838; Sun, 18 Jun 2023 07:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687100205; cv=none; d=google.com; s=arc-20160816; b=lLa79iKlGe6d3ApXulJeUKfTqeHwK28xdEsGF9Rbol4nELcPJgKz8T+R2AmoyshG/G IsvNL1djqrh6Rsog7TQEXOAh/ZsWCUnt7QzpiZMVIkNvxZYiTswY11m/StzPMbS6QfIP Cx9yC33GzMIp3bUQYXbeAlmYEjNSekFvhnF7Wke590R94oCEDXKlqiN2AYTfeQ3P1Yzj u6nRbGu/YjDgLLoOeHT50gfSa+7dIhmJdehshGK1s7a2K4SaXqDqQUr9sFYvHMVNAwWX kXRg5aAeUOzMtlrXp1fvHJEaydK+NRt0uCShfRajuWUf6gAk8GwROENQRMDzod3OEx+V j7FQ== 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=t6LqvmytTorbyvMymG3tvGT4xDhGqjrZ+pX9r4vqd/M=; b=ntGzHfkGLIfjX082aBbphA/XN3nh215jvpFWRFYk5SvZsab7e9kyie3IMciH1hz7+5 hixN1CnsvljP1UWKffNLW2HV1b+Q7JP+++dCp1LN3x/rmTuHi/ZsoJlYxMK8X10o4J2Y MknNAGff9HOsuDsZ1oliHq8/7Bqs6nLp+s7c+zyrwxy3MBue9L5GXy/YQBXfRYccrS7K W5+OlQUpZdwszhJ6jW6NiCS7fohIwa4cpAfNNBeYl8QW862Pz783TWfg9YFilKMmhBLH HycBVA14nFsIO8ZA9nBKpr4sgjvmMkZFQVmOH00106FbGQ6xeB1Nmexus7uOpmJj2bFw 1j7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Dk1RLdVS; 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 t6-20020a17090abc4600b0025bdfe1bc66si5636414pjv.165.2023.06.18.07.56.02; Sun, 18 Jun 2023 07:56:45 -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=Dk1RLdVS; 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 S229567AbjFROqo (ORCPT + 99 others); Sun, 18 Jun 2023 10:46:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjFROqm (ORCPT ); Sun, 18 Jun 2023 10:46:42 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21098194; Sun, 18 Jun 2023 07:46:40 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f900cd3f69so11610215e9.0; Sun, 18 Jun 2023 07:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687099598; x=1689691598; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=t6LqvmytTorbyvMymG3tvGT4xDhGqjrZ+pX9r4vqd/M=; b=Dk1RLdVSbc2xmIljf50xhCStf5sdeYGEgV48uW7TLIqiDDBUNZnT4SXxJNhs83qj+L 0A3OBB/NHw2jzTE+8bP3IUjGqU+JpJc7Zug9vyRY6IMR5CWJ6Ry0Q6BCedLGE351dYJv d5ziiG73b4iLFaJu5Byn6JZk65tJ77vJi5bTu2ytyo6XSrT0OrlUamjWCjPbNGpQcjCN nUpi5gng7jqIM6OC2ON5J5zSkeW3/58EvQeYLftJYizHcTdWu5BcdrTRdoGD7WD/G+/J dgPUF74G0bj/YRQUINwRCTCmMMvQojvJSUcYdVkUW9Qe5xxv3jFJrBc9ZjGZdbfo3WvC 6UKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687099598; x=1689691598; 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=t6LqvmytTorbyvMymG3tvGT4xDhGqjrZ+pX9r4vqd/M=; b=Z7ypDDBpDg8PrdN+mijFVqEW+1EFGMEjxq2Akmz19rtYjvGPoMNEQjHjCJ5iqlTU/d sOYbttbSfTBHyptrWE262Z+i8cFfR52AvfRlUDgFL4ztoppEEBsjdKo+s4+XqKe3YbkG mofvjZd/HWuZS0A6qD5OJIKLBr098vQMTO/4HXFPX3Ey5beLx2OSX2luAEh7fkR7wnRX AQw88IHm2Rbt1l8oMPAYKnHf3UGfe1cCP3XlJapPOw7eDyAlE0CHdJSsCgdUiDsQRaBW RlGIP+hnxfewcW8ZB2n/g7w/85mO94FGBOMD2dnnJuvdSwvM2IH1ZUOmz6GJxhJRHhyR E0QA== X-Gm-Message-State: AC+VfDzwtiQDSrESdtlebmYoiclPdHCItb9Shkkt4l5dpjJyuoRLSTNU eoBp2p2FdY99xca46ZUZ8TE= X-Received: by 2002:a7b:cd88:0:b0:3f8:fa2e:efc1 with SMTP id y8-20020a7bcd88000000b003f8fa2eefc1mr4461014wmj.15.1687099598368; Sun, 18 Jun 2023 07:46:38 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id n2-20020a05600c294200b003f8f8fc3c32sm7059834wmd.31.2023.06.18.07.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jun 2023 07:46:37 -0700 (PDT) Date: Sun, 18 Jun 2023 16:46:35 +0200 From: Stanislav Jakubek To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2] dt-bindings: timer: brcm,kona-timer: convert to YAML Message-ID: <20230618144635.GA22166@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 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. Changes during conversion: - drop deprecated compatible (it's been deprecated for ~10 years) Signed-off-by: Stanislav Jakubek --- Changes in V2: - dropped deprecated compatible - change "" include in example to <> and sort it alphabetically - rebase on next-20230616 I wasn't sure whether to keep Rob's R-b with these changes, so I didn't to keep on the safe side. .../bindings/timer/brcm,kona-timer.txt | 25 --------- .../bindings/timer/brcm,kona-timer.yaml | 52 +++++++++++++++++++ 2 files changed, 52 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..d6af8383d6fc --- /dev/null +++ b/Documentation/devicetree/bindings/timer/brcm,kona-timer.yaml @@ -0,0 +1,52 @@ +# 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: + const: brcm,kona-timer + + 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 + + timer@35006000 { + compatible = "brcm,kona-timer"; + reg = <0x35006000 0x1000>; + interrupts = ; + clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>; + }; +... -- 2.25.1