Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp55354lqc; Thu, 29 Feb 2024 10:07:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV9l4uDqhR52yrAvzc6TkWCyoz06bIl7FNcsNOeFRf4uzojtweCLt8VfoycVFsB4KYJUvO42nzgOUzLcaHN9zu2ii/35COtsk9YCG9ZbA== X-Google-Smtp-Source: AGHT+IG/7oD5ageeja2fjpIpyjE/XYpAF+u9ONPupONxm/Qwgb3k0lCuecC013ZYMWqlD3QpV2Fi X-Received: by 2002:a05:6808:222a:b0:3c1:823c:b1be with SMTP id bd42-20020a056808222a00b003c1823cb1bemr2958124oib.37.1709230051341; Thu, 29 Feb 2024 10:07:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709230051; cv=pass; d=google.com; s=arc-20160816; b=ilz5KYJdJfnzFX3NnD2+eIboaz66kBpTnMYBiMnlR1QHhhK4xkrDFpN3BhwFoCst5h QuS5NK0MGxcpZi/HuSsdLjaNLIAh/G/AGtp40ISy8nLyCqoCK+GM2+oTtoT16SDuNgqt gyaWg1MOaNzjfsxw+0uv30b1oj+WwjMyU5uci9sPxIqShjEfA8vhvLYyIbau0+OI67zN MmtZ981amgMDT/6QGWXSJ8DGZmTTeuCygOziVhkI89nBQySHhzQNmEkPGQtbtAV1fgZA xqYE/0/x2omGncaPurNKK2NbTzsqDHJ/nak5ZSq/zmORqxAnaQ5U+99uKAgyy2zjDkuu WJpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XQrRGcpLs/EJBq9eWXCChpfJafI6q8yxg/Eo360+IKc=; fh=H8i1fIqYDIYz1MU075zao9PRM0qBXedCkDgPC9iC4RI=; b=Z/E6zZXpJ6Fs687K5DJLvZxfpCFfZ3FFcorKoj5VcKPbzbtEtFTUrJr+lb8S+rgWB4 y00ereY43prWI9gB+1NAut/hjHtLbzZyL5TvLsaGhbcyP6FUTHNQPi20rXd2h1Z+CXEf 7YMhdf4SRDW/EA4XR7REZEaDuC9sQY8ag5+O+7fcZv3XW2jGqmVcNc3/OmxgT6MyqoM9 6aKGOnBcAOSOnoKSblX7JPUC7ULiaVmo7D8j9mSiraOqD0O281DcAjuoYo/Xsu5GfKsg AAvd2KoltOiJyyu8x+KmeQQOkoXs6fTqPGdUur+DcqcnylKmVSeC5E60PY1IwVklRvEa tHHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cg1541hv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x18-20020a634852000000b005dc4fdcf9b2si1849438pgk.9.2024.02.29.10.07.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:07:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cg1541hv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E40632843A7 for ; Thu, 29 Feb 2024 18:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8285C78273; Thu, 29 Feb 2024 18:07:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Cg1541hv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2A9816062E; Thu, 29 Feb 2024 18:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230042; cv=none; b=EFYBPbPSvG3K7GjvgvwKIsmoi+zYz+Yz3ax8mxZChfQ5gFQ/QN3E8eK0+MPwKaVFChG5im5xCgGM/V4bQWzeULD/bJtVLwAeCScu1A3uXhdFbhFXMFxMgAIFLATZ7u6dphNvzk2v9SfOVcfs438ZNimd+V8CR/HNTuQ2A8iKUSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230042; c=relaxed/simple; bh=cX2PHbRKLPBHDGWFeHshU8/kZ6O3pk6xNH+MwzuwUqI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XDRF91VtWrdFw3Be/EhCsNLyx0nhu89GPvAgLKl7OQ6V9k1SGXIEtmTlGg4Ye01RsM9GxLdgZZXYoA06BHD98GrdRQ0gwru6jy7zKB1vY/LdiYZ8yrApwoNhbvCLjM+jQhTGov3rmddB8IevNKOPIU0GbYqQ4qZyTtIhHKkEE54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Cg1541hv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EF73C433F1; Thu, 29 Feb 2024 18:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709230042; bh=cX2PHbRKLPBHDGWFeHshU8/kZ6O3pk6xNH+MwzuwUqI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cg1541hvCxmc/49oNGiTZXi+uzcb5gnkddG0ZEFtXZNCP/xCLIo0W5wA0Y5BVSTfV 1/VAdoDvJwVNAe2Rd4VXy4G/9x2zFlXw5qiMsgABhuSkNERiZHFSMjY8ZlEPhvtGUp mo1pmXwkCq9+Ufu3F9UW5CLqsFRVo1U/3t17NYnbuZIGFczMQQsZ/B9Pcpfox9Vsm7 vySAGACLxG2/uFu30N9+l5YoNESW4TY8u0Q8sumLKh2mTIl27gODNBYGroxKtVDk1V 2Thqv9jlex0BiX9Eqd7VngEvUFSiJRY5gscioA/zBcHMF0K34bqpFyWvUf2PUek185 ZqObIVvPdA8Hg== Date: Thu, 29 Feb 2024 18:07:17 +0000 From: Conor Dooley To: Chris Packham Cc: "antoniu.miclaus@analog.com" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "jdelvare@suse.com" , "linux@roeck-us.net" , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" , Zeynep Arslanbenzer Subject: Re: [PATCH v8 2/2] dt-bindings: rtc: add max313xx RTCs Message-ID: <20240229-skeletal-ultimatum-27cd91e8d8a8@spud> References: <20240227010312.3305966-1-chris.packham@alliedtelesis.co.nz> <20240227010312.3305966-3-chris.packham@alliedtelesis.co.nz> <20240228-embark-rimmed-d81bab3d42b8@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iR98pNhTE57Kvx2v" Content-Disposition: inline In-Reply-To: --iR98pNhTE57Kvx2v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2024 at 08:21:35PM +0000, Chris Packham wrote: >=20 > On 29/02/24 00:58, Conor Dooley wrote: > > On Tue, Feb 27, 2024 at 02:03:10PM +1300, Chris Packham wrote: > > > >> interrupts: > >> + description: > >> + Alarm1 interrupt line of the RTC. Some of the RTCs have two int= errupt > >> + lines and alarm1 interrupt muxing depends on the clockin/clocko= ut > >> + configuration. > >> maxItems: 1 > > The maxItems: 1 looks odd here when you state "some of the RTCs have two > > interrupt lines", which makes it sound as if there are actually two > > interrupts that should be exposed here. If those two interrupts get > > muxed to the same pin for output I'd suggest that you clarify that here. >=20 > This may end up changing if I can come up with something that Alexandre= =20 > is happy with. Basically (some of) the chips have a configurable pin=20 > that can either be dedicated to the ALARM1 output (annoyingly labelled=20 > as INTB) or to a clock output. There is an INTA line that has other=20 > interrupts and if the clock output option is used then it also has=20 > ALARM1. The driver doesn't currently do anything with the other=20 > interrupt sources so as written this needs to correspond to whichever=20 > interrupt output is asserted for ALARM1. So you're saying that depending on whether or not the clock output is used, there could be two interrupts? Without looking further, it sounds like you should be setting maxItems to 1 if #clock-cells is present and to 2 if it is not. Then if there are two interrupts provided, the driver is free to configure whatever way it wants. If there aren't, send everything to INTA. Am I missing something? Cheers, Conor. --iR98pNhTE57Kvx2v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZeDH1QAKCRB4tDGHoIJi 0mgUAP968MrAUrLc4/ZPgIL2M9ot1CbzwNP1m69CXgjSTaqhBAEAzgOl8/WsPk83 fJ+Eot7rs9erOG9XK/haG0oYOJlUBww= =znc+ -----END PGP SIGNATURE----- --iR98pNhTE57Kvx2v--