Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4302627rdb; Thu, 14 Sep 2023 19:46:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGttBFVryC814on6C9DRF2Nx0Cx+yLC7uOhtRTPdzNCU6bOZGZ26gSpqW/GZLSdGaiaigcb X-Received: by 2002:a05:6870:610d:b0:1bf:50e0:95d9 with SMTP id s13-20020a056870610d00b001bf50e095d9mr483460oae.26.1694745961095; Thu, 14 Sep 2023 19:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694745961; cv=none; d=google.com; s=arc-20160816; b=mGW1oNCH+twFy/jUKIHCwp+v7CApL0EuaFupc6zlw4b1rxlqi1hMwyCMmkx+WrEKiq uyS3zo29obJKyDf71e1OtneccxsALwhyWV7qzdFDajRm9sbaVvvM3RpvZ+dAYgoxED/0 QLt0PGt6Oa+HmRcEiQDDcpOsGV7xBB4N1Vw8sP8IPn1M1fXo9yyJPFLBZIa0ijFec/37 ryuKqP9ADQNDq6O66R/Gn3HNX5tS4fRwDIX9hFAYcODjup9uilnSsdMWpDt1gxWs2/8B 4N+GGtms8fGSMxuilV+22RKLJh323nOGl9+QMyGUhZwfH1uQ22qUiAkGoKr4/IOkpM3j /Qpg== 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=4s0kX7K/TunVahghTdjqpFM5V4p9bZRlK/un6hB9si0=; fh=U2eAhx9nf0cBU94p/rO1iv6Lnh7TB1qv6D37GNV9ook=; b=e3WQ+dK2aKdNdQy4c3zKwBAfEq9ICMDJmfLJmIEqjB7TBNtiEoL3hW96pNctUQcbXR xrNgEIpjw2Yk3bDMJP2gIz/GBLwBoT0xs1EXiayCafd+nyQ4xvgd+Z9PQkTQGbkC6oz2 MHBzKO3pqAB677WluKWJfwCd2F2K7GpHYTTPbp4ydtUj1y9JiFIZotrNtvJumNDaosC2 tNXl1fFoxYh7VdeLyWdqBdzzbdeoJQwp2AQ/Zivsf1rIPMTmyeUcKP5Ub946ScRmuKgE AGNupgswtN0hpU1b0MTvyuv16zm1F9RSVolr4ZPpuxc/uDLL79OC8VLnUg3isG+I/037 7qdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=L1c9O4pX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l62-20020a639141000000b00565bcc15ee2si2474498pge.815.2023.09.14.19.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 19:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=L1c9O4pX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D25458267533; Thu, 14 Sep 2023 01:29:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236505AbjINI24 (ORCPT + 99 others); Thu, 14 Sep 2023 04:28:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236494AbjINI2h (ORCPT ); Thu, 14 Sep 2023 04:28:37 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3C691FE5; Thu, 14 Sep 2023 01:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1694680114; x=1726216114; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=roWlGnT9qXoGtpAtkzOsIWpYJXVJh50Qfw7TwKQYtEc=; b=L1c9O4pXZaH8kdfV+WWC9zGWZNtWK/Ad0Sxdq37yOY/Epnbwbo/92bAZ Yg2NkR+Gfu5GdiaL2UoZdugbKaR7QBSw7X6u12XjHcNN6Tg74K060UaKs 2COCoOxslv8dt/Qw+B981bKsCH5u14PQVmPTf50dqtkvEz3cca3u0UYq2 n7HEc6W7WyUtvyebPIqMcx9DZx0a1QZqoHJo355p9pHMXuQeNphJNYIy4 uhOXyf/kEjD1iNK8eivb0+wrWssjLUD6zc0GTlBZLL6khr2OjVRZPWibA fTkwRk5DI+tLh0D+sxpLSO3dvhxCqUvzY235Dtlx7aOsXTW6L47jIf+0j g==; X-CSE-ConnectionGUID: 0Epypo0mRQiiNowIGor1Dw== X-CSE-MsgGUID: Voy0eCOwRVCw9BykXW+3QQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="asc'?scan'208";a="4624641" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 14 Sep 2023 01:28:33 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 14 Sep 2023 01:28:28 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 14 Sep 2023 01:28:26 -0700 Date: Thu, 14 Sep 2023 09:28:09 +0100 From: Conor Dooley To: Romain Perier CC: Conor Dooley , Alessandro Zummo , Alexandre Belloni , Daniel Palmer , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , Subject: Re: [PATCH v2 2/3] dt-bindings: rtc: Add Mstar SSD202D RTC Message-ID: <20230914-coagulant-unbroken-2461d32274a1@wendy> References: <20230913151606.69494-1-romain.perier@gmail.com> <20230913151606.69494-3-romain.perier@gmail.com> <20230913-depress-bootlace-6b88bfd83966@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Z3TM0xmB8F8fFNyu" Content-Disposition: inline In-Reply-To: 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 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 01:29:01 -0700 (PDT) --Z3TM0xmB8F8fFNyu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 14, 2023 at 09:08:52AM +0200, Romain Perier wrote: > Le mer. 13 sept. 2023 =E0 20:30, Conor Dooley a =E9cri= t : > > > > On Wed, Sep 13, 2023 at 05:16:05PM +0200, Romain Perier wrote: > > > Add YAML bindings for Mstar SSD202D RTC. > > > > > > Signed-off-by: Romain Perier > > > --- > > > .../bindings/rtc/mstar,ssd202d-rtc.yaml | 35 +++++++++++++++++= ++ > > > 1 file changed, 35 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/rtc/mstar,ssd20= 2d-rtc.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/rtc/mstar,ssd202d-rtc.= yaml b/Documentation/devicetree/bindings/rtc/mstar,ssd202d-rtc.yaml > > > new file mode 100644 > > > index 000000000000..4c1f22ef5a2c > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/rtc/mstar,ssd202d-rtc.yaml > > > @@ -0,0 +1,35 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/rtc/mstar,ssd202d-rtc.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Mstar SSD202D Real Time Clock > > > + > > > +maintainers: > > > + - Daniel Palmer > > > + - Romain Perier > > > + > > > +allOf: > > > + - $ref: rtc.yaml# > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - mstar,ssd202d-rtc > > > + reg: > > > + maxItems: 1 > > > + > > > +required: > > > + - compatible > > > + - reg > > >=20 > Hi, >=20 > > So, this seems fine to me in isolation, but isn't this now the sort of > > thing that can be documented in trivial-rtc.yaml? > > Its only got compatible & reg, which seems to fit the bill for that. > > >=20 > With the current state, it might make sense. However, currently, the > RTC hw block is mostly > reverse-engineered, the driver is not complete yet, things like > external irq or wakeup irq might arrive later (once we know how it is > wired up and used). > So the content of the dt-bindings might change and differ from a > simple "compatible & reg" requirement. It's always possible to move from that to a fully fledged binding at a later date. re: interrupts, trivial-rtc permits a single interrupt, so it'd still be suitable if the device only has one. Thanks, Conor. --Z3TM0xmB8F8fFNyu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQLECwAKCRB4tDGHoIJi 0pu6AQD2ucgR+eH+NSCd5kvfLabzmbKVdIBcnk+QkMQkd6pYGgEAqa7B3GUoWvLc uJq535ai/pRZRPZU3J03nvuLbgk16Aw= =DAZn -----END PGP SIGNATURE----- --Z3TM0xmB8F8fFNyu--