From patchwork Mon Jun 26 09:11:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 112817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7356214vqr; Mon, 26 Jun 2023 02:38:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/mdD/UuIQwz42SkXfs456F1W5E6lCb+5ur0x9ewn7J4X9mqvopp0WrsplH8895P9DgIkb X-Received: by 2002:a17:907:9618:b0:98e:f13:e908 with SMTP id gb24-20020a170907961800b0098e0f13e908mr4477077ejc.60.1687772336654; Mon, 26 Jun 2023 02:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687772336; cv=none; d=google.com; s=arc-20160816; b=dMRRttfQ7OrLD33YtY57Nc/N0evpvREAMuyLqyz4bDvsZqL4540ZmIjk6B0IR1sxdo TAMqv+6p71zgxOhJ/0d5zoWyKLT/0bbTSTAhKE65JhCR4MvpzJZ5i+v/SOrGnVyIMKXV 8A5k+bh6kBgYYeL+ltHJPF4ku3yJDUC7jh3FepTEkAq59PRyQcGkQLWBZHnEkBSE0G3l YqKujIN8cpYaBaSmRh8FovLFeE1+IaEaR5FGYhXGAN8GgISYfufJaYDN85rdIeBNeCUr GUqhP0ecsva9KKiMRX452vUphBBlV/2hlU9hNt4SeTUwoyVA457fBAD5+HVpX+9BtsE+ VlxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=I2ekPGZx4yrFXTeInvVwLDdUQShBzF0h2p1JV7OJ41o=; fh=fwPaUP8bAoJ3z3oi76NcC1Uf+HSvVihPRsSyWyjzENE=; b=XWII0a8eKYM0SeGqRGtZ6cgYCl9fDf3poVEg9gH3xdvxuNrCDXt/vaZlIvPJqR/iG2 YdoD8nlbGAZ1p+dAuNtvDtKJqhpUVtEXDCAVdK+NC/2oVqt2ddVspEZhHpnxFzHav17E a9BMmxrT4yktycciPkIF4+/JqYqFFuLN6aLdMN/DgoRaCsj6UZE8P5LjxjBn717FD8PO 2W5Fo+2TFXWkWGhKB+/I+BHZff95pbEOAkcZk0jKlQvowqM8Egra/s1RUVgx9e1suGaF caqjs8NKc6PB4WK4eCqSZaI1b9eppP00XLPSV6SsWQO8pfU6/S1AQTbMJOlFqjGpdFW3 WYQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=J00GZvzI; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a170906390e00b00987a0569370si2461810eje.703.2023.06.26.02.38.30; Mon, 26 Jun 2023 02:38:56 -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=@linutronix.de header.s=2020 header.b=J00GZvzI; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjFZJOC (ORCPT + 99 others); Mon, 26 Jun 2023 05:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjFZJNL (ORCPT ); Mon, 26 Jun 2023 05:13:11 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8D23D1; Mon, 26 Jun 2023 02:11:38 -0700 (PDT) Date: Mon, 26 Jun 2023 09:11:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687770697; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I2ekPGZx4yrFXTeInvVwLDdUQShBzF0h2p1JV7OJ41o=; b=J00GZvzIKlnsJwL/1MKB/gXwxzuWPGZU9KDQZ2VHCV7re2T03Dxm1alN2MT06zp/pEobPU kcIO7tmo9gPiDUWFSz7LNt6EdyaCKAedrCQMaQfmFf0/2sEmLpZ3LhPBoXpJH34Hh0ftFj lmPO+Gr/H/mBM9Uks4LA0sKHr5bIIwrqeN/X9QRM9AGKJkxibYv0hped3yzaoNXyWeZZyk YEpPGYiq+XhH1eK8QdYqEBV0runwVYEoGIMTo22acQgUdggEH9fIRDzx0QipDOfOoW+ydk TxqKQg3FBvgJCAlg3jVzDihO1MoJ8YyvjebHF1ksdGmHr1o4NCj7ir18TDVgTQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687770697; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I2ekPGZx4yrFXTeInvVwLDdUQShBzF0h2p1JV7OJ41o=; b=KjfrVVN6hLi9D96Q8f9XY66HdZscFJHn82T5Bi87IF8OA2k7vKK3SQvPH1xZmMlOrxv50J +q0PX46D4o17DtCQ== From: "tip-bot2 for Stanislav Jakubek" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] dt-bindings: timer: brcm,kona-timer: convert to YAML Cc: Stanislav Jakubek , Krzysztof Kozlowski , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230618144635.GA22166@standask-GA-A55M-S2HP> References: <20230618144635.GA22166@standask-GA-A55M-S2HP> MIME-Version: 1.0 Message-ID: <168777069704.404.13055618719527078493.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769053001725600955?= X-GMAIL-MSGID: =?utf-8?q?1769757565606917992?= The following commit has been merged into the timers/core branch of tip: Commit-ID: 038d454ad996a5e275d46188d65d890d2a243f36 Gitweb: https://git.kernel.org/tip/038d454ad996a5e275d46188d65d890d2a243f36 Author: Stanislav Jakubek AuthorDate: Sun, 18 Jun 2023 16:46:35 +02:00 Committer: Daniel Lezcano CommitterDate: Fri, 23 Jun 2023 09:33:43 +02:00 dt-bindings: timer: brcm,kona-timer: convert to YAML 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20230618144635.GA22166@standask-GA-A55M-S2HP --- Documentation/devicetree/bindings/timer/brcm,kona-timer.txt | 25 +--- Documentation/devicetree/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 39adf54..0000000 --- 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 0000000..d6af838 --- /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>; + }; +...