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 X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 012ACC43461 for ; Thu, 17 Sep 2020 18:34:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A0913206B6 for ; Thu, 17 Sep 2020 18:34:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726502AbgIQSew (ORCPT ); Thu, 17 Sep 2020 14:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbgIQSc5 (ORCPT ); Thu, 17 Sep 2020 14:32:57 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E80C061756 for ; Thu, 17 Sep 2020 11:32:56 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7] helo=dude.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kIyiE-0004GR-MP; Thu, 17 Sep 2020 20:32:54 +0200 From: Bastian Krause To: linux-rtc@vger.kernel.org Cc: devicetree@vger.kernel.org, Alessandro Zummo , Alexandre Belloni , Rob Herring , Arnaud Ebalard , Marek Vasut , kernel@pengutronix.de, Bastian Krause Subject: [PATCH v2 0/8] rtc: expand charge support, implement rx8130 charging Date: Thu, 17 Sep 2020 20:32:38 +0200 Message-Id: <20200917183246.19446-1-bst@pengutronix.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: bst@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-rtc@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org In order to preserve previous RTC charging behavior while allowing to add new charging configurations this series adds the dt property aux-voltage-chargeable as a uint enum. It supersedes the trickle-diode-disable flag. Then the ds1307 driver's charging infrastructure is generalized: - support charging on 'aux-voltage-chargeable = <1>' - keep the previous charge default per chip - make trickle-resistor-ohms optional for charging - apply DS13XX_TRICKLE_CHARGER_MAGIC only conditionally This preparatory work allows to enable Epson's RX8130 backup battery and make it chargeable when 'aux-voltage-chargeable = <1>' is given. Regards, Bastian Bastian Krause (8): dt-bindings: rtc: let aux-voltage-chargeable supersede trickle-diode-disable dt-bindings: rtc: ds1307: let aux-voltage-chargeable supersede trickle-diode-disable dt-bindings: rtc: ds1307: add rx8130 aux-voltage-chargeable support rtc: ds1307: apply DS13XX_TRICKLE_CHARGER_MAGIC only conditionally rtc: ds1307: introduce requires_trickle_resistor per chip rtc: ds1307: store previous charge default per chip rtc: ds1307: consider aux-voltage-chargeable rtc: ds1307: enable rx8130's backup battery, make it chargeable optionally .../devicetree/bindings/rtc/rtc-ds1307.txt | 9 ++- .../devicetree/bindings/rtc/rtc.yaml | 10 ++++ drivers/rtc/rtc-ds1307.c | 58 +++++++++++++++++-- 3 files changed, 71 insertions(+), 6 deletions(-) -- 2.28.0