From patchwork Tue Jan 24 20:14:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 13114750 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 54C3BC54E94 for ; Tue, 24 Jan 2023 20:15:58 +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: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:In-Reply-To:References: List-Owner; bh=kWRm+J99bYchN//YsuvxhhfSqi2J6Mn6eHu8rSUsMOs=; b=jdKTSoxvF3OWs8 PBEyLv2ihrf3QYEDOBXP2ABzFgeK/ojGFjCS1ea2FgApa8Mtp3ySZrsE5lKBNBb4Vy5LOxRPwmZ/5 hifBeCnm+z8SLEubwOpp5n/ulJed48eNPTxbS4OGr92BbAARiyEzSTzy40IdMZrMebmWmOl+RBBWd rLLl4PnStPoVWAMzWshwucp36V/lRlhRGWlJO+mKVxAcOi+cCt6jC+MCuHiS/qtvrzwRUNaRMVnib IYtjH58D0Q73X1H35rwQhiC3HnCs+dtmL26W/RngmXruvT7udUAYQtHY7xM9f2ER33yX8HpXLs9uC Foe5e/9uX7JwlLJ43y0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKPh5-005AmK-Pe; Tue, 24 Jan 2023 20:14:59 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKPh2-005Akt-KR for linux-arm-kernel@lists.infradead.org; Tue, 24 Jan 2023 20:14:58 +0000 Received: by mail-pl1-x62d.google.com with SMTP id be8so2981720plb.7 for ; Tue, 24 Jan 2023 12:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=C5m32FiMKqXgrZPIOI8wdtUKGLB4QIDnS37F9FnvXXw=; b=emoiTIhY0FSD928012exLT6mCVErO1zRatzTHxSx6mzkBx8K5JEC23e1PHEDe8IyfK Ens8RhvdraodZJVRsXXaRG0uQkYtyKR5BsM4AO09LRhQP9IrS38qTCCG2CZETFa6gfcq l1ch8AIBbUbjYEgf5mK+ccOIs+YP4MUmSMWq4ya+2N4fYZHcifTZ9vRopToCQEqnaoL7 HJURR7f7UeQ75RI+F/d50HlFEnF2XT9aRqapekU3zaynvfyZz3d6NxezZ2S6dsOpFCcC Qjr/Ns+r2l1qtA66HXf3vR9VVlt7QDUByL/BB5nIX3JEGaVbuThy+SaDe00F1KRqckvd fhqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C5m32FiMKqXgrZPIOI8wdtUKGLB4QIDnS37F9FnvXXw=; b=x3gS+IXhyaLQI/afbIuem6RzNNxZSdbcHGWSRCHsqA1qdPAeHCWARNFanJgrZAKYu9 IbvOgQ5sTF7QkHgBa0+EwfeF/s9Vh/DeJ8gXsTVif94Nvv3bynEcXB8+Q/arcpJe3cfU cJAlxh6QtlORcxf/p52Pc4DT27ImzEIjADcHY4c2pS7BVP8Xo3FJSb0xmtSjiygOjXJ7 YmUL28jngoWiffNbdxB54go/JMgJzZyhRJ41w+DIVfWRQa8a5YWMxgBcyg9w99jn+N9B 3XMqND4jqJEK6ybrR1vEdccBd7cnb9PlwDYToRnX46d1/Cp7nI5GWRRaGeRX+I1TJVEz WWrA== X-Gm-Message-State: AFqh2kr47HNrYK7LvJIQSc7Qzu/fYM7ChnfsHdGDqDe3UXbga7iy76Sh sfU2EUeRkWmCNWNaRcy4Z3M= X-Google-Smtp-Source: AMrXdXsNjG5/QwjlMPDVD2ZxE/odHTNO/N9Li057a3kIE7Pft4N2cloLCNONh19BMoOkIT1MoFqfug== X-Received: by 2002:a17:902:f789:b0:192:9550:339a with SMTP id q9-20020a170902f78900b001929550339amr32208745pln.52.1674591289938; Tue, 24 Jan 2023 12:14:49 -0800 (PST) Received: from stbirv-lnx-3.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d13-20020a170902728d00b00174f61a7d09sm2057824pll.247.2023.01.24.12.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 12:14:49 -0800 (PST) From: Doug Berger To: Alessandro Zummo , Alexandre Belloni Cc: Brian Norris , Markus Mayer , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Broadcom internal kernel review list , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Doug Berger Subject: [PATCH v2 0/2] rtc: brcmstb-waketimer: add RTC alarm irq Date: Tue, 24 Jan 2023 12:14:28 -0800 Message-Id: <20230124201430.2502371-1-opendmb@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230124_121456_702279_E78B35E3 X-CRM114-Status: GOOD ( 11.71 ) 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 Support is added for an interrupt that can be triggered from the brcmstb-waketimer hardware while the system is awake. This interrupt allows the driver to pass the rtctest selftest. Changes in v2: - Squashed examples in the bindings document. - Added Ack from Florian Doug Berger (2): dt-bindings: rtc: brcm,brcmstb-waketimer: add alarm interrupt rtc: brcmstb-waketimer: allow use as non-wake alarm .../bindings/rtc/brcm,brcmstb-waketimer.yaml | 21 ++++--- drivers/rtc/rtc-brcmstb-waketimer.c | 55 ++++++++++++++++++- 2 files changed, 66 insertions(+), 10 deletions(-)