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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 533BCC04FE0 for ; Wed, 2 Aug 2023 19:12:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231668AbjHBTMS (ORCPT ); Wed, 2 Aug 2023 15:12:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbjHBTMP (ORCPT ); Wed, 2 Aug 2023 15:12:15 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7429126AF; Wed, 2 Aug 2023 12:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2M9zvtOliYXrV0ybBkqt2uj1GMVFpZCfGqdA7mS2T1Q=; b=wOtxU9lty+rX4TtQ9/Cpb/XdE2 oYucuMjAWDvAZ2xty1gP6wKKZhB6kXCNW3isjuW4TFmV9B2GQoGYCi5C4v/hUJBzqvsFr8LkDelTm CcbIofaBYXZJH52DoDvMiqGBgCT4Lv8NW1k85gCcoyXhCHBxyyZ/HD3hkFjkbFSDRSFo=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:50458 helo=localhost.localdomain) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qRHGL-0003z2-J1; Wed, 02 Aug 2023 15:12:01 -0400 From: Hugo Villeneuve To: a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hugo@hugovil.com, bruno.thomsen@gmail.com, Hugo Villeneuve Date: Wed, 2 Aug 2023 15:11:52 -0400 Message-Id: <20230802191153.952667-2-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230802191153.952667-1-hugo@hugovil.com> References: <20230802191153.952667-1-hugo@hugovil.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 184.161.19.61 X-SA-Exim-Mail-From: hugo@hugovil.com Subject: [PATCH 1/2] dt-bindings: rtc: add properties to set battery-related functions X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Hugo Villeneuve These properties can be defined in the board's device tree to set the default power-on values for battery-related functions. Signed-off-by: Hugo Villeneuve --- .../devicetree/bindings/rtc/rtc.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml index efb66df82782..0217d229e3fa 100644 --- a/Documentation/devicetree/bindings/rtc/rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/rtc.yaml @@ -26,6 +26,25 @@ properties: 0: not chargeable 1: chargeable + battery-low-detect: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + For RTC devices supporting a backup battery/supercap, this flag can be + used to configure the battery low detection reporting function: + 0: disabled + 1: enabled + + battery-switch-over: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + For RTC devices supporting a backup battery/supercap, this flag can be + used to configure the battery switch over when the main voltage source is + turned off: + 0: disabled + 1: enabled + quartz-load-femtofarads: description: The capacitive load of the quartz(x-tal), expressed in femto -- 2.30.2