Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4925732pxu; Tue, 13 Oct 2020 10:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzkJ3cBhKnOnHUGWUAUfwo8sZfPjWMQZbPKmQmS+EUF/4d3OsCM0gflE1Q2yiNQYQSbAyT X-Received: by 2002:a17:906:b218:: with SMTP id p24mr806771ejz.136.1602609354439; Tue, 13 Oct 2020 10:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602609354; cv=none; d=google.com; s=arc-20160816; b=OY8oIKkBt4aR4S6g9hfYHrcnf6QYHlw14ujlxZkIMfrgBx50TjLStLHmdVSFyYyKT3 PK2vSLbZoLN9SD7lnyXKaaQnUgwZ2WRhZiZWYrtrgbkkbgtlAwxIzR3t0RtgF6evy2KB OJlF+hM//+F8ofF9OnAxwoj/7eIOzl/ppGrL3ylecb88jKU1mJRN00ULWWRr7JumaRZ9 erKx3HV2Y9qT5imBFBF6SXJ6uAcTdw/DYX1cqQpMWd0lHJYT53KAGbQ8IYxcU7wNA/Dv f/QAtMeNrMEDeJXLDsk2uidievXEposLl0IyPW3vzCQUavG/iKkA7YD0BUFAh6EGiGgj o/Yg== 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:cc:to:from; bh=4lohlChQ4CIBJnZQpu0QsnX0NAgXuOFNGeaGPgeRSsc=; b=ukx8DgHt9aYzu0FuaHlMAOxE9qz1VPYYK0NH/z16d3VxRZNFQnx/eouOGADrprWLAI JgJHlCUjXdheR/ady6GBuOctOgJnG1QWTleU+GpJS26fpPeQjz5IN/+2dTJ5shmVEpcZ tsO5Z4WTqZUUsumEgx0kPBIf1qI49T2y0VDBSufoUmfWScdO7S2SPAWlUO5ideCCqRuH gXXJyd1ih0FEVrY9p5dBkFKGrE2n5gWIEWV3vuIC92jsP0k81kOknow1m96u/caD5Jld 4G1oGzFyQZIcXfDooJLPhlPvCKDu4GbLaK7++0JjPEp2ZtOymAZR+ocBKbjeNlBb8wnY K0sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df7si292710edb.271.2020.10.13.10.15.31; Tue, 13 Oct 2020 10:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388870AbgJMOl3 (ORCPT + 99 others); Tue, 13 Oct 2020 10:41:29 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:54819 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388829AbgJMOl0 (ORCPT ); Tue, 13 Oct 2020 10:41:26 -0400 X-Originating-IP: 90.65.88.165 Received: from localhost (lfbn-lyo-1-1908-165.w90-65.abo.wanadoo.fr [90.65.88.165]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 5D9F3C000B; Tue, 13 Oct 2020 14:41:23 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni , Rob Herring Cc: devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dt-bindings: rtc: rv3032: add RV-3032 bindings Date: Tue, 13 Oct 2020 16:41:09 +0200 Message-Id: <20201013144110.1942218-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201013144110.1942218-1-alexandre.belloni@bootlin.com> References: <20201013144110.1942218-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the Microcrystal RV-3032 device tree bindings Signed-off-by: Alexandre Belloni --- changes in v3: - remove rtc.yaml change .../bindings/rtc/microcrystal,rv3032.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml diff --git a/Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml b/Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml new file mode 100644 index 000000000000..a2c55303810d --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/microcrystal,rv3032.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip RV-3032 RTC Device Tree Bindings + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Alexandre Belloni + +properties: + compatible: + const: microcrystal,rv3032 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + start-year: true + + trickle-resistor-ohms: + enum: + - 1000 + - 2000 + - 7000 + - 11000 + + trickle-voltage-millivolt: + enum: + - 1750 + - 3000 + - 4400 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc@51 { + compatible = "microcrystal,rv3032"; + reg = <0x51>; + status = "okay"; + pinctrl-0 = <&rtc_nint_pins>; + interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>; + trickle-resistor-ohms = <7000>; + trickle-voltage-millivolt = <1750>; + }; + }; + +... -- 2.26.2