Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp98784rdh; Wed, 25 Oct 2023 17:50:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGj0tKIMO+1L6HkZtqlhLxPQcQohLfKONUFR04OY8Ihe2R/Eory7gjhhOYdWIL1JHulm8iH X-Received: by 2002:a25:ab03:0:b0:d80:1604:f6e9 with SMTP id u3-20020a25ab03000000b00d801604f6e9mr16817241ybi.44.1698281434958; Wed, 25 Oct 2023 17:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698281434; cv=none; d=google.com; s=arc-20160816; b=Zieg1WbPzq4/xr0yVLhOi6wP/AmqiOkOWda9H56AIcxbIcBX4no9/ibhMtT3SSqLq3 /yRpeQatFFtJIShIs/CxX4fholjC6HtvWj70J6Se8EoBthHufclB8nV8WsxFQWjkAtJe pqjUGD4BoVD6jFltrDBJtjNVDMaE2SbANzB9w74OfJlMMMS7nWC5tjHBueGejAUdsw/n ttvkNf/3lOfqonZZNBYY0RciaKE31fHfuC8lyBKPJtdsAV7CRthShZUJpb8WGtwSYPR0 OOznuf8tSktumiIt1lBwGN9xxeiw6J/mUoGrriEN1JxbhO+rMzMkjye3846hUfVd43gP prKQ== 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=Kw/f9dk03toD/bngeKNCjlbBkW7ybBlC+GD5XNSlQw4=; fh=0wcRumAHWyW9HG7Rhjgpm8Z31wji5DwtfjIle1KiyjQ=; b=adAjhm80fy6VXF79ASXVqN6Xc4Idqrk5oO8vuUKnAh+3ida2GMtRQKc3UWqyIf93QE zpd4SQ+bnq9ZeDKXOoKQfqBPBzNt+huVagsQUkFaDF+pzMZ2cUez7ox9ZP8UdWpbTB7q 4ILOoMC9Ok93NtRkS2RqUK1clgTyqYRz0VkfDS5CNtMq3Nkr7u6/LqeWb74Pw4P+0lbO 9LHmZsKLAxHnBtttaxI690sl3qTkUzsLNUZ8knm3xzAyM4sU0myhFyU2Rm+RLjryyoFo HZLbnif7jdLCqyqfHppuQnjAdE1oerqhItgmCqVbXUcx/kRaJ5pwkvjsA1AfW2aBJlMd 5aow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=U62Bw4+6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 125-20020a250183000000b00da04c3f9251si5104371ybb.113.2023.10.25.17.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 17:50:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=U62Bw4+6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id BFDA781F84D8; Wed, 25 Oct 2023 17:50:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbjJZAuP (ORCPT + 99 others); Wed, 25 Oct 2023 20:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjJZAuO (ORCPT ); Wed, 25 Oct 2023 20:50:14 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4564E5; Wed, 25 Oct 2023 17:50:10 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id AD5E420004; Thu, 26 Oct 2023 00:50:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698281409; 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=Kw/f9dk03toD/bngeKNCjlbBkW7ybBlC+GD5XNSlQw4=; b=U62Bw4+6YVbdcFQ/mTF87ZhhKowumwwb5pmSYNsclhWqH/0PEFUOXN4SY6PZUBjUVlmkBt MkUK+SE9NHQkTTA/iYN09gp+lNXhoRsKdbK0OQj6KDOS4IjUly+sb3YceetjVpIJRGnLnc Hcey3iTCzTQmUqtLj8TxhUrzMkW9NxkHOdKKBLU1UUlzeabr+ZecLrb39ndDuOjvwNAcAw GV37zJELG42qboEIAJfq85MXJHQpS1Ea/BSLiKwRYst/RfK3npwwQOY90uHd0/DGiJCnaM 6LQAnIsGWrRTtAG+vX29KxgqdjEOoE1aHMgNaulWLiUJFEBr/rau5lf0t3YW7A== Date: Thu, 26 Oct 2023 02:50:08 +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: <20231026005008b8255799@mail.local> References: <20231024-topic-pcf85363_hiz_output-v1-0-50908aff0e52@wolfvision.net> <20231024-topic-pcf85363_hiz_output-v1-2-50908aff0e52@wolfvision.net> <20231025222327c0b5d460@mail.local> <2f17c031-30f6-4242-b2a1-1628402b3091@wolfvision.net> <1c4a6185-fe09-45d1-900a-10abf48e3fc9@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c4a6185-fe09-45d1-900a-10abf48e3fc9@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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 17:50:32 -0700 (PDT) On 26/10/2023 01:23:21+0200, Javier Carrasco wrote: > >>> + 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. > > I am not sure if your solution would cover all my needs: > > 1.- With pinctrl I can model the SoC pins, right? That would not stop > the RTC output though, so the 32 kHz signal would be generated anyways > even though the SoC would ignore it. That is one of the things I want to > avoid. > No, you would model the INTA pin. > 2.- What happens if the RTC output is a clock for an external device > that is only required when the SoC is in sleep mode? In that case I > would like the RTC driver to control the output with the modes it provides. Even if I doubt this is a valid use case, this would be possible as long as the external device node has the correct pinctrl-* properties. > >> > >> 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. > >> > >> > > Thanks for your reply. The warning can only be triggered if the property > > is defined, so in principle no one could have that warning yet. Only the > > ones who actually define it and use an invalid value would get the warning. > > > > On the other hand I did not consider your approach, which might make > > this patch irrelevant. So I will have a look at it to make sure that it > > achieves the same results. > > > > Thanks again and best regards, > > Javier Carrasco > > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com