From patchwork Thu Nov 9 10:14:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 163329 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp336580vqs; Thu, 9 Nov 2023 02:17:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEA1f9bOyGNBFMov+j07yHBHmFG3Gema43pSiuUgOK3qFgV96YlkHnA7jhCOFgazaisYVOi X-Received: by 2002:a05:6808:1a8c:b0:3ae:5442:ed11 with SMTP id bm12-20020a0568081a8c00b003ae5442ed11mr1229993oib.54.1699525026695; Thu, 09 Nov 2023 02:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699525026; cv=none; d=google.com; s=arc-20160816; b=K+BXe3U3Giwv1eBqe6bSoKrir1Ij47HeOhm0UjokBJEBiwcsuiBNfs04JfbVSaw+ep H1T22ofGq7MiwrdNzQ44wc/gr/W4yAradSdx9OCBLZ1JkNPNqB0/y0pr6FV1TkOswbHU QPsCsm4SE9OneNWbpLowh6ZWQp4eK8lIEFSnEbpa4Zytj7LiUKET0DWQX5nyjGsa5diF 6S9RfbJfyTgADIcmh115MqXbYJtMq4JnTrplRiGGGiMYaWNFN/BcYj6/0huXXgad+Nsz Ojs5xMrSRXqnHRu77stEb2qeq8yfU73jR1q8Pmtf+NOlAdU0PPW1BWm5E4e7EjjGdW0/ X6Kg== 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 :message-id:date:subject:cc:to:from; bh=3JgF+f0RGc7liCtQJu4xR0MDet0jUuZpajNYFekP6jg=; fh=eU2Fd0WUwHdSkIUkpTDCZz8B4WZMPIMrGTqsVOjjdlg=; b=zVDoh1A2xs3YQt3FGrGJmQy/ckprSkE/MCLVcSiSy9+YgrTtgIUGPL1xnodP4sc8G2 scEUyzg17bAF8od9wDXpvwgLJd1iexAeKRGs/RKOIAojx9diEbSiC/513vvcq27LFFX+ 4KYLbJEuguPkCIKIbvj2ikDHNWRuH/p13IDQ4Rg2W6uJHWhwbuVJ0UJcs+f9E9EzGCnv Yq24Qlur2e9aOe7W8HjMSIynx3UqGURv8v1NCQ6T6zA5NJnoANmxOsn0aw/QvNU6dVss ybcd0AIXm4RW34OTAg0hIhoUy3TnExCbs2V+QHakJcWhModNI0ADoVpOOLWYrIZySZKb myMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l189-20020a633ec6000000b005b927f53914si6902113pga.59.2023.11.09.02.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 02:17:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 1E5D78087B48; Thu, 9 Nov 2023 02:17:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234354AbjKIKQj (ORCPT + 32 others); Thu, 9 Nov 2023 05:16:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232896AbjKIKQ0 (ORCPT ); Thu, 9 Nov 2023 05:16:26 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB37C30D4; Thu, 9 Nov 2023 02:15:50 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3A9876IS007074; Thu, 9 Nov 2023 05:15:14 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3u7w2dfwha-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Nov 2023 05:15:13 -0500 (EST) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 3A9AFCth045322 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 9 Nov 2023 05:15:12 -0500 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 9 Nov 2023 05:15:11 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 9 Nov 2023 05:15:11 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 9 Nov 2023 05:15:11 -0500 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.183]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 3A9AEtGS016623; Thu, 9 Nov 2023 05:14:57 -0500 From: Antoniu Miclaus To: Antoniu Miclaus , Alessandro Zummo , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Jean Delvare" , Guenter Roeck , , , , CC: Krzysztof Kozlowski Subject: [PATCH v7 1/2] dt-bindings: rtc: max31335: add max31335 bindings Date: Thu, 9 Nov 2023 12:14:36 +0200 Message-ID: <20231109101449.8347-1-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: jQXPrJn6eX-JVDXnZiSpVdyF0_HsFCdf X-Proofpoint-ORIG-GUID: jQXPrJn6eX-JVDXnZiSpVdyF0_HsFCdf 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-11-09_08,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 malwarescore=0 spamscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311060001 definitions=main-2311090078 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 (fry.vger.email [0.0.0.0]); Thu, 09 Nov 2023 02:17:04 -0800 (PST) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782081154352699391 X-GMAIL-MSGID: 1782081154352699391 Document the Analog Devices MAX31335 device tree bindings. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Antoniu Miclaus --- .../devicetree/bindings/rtc/adi,max31335.yaml | 70 +++++++++++++++++++ 1 file changed, 70 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..0125cf6727cc --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml @@ -0,0 +1,70 @@ +# 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 + +maintainers: + - Antoniu Miclaus + +description: + Analog Devices MAX31335 I2C RTC ±2ppm Automotive Real-Time Clock with + Integrated MEMS Resonator. + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + const: adi,max31335 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#clock-cells": + description: + RTC can be used as a clock source through its clock output pin. + const: 0 + + adi,tc-diode: + description: + Select the diode configuration for the trickle charger. + schottky - Schottky diode in series. + standard+schottky - standard diode + Schottky diode in series. + enum: [schottky, standard+schottky] + + trickle-resistor-ohms: + description: + Selected resistor for trickle charger. Should be specified if trickle + charger should be enabled. + enum: [3000, 6000, 11000] + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + 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>; + aux-voltage-chargeable = <1>; + trickle-resistor-ohms = <6000>; + adi,tc-diode = "schottky"; + }; + }; +...