Message ID | 20230612113059.247275-1-linux@rasmusvillemoes.dk |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2522087vqr; Mon, 12 Jun 2023 04:41:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ki2sz5s7c9Abk56syYU9xLOtaS1RiitYiHWNInjl7Bc5Y4IDbF2Jvk+16zFnxIA7QFRS0 X-Received: by 2002:a05:6a21:339c:b0:10f:a954:47d1 with SMTP id yy28-20020a056a21339c00b0010fa95447d1mr9610184pzb.38.1686570082037; Mon, 12 Jun 2023 04:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686570082; cv=none; d=google.com; s=arc-20160816; b=AWv4YO2VcHhPCgl4OcDqE3kyl8BsAZSlBrI1iLdRldPGrLUBJ98XMGoqnHQ9gD1KA7 b/MddokRQyWQAmZnnRTJhKbFgOnQrJGW7ktN0Y/8Tf5F5TPxtNsSQ7mhWpFBDwM+1I7A KfWIjZse/dJZBJ6M0rdLFNNYWIUSUfbbEadcLslspkm0tH76MvXYU5hEZ00pjptYDkIT U7SFwiJdnuTl7AskupK5R5G4A3/K9nDjJHLiahFzt1EN424q8q/lCraxeiaafNTr5Vmh 3YZAK/zsFh7psXyXlhu4YN29JDU6/nUxcdMiuBWr/7F4oz8H9edV4Qaei6AwzdSKGxq0 mM9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3z9z5ciNoeXJ2AWju4rHjtXaiiOh78bIeWJwLTwus3M=; b=fZB5bLrTIA5j57ssiD51dFTwGZ3lTna15q/6xlGnVsvkoPZFhtOKCtHxNSu/nmytze 39rH2iMaTi6//rxBT9oMqlMfHOFqevZC4djln1yeIAGGDLy6Wj3C8oZyK+DN9QBAb7kd 9fDdSxq1OfacJ3S93JiwaiUd0NnHDpvBAgt1EKvGdZ8aXLFd6RI9kmCJ9NyzivK0yEoQ NlM6PQmUGKg/5QwJP/aNMJwu1IVIPAyISqjc/OFkXb6V8p0/s5LfMExtaMHMsKyF8wgV TvxT4fjXwG/hoUW+WZNSk28dn9EkfX7+LH3qCouXjcJziJe2ybbyiK5AIrXt5O/suqkX rDnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=PPeFRKHd; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k189-20020a6384c6000000b0052883ac6949si7232515pgd.13.2023.06.12.04.41.09; Mon, 12 Jun 2023 04:41:22 -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=pass header.i=@rasmusvillemoes.dk header.s=google header.b=PPeFRKHd; 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 S236430AbjFLLj3 (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 07:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbjFLLiX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 07:38:23 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8493146AE for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 04:31:04 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f654d713c0so4451141e87.3 for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 04:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; t=1686569463; x=1689161463; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3z9z5ciNoeXJ2AWju4rHjtXaiiOh78bIeWJwLTwus3M=; b=PPeFRKHdxjy3D5ZD4l2mgjjaksY35u80zNbT6FNhAi8LOtva4YfTWRzvqIvAiNp8MH YZQuLB53OKmCywz9oisNncIqXB/XZt95alq54zepd2gvJ1471ZfWJx1BR0xGLvGx4HaH e+M6VFNfn1OEViwKe5FQHqHevwKHY0DDSh/Fs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686569463; x=1689161463; 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=3z9z5ciNoeXJ2AWju4rHjtXaiiOh78bIeWJwLTwus3M=; b=cmBvQfG/wnW6zc1kLgQfdhpzXSrIuItLTak7Z+/qY/4zHLDtqCZeAgHvKupg00aI8J dowkdr/XeSBeDpZnhGdLr086upH7iCzWAgKZLRrhj08VLvw+8mh6RnEoUQf2d+fYRWcy mEbfmUlsESJEDTAB4W3qRshee9bJiqFs6NhtboVoC0wPyvx7cMH43v+OTrrznV1zZ8eV wM6mQ1EMlPF9l0juWEYHMlnEABH7coR+5nv6M9bYAmQPSlzuRbkL4hKibtm3arAio2l6 v9eH5KBTbKSKSew+yiGwKR9mLdQY6oGBIv+Vel9bzOpBScSX2YGlqB4twlIqwzzuoYFL hW7w== X-Gm-Message-State: AC+VfDywgkIm0QSaK9ibzTvzBpxBsnN8BjrPdPM6QhomA6j6IHL2+LDa z6iTq2jSs3fMQX+s/rv0+CpFzW1ilhYW52Oq5Lcfow== X-Received: by 2002:a19:ab02:0:b0:4f5:1418:e230 with SMTP id u2-20020a19ab02000000b004f51418e230mr3740416lfe.52.1686569462822; Mon, 12 Jun 2023 04:31:02 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id w26-20020a19c51a000000b004edb8fac1cesm1399320lfe.215.2023.06.12.04.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 04:31:02 -0700 (PDT) From: Rasmus Villemoes <linux@rasmusvillemoes.dk> To: Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, devicetree@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, linux-rtc@vger.kernel.org, Rasmus Villemoes <linux@rasmusvillemoes.dk>, linux-kernel@vger.kernel.org Subject: [PATCH 0/8] rtc: isl12022: battery backup voltage and clock support Date: Mon, 12 Jun 2023 13:30:50 +0200 Message-Id: <20230612113059.247275-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768496910332127076?= X-GMAIL-MSGID: =?utf-8?q?1768496910332127076?= |
Series |
rtc: isl12022: battery backup voltage and clock support
|
|
Message
Rasmus Villemoes
June 12, 2023, 11:30 a.m. UTC
The current handling of the low-battery bits in the status register is wrong. The first six patches fix that and implement proper support for RTC_VL_READ. The last two patches allow describing the isl12022 as a clock provider, for now just as a fixed 32kHz clock. They are also tangentially related to the backup battery, in that when the isl12022 is not used as a clock source, one can save some power consumption in battery mode by setting the FOx bits to 0. Rasmus Villemoes (8): rtc: isl12022: remove wrong warning for low battery level dt-bindings: rtc: Move isil,isl12022 from trivial-rtc.yaml into own schema file dt-bindings: rtc: isl12022: add bindings for battery alarm trip levels rtc: isl12022: add support for trip level DT bindings rtc: isl12022: implement RTC_VL_READ and RTC_VL_CLR ioctls rtc: isl12022: trigger battery level detection during probe dt-bindings: rtc: isl12022: add #clock-cells property rtc: isl12022: implement support for the #clock-cells DT property .../bindings/rtc/intersil,isl12022.yaml | 66 +++++++++ .../devicetree/bindings/rtc/trivial-rtc.yaml | 2 - drivers/rtc/rtc-isl12022.c | 140 +++++++++++++++++- 3 files changed, 200 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml