From patchwork Mon Nov 13 10:11:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 164394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1105429vqg; Mon, 13 Nov 2023 02:12:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH9nr66WNvoqM9HIUl2kYJkidvzqY6a0G0Vx2sdB51X1EzgxMBV84cIkHA2GK9KCGgV3zK X-Received: by 2002:a05:6a00:1594:b0:6c5:d2bd:ad8b with SMTP id u20-20020a056a00159400b006c5d2bdad8bmr3753591pfk.31.1699870374795; Mon, 13 Nov 2023 02:12:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699870374; cv=none; d=google.com; s=arc-20160816; b=eZ1MG6nJH0ZHGgoGIC6X80AdCvIrcDVxdtvXlq4xbtivmVxhoGLL3Z9kleFxhwHVHI GawQI/0sB5LmLtBxHq1A8XZLy2CFiLonPyfGIS5vSajWymi3xtL8vNKwXZ41wDRBVDxd TSQTVYNAx15EOUEARK6ezi4uLfCtUChJ7onMPT2aUoRYF+1q5sZigKeShLXGgk5S2qey u7llR0YY0+YBA7udqkrczFOzUO6HI4vrbIdl4w6EpkngZctBMHIT1ubC/k+9Z9UPfDRc Cp4CTVVSi1mq0WWEJn5rfv/pvX+7O3YIWeV8P0gV79AgEEUK9e7BqEi3MYyBYf8f1pQe jq0A== 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=hYNlNDWhQHzXe5WChqDQel/UPNIzBAkws1OzHzOS3sc=; b=iBeYVAW70ti6/BavvFy9DZwKjCyBHfKK8KagEaAQLu2SqfE7C0Hmlie0IkC3zAZDwx bnZp0jMcayGIEloTVkqLePrfaTtceLsZBp3o5lITuNMvNl9KgSA3z9ZLTyq101XcNhOb DhF3TvJVeszSr+0WoSEVvYwT5mtr+rYvzgIfDtT9NjFcXQWI9db4XCNjV29iFuxd/b7j 6MgW1KtE0GtBmY+bZMOL3f8Y/Qzs7JtsaQNKnlJ3FwBrg3cgD4B+89i1R7Ro1X+O+kXz Cx4s6ZtX3J771LYDSQBg2zGX358uUhhO9PMQ/+QkM7HyjkL1Gf+SZbJAhwEK8MFz5BEq A7yQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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. [23.128.96.33]) by mx.google.com with ESMTPS id m5-20020a633f05000000b00578b952e954si5197909pga.112.2023.11.13.02.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 02:12:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 86293805362D; Mon, 13 Nov 2023 02:12:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbjKMKM1 (ORCPT + 29 others); Mon, 13 Nov 2023 05:12:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjKMKM0 (ORCPT ); Mon, 13 Nov 2023 05:12:26 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F347AD4C; Mon, 13 Nov 2023 02:12:22 -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 3AD86qPE006042; Mon, 13 Nov 2023 05:11:47 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3uaqmjkyr0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Nov 2023 05:11:46 -0500 (EST) 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 3ADABjri000521 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Nov 2023 05:11:45 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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, 13 Nov 2023 05:11:44 -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; Mon, 13 Nov 2023 05:11:44 -0500 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.148]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 3ADABThw009585; Mon, 13 Nov 2023 05:11:31 -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 v8 1/2] dt-bindings: rtc: max31335: add max31335 bindings Date: Mon, 13 Nov 2023 12:11:06 +0200 Message-ID: <20231113101123.34767-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: pEIhBBQ2fyYa-wPUJcjj5ldSxRYQc_G4 X-Proofpoint-ORIG-GUID: pEIhBBQ2fyYa-wPUJcjj5ldSxRYQc_G4 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-12_24,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311060001 definitions=main-2311130083 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]); Mon, 13 Nov 2023 02:12:52 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782443278096132080 X-GMAIL-MSGID: 1782443278096132080 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"; + }; + }; +...