From mboxrd@z Thu Jan 1 00:00:00 1970 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 B4938CA5FA2 for ; Mon, 28 Sep 2026 18:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XKHR+SJFFASvBta04CRZYYpREuzHifi5SVWuCQ0YQps=; b=A/CYQymqDN29WoSbqrBW+0wn1y spjKaOF0cICoRIpE1LVu1QsJwh2xjdvAKyNyXq3gmFaqQ2zkr7P8etQWE6vJOlRB8wotu6hyN5X8Q gcLJ8Uqe68CLXr228IeEpjchAKoAkjPHDpaHuD9edp0FZIi7SpBddmvYz8EA/nCd9k/XkYTYyRzow fH8wWz1h7KdJLfoXoFJAtCTMxJekuEm6q9Qe8Z/S2ksLPF7er+F8f5b+4WJm4S1futJFtYicr2qGb CfHAmC1duylGuLTndyiSVCkNJZZIE5ileOuuWLv5VBTmPJKnV2VD0kFick6D/RfpKEobxz37MAkg3 Ck2J5tcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xBGBH-00000001L7k-3vNy; Mon, 28 Sep 2026 18:34:28 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xBGBG-00000001L7W-0Y8S; Mon, 28 Sep 2026 18:34:26 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id DE95243DFA; Mon, 28 Sep 2026 18:34:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42A5C1F000FF; Mon, 28 Sep 2026 18:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790620465; bh=XKHR+SJFFASvBta04CRZYYpREuzHifi5SVWuCQ0YQps=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=HddpuUAIJy8c5vSGRQw0mfQi6dkV1NhSW7orkilOjlUGTw2o8nKc7M5WmbUMueKuj qZfUbByg5FV1rkLSR/R+8ZmIG7gJ4I9ecDn3mO8WWRaBnUZelIuyA0mHdVUeF6Wzle XmOh9Z/MHItk7ql5bIDMtJkh5KUdB6c0PWSWP3vihRFKo2DsBOnYnwlRznGe56S4GG RuIBTiFLpJW2I1TAEyjsPNcnekmEAnlhMqs1rqf0XxZsr0Y58U3K2rLDxUwkUXj5DJ a3+u180KWuosyDNOk3kh3GJbxh54P1UE+Q0+/es5OvhUYpntT7x7Va2DqRXfcWjCIM YYGU8nTzmMrqA== Date: Mon, 28 Sep 2026 13:34:22 -0500 From: "Rob Herring (Arm)" To: Ryan Brue Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Macpaul Lin , Lee Jones , Eddie Huang , Krzysztof Kozlowski , Matthias Brugger , mfd@lists.linux.dev, linux-rtc@vger.kernel.org, Alexandre Belloni , linux-mediatek@lists.infradead.org, Sen Chu , devicetree@vger.kernel.org, Sean Wang , linux-kernel@vger.kernel.org, Conor Dooley , AngeloGioacchino Del Regno Subject: Re: [PATCH 1/2] dt-bindings: mfd: mediatek: mt6397: describe the RTC's nvmem layout Message-ID: <179062046209.229646.883172989324987113.robh@kernel.org> References: <20260917-rbrue-suez-upstreaming-mt6397-rtc-nvmem-v1-0-558b8f95cfbc@gmail.com> <20260917-rbrue-suez-upstreaming-mt6397-rtc-nvmem-v1-1-558b8f95cfbc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260917-rbrue-suez-upstreaming-mt6397-rtc-nvmem-v1-1-558b8f95cfbc@gmail.com> 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 On Thu, 17 Sep 2026 23:57:46 -0500, Ryan Brue wrote: > Four of the MT6397 RTC's alarm registers use only their low bits; the > high byte of each is storage the clock and the alarm don't touch. > MediaTek's documentation names them RTC_NEW_SPARE0 to RTC_NEW_SPARE3 and > assigns the first to a fuel gauge, which is what a battery driver reads > at boot so that the reported capacity does not jump across a reboot. > > They sit in the RTC's always-on domain, so the driver can offer them as > a battery-backed nvmem provider. Allow a board to lay cells out over > them. > > Assisted-by: LLM > Signed-off-by: Ryan Brue > --- > Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > Reviewed-by: Rob Herring (Arm)