Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2578262rwi; Fri, 21 Oct 2022 05:39:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ivAG1XQi3Uq2croqBN3HXPY4mQ5Mehg/XeOJUJl3kfRMQkFOcEoNdE4oKEKCwX6PL0Qq9 X-Received: by 2002:a63:243:0:b0:43c:75c:d92a with SMTP id 64-20020a630243000000b0043c075cd92amr16026478pgc.497.1666355955848; Fri, 21 Oct 2022 05:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666355955; cv=none; d=google.com; s=arc-20160816; b=NfoEtccSgbEMX0HBri3pdpqCC8zCoNizZWcz55uBMuiA2YzQl8/yWhU3AkWyTM/EvQ fHmXF2SI21BL2FyQjeRG5GTumTX6H+9g1InrvsvPvbDVeGm9sUxjXmhaNeRLiGcuxSaw h8d8TguhwS7PsNsPY159q+3xquhdQCq0T0rnVz30J0pWlrCU0BDbEg2eYwiBoSXrX8hg NBOsTfeRcPTFr0bj2t7mbAUmJ7SLwmDGVn7hagzVXyUuc1bmZasGtSPIkzgMfoVLK7t3 wJmaG5tWfklJw3//L22VW+MwK4+XcYQOfWscdlknCPVI8U9PuwScpD+ZtgohJLg29ijb Te7A== 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=f8JhSCsc0VPJJFxWJqi6lXg1VFcKEqMx4JafSN8dRwc=; b=rI8OfaXeIqqWfX4t8TitcZbgjcCi4uao3Uy36b+5Hfxw84MM5cOpR9q4/JXXFAWXCZ 2JtWwskUY/7Yeo4aTvCJegSmNCQ20m55ditUIYqTboxkmWfX66wyCT312U9N53fdHo7k XG7B3a9Or04zhprP26TjpKyyPHEgkJkjBx6IJbWLzu8A0XrbTlBKIvNPc+LHLErj4Q9F /QA7u4fyJyUEMzZVrbAIPVKmBDCyJ4NEz+NnLxmsmUqKEAbWPB9p6cdjRsJ+sKRgCECI joJ2AAgJMG70fwO31pEiXcq2bQ1LwYuwSCAdJdxzum0nDtnN8BSVUCVoNJFGdX5UaLai egwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PPYGKJql; 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 z10-20020a056a00240a00b00557eeba9fa4si26971056pfh.91.2022.10.21.05.39.03; Fri, 21 Oct 2022 05:39:15 -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=@bootlin.com header.s=gm1 header.b=PPYGKJql; 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 S229998AbiJUM36 (ORCPT + 99 others); Fri, 21 Oct 2022 08:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiJUM3z (ORCPT ); Fri, 21 Oct 2022 08:29:55 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F10A15806F; Fri, 21 Oct 2022 05:29:51 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 120F724000F; Fri, 21 Oct 2022 12:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1666355390; 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=f8JhSCsc0VPJJFxWJqi6lXg1VFcKEqMx4JafSN8dRwc=; b=PPYGKJqlyoSe2ReNc/ywYJuUZA6K8KevIZhATbt/WsOjPCH6ZlFOYynN+ujHcbuTP8UlAW 16z9NMp7+Ik6PS9ALEqTkfV1D9i6EMwGmw5CUoj1jIVLohaFehBmAiuYYs1LrMbALCFDZi I4kRjyfPb3hteYukHnDrLotrrVqsrFCIsSRIkTFIXVzRYohsnahn/zLEBNdgB9AjS60jEP EoJ0FFmXCtvAmPr2v0Kg+phZ1McBLOjtDaTlAqM15Qh6gxP1UwJtmwkhrYJVZnUFSQ/n2K iP/XulJYW8C9utf0+UH0w7SLw51qUJVW2g4pEY7pUGAWTV6opMugDzDuTFhjAA== Date: Fri, 21 Oct 2022 14:29:48 +0200 From: Alexandre Belloni To: "Tilki, Ibrahim" Cc: "a.zummo@towertech.it" , "jdelvare@suse.com" , "linux@roeck-us.net" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" , "devicetree@vger.kernel.org" , "Arslanbenzer, Zeynep" Subject: Re: [PATCH 2/2] dt-bindings: rtc: add bindings for max313xx RTCs Message-ID: References: <20221019133910.282-1-Ibrahim.Tilki@analog.com> <20221019133910.282-2-Ibrahim.Tilki@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 21/10/2022 11:44:12+0000, Tilki, Ibrahim wrote: > > > + interrupt-names: > > > + description: | > > > + Name of the interrupt pin of the RTC used for IRQ. Not required for > > > + RTCs that only have single interrupt pin available. Some of the RTCs > > > + share interrupt pins with clock input/output pins. > > > + minItems: 1 > > > + items: > > > + - enum: [INTA, INTB] > > > + - enum: [INTA, INTB] > > > + > > > > I don't think this is right, what this is doing is essentially pinmuxing > > interrupts versus clocks. What happens if you want INTB but this goes > > directly to a PMIC instead of the SoC? > > It is not something you can express with your current bindings. > > > > Why would a user want INTB when it is not connected to SoC? > User can specify none, either one or both of the interrupt pins. > I don't see what the problem here is. > the interrupt pin may be connected to a PMIC that is able to start or wake up the platform. In that case, the user would not have any interrupt-names and your driver will fail to mux the interrupt on INTB. Please fix. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com