From patchwork Fri Jan 20 19:01:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 13110410 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 35329C25B50 for ; Fri, 20 Jan 2023 19:03:33 +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=NcvT5no7pbtV3fHlOnMQu3kkrAoDG54WcvqX2E5xAyM=; b=NO9um5mcGtpizz M5ZPK/a8UIaT9l9f3zw/ENlu8j2FqYIrBSMaxzJgrPDeDUZmQantdNRUFXLHqQ/sd38MpenGmOpZD O8FsSCuhRTkkQF1ouXRz4gsBgkVoQyBmR54X+nyoeiHpzWqXV0oBZ8mcppt+gbqcDqwB0gzB4JCRv alTJEGkHOZhg4CPAfCM0ObCAm7XxzmCG65aX1t355vkqni9kkRt4RFqfFn266oCTp8OEVOSSFJ0fK ty+h83dPKuH4zCeNWAx8qb7MRH5DJ0CCssLxCZ/CWm1x5hnujZq3WnHn1nDvfhBcCu8nt2y5I7nEg sWP1EuuRdi3qiUhYkgrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIwei-00Bwef-Qw; Fri, 20 Jan 2023 19:02:28 +0000 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIweg-00Bwd0-Ei for linux-arm-kernel@lists.infradead.org; Fri, 20 Jan 2023 19:02:27 +0000 Received: by mail-il1-x12e.google.com with SMTP id r19so2794488ilt.7 for ; Fri, 20 Jan 2023 11:02:23 -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=ty2vaSJYfWXnQKh12ga3jGSjJvuvI1UeShBRy78Xdwc=; b=LTAzPNF1017FDGxs/KdhLIXruwcqk2UsjeXOJIy8s75ZAc5J7k3/GLf01h+Tsv00j/ 0UsHrctRRg+9Ze95HIOjiC4z9Owz5fYyMRbRq6VWNLKOfPsh0TQx8Mwc4cGeX5iejDl7 BUO32yalPHzhWBI9casVX99GKgCkHF2ZdzQjvqggU8ZLKghPyua9P+bqttA7fU9aeP/X A3bqvwusl9Qqgj+n+g4I8yUT0oAfDVe4DNPSWI5qnMTJMW2106m+u8kVcSahQgeJKOlj N5nUaMi0rOKsCSGw/SVCsarbxrc+eNXVZ6MdUfEf9i4H9nmQiKWjKnHubbZHakEnedsD YhgQ== 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=ty2vaSJYfWXnQKh12ga3jGSjJvuvI1UeShBRy78Xdwc=; b=RypQ7Q+rwmS1gBERAV9np3pwU27HOMs2Hz06WfdZoMZv9XOZjIoRaMKp4k5DsBKulP 1p2FRyjkkPVhby1jaqS6g8qq9xoO3lqI4kKtkSkmt2z1No7VlVimugjYm7Q1jpdsFQmx BLB4JTV96bw+6d1mz5tLwLddTs2lOqGHVRsbETGdWfCOW3eGuZc+PMp54YrAVpNK7Y9S /ZN6nOveSUV3yAP+zwi3CJU3jV1BtZTXg2t1PJwcNyoN6KOEWl2wKOniCPeQ1BFM65mL gcQPNCwIpjLOK/rqyVaCUMEGMB2Pfn4jwR3Hc7f6MJsmHiOMqpMCDQV/Hi6LOoeH7GeR /Giw== X-Gm-Message-State: AFqh2kqyd8bQkH0NKIpGh7s6BzmB+G0UWijvtgd4l1AyFI5Qwu/uj9Py lCBrTOMzgiooLLHrHD2Nm6k= X-Google-Smtp-Source: AMrXdXs48lIUewWmFTrNsHJylp/Udxwp1xJjJEgnT45MF2U0HBDUPW7ITZmIlb5ul73oolOW5Q8xdg== X-Received: by 2002:a05:6e02:1562:b0:30f:3736:25ab with SMTP id k2-20020a056e02156200b0030f373625abmr8463067ilu.28.1674241342553; Fri, 20 Jan 2023 11:02:22 -0800 (PST) Received: from stbirv-lnx-3.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id y13-20020a37f60d000000b006fa2b1c3c1esm10379806qkj.58.2023.01.20.11.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 11:02:22 -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 0/6] rtc: brcmstb-waketimer: add RTC alarm irq Date: Fri, 20 Jan 2023 11:01:41 -0800 Message-Id: <20230120190147.718976-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-20230120_110226_527443_5701847E X-CRM114-Status: GOOD ( 10.04 ) 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. Doug Berger (6): rtc: brcmstb-waketimer: introduce WKTMR_ALARM_EVENT flag rtc: brcmstb-waketimer: non-functional code changes rtc: brcmstb-waketimer: compensate for lack of wktmr disable rtc: brcmstb-waketimer: rename irq to wake_irq dt-bindings: rtc: brcm,brcmstb-waketimer: add alarm interrupt rtc: brcmstb-waketimer: allow use as non-wake alarm .../bindings/rtc/brcm,brcmstb-waketimer.yaml | 22 ++- drivers/rtc/rtc-brcmstb-waketimer.c | 152 +++++++++++++----- 2 files changed, 130 insertions(+), 44 deletions(-)