Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5407167pxb; Sun, 13 Feb 2022 20:26:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIIT/IaUNRASoZjz9QmUoduh2FymdRov/HbhgrFevc0h7Y8RqgXrvgX1xAPpuqAWVShLiG X-Received: by 2002:a65:484b:: with SMTP id i11mr10120732pgs.40.1644812811569; Sun, 13 Feb 2022 20:26:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644812811; cv=none; d=google.com; s=arc-20160816; b=hr3/cvjIirKM4TyycRCyqHvrcfGTTYp6GDEMTy988rSzUzQ8qmYvj6EJM7fuFcsC0k AcUpIju5bbUoA8Rnhzs4G+zoGxQO/Gp6bjkKYDB1fsQhEzL9gcRLzlMN+3Y/+b0waQ91 jqG69bazvnlMu6gIyMrC8ml3b+F23hvBzMgo04WCUfy0yx9aDjEIR3uPyyFW8mBRWXzP zyQU7NtvzHB1e7qiE4CqrTKcVinmeXODM7EWXoLyncYJJxtTnZf5KCP6bZ8Ik89hElqK c+hzJI0FHqjoNTFC5oWFw9H3J6wQtWOJV2i9OsSvwfz4gYg+KiH9wywnOsGLH/3alPhK uojw== 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=dBJ4jn/Othh/3mI5Ygz5jPmtny0zhFBhPSaVX6iPMeA=; b=B/QR17+ddKzoXGcfuvd7RNqr4bJJSHoeA0k5ZFxNmY6BEOlsPLhqaa0gyHcFal/+GJ 7rpN5IfUTjku1iJF6YWnROMMw9SQSD6felBNKQCFY/Y/OZ4+kLQfyZsGpCJ59f3JSX39 vTpg59ABBvQsLQ1ia4LWsfoYm+YVqizA3RlI1aH4RHU7x0IPFKXxgSMBDR+ddW3XDQuG L6y1qbGZUZ63d2+ACKC1sgBI+oeLjStb2TI25/zeB/U2f5ehc29h//xwN6kaMEksLqE5 9Cb97ZQiEfrppqcUvpzBILDGG3/umg5Og0gauPDNo9fvU0VtsXbGL+sDYQWJu8qQaqyS x8lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Yj4OgahB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g124si9611540pgc.441.2022.02.13.20.26.38; Sun, 13 Feb 2022 20:26:51 -0800 (PST) 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=@bootlin.com header.s=gm1 header.b=Yj4OgahB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353672AbiBKVDJ (ORCPT + 93 others); Fri, 11 Feb 2022 16:03:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353650AbiBKVDG (ORCPT ); Fri, 11 Feb 2022 16:03:06 -0500 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 97DCE2D3; Fri, 11 Feb 2022 13:03:04 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5488620007; Fri, 11 Feb 2022 21:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1644613382; 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=dBJ4jn/Othh/3mI5Ygz5jPmtny0zhFBhPSaVX6iPMeA=; b=Yj4OgahBfdgUT4cPNMdh3B+AjwN0nLxhAHavhTZ7s8t0zyl0cJWVSDiTPhKQFp48if4UYq BO28iPBqV/qSsif6nLAAafgAyjcjH8Pkh77j8Lx2Vwhi8jO3ObYynyFWcsvR3BDUw7OQyQ Em5e9g4WoPj21dMR6KX5E31C6qDagdstEh7v0sbNJjQC5EI0dcbQaRqY2lT00VL/FYifi4 HiLsF0cEfPYudAvwQpcvNAYiiF9wT7mUp7eZCcsAyLKjVaxNby97N+k7XFnsjPU2jvXr+u ayEF4Y4bDI7CrrYa+6GjyT4eeyvLst7pO1l9rILrhX3oclGB4CAK5BzM3cXAMA== Date: Fri, 11 Feb 2022 22:02:58 +0100 From: Alexandre Belloni To: Hugo Villeneuve Cc: "hugo@hugovil.com" , "robh@kernel.org" , "a.zummo@towertech.it" , "devicetree@vger.kernel.org" , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 10/10] dt-bindings: rtc: pcf2127: add PCF2131 INT_A and INT_B support Message-ID: References: <20220125200009.900660-1-hugo@hugovil.com> <20220125200009.900660-11-hugo@hugovil.com> <20220210171234.4e317c8a5d5f91f358382b07@hugovil.com> <20220210175510.c99eb77c6367d4df5d8bb9a2@hugovil.com> <7be3f9541eaed7e17e334267e49665f442b1b458.camel@dimonoff.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7be3f9541eaed7e17e334267e49665f442b1b458.camel@dimonoff.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On 11/02/2022 20:16:27+0000, Hugo Villeneuve wrote: > > > Actually, this property has to be made more generic and thought > > > out. > > > There are multiple RTCs that have multiple interrupt pins where one > > > of > > > the pin can be used for different interrupt or clock output. > > Hi, > the only example I could find of such a device is in rtc-pcf85363.c. > This device also has two interrupt pins, INT A/B, like the PCF2131. > However, in the pcf85363 driver, pin INT B is simply ignored, and all > interrupts are configured to go on INT A. > Yes, this was the RTC for which we had that discussion last time but there is also pcf8523 and other non NXP RTCs. > For the moment, I will simply modify my PCF2131 patches serie to mimic > the same behavior in V2. This simplifies things a lot, and support for > INT B pin could be added at a later stage (and also to pcf85363) if > anyone needs it (I don't). > > Hugo. > > > > With your binding, there is no way to separate which interrupt is > > > going > > > to which pin and so there is no way to get the alarm and BLF or the > > > watchdog on different pins and we certainly don't want to have a > > > property per interrupt type. > > > > Hi, > > can you please suggest how you would prefer it to be done? > > > > > Also, the documentation is missing the fact that the driver makes > > > having > > > one of the property mandatory. > > > > I will add it. > > > > Thank you, Hugo. > > > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com