Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1366489rwo; Wed, 2 Aug 2023 12:53:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGTDBk8pv05NLgYLDfRd45+qnaQ3yl8/wGUIpZsffBNZ33zO0sPqyzWbRL2IsWwuudBxTwS X-Received: by 2002:a2e:9cc5:0:b0:2b6:ec2b:7d77 with SMTP id g5-20020a2e9cc5000000b002b6ec2b7d77mr5946713ljj.6.1691006034088; Wed, 02 Aug 2023 12:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691006034; cv=none; d=google.com; s=arc-20160816; b=mJCUZ5gUaZotPdCk/+cg7bONll1yGQgqXpnpgEoNi3HqzIVHXhCRJYY+4h9eV1YM6Q MRBlJYLlo/m3e1PYlpiDDpTqYlpLIdOCkXZtzVLKUw0KAhkyW7yP/NjDbQKyYLMyxZ0l YGBLxL8JSYMSmbRw22MzQHsIOiTxbP2dpeqqhLI3Kyv5JXLSeOZsXAvRFJcIBM0K8B9Q 7NkMkcwfiUKAxrC5PgOQjomGlwHJV7Nmc+BXFp8/wq/S0dMXfukga41wKhj1oKNUEijP hnvO6qGDFH4kZPdykCWSL9BwmONA0v1I1numIMs85TAlGX6Q8G+UABnLU6BLmcbvW+HN BGiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=2M9zvtOliYXrV0ybBkqt2uj1GMVFpZCfGqdA7mS2T1Q=; fh=FZymoSmdcO0cDPPdWjnPLH+RORnjIOsZUS3qM6HRZPE=; b=OAxZdgIHkV/Jqg5UeCKOPu0D3T9avq5Dx3gre3g6H9nP/VOz7NHhwzLZeMNRX29TMO 6Kf48jfLtM2ogVHeulVo+hKSzkuBddn2TWWEZ1mCfXMLUnjq6OxduBQVVunvAoPiP5RY fQjdgUJ3xYaofkxQLyYUViBdd6OVozv3JjIza76KaHafgmejIdkfBGx9W+XNJ9IpVTb1 1wd9Z6CJchcI72XNFBL6fX+jmJwXVrfbQBKhrJdY7OMCj1qsUs93fI9GAKc3QmPUP0/7 aCLDatNDkkTik9XAZMUkmsvE2/1x+DGw2PjpqurUbp+I7nytYDqPpTvDZ3VJOTfuRook sM+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=wOtxU9lt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a170906495200b00997e96fdb73si6172991ejt.296.2023.08.02.12.53.26; Wed, 02 Aug 2023 12:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=wOtxU9lt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232700AbjHBTMZ (ORCPT + 99 others); Wed, 2 Aug 2023 15:12:25 -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 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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: linux-kernel@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