Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5408274rwd; Mon, 12 Jun 2023 04:54:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70zXDjuaAr9glr6F6N0PWafN6Usg3/cchd3OPgDD8ot7hdmf64cPuex7hN4Tevpk/n2A9d X-Received: by 2002:a05:6808:a1b:b0:39b:8121:4e35 with SMTP id n27-20020a0568080a1b00b0039b81214e35mr3605431oij.1.1686570852717; Mon, 12 Jun 2023 04:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686570852; cv=none; d=google.com; s=arc-20160816; b=giiKXQB3F7lczL7DYhwE1VcgUQa9Y3VzQZys/LvY29MI0H81YJCFhVKBjd2IU87UQW IJJtP+tQ3eXMqG7W5Bxbk+IKwU4HO+l8sxenm1J+AVzoTgrGllG5TqKvWFbZmeN6Dxcv ZVeIhXFhWqJt9eHqx5kfNdao3J8x69uo+GGyyNcANuGHFufgI7QRYlzOULESfgmcTUfp KZxK8c/FbN/iAWKevV7k6PSD4Az1xyAyP2SubCbQTVTlRbF6yZnlQ91UFxMHAjj9G5vt CjdavN1y2kTyWELPqhaX9og5KokrzVfPviBiJ/Jvm3DxqzHgrlcQjKoZ1a3NYeqlhpro 0TUA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy1-20020a17090b020100b002507aba141asi6751416pjb.171.2023.06.12.04.54.00; Mon, 12 Jun 2023 04:54:12 -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 S233132AbjFLLj3 (ORCPT + 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 ); 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 ; Mon, 12 Jun 2023 04:31:04 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f654d713c0so4451141e87.3 for ; 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 To: Alessandro Zummo , Alexandre Belloni Cc: Andy Shevchenko , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rtc@vger.kernel.org, Rasmus Villemoes , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.37.2