Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp36703rdh; Wed, 25 Oct 2023 15:23:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGe26OmvtURyeTMO19VQ9dhbrNi032OmBprrkx9sMTvjTOrTZf7sops0XB+ouhyZJTOWPum X-Received: by 2002:a05:6808:4c7:b0:3af:6595:e53 with SMTP id a7-20020a05680804c700b003af65950e53mr17739312oie.13.1698272632564; Wed, 25 Oct 2023 15:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698272632; cv=none; d=google.com; s=arc-20160816; b=uRSFW07BOpffLlG0nJ6eLTebRKMTpjWOz99ZtiIlUgdfbhLqTZ/IiLHu/IZz6yeeKh jWyXj9gdJqWEZ2bylIUovGGi7D3PErqzk43tWgYI/nZDxtbXj4wsF522Kfli+q9Il0vD qTiUcjqpSa8HAY7zy7mMajnkt1+inAj/a3gk5OTSTY5sSPlTuz455rxKaiYakZ6Bv+KU NvcwHCYVhAe1rSbVHgma9HHCtRM3vC8z/HFkRwbKu+a/qMqwcl+mhzn/Zqimu/T6d1fD 4DUnGqqQ6SwKUhPdLMGzp5qmOtPXMppRQH0pi8RQMiufjDQRzb+H+rrngCS5n64/2ghl ijAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IcV849E/eIhK4TvCJqadj3oQo0m8lh0wsmlqHmLSGNc=; fh=0wcRumAHWyW9HG7Rhjgpm8Z31wji5DwtfjIle1KiyjQ=; b=JNorgZ69ZUNHTvWejtADzFdwdZeeu2EXLiTOlMxSMc+Ci/tkQvRH+qNNFLhqOQ1nlS dB3yRT8ASqFNu6GzY/ggb6ULiHttN+pg5LE4HWbHWYy/ZDdHF072PET6r6uVZUxSTRC2 4krpPvhQ8zkO9Upf6x1kAZb18ngohYlfaKyvUsoZFT48wTzxKKpNLKfics0YZqKbtw0Q irODhadiAu/4GF0htFqiSRGEl3jzaOZDM6LlXvQsKjNUr4s1ltxiWu7/jHtheOHKPLEz Vx2L0xOaDqO3PcfvBBP9514PwC5nJWg6ob2GWfsme9ke5T+lr4hpq3j68+NMoZ0AAnIE H3mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DZj2JfZP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l3-20020a25cc03000000b00da03ee50637si6075210ybf.26.2023.10.25.15.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 15:23:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DZj2JfZP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9F97F80A3130; Wed, 25 Oct 2023 15:23:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbjJYWXe (ORCPT + 99 others); Wed, 25 Oct 2023 18:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJYWXd (ORCPT ); Wed, 25 Oct 2023 18:23:33 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69406E5; Wed, 25 Oct 2023 15:23:29 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 672EBFF809; Wed, 25 Oct 2023 22:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698272607; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IcV849E/eIhK4TvCJqadj3oQo0m8lh0wsmlqHmLSGNc=; b=DZj2JfZPA3ox2juxLyrlHb50+XKNMziUVvrNFT+BX21YLtmmZqYoDm11F70jSy5jZej1A5 fgen08OtZoBSYEQo4blO74aI44uo37e3gUo/ZRggPPSpXnd9xxX9tKqjC7KEie2fLtyodI gLfr/AWEWxelYz9jcrSUXBhf4UXFbGcOL81WiHdwTreEldedDdfrK0HCZoActamgzVweuX kVhWVV5XZteqD8ZWz8dvJsJlHx/elJ9Kfc1QriYVhqPWlS8TnN+6Cwqx1QRTWXXZmf6nMX HCfo40I3r4B4Zz1RnU4yyv9N8FArEq98vbfZBFhWoTckhXW+9WNZb6W6+t70nQ== Date: Thu, 26 Oct 2023 00:23:27 +0200 From: Alexandre Belloni To: Javier Carrasco Cc: Alessandro Zummo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: rtc: nxp,pcf8563: add hiz-output property Message-ID: <20231025222327c0b5d460@mail.local> References: <20231024-topic-pcf85363_hiz_output-v1-0-50908aff0e52@wolfvision.net> <20231024-topic-pcf85363_hiz_output-v1-2-50908aff0e52@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231024-topic-pcf85363_hiz_output-v1-2-50908aff0e52@wolfvision.net> X-GND-Sasl: alexandre.belloni@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 15:23:41 -0700 (PDT) Hello, I'm sorry I never replied to your previous thread... On 25/10/2023 18:21:55+0200, Javier Carrasco wrote: > The "hiz-output" property models the RTC output as a high-impedance > (hi-Z) output. > > This property is optional and if it is not defined, the output will > either act as an output clock (default mode) or as an interrupt > depending on the configuration set by other properties. > > Two modes are defined in case the high-impedance is used: "enabled" and > "sleep". The former disables the RTC output completely while the latter > keeps the RTC output disabled until the system enters in sleep mode. > This option is especially relevant if the output clock is used to feed a > PMU, a PMIC or any other device required to run when the rest of the > system is down. For the sake of completeness, a "disabled" mode has been > added, which acts as if the property was not defined. > > Document "hiz-output" as a non-required property. > > Signed-off-by: Javier Carrasco > --- > Documentation/devicetree/bindings/rtc/nxp,pcf85363.yaml | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf85363.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf85363.yaml > index 52aa3e2091e9..4b27a9154191 100644 > --- a/Documentation/devicetree/bindings/rtc/nxp,pcf85363.yaml > +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf85363.yaml > @@ -36,6 +36,19 @@ properties: > enum: [6000, 7000, 12500] > default: 7000 > > + hiz-output: > + description: > + Use enabled if the output should stay in high-impedance. This > + mode will mask the output as an interrupt source. > + Use sleep if the otuput should be only active in sleep mode. > + This mode is compatible with any other output configuration. > + The disabled value acts as if the property was not defined. > + enum: > + - enabled > + - sleep > + - disabled > + default: disabled > + If instead of using a custom property, you consider this as what it actually is: pinmuxing, then everything else comes for free. With pinctrl, you can define different states for runtime and sleep and they will get applied automatically instead of open coding in the driver. Also, how you define this property means that everyone currently using this RTC is going to have a new warning that they should just ignore. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com