From patchwork Fri Nov 3 14:00:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 161304 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1053903vqu; Fri, 3 Nov 2023 07:02:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFC+HYcMuzLc7TftS7vWYvpMsFGAX6S8I/OzCrqPJ8ajY1gh5uV8QV5rUKx7bikpftl/WG X-Received: by 2002:a05:6808:b0f:b0:3a7:26fd:b229 with SMTP id s15-20020a0568080b0f00b003a726fdb229mr21795663oij.48.1699020155236; Fri, 03 Nov 2023 07:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699020155; cv=none; d=google.com; s=arc-20160816; b=hy0ckA2VB3Pv8zgE115rdvgwXH5qe4UH/rhMFsvlBMhfyA2/9yycw93hKWIajW7U54 stPJET0KHMbZElvyK5o3BGuWvbm1RyxflCmaZkNNKuu4AqXidS3bxKGvqzqj9edOas// r1Ihtq8sDRTkINMfiQkIWyPVb2KCwc+o4zROSe9U7dwd72/NXZCLOVGxTVQs40nBVnVm T4+Ydl29w32+nubbV3aazwlSaO++o1IxbTOPob2m9XRNZpGVjqJEgfXwlNd1nun5iqF4 V/IMmutqdB/dum0RfSwGCddXgf4iXvwH23o8ozIEcDjErU3TzeJu0WLh/xaGyZHN4gHZ l/+A== 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=FEkjNo1ogOXlBNSTcmg2afLJHp5JNvH+iH7glIVige4=; fh=eU2Fd0WUwHdSkIUkpTDCZz8B4WZMPIMrGTqsVOjjdlg=; b=UHNbw49IMnpHMF/5CduiMzj8HOH7QWFEnAe8AArE2vgi9eah9TqTwopQez9JN1pMyc HthNexCENxR55Nc1fHv9/GACC0IqUzahytCzwMgCmWOV5pVlbM1QXempdssnVuqgPpVh GXDXORTgdJHWdYq40pzsUmDylSNfKsd3zNbBXIVxWqCerqDTCYM2VfMBsPSJMVwPDz+1 bHFuEPv7PVFtrjwAd8ISOf+XktNW9cqZ5AaQ55yiyxgGeYn0iA4vFEUPXgKFzBfxEhEC 2MAw4APvrWyPsnv+stJ82wwnrnaPrdoDyK+MGqhAJBE3cIaUtVCrdDkd7P5Aw5K7QuAV Gp3g== 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 gp11-20020a0568082e4b00b003ae5b1cb08csi725047oib.347.2023.11.03.07.02.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 07:02:35 -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 81B5882155E9; Fri, 3 Nov 2023 07:02:27 -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 S1377705AbjKCOCK (ORCPT + 36 others); Fri, 3 Nov 2023 10:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233674AbjKCOCI (ORCPT ); Fri, 3 Nov 2023 10:02:08 -0400 Received: from mx0b-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD6CDD4B; Fri, 3 Nov 2023 07:02:02 -0700 (PDT) Received: from pps.filterd (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3A38gCiZ001828; Fri, 3 Nov 2023 10:01:23 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 3u4wk811r8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Nov 2023 10:01:22 -0400 (EDT) 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 3A3E1LoD008711 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 3 Nov 2023 10:01:21 -0400 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; Fri, 3 Nov 2023 10:01:20 -0400 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; Fri, 3 Nov 2023 10:01:20 -0400 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; Fri, 3 Nov 2023 10:01:20 -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 3A3E13ht020117; Fri, 3 Nov 2023 10:01:06 -0400 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 v5 1/2] dt-bindings: rtc: max31335: add max31335 bindings Date: Fri, 3 Nov 2023 16:00:25 +0200 Message-ID: <20231103140051.43174-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: cBisYt9uOPjCeFtmhXVBTQHHxdRfnr5D X-Proofpoint-ORIG-GUID: cBisYt9uOPjCeFtmhXVBTQHHxdRfnr5D 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-03_12,2023-11-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1015 suspectscore=0 spamscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310240000 definitions=main-2311030117 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]); Fri, 03 Nov 2023 07:02:27 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781551758024975549 X-GMAIL-MSGID: 1781551758024975549 Document the Analog Devices MAX31335 device tree bindings. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Antoniu Miclaus --- changes in v5: - add `adi,tc-diode` property. .../devicetree/bindings/rtc/adi,max31335.yaml | 69 +++++++++++++++++++ 1 file changed, 69 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..b82a8aa67428 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml @@ -0,0 +1,69 @@ +# 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>; + trickle-resistor-ohms = <6000>; + adi,tc-diode = "schottky"; + }; + }; +...