Message ID | 20230517144144.365631-3-romain.perier@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1203871vqo; Wed, 17 May 2023 08:04:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4x0YHGv4lRXipb76zbZvWt2Gafz99jfz+4QTYm7MKF3ZRtildLR9T5pcMYpIzFA62RtbWj X-Received: by 2002:a17:90a:ce:b0:253:5605:ddee with SMTP id v14-20020a17090a00ce00b002535605ddeemr341827pjd.47.1684335877116; Wed, 17 May 2023 08:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684335877; cv=none; d=google.com; s=arc-20160816; b=YuPynQpAyyJCrV6vDNJeRkLC1KxATtmJHeYKS8Kj47Q0mdCg8mq6wN2WV0N67kJoP6 gI7+INUqGcAOY4mipqwvQH8F6rg9M2lYflExbq/ljU+POMb4f/KO7fDo7Bl2VQc5VNL7 hUAXC4LNUm3WlxW7tR7mSSrow9TWYc2XYBMfy9UZ4KzDea5YzVIjvph5dGva9h+z09V4 wNKs3p1ZtLiMWKBi2xOb0H51MnS7C3dTMlJK/Y8Mi7+8CoibiZo5tXhIE/+CDMmS2bFF 47UhbENs8NaSM1jruC3SmGomj0jOSEZT/3XWwsvGnrHOkbmcchZE1ATsEe1me6hz9CAX 8fRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nCJ4yt4evevwqvOYmzH9xOUxgzk8GcorEVg3x278BIQ=; b=T9GJx5kbyr9zrp3X5qDcUEOLDedfIitK1ImvIeRFmvWH4koXr3tABkO+toTTPpkhJz gsxc2iN+NW07TllyZwcG99Cdm2T5aD729wS55Ticg+9GUMFNLTvIMC91DDaDbzoQRmFE 5uLpW02HWyGfoHj+KParQ/huBiXSMfheoeGBFyPFCQFGuY/lO+Tb+pIMYLe0R8rmO2NY wsQuJHO6rIJumaCoMv5bqy6PabZo0BY2cXXr2/UWVZxTm3vE174kpSRqe8+4eWbq1bpm 9cHGC/Kd0/LGuUKEU/b5YUJJf4K/QV6+F96+N5GHcuN4S9M27Cm5k8IndaSt/ieiTe3x VO0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pRJRYySh; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a17090ae28e00b002533eca039dsi1839900pjz.185.2023.05.17.08.04.20; Wed, 17 May 2023 08:04:37 -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=@gmail.com header.s=20221208 header.b=pRJRYySh; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231573AbjEQOl6 (ORCPT <rfc822;abdi.embedded@gmail.com> + 99 others); Wed, 17 May 2023 10:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231784AbjEQOlw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 17 May 2023 10:41:52 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B81122; Wed, 17 May 2023 07:41:51 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-30789a4c537so606757f8f.0; Wed, 17 May 2023 07:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684334510; x=1686926510; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nCJ4yt4evevwqvOYmzH9xOUxgzk8GcorEVg3x278BIQ=; b=pRJRYyShxn3ZgMEpSTZbNU09nslhYx5L8qW1byZvEdn7iP2q4FrdhLMgCzGwJOvmrd kpS+pVQe2+s4j8/NIdYQM1bFa4roMpYDBO56rnwq+5TnJwLWugmXgyYHwcd5r/aU3fQ5 jb6AzkhdYNIWaun+T0bBhWXt50WsSFJTyfkp7Vv9GCVS59HQtaeSserwd73eMU7hnPKY 0UOnbzUjmH3/C6b1J57kD0mdlRKZU4xOPbsmJqhwGLKJcPmMMINSAfy52k4lasayHttu GIhcl7YTl3iL8Dz9CZZ9udufKMIlBgLho0CCnwgaSale/Uksk+yYH4vneDTYdX3jkaF+ S/FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684334510; x=1686926510; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nCJ4yt4evevwqvOYmzH9xOUxgzk8GcorEVg3x278BIQ=; b=M9WJhLYQbhUWD/hPRE7DjkppHhnAQ1f9Y1aRu3qt/qMSoz/h/UtZ5QRcB4pcQNjWU5 Q8leYxOBfe/9dWBIIO3C1BloFeXJqVGwjUqlkdV2lurajn7Xlhv/Z3ByFDXgtkEz2EWs Abp0bcIC2VDZ28nahC0K0H/Wb8EyklXl7AEaDJ5ctIpACgbrWl1UgwNjUxR+q7kkZRur vwpxQ3pjM8sdp0FGoibKGy4JMAyF8F9KvZa834b/tHNXCMPxyQ9er6xA1xeINtOw6sYX 78wrWMTos8gO1XU1e674fRs1HFney0IGO2wji2r2kwMgOZ/HsrY2QJCgj+yqRIfeUjx1 j+6w== X-Gm-Message-State: AC+VfDyrlOPRnY5HCQ53Qk/AX3fdMbQak05/thV5uGzK36AqFJoStR3d X1fjCUhMERTb8htpv1GeIBpw5T90laU= X-Received: by 2002:adf:e443:0:b0:306:2cf5:79d7 with SMTP id t3-20020adfe443000000b003062cf579d7mr997234wrm.17.1684334509892; Wed, 17 May 2023 07:41:49 -0700 (PDT) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id o16-20020a5d6710000000b003079986fd71sm3015380wru.88.2023.05.17.07.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 07:41:49 -0700 (PDT) From: Romain Perier <romain.perier@gmail.com> To: Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Daniel Palmer <daniel@0x0f.com>, Romain Perier <romain.perier@gmail.com>, Rob Herring <robh+dt@kernel.org> Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] dt-bindings: rtc: Add Mstar SSD20xD RTC devicetree bindings documentation Date: Wed, 17 May 2023 16:41:43 +0200 Message-Id: <20230517144144.365631-3-romain.perier@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230517144144.365631-1-romain.perier@gmail.com> References: <20230517144144.365631-1-romain.perier@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766154176631265295?= X-GMAIL-MSGID: =?utf-8?q?1766154176631265295?= |
Series |
Add RTC for MStar SSD20xD SoCs
|
|
Commit Message
Romain Perier
May 17, 2023, 2:41 p.m. UTC
This adds the documentation for the devicetree bindings of the Mstar
SSD20xD RTC driver.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
---
.../bindings/rtc/mstar,ssd20xd-rtc.yaml | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml
Comments
Hey Romain, On Wed, May 17, 2023 at 04:41:43PM +0200, Romain Perier wrote: > This adds the documentation for the devicetree bindings of the Mstar > SSD20xD RTC driver. Bindings describe hardware, not the driver ;) > > Signed-off-by: Romain Perier <romain.perier@gmail.com> > --- > .../bindings/rtc/mstar,ssd20xd-rtc.yaml | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > diff --git a/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > new file mode 100644 > index 000000000000..2acd86cce69f > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > @@ -0,0 +1,37 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/mstar,ssd20xd-rtc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mstar SSD20xD RTC > + > +allOf: > + - $ref: rtc.yaml# > + > +maintainers: > + - Daniel Palmer <daniel@0x0f.com> > + - Romain Perier <romain.perier@gmail.com> > + > +properties: > + compatible: > + enum: > + - mstar,ssd20xd-rtc Is this x a wildcard? In general, having a specific compatible is preferred, and if there are other models that are compatible we can list several "fall back" to the most specific one implemented in a driver. Thanks, Conor.
On 17/05/2023 16:41, Romain Perier wrote: > This adds the documentation for the devicetree bindings of the Mstar > SSD20xD RTC driver. > Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. A nit, subject: drop second/last, redundant "devicetree bindings documentation". The "dt-bindings" prefix is already stating that these are bindings. You actually repeated everything... > Signed-off-by: Romain Perier <romain.perier@gmail.com> > --- > .../bindings/rtc/mstar,ssd20xd-rtc.yaml | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > diff --git a/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > new file mode 100644 > index 000000000000..2acd86cce69f > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > @@ -0,0 +1,37 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/mstar,ssd20xd-rtc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mstar SSD20xD RTC > + > +allOf: > + - $ref: rtc.yaml# This goes just above properties: > + > +maintainers: > + - Daniel Palmer <daniel@0x0f.com> > + - Romain Perier <romain.perier@gmail.com> > + > +properties: > + compatible: > + enum: > + - mstar,ssd20xd-rtc Why rtc suffix? Can it be anything else? Missing blank line > + reg: > + maxItems: 1 > + > + start-year: true Drop What about interrupt line? > + > +required: > + - compatible > + - reg > + > +additionalProperties: false instead unevaluatedProperties: false > + > +examples: > + - | > + rtc@6800 { > + compatible = "mstar,ssd20xd-rtc"; > + reg = <0x6800 0x200>; > + }; > +... Best regards, Krzysztof
Le mer. 17 mai 2023 à 19:44, Conor Dooley <conor@kernel.org> a écrit : > > Hey Romain, > > On Wed, May 17, 2023 at 04:41:43PM +0200, Romain Perier wrote: > > This adds the documentation for the devicetree bindings of the Mstar > > SSD20xD RTC driver. > > Bindings describe hardware, not the driver ;) Hi, Yep, I just copied and pasted the message of a previous merged-commit, I will fix it. > > > > > Signed-off-by: Romain Perier <romain.perier@gmail.com> > > --- > > .../bindings/rtc/mstar,ssd20xd-rtc.yaml | 37 +++++++++++++++++++ > > 1 file changed, 37 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > > > diff --git a/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > new file mode 100644 > > index 000000000000..2acd86cce69f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > @@ -0,0 +1,37 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/rtc/mstar,ssd20xd-rtc.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Mstar SSD20xD RTC > > + > > +allOf: > > + - $ref: rtc.yaml# > > + > > +maintainers: > > + - Daniel Palmer <daniel@0x0f.com> > > + - Romain Perier <romain.perier@gmail.com> > > + > > +properties: > > + compatible: > > + enum: > > + - mstar,ssd20xd-rtc > > Is this x a wildcard? > In general, having a specific compatible is preferred, and if there are > other models that are compatible we can list several "fall back" to the > most specific one implemented in a driver. The first SoC being concerned is SSD202D, so "mstar,ssd202d-rtc" ? Thanks, Romain
On Mon, May 22, 2023 at 08:47:08AM +0200, Romain Perier wrote: > Le mer. 17 mai 2023 à 19:44, Conor Dooley <conor@kernel.org> a écrit : > > > +properties: > > > + compatible: > > > + enum: > > > + - mstar,ssd20xd-rtc > > > > Is this x a wildcard? > > In general, having a specific compatible is preferred, and if there are > > other models that are compatible we can list several "fall back" to the > > most specific one implemented in a driver. > > > The first SoC being concerned is SSD202D, so "mstar,ssd202d-rtc" ? Sounds good to me, thanks.
Le jeu. 18 mai 2023 à 10:24, Krzysztof Kozlowski <krzk@kernel.org> a écrit : > > On 17/05/2023 16:41, Romain Perier wrote: > > This adds the documentation for the devicetree bindings of the Mstar > > SSD20xD RTC driver. > > > > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you base > your patches on recent Linux kernel. Hi, This is usually what I do for all patches series, but possible I have missed some person > > A nit, subject: drop second/last, redundant "devicetree bindings > documentation". The "dt-bindings" prefix is already stating that these > are bindings. You actually repeated everything... Originally, it was just to write a simple sentence with words... it gives context, you know... Like here: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7647204c2e81b28b4a7c4eec7d539f998d48eaf0 or here: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=dd49cbedde8a0f1e0d09698f9cad791d37a8e03e But honestly, I don't want to debate about this, yes I can remove redundant "devicetree bindings documentation" ^^ > > > Signed-off-by: Romain Perier <romain.perier@gmail.com> > > --- > > .../bindings/rtc/mstar,ssd20xd-rtc.yaml | 37 +++++++++++++++++++ > > 1 file changed, 37 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > > > diff --git a/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > new file mode 100644 > > index 000000000000..2acd86cce69f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml > > @@ -0,0 +1,37 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/rtc/mstar,ssd20xd-rtc.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Mstar SSD20xD RTC > > + > > +allOf: > > + - $ref: rtc.yaml# > > This goes just above properties: > ack > > + > > +maintainers: > > + - Daniel Palmer <daniel@0x0f.com> > > + - Romain Perier <romain.perier@gmail.com> > > + > > +properties: > > + compatible: > > + enum: > > + - mstar,ssd20xd-rtc > > Why rtc suffix? Can it be anything else? Well, it is the dt-bindings for an RTC block ? suppose tomorrow we have an ethernet block specific to the SoC SSD202D, it should be "mstar,ssd202d-ethernet" , how do you make the difference if you just put "mstar,sd202d" ? Plus a lot of rtc dt-bindings have this suffix (when it is not an IP name). This is exactly the case for rtc-msc313e and it was not an issue. > > Missing blank line ack > > > + reg: > > + maxItems: 1 > > + > > + start-year: true > > Drop > > What about interrupt line? There is currently no interrupt right now, we have not yet the irqchip code for handling the alarm irq of this rtc block. > > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: false > > instead > unevaluatedProperties: false ack Thanks, Romain
On 22/05/2023 13:27, Romain Perier wrote: >>> +properties: >>> + compatible: >>> + enum: >>> + - mstar,ssd20xd-rtc >> >> Why rtc suffix? Can it be anything else? > > Well, it is the dt-bindings for an RTC block ? suppose tomorrow we > have an ethernet block specific to the SoC SSD202D, it should be > "mstar,ssd202d-ethernet" , how do you make > the difference if you just put "mstar,sd202d" ? Plus a lot of rtc > dt-bindings have this suffix (when it is not an IP name). There are a lot of bad design choices or bugs - are you going to implement the same mistakes because someone did it? > This is > exactly the case for rtc-msc313e and it was not an issue. So that was my question - can it be anything else? There is literally no description of the hardware... Neither in commit msg nor in description: field in bindings. What is SSD202D? SoC? RTC? > >> >> Missing blank line > > ack > >> >>> + reg: >>> + maxItems: 1 >>> + >>> + start-year: true >> >> Drop >> >> What about interrupt line? > > There is currently no interrupt right now, we have not yet the irqchip > code for handling the alarm irq of this rtc block. So you are going to change the hardware and add the interrupt line? We do not talk about drivers, but hardware. Whether your driver handles it or not, matters less. Describe the hardware, not the current implementation of one driver. Best regards, Krzysztof
Hi Krzysztof, On Tue, 30 May 2023 at 17:01, Krzysztof Kozlowski <krzk@kernel.org> wrote: > > This is > > exactly the case for rtc-msc313e and it was not an issue. > > So that was my question - can it be anything else? There is literally no > description of the hardware... Neither in commit msg nor in description: > field in bindings. This RTC block is a block inside of the SSD201/SSD202D (they are the same die with different memory attached) and is only found there. The documentation we have for this is literally one page in a PDF that says "RTC registers". It could be an IP block licensed from somewhere and technically have a better name but right now all we know is this RTC block is the one in that chip and that chip is the first known instance of it. Say we manage to get the ethernet mainlined at some point: That's a lot easier as we know already it's a hacked up version of the cadence macb so the compatible can be "macb something". > >> What about interrupt line? > > > > There is currently no interrupt right now, we have not yet the irqchip > > code for handling the alarm irq of this rtc block. > > So you are going to change the hardware and add the interrupt line? We > do not talk about drivers, but hardware. Whether your driver handles it > or not, matters less. > > Describe the hardware, not the current implementation of one driver. We don't really know how the interrupt is wired up in the hardware properly yet. Cheers, Daniel
On 31/05/2023 01:12, Daniel Palmer wrote: > Hi Krzysztof, > > On Tue, 30 May 2023 at 17:01, Krzysztof Kozlowski <krzk@kernel.org> wrote: >>> This is >>> exactly the case for rtc-msc313e and it was not an issue. >> >> So that was my question - can it be anything else? There is literally no >> description of the hardware... Neither in commit msg nor in description: >> field in bindings. > > This RTC block is a block inside of the SSD201/SSD202D (they are the But what is SSD201? > same die with different memory attached) and is only found there. > The documentation we have for this is literally one page in a PDF that > says "RTC registers". > It could be an IP block licensed from somewhere and technically have a > better name but right now all we know is this RTC block is the one in > that chip and that chip is the first known instance of it. > > Say we manage to get the ethernet mainlined at some point: That's a > lot easier as we know already it's a hacked up version of the cadence > macb so the compatible can be "macb something". > >>>> What about interrupt line? >>> >>> There is currently no interrupt right now, we have not yet the irqchip >>> code for handling the alarm irq of this rtc block. >> >> So you are going to change the hardware and add the interrupt line? We >> do not talk about drivers, but hardware. Whether your driver handles it >> or not, matters less. >> >> Describe the hardware, not the current implementation of one driver. > > We don't really know how the interrupt is wired up in the hardware properly yet. OK Best regards, Krzysztof
Hi Krzysztof, On Wed, 31 May 2023 at 15:49, Krzysztof Kozlowski <krzk@kernel.org> wrote: > > This RTC block is a block inside of the SSD201/SSD202D (they are the > > But what is SSD201? Dual Cortex A7 SoC with integrated memory (SSD201 == 64MB, SSD202D == 128MB) that happens to have an RTC. Cheers, Daniel
diff --git a/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml new file mode 100644 index 000000000000..2acd86cce69f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/mstar,ssd20xd-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mstar SSD20xD RTC + +allOf: + - $ref: rtc.yaml# + +maintainers: + - Daniel Palmer <daniel@0x0f.com> + - Romain Perier <romain.perier@gmail.com> + +properties: + compatible: + enum: + - mstar,ssd20xd-rtc + reg: + maxItems: 1 + + start-year: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + rtc@6800 { + compatible = "mstar,ssd20xd-rtc"; + reg = <0x6800 0x200>; + }; +...