From patchwork Wed Dec 1 20:51:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12694396 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 4D5F1C433F5 for ; Wed, 1 Dec 2021 20:54:21 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=23fYogKtZplDxSS6jnnYFXPHvek3uPSFkyI6lD0JHMw=; b=duYKe4c0NrxJhd PDJ0e+4Agy2tInXGeWmFarW21PserF0COMc82vbZb9E+ftqc1nxxjsy1dt0asmdYmbWbyc+kj3MtC cmKOMVqmDJiMPcCDIXa0p+ftOYQx2JWNLNhfEoKVb2++a4JiZ9yrbRwp0tpkxPNKDtofRqKyTkOXQ iriZVr1eYXzSEKnn775WZlO652c3ky3lbzmkKAnRu3XwpAby2mDz7oA4Y+EM85gtQUrvCqPR/xVLD TadLd0HilwTzJZ2GwFE/4bjm/K8eK2mZojLVjN50SvG5o+frCX4zQoKVtNZItzI9sRPBMaEe6DwbQ Adu3avvRk717ITZB9MFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msWaa-00A5Pk-6V; Wed, 01 Dec 2021 20:52:28 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msWZu-00A5Fs-8X for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 20:51:47 +0000 Received: by mail-pl1-x62b.google.com with SMTP id p18so18620690plf.13 for ; Wed, 01 Dec 2021 12:51:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v2A5xiMCMD01rja8VsVDsIJrjuLJ0aPnQc2VQht4HL0=; b=dkbhlmv1QoiDwCfIHWa9eyyy8BH/yNOh/+bNgglFZ3KVr/GuQVoGtYs5ZR1Euv/p66 rcLzNtHYK1W0MWeZgrzM/DpF/VMOddlSZiF+vd6qUm+hXQoTWZR9w7hQM9Ky8ZVqOTfI A11n0gNrDcJ1snSiOGNg5xdNbL37VJrEhEgk64I42gsxkgRH/qTZ0Ph1B1pzRuR/8QrD 50tlTdyQ/fXOrvGd+tUqpbGQ1DqIdXQiDrk59nWIwfCxxelWuW/F1fcrW8V38xJWPxb3 yu1YLDCRWSzQ0fIABpReqssYthz5G/UfSsg1uIO1SIm++cW0iSVijixklRNqB+HsUZ4y 68ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v2A5xiMCMD01rja8VsVDsIJrjuLJ0aPnQc2VQht4HL0=; b=O4pTmBKN5NkYvVmKyHtGJOmL9I9NfDj0TkwQbrmly5WiTB/72WNfSv0Pa6PBVTqDHG AH5EPT3bI36egVDA1oaI4BgFyJH/eG04ugcw8WpoVvIleyDnrzxeQ7uju+YZ6YMyyNE1 Rn68daZ+C+tnncwmpB5dgudiNh5laH/bqzmSNuJJcrW3UyWQM7ipqnlbsvFsMLCoG9MW TBfFaIe6qi3Jc48NafYjrpTvtR+mgnqywcEY8q6lWmyCjM0CJO53Xl6mBrslNgO47d3G LFWp7rkFkvCSjmCDMKpTeZM08y1SI4gyPFyzdOJFpgPqIi+eShE4suP/m25ayMERJaOw dtkA== X-Gm-Message-State: AOAM530D5J3ObElD1pXlaIn9eTQMftJkoL2X4nbfPekxK47udJgZRCCq nndHdMf0S3+3vn246OlB9OU= X-Google-Smtp-Source: ABdhPJxuZNFW3NvsbL7fKjrMHRPi1FeCRP3Q14olDON/29y4ghN7ZfkpPEt1PMqazqGOCHSLQ1cBrQ== X-Received: by 2002:a17:90b:1a88:: with SMTP id ng8mr714991pjb.180.1638391905488; Wed, 01 Dec 2021 12:51:45 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id p20sm729117pfw.96.2021.12.01.12.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 12:51:45 -0800 (PST) From: Florian Fainelli To: devicetree@vger.kernel.org Cc: Florian Fainelli , Damien Le Moal , Rob Herring , Linus Walleij , Bartosz Golaszewski , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE), Gregory Fong , Thomas Gleixner , Marc Zyngier , Ulf Hansson , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Lee Jones , Philipp Zabel , Matt Mackall , Herbert Xu , Ray Jui , Scott Branden , Alessandro Zummo , Alexandre Belloni , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Markus Mayer , Greg Kroah-Hartman , Al Cooper , Doug Berger , linux-ide@vger.kernel.org (open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)), linux-kernel@vger.kernel.org (open list), linux-gpio@vger.kernel.org (open list:GPIO SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE), linux-mmc@vger.kernel.org (open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND...), linux-pwm@vger.kernel.org (open list:PWM SUBSYSTEM), linux-crypto@vger.kernel.org (open list:HARDWARE RANDOM NUMBER GENERATOR CORE), linux-rtc@vger.kernel.org (open list:REAL TIME CLOCK (RTC) SUBSYSTEM), linux-pm@vger.kernel.org (open list:THERMAL), linux-usb@vger.kernel.org (open list:USB SUBSYSTEM) Subject: [PATCH 04/14] dt-bindings: rtc: Convert Broadcom STB waketimer to YAML Date: Wed, 1 Dec 2021 12:51:00 -0800 Message-Id: <20211201205110.41656-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201205110.41656-1-f.fainelli@gmail.com> References: <20211201205110.41656-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_125146_327569_4C25FA2E X-CRM114-Status: GOOD ( 19.19 ) 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 the Broadcom STB waketimer Device Tree binding to YAML to help with validation. Signed-off-by: Florian Fainelli --- .../bindings/rtc/brcm,brcmstb-waketimer.txt | 20 --------- .../bindings/rtc/brcm,brcmstb-waketimer.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.txt create mode 100644 Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.yaml diff --git a/Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.txt b/Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.txt deleted file mode 100644 index d946f28502b3..000000000000 --- a/Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.txt +++ /dev/null @@ -1,20 +0,0 @@ -Broadcom STB wake-up Timer - -The Broadcom STB wake-up timer provides a 27Mhz resolution timer, with the -ability to wake up the system from low-power suspend/standby modes. - -Required properties: -- compatible : should contain "brcm,brcmstb-waketimer" -- reg : the register start and length for the WKTMR block -- interrupts : The TIMER interrupt -- clocks : The phandle to the UPG fixed clock (27Mhz domain) - -Example: - -waketimer@f0411580 { - compatible = "brcm,brcmstb-waketimer"; - reg = <0xf0411580 0x14>; - interrupts = <0x3>; - interrupt-parent = <&aon_pm_l2_intc>; - clocks = <&upg_fixed>; -}; diff --git a/Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.yaml b/Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.yaml new file mode 100644 index 000000000000..9fe079917a98 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/brcm,brcmstb-waketimer.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/brcm,brcmstb-waketimer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom STB wake-up Timer + +maintainers: + - Florian Fainelli + +description: + The Broadcom STB wake-up timer provides a 27Mhz resolution timer, with the + ability to wake up the system from low-power suspend/standby modes. + +allOf: + - $ref: "rtc.yaml#" + +properties: + compatible: + const: brcm,brcmstb-waketimer + + reg: + maxItems: 1 + + interrupts: + description: the TIMER interrupt + maxItems: 1 + + clocks: + description: clock reference in the 27MHz domain + maxItems: 1 + +additionalProperties: false + +examples: + - | + rtc@f0411580 { + compatible = "brcm,brcmstb-waketimer"; + reg = <0xf0411580 0x14>; + interrupts = <0x3>; + interrupt-parent = <&aon_pm_l2_intc>; + clocks = <&upg_fixed>; + };