Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1938285rdb; Tue, 20 Feb 2024 11:25:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqD5wxQTictaevOM4VIm5XjhNhB84So/2ogP3dDr7s+H6e8ofKElxdicHEy9l3wN/t+Pt9z2/MOo0f8G7D8aLUBWHhE+Y3Ccgwp5IyMg== X-Google-Smtp-Source: AGHT+IGFHw6OPZhDW8IEBkB8gx73cNhkwY14vneFYDvfPK0mAwEMZdjqJVZx822VY1HMGsmCJyM2 X-Received: by 2002:a05:6a21:3943:b0:19e:aa08:1a0 with SMTP id ac3-20020a056a21394300b0019eaa0801a0mr25707227pzc.8.1708457158902; Tue, 20 Feb 2024 11:25:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708457158; cv=pass; d=google.com; s=arc-20160816; b=j5UuygoURDBqtggvTK3m3j8hEtl+Xs3swijOD0KzchUzzGn7ifhglrCORKOLk5IEk4 a3KvkDO1m7nfl+lNeDvadgw7RqO4vIWlTdA9z4QJYxWZ335oVDVwb6Lm3dETaTbeQZhF 1M0A1EmX9dpidje0qF8nMizwkVDQ9JPO2vURKuQJma+ldcO5zxb7QTdA3gIEQ24PUlZI 89+B7fq8hpM9upusG3M0nbwh0pLFHTSrEijZ+6zsesydVDxoDvG6UDaqBuZgYTlZlvm3 jq1EAGbGZtLgqrNXUF2wXXvEbHdODLt6dW/rmDzfr5i5IteR9BiNnUK19Fz2I4EIMaNg RA0A== 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=ghf9qCa5wDIx1y7LkaEhUx4r4hA9BRAtWC28h6lxnfo=; fh=9KKSbztZu10Aa3ZTj1ABy7PAFVu9TjLKx0mEMuhQTiE=; b=yqYnKycB1orr7Zv+JMWlJTMoNvK3/2JDi7bhedhGZH2CSwHMPlfvwywCSFjAbylcKw DyparCUNkn9/5axO7Me+GbwJrAp8AzPEwaqz2mh1zEolYD5s9ggto9n3NUV9TmYswGWO zspslY3hgOkc89cp4Jp7mZYM5IbtkhJvCMI3aSdv6ehtGuSQ4PBPqCbMqf2FBvp6ko27 qJP6Flgm/onQdEppzpkCJj/nGCb9buy09PpZfVQC+SBiPOUVbVduT1v/MGTFxIPl9Ira jUhr5blDCklSqvIMaAKHFe8poCJyyVUhakyJ834ZGFIqSKSTryANtbnr/HqlaUq1pUq6 6PQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=avH2Kmj6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73585-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l22-20020a656816000000b005ce0a1164aesi6494113pgt.616.2024.02.20.11.25.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:25:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73585-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=avH2Kmj6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73585-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73585-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4865CB23131 for ; Tue, 20 Feb 2024 19:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 840A51386B1; Tue, 20 Feb 2024 19:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="avH2Kmj6" 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 9FBA5612D7; Tue, 20 Feb 2024 19:21:08 +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=1708456868; cv=none; b=iWbdHBrKqrFQZZrGJwnLBnTWk5qVQ2aDXyQDkswU7/Hk+dPq2X7LZpFMe1DCfVDvVYWeqgPqrMjAZ0MpcDICPlHLGDef4viSnKk/RIF5v3L8+bCPQmkGLap0q772hQQwEXahXEuHo3Yps9o9+Ul6Fhh9TV5sC9ygT5whLkk+68c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708456868; c=relaxed/simple; bh=/8B+SVqWi9/8HEqD87v2d6g2SFTWC7Ca3KdPMEZ4hJA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PVJ3+Rr+aVTqtkVtlFllYHrNYmklUeZtLeq+1QIRkDI7EBwn7omcpWVyHH03gFrMatfP9OuKrkxNnNgV6kKjq93UugnALm/mj+jK9fzd+QyKt1+zMGnWVZOU6GuqxD3Lbct1xzKHSovBvLe/AwKZ7rug9JOiIdhOCcWZvKMMDCI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=avH2Kmj6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C468C433F1; Tue, 20 Feb 2024 19:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708456868; bh=/8B+SVqWi9/8HEqD87v2d6g2SFTWC7Ca3KdPMEZ4hJA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=avH2Kmj6V6pPV3DJYLy/6Q6Fd8qpMmAZnbeSs6qPatt2gZe4JKwM9xm9ttLszoNkB 9i4jdv+jycnTa7sHbthKxGgaT0jpiDsrGp/epBZQ7YvDqAzp2Mt97GcbXzN7/eKG+u BmAdO32WMEtMlKvrmDdTDxuAO8sXnGdiOZea2GRhniwwh9+9blCYB7KlxP5Cx6lVkj bVaq+vnjJwv4G7+e5ESyZooi67F4ghdUGfFy3XCSef93zHAwuIi62lKMYjuWTa0TYZ 21HWhEl3eBL8AVemu1ZbKIPItCpEdXtHA7bsGYd+KUrHMpCa0ZZ/I2l8z9WMsIBU8x uW8uMD1xBonwQ== Date: Tue, 20 Feb 2024 19:21:03 +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, Ibrahim Tilki , Zeynep Arslanbenzer Subject: Re: [PATCH v7 2/2] dt-bindings: rtc: add max313xx RTCs Message-ID: <20240220-unified-payback-13b0964c8c29@spud> References: <20240219221827.3821415-1-chris.packham@alliedtelesis.co.nz> <20240219221827.3821415-3-chris.packham@alliedtelesis.co.nz> 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="Lr0x75LRIzBUufR/" Content-Disposition: inline In-Reply-To: <20240219221827.3821415-3-chris.packham@alliedtelesis.co.nz> --Lr0x75LRIzBUufR/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Chris, On Tue, Feb 20, 2024 at 11:18:24AM +1300, Chris Packham wrote: > From: Ibrahim Tilki >=20 > Add devicetree binding documentation for Analog Devices MAX313XX RTCs. > This combines the new models with the existing max31335 binding. >=20 > Signed-off-by: Ibrahim Tilki > Signed-off-by: Zeynep Arslanbenzer > Signed-off-by: Chris Packham > --- > .../devicetree/bindings/rtc/adi,max31335.yaml | 70 -------- > .../devicetree/bindings/rtc/adi,max313xx.yaml | 167 ++++++++++++++++++ There's no need to do this rename. Having the filename matching one of the compatibles is our preference. In addition, it makes it difficult to see what your actual additions are here. Fortunately, applying the patch locally allows me to use colour moved and all that jazz, so I can see that the underlying changes to the file actually look pretty good. > +examples: > + - | > + #include > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + rtc@68 { > + reg =3D <0x68>; > + compatible =3D "adi,max31329"; > + clocks =3D <&clkin>; > + interrupt-parent =3D <&gpio>; > + interrupts =3D <26 IRQ_TYPE_EDGE_FALLING>; > + aux-voltage-chargeable =3D <1>; > + trickle-resistor-ohms =3D <6000>; > + adi,tc-diode =3D "schottky"; > + }; > + }; > + - | > + #include > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + rtc@68 { > + compatible =3D "adi,max31335"; > + reg =3D <0x68>; > + pinctrl-0 =3D <&rtc_nint_pins>; > + interrupts-extended =3D <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>; > + aux-voltage-chargeable =3D <1>; > + trickle-resistor-ohms =3D <6000>; > + adi,tc-diode =3D "schottky"; > + }; > + }; > + - | > + #include > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + rtc@68 { > + reg =3D <0x68>; > + compatible =3D "adi,max31331"; > + #clock-cells =3D <0>; > + }; > + }; The one thing I do want the comment on is the number of examples. I don't really see what we gain from having 3 - I'd roll the clock provider example into with one of the other ones I think. Cheers, Conor. --Lr0x75LRIzBUufR/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZdT7ngAKCRB4tDGHoIJi 0gcVAQCUm3UGEM+Z/9EWoRiY+5d63k/n2Hnz9XUiLW/AZJehEwEArBjG41/eCY1Z LV4ymimhjQsiORRNpOuiTwJItdYREgY= =hOoo -----END PGP SIGNATURE----- --Lr0x75LRIzBUufR/--