Message ID | 20230612113059.247275-8-linux@rasmusvillemoes.dk |
---|---|
State | New |
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 k13csp2523810vqr; Mon, 12 Jun 2023 04:44:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7T+bybqrleE327CY0U7xRsVzF2Bx9jQrHAwtX5tk53omUapWog8XWbfVFVgq0b9x8DmhTC X-Received: by 2002:aa7:d312:0:b0:514:9552:4bf6 with SMTP id p18-20020aa7d312000000b0051495524bf6mr5280680edq.3.1686570287452; Mon, 12 Jun 2023 04:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686570287; cv=none; d=google.com; s=arc-20160816; b=b/pZ5eLmwKCU6CgH9ai7wAuC+W5Pk1obUCzX48Y2gBvk1OYzN0xbybMQAOAiJk3P7C pkXOzT/tk5pNptD1gUGIeR8fxtnvQtEOig+mME7x1Dw7o99f1IDgSg6RSuwVky5lqXej 4fG2LhXnx8rC/177em8QQ3z4jd9flEmp2bSnl0dQqr+leeoYi34kKHJ73wM8c7nUTx5k eRsjcm5dhTysnHcf4M+MpIMiRonAbp0bawZaCEU4QrYeJM8MoDsMmYpZG5lgzv8T7FEZ 0zHKdtz5HuohhFJVKpXMUjZR1EAkjcV+tI5OyMTjs1fRrZ7sRzxhPsfSO28v/5qMU0Jb 5NOw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=A/dhIkHJ/Bd/JpiRxxUt23+FRsEwSHxsnLx/azCSW6k=; b=y+V/db44wK6hKVI5RjitknJqIhUHmS1gxY+KEZmTn33m32H3hTRPWk16RDIDWu/zS3 h+n9FCboTlAavFWPoYjowU7fENagqJ1eKB01JBnvmiEVksO5aD56Z4BD8BXcgo9AZyi9 l0RZ9hFo+KoRxgdVUMpAypaN/PgI5Klt3iut5StU8qphFgPt/k/l2OrKKoLACCIUztGY wNjclWZGVaw2K0hy3dvZ+5ksFddkg+y0VpTUnvu4b/ul1jJzp2a25eSmcRAjLU1n7Dis 1ual3wbP1wic6KE65ppNzxRpDlj9+c9aCRWkSBpn56HkoWtvAtYWSecN5nBecJYXFait dSkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=LecpfOFA; 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 y15-20020aa7cccf000000b0051062e32fd2si5714573edt.68.2023.06.12.04.44.22; Mon, 12 Jun 2023 04:44:47 -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=LecpfOFA; 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 S239415AbjFLLkv (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 07:40:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbjFLLix (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 07:38:53 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DDB36598 for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 04:31:14 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f63a2e1c5fso4934047e87.2 for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 04:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; t=1686569472; x=1689161472; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A/dhIkHJ/Bd/JpiRxxUt23+FRsEwSHxsnLx/azCSW6k=; b=LecpfOFA5R5ROPy2U4qCs9GjXST0XM1loQRP+J1c5EvCrAsd9vg3Ubk1q79K3T7GaL BAKxYsX2y3JPonza2iOv7Tk47bT4Po5+hRG4xdRnDdnjxbh728+YOQLt49LjKNpod2dd hoqlX3Te6x0E17igFGqYoXS8Sk3zJ8q78VKiQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686569472; x=1689161472; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A/dhIkHJ/Bd/JpiRxxUt23+FRsEwSHxsnLx/azCSW6k=; b=WlcWlFnPsVZj1qP+Rm/qJyltyEQpfO+vAAHKHUJ4+YR5Y0n1kSJdGnbtJiLoemOgHR KNzkAjl/sumee7jsOWpCrn07pjhIZYbGGbEZ9p7AZvxX6iFsBKOzlapC7uWW1GeJieks 8Sutc+DAY0S7VgTp+MBVZgKUGQSahHYn7Y35EvtloIsuujZYpX1RGSnYtplcNdOg1p0o 2OQJ82i+E84s8gxYAJAb6PfppQ+WKsQGyr+RleuUNoSoSKT9XG066Hf4sX+BUNyiMiH6 K0IWO4MtwzhPK+PObkORoW3T4jvrmpYEVCA/UgaKyAmX1GJbeP1+qR2RFzxulrV9EEZd pcdA== X-Gm-Message-State: AC+VfDxJomYTUUiI1e/BgbTQwgXW0nypggx1dXYvnns0/D4qPjJx6yQb 0hMeeKksrY5UQuCAjs2JNChzDA== X-Received: by 2002:a05:6512:548:b0:4f6:4a10:ac4c with SMTP id h8-20020a056512054800b004f64a10ac4cmr3872985lfl.42.1686569472698; Mon, 12 Jun 2023 04:31:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 04:31:12 -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 7/8] dt-bindings: rtc: isl12022: add #clock-cells property Date: Mon, 12 Jun 2023 13:30:57 +0200 Message-Id: <20230612113059.247275-8-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230612113059.247275-1-linux@rasmusvillemoes.dk> References: <20230612113059.247275-1-linux@rasmusvillemoes.dk> 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=unavailable 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?1768497125681823641?= X-GMAIL-MSGID: =?utf-8?q?1768497125681823641?= |
Series |
rtc: isl12022: battery backup voltage and clock support
|
|
Commit Message
Rasmus Villemoes
June 12, 2023, 11:30 a.m. UTC
The isl12022 has a dual-purpose irq/f_out pin, which can either be
used as an interrupt or clock output.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
I've tried to express the fact that the pin can either be used
for interrupts or as a clock source, so that at most one of
"interrupts" and "#clock-cells" can be present, but I don't really
have any idea if this is the proper way to do that.
.../devicetree/bindings/rtc/intersil,isl12022.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On 12/06/2023 13:30, Rasmus Villemoes wrote: > The isl12022 has a dual-purpose irq/f_out pin, which can either be > used as an interrupt or clock output. > > Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> > --- > + > isil,trip-level85-microvolt: > description: | > The battery voltage at which the first alarm should trigger > @@ -35,6 +38,13 @@ required: > - compatible > - reg > > +if: > + properties: > + '#clock-cells' > +then: > + properties: > + interrupts: false https://elixir.bootlin.com/linux/v6.2-rc3/source/Documentation/devicetree/bindings/net/qcom,ipa.yaml#L174 Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml b/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml index 1e85a9c8945b..345abed9234f 100644 --- a/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml +++ b/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml @@ -19,6 +19,9 @@ properties: interrupts: maxItems: 1 + '#clock-cells': + const: 0 + isil,trip-level85-microvolt: description: | The battery voltage at which the first alarm should trigger @@ -35,6 +38,13 @@ required: - compatible - reg +if: + properties: + '#clock-cells' +then: + properties: + interrupts: false + unevaluatedProperties: false examples: