From patchwork Tue Oct 31 12:57:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 160109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp217879vqg; Tue, 31 Oct 2023 06:01:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6ORzBTHx9VBJW47tUnRvLZOG2FqbNvQuqf/qGla9x3WdKUKT622A78int8tRpZsW4v9A0 X-Received: by 2002:a05:6a20:a103:b0:13a:6bca:7a84 with SMTP id q3-20020a056a20a10300b0013a6bca7a84mr14461502pzk.44.1698757317560; Tue, 31 Oct 2023 06:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698757317; cv=none; d=google.com; s=arc-20160816; b=gNF6wkR3aNwR9rSCUaVaWBamKxGSLSOTbSwHYm13YzpPwqjtyutS3xBo1PScLWFQEq xS0sh9Tgk2foSidN7xHzaUU3QoapFLcOtPvDcTAAZU80Bepag8Ou5E8etigzp6VCVpZi vx9BRbpzuNdVVtAnAsJswKpOI6RpD19q8UX8bNvlQRw3qoAX3U9zzV++n0WPD8uic12p uvtnk1o2YtnDoV+AL5ymbRN9UObzr/aWZLez3Kddm58oKwyV9HCAk92JD9w7/GS+r/PL Vtxnnauh+K0mPG1E0C4SfdcDvNszXMJfjhO4tww8cM6d2Y+6aXr5Fr1MyCe2KGwe1aCO M2+w== 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:to:from; bh=umX5gxXWAeGXXc7mhyIDqPYJfYumZuLvt08Fywx17JU=; fh=oXLhkaccZsODnXgSHCqbrObR8yzBaWeOST+hy25zKks=; b=qidgJKLgsEwIezsNe0VIxUomWpOpZsgZchgAaM33QTkIuEXA4PE/xkmPFSYKkxSb5h dfXK//vpBWR9JS4x8OZi28rcW+3pEBy7CHkzgrTCGunjky+NvBZrK/rKPDmNGRD3WU/P kjrajhh/69/BspKsc1QLq97gFuapSYUlC6fXTvYgevF83BF5Oeabfh80EhejWgGSQ4qg 5as8o4ZM30abeAaiLPubB2ZhG+nUs/+stxeEKHubI7hjFK47QObCws/Ly6mAuyDrTcUb +YuoPSmDk8tmtghLX4QcNcSICKkIFy6pbXqiWYsjoontnKnAuARHMsQ1EDmv6WoCk0LF ylpg== 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:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g16-20020a056a000b9000b0068a5752a049si1001037pfj.96.2023.10.31.06.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 06:01:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D333F802F947; Tue, 31 Oct 2023 06:01:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344424AbjJaNBQ (ORCPT + 33 others); Tue, 31 Oct 2023 09:01:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344412AbjJaNBO (ORCPT ); Tue, 31 Oct 2023 09:01:14 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55ECAC2; Tue, 31 Oct 2023 06:01:12 -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 39VD0G5Z016146; Tue, 31 Oct 2023 09:00:38 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3u1f5hy0k7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 09:00:36 -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 39VCwAX3009256 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 31 Oct 2023 08:58:10 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) 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; Tue, 31 Oct 2023 08:58:09 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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; Tue, 31 Oct 2023 08:58:09 -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; Tue, 31 Oct 2023 08:58:09 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.145]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 39VCvsPB005020; Tue, 31 Oct 2023 08:57:57 -0400 From: Antoniu Miclaus To: Alessandro Zummo , Alexandre Belloni , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Jean Delvare , Guenter Roeck , Antoniu Miclaus , , , , Subject: [PATCH v2 1/2] dt-bindings: rtc: max31335: add max31335 bindings Date: Tue, 31 Oct 2023 14:57:37 +0200 Message-ID: <20231031125751.86566-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: ToytUZhPGG-gR7Z2NzeupGxsiNaY3DOh X-Proofpoint-ORIG-GUID: ToytUZhPGG-gR7Z2NzeupGxsiNaY3DOh 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-31_01,2023-10-31_03,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-2310310103 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 lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 06:01:32 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781276153019084739 X-GMAIL-MSGID: 1781276153019084739 Document the Analog Devices MAX31335 device tree bindings. Signed-off-by: Antoniu Miclaus --- changes in v2: - improve description - drop "Device Tree Bindings" - move $ref: rtc.yaml# after description - drop i2c description - add aux-voltage-chargeable and drop trickle-diode-enable - use new dtschema version for checking the bindings .../devicetree/bindings/rtc/adi,max31335.yaml | 62 +++++++++++++++++++ 1 file changed, 62 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..fe5e41b9a3ed --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml @@ -0,0 +1,62 @@ +# 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 + + trickle-resistor-ohms: + description: Selected resistor for trickle charger. + enum: [3000, 6000, 11000] + + aux-voltage-chargeable: true + +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>; + trickle-resistor-ohms = <6000>; + aux-voltage-chargeable =<1>; + }; + }; +...