Message ID | 20231030115016.97823-2-antoniu.miclaus@analog.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2148522vqb; Mon, 30 Oct 2023 04:53:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmCWPVnmKuM3WUhMKKgjNlr4NsDy+ThFIoVIXQSz5z7PRSA9kiM3K4H34sKlo4tfnlAwzb X-Received: by 2002:a05:6e02:1e02:b0:357:a8a0:3459 with SMTP id g2-20020a056e021e0200b00357a8a03459mr15552866ila.27.1698666804292; Mon, 30 Oct 2023 04:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698666804; cv=none; d=google.com; s=arc-20160816; b=Ocn43ndAQBASMk5th9jxheYZppiFW3hezaOEOYijYlYP310RJeUk3Eb3ZedtFMMGxA AdyF+0dkDbj18q/uzO2KT534j37EYqS0Uwzs7Hf61DHC5UdCdoXK6/Q/DEZ/ZR+cJd2/ lGv394XP6FGJlaR/XCW8PqmT80Q/xjd09kkG0aEuYRUTseS7fcOjTfGkJK4kh+6Hz+IU TF6LPi49pllMBPjsU8ozuYKmObD/qcYP+Tai9vENfhLZAEVrW1CPr4klUY6203bHNNMT PfZTjdyVnkBRpCprrlGfYiA6MFgvIJIxbkaEthF4ndhUdB4eX2yMRhEBtOGlbzZtXPxR 3lyA== 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:to:from; bh=miNq78cF8rzSO0AqlXUW9W0BLIBp9wRRFIQ+skjkD04=; fh=1Xe+yMMD4kd5IE4GKsehtULINWqk1t2+CJnII6rqSn8=; b=r3Wvdhkin/2S7VsE01SbM4lPluzGTJL0Aw51elTc6W3bUjLy5+2Svn5tLH3i7AtBCo zTOO2+7UoA2SLYLwYrJo4io/vPUb3Lu6xcM555W9vEMIxy35XrzVrfuSGak2lJv1ekuG 2r9RXdFi31ZRqWrQ8TYmzC6LuwOi7Fqv6sf7oZ/1IkL4awFMQJSJ4/QTQqg44pRxqN7L 6hi28XNx6qq7NZD4ALxawLU6b/IBMld9MwCaumYQBYlnSogq3j+m2MNVZ5X42VTNP4fM M8onwcPZloGsAtIM5czLWT4dzYshO5JksHLqTnW6JBo/U7dz61QCtULSKUv+HvNz2DPe jatA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u190-20020a6385c7000000b00578f7063adasi2938090pgd.33.2023.10.30.04.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A808480A9AB8; Mon, 30 Oct 2023 04:53:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233080AbjJ3Lwr (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 07:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233039AbjJ3Lwq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 07:52:46 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792D4C6; Mon, 30 Oct 2023 04:52:44 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39UAh2Qn021764; Mon, 30 Oct 2023 07:52:17 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3u1f5hqdej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 07:52:16 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 39UBqFkn022495 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Oct 2023 07:52:15 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 30 Oct 2023 07:52:14 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 30 Oct 2023 07:52:14 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.123]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 39UBpnDu008995; Mon, 30 Oct 2023 07:52:07 -0400 From: Antoniu Miclaus <antoniu.miclaus@analog.com> To: Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Antoniu Miclaus <antoniu.miclaus@analog.com>, <linux-rtc@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-hwmon@vger.kernel.org> Subject: [PATCH 1/2] dt-bindings: rtc: max31335: add max31335 bindings Date: Mon, 30 Oct 2023 13:50:01 +0200 Message-ID: <20231030115016.97823-2-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231030115016.97823-1-antoniu.miclaus@analog.com> References: <20231030115016.97823-1-antoniu.miclaus@analog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: dBQT4BwtEV4XJ7F2A-DzuVrEZyak4vkd X-Proofpoint-ORIG-GUID: dBQT4BwtEV4XJ7F2A-DzuVrEZyak4vkd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_10,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 malwarescore=0 adultscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310240000 definitions=main-2310300090 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 04:53:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781181243023527626 X-GMAIL-MSGID: 1781181243023527626 |
Series |
Add support for RTC MAX31335
|
|
Commit Message
Antoniu Miclaus
Oct. 30, 2023, 11:50 a.m. UTC
Document the Analog Devices MAX31335 device tree bindings.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
.../devicetree/bindings/rtc/adi,max31335.yaml | 61 +++++++++++++++++++
1 file changed, 61 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/adi,max31335.yaml
Comments
On 30/10/2023 12:50, Antoniu Miclaus wrote: > Document the Analog Devices MAX31335 device tree bindings. > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> > --- > .../devicetree/bindings/rtc/adi,max31335.yaml | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/adi,max31335.yaml > > diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > new file mode 100644 > index 000000000000..b84be0fa34ef > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/adi,max31335.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices MAX31335 RTC Device Tree Bindings It does not look like you tested the bindings, at least after quick look. Please run `make dt_binding_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). Maybe you need to update your dtschema and yamllint. Although I wonder why there is no error report from the bot. Drop "Device Tree Bindings" > + > +allOf: > + - $ref: rtc.yaml# This goes after description. Several existing files have it in other place, but if doing changes then well... > + > +maintainers: > + - Antoniu Miclaus <antoniu.miclaus@analog.com> > + > +description: Analog Devices MAX31335 I2C RTC Drop or say something else than title. > + > +properties: > + compatible: > + const: adi,max31335 > + > + reg: > + description: I2C address of the RTC Drop description, obvious. > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + "#clock-cells": > + description: > + RTC can be used as a clock source through its clock output pin. > + const: 0 > + > + trickle-resistor-ohms: > + description: Selected resistor for trickle charger. > + enum: [3000, 6000, 11000] default? Or missing property has other meaning... > + > + trickle-diode-enable: true Where is it defined? You added it as it was a common property, so where is the one definition? Maybe you wanted to use other property from rtc.yaml which is deprecated, so obviously not... > + > +required: > + - compatible > + - reg > + Best regards, Krzysztof
> On 30/10/2023 12:50, Antoniu Miclaus wrote: > > Document the Analog Devices MAX31335 device tree bindings. > > > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> > > --- > > .../devicetree/bindings/rtc/adi,max31335.yaml | 61 > +++++++++++++++++++ > > 1 file changed, 61 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/rtc/adi,max31335.yaml > > > > diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > > new file mode 100644 > > index 000000000000..b84be0fa34ef > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > > @@ -0,0 +1,61 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > +%YAML 1.2 > > +--- > > +$id: > https://urldefense.com/v3/__http://devicetree.org/schemas/rtc/adi,max31 > 335.yaml*__;Iw!!A3Ni8CS0y2Y!8dEITWcTQ- > eZ_KG0TRlZ9ghWuDPnZwR1oR5OpGyvJkmAOxsFxDYI7rUqR- > U_KSQcGbkqxJ3glqBcJa_jjbukeVtyVSw-LCq3$ > > +$schema: https://urldefense.com/v3/__http://devicetree.org/meta- > schemas/core.yaml*__;Iw!!A3Ni8CS0y2Y!8dEITWcTQ- > eZ_KG0TRlZ9ghWuDPnZwR1oR5OpGyvJkmAOxsFxDYI7rUqR- > U_KSQcGbkqxJ3glqBcJa_jjbukeVtyVRI7679n$ > > + > > +title: Analog Devices MAX31335 RTC Device Tree Bindings > > It does not look like you tested the bindings, at least after quick > look. Please run `make dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > Maybe you need to update your dtschema and yamllint. Indeed I was using an older dtschema version locally and the dt_binding_check was not throwing any errors. will address the comments in the next version. > Although I wonder why there is no error report from the bot. > > Drop "Device Tree Bindings" > > > + > > +allOf: > > + - $ref: rtc.yaml# > > This goes after description. Several existing files have it in other > place, but if doing changes then well... > > > + > > +maintainers: > > + - Antoniu Miclaus <antoniu.miclaus@analog.com> > > + > > +description: Analog Devices MAX31335 I2C RTC > > Drop or say something else than title. > > > > + > > +properties: > > + compatible: > > + const: adi,max31335 > > + > > + reg: > > + description: I2C address of the RTC > > Drop description, obvious. > > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + "#clock-cells": > > + description: > > + RTC can be used as a clock source through its clock output pin. > > + const: 0 > > + > > + trickle-resistor-ohms: > > + description: Selected resistor for trickle charger. > > + enum: [3000, 6000, 11000] > > default? Or missing property has other meaning... > > > + > > + trickle-diode-enable: true > > Where is it defined? You added it as it was a common property, so where > is the one definition? Maybe you wanted to use other property from > rtc.yaml which is deprecated, so obviously not... > > > + > > +required: > > + - compatible > > + - reg > > + > > Best regards, > Krzysztof
-- Antoniu Miclăuş > -----Original Message----- > From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Sent: Monday, October 30, 2023 7:25 PM > To: Miclaus, Antoniu <Antoniu.Miclaus@analog.com>; Alessandro Zummo > <a.zummo@towertech.it>; Alexandre Belloni > <alexandre.belloni@bootlin.com>; Rob Herring <robh+dt@kernel.org>; > Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley > <conor+dt@kernel.org>; Jean Delvare <jdelvare@suse.com>; Guenter > Roeck <linux@roeck-us.net>; linux-rtc@vger.kernel.org; > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > hwmon@vger.kernel.org > Subject: Re: [PATCH 1/2] dt-bindings: rtc: max31335: add max31335 bindings > > [External] > > On 30/10/2023 12:50, Antoniu Miclaus wrote: > > Document the Analog Devices MAX31335 device tree bindings. > > > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> > > --- > > .../devicetree/bindings/rtc/adi,max31335.yaml | 61 > +++++++++++++++++++ > > 1 file changed, 61 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/rtc/adi,max31335.yaml > > > > diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > > new file mode 100644 > > index 000000000000..b84be0fa34ef > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml > > @@ -0,0 +1,61 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > +%YAML 1.2 > > +--- > > +$id: > https://urldefense.com/v3/__http://devicetree.org/schemas/rtc/adi,max31 > 335.yaml*__;Iw!!A3Ni8CS0y2Y!8dEITWcTQ- > eZ_KG0TRlZ9ghWuDPnZwR1oR5OpGyvJkmAOxsFxDYI7rUqR- > U_KSQcGbkqxJ3glqBcJa_jjbukeVtyVSw-LCq3$ > > +$schema: https://urldefense.com/v3/__http://devicetree.org/meta- > schemas/core.yaml*__;Iw!!A3Ni8CS0y2Y!8dEITWcTQ- > eZ_KG0TRlZ9ghWuDPnZwR1oR5OpGyvJkmAOxsFxDYI7rUqR- > U_KSQcGbkqxJ3glqBcJa_jjbukeVtyVRI7679n$ > > + > > +title: Analog Devices MAX31335 RTC Device Tree Bindings > > It does not look like you tested the bindings, at least after quick > look. Please run `make dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > Maybe you need to update your dtschema and yamllint. > > Although I wonder why there is no error report from the bot. > > Drop "Device Tree Bindings" > > > + > > +allOf: > > + - $ref: rtc.yaml# > > This goes after description. Several existing files have it in other > place, but if doing changes then well... > > > + > > +maintainers: > > + - Antoniu Miclaus <antoniu.miclaus@analog.com> > > + > > +description: Analog Devices MAX31335 I2C RTC > > Drop or say something else than title. > > > > + > > +properties: > > + compatible: > > + const: adi,max31335 > > + > > + reg: > > + description: I2C address of the RTC > > Drop description, obvious. > > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + "#clock-cells": > > + description: > > + RTC can be used as a clock source through its clock output pin. > > + const: 0 > > + > > + trickle-resistor-ohms: > > + description: Selected resistor for trickle charger. > > + enum: [3000, 6000, 11000] > > default? Or missing property has other meaning... If trickle-resistor-ohms property is missing, then the trickle charger setup is skipped. > > > + > > + trickle-diode-enable: true > > Where is it defined? You added it as it was a common property, so where > is the one definition? Maybe you wanted to use other property from > rtc.yaml which is deprecated, so obviously not... > > > + > > +required: > > + - compatible > > + - reg > > + > > Best regards, > Krzysztof
On Mon, 30 Oct 2023 13:50:01 +0200, Antoniu Miclaus wrote: > Document the Analog Devices MAX31335 device tree bindings. > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> > --- > .../devicetree/bindings/rtc/adi,max31335.yaml | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/adi,max31335.yaml > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/rtc/adi,max31335.yaml: title: 'Analog Devices MAX31335 RTC Device Tree Bindings' should not be valid under {'pattern': '([Bb]inding| [Ss]chema)'} hint: Everything is a binding/schema, no need to say it. Describe what hardware the binding is for. from schema $id: http://devicetree.org/meta-schemas/base.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/rtc/adi,max31335.yaml: trickle-diode-enable: missing type definition doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20231030115016.97823-2-antoniu.miclaus@analog.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
On 31/10/2023 11:29, Miclaus, Antoniu wrote: >>> + maxItems: 1 >>> + >>> + interrupts: >>> + maxItems: 1 >>> + >>> + "#clock-cells": >>> + description: >>> + RTC can be used as a clock source through its clock output pin. >>> + const: 0 >>> + >>> + trickle-resistor-ohms: >>> + description: Selected resistor for trickle charger. >>> + enum: [3000, 6000, 11000] >> >> default? Or missing property has other meaning... > > If trickle-resistor-ohms property is missing, then the trickle charger setup is skipped. Then mention this. Best regards, Krzysztof
> On 31/10/2023 11:29, Miclaus, Antoniu wrote: > > >>> + maxItems: 1 > >>> + > >>> + interrupts: > >>> + maxItems: 1 > >>> + > >>> + "#clock-cells": > >>> + description: > >>> + RTC can be used as a clock source through its clock output pin. > >>> + const: 0 > >>> + > >>> + trickle-resistor-ohms: > >>> + description: Selected resistor for trickle charger. > >>> + enum: [3000, 6000, 11000] > >> > >> default? Or missing property has other meaning... > > > > If trickle-resistor-ohms property is missing, then the trickle charger setup is > skipped. > > Then mention this. > Will do in v3. > Best regards, > Krzysztof
diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml new file mode 100644 index 000000000000..b84be0fa34ef --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/adi,max31335.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX31335 RTC Device Tree Bindings + +allOf: + - $ref: rtc.yaml# + +maintainers: + - Antoniu Miclaus <antoniu.miclaus@analog.com> + +description: Analog Devices MAX31335 I2C RTC + +properties: + compatible: + const: adi,max31335 + + reg: + description: I2C address of the RTC + maxItems: 1 + + interrupts: + maxItems: 1 + + "#clock-cells": + description: + RTC can be used as a clock source through its clock output pin. + const: 0 + + trickle-resistor-ohms: + description: Selected resistor for trickle charger. + enum: [3000, 6000, 11000] + + trickle-diode-enable: true + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc@68 { + compatible = "adi,max31335"; + reg = <0x68>; + pinctrl-0 = <&rtc_nint_pins>; + interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>; + trickle-resistor-ohms = <6000>; + trickle-diode-enable; + }; + }; +...