Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1693270rwb; Thu, 19 Jan 2023 14:13:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXs4nsdG/H12IEWqyQXj+vdluRuDMpb0hM7Kih3C2wJGpIn7OncrnUjoBOYdr6UxJBp1b1iq X-Received: by 2002:a17:90b:4b8a:b0:229:f5a2:80c9 with SMTP id lr10-20020a17090b4b8a00b00229f5a280c9mr2147411pjb.49.1674166435230; Thu, 19 Jan 2023 14:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674166435; cv=none; d=google.com; s=arc-20160816; b=ec+sAt2tJM2YfPsuT5ZTlfZ8LaxFjKmn+zFUpHS6o0lfsQ/hrEKiuNkWhJQ/b4cM1W d3z33JmH1/Oq+W0rSJj/tx3XTt9cCuivNuwpHYe21poTkqGxNOopEexFOYp8mDPy+99V bFtMWknoOblJpWmrIxx3CQJWbMkdka4uFCejzUPEIlHtTFcYAGxjoIfLzyWoMn03Kl/c Br2sMNxULBf8znOI+QDdui2j5c87qsU6ixVQgi605pp0dwN2FWVd8WZz+mV8iJiBdoUm jgdWlT2bx45E/10T4O09Xg8Ho1RQiNys7JJWU56wPrBhKsMkbY+seuC7ur+laEZHuiPC nq3g== 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 :dkim-signature; bh=EvnEAnqblTBDjO4L9lAoJAikuecyCt30DJ9Jy9ahvAM=; b=DjFZfdNttNMYx2xHHigFC+JatsmsTOW6K3g5Xul5aHyFD31bEKj7JjO72+ihJb02dE p+9p3o6OZVwX/mYUIsXQxbGPxuOq/BOJL6+fuT4BZtTz4zQIml1442ndjHMJDJUPJNBQ /jQBtuPE96OP+nht+xafZz/v9yBY0WaHVO+X3lIrohT6ID9NtBBI3u43cdPGky5qJjs/ f43ScdBkltIgJFeAnhe0R07pHC9GMohFWzH5olZhQc6HE/uQVgCnpZZ6VQ9XS6PStLH3 WVJusYxA6qsIVubWX6jWgNLUMZjhOxQ+wbia6PdhsWkdf0QLX/UIO5quYvkNxqO1o7gx wR8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@sparkcharge.io header.s=google header.b=XPjTivTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx14-20020a17090b228e00b00229bf39a1ecsi389941pjb.76.2023.01.19.14.13.49; Thu, 19 Jan 2023 14:13:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@sparkcharge.io header.s=google header.b=XPjTivTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230040AbjASWCK (ORCPT + 46 others); Thu, 19 Jan 2023 17:02:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbjASWBQ (ORCPT ); Thu, 19 Jan 2023 17:01:16 -0500 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56EA658660 for ; Thu, 19 Jan 2023 13:39:39 -0800 (PST) Received: by mail-qt1-x833.google.com with SMTP id s4so2701411qtx.6 for ; Thu, 19 Jan 2023 13:39:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sparkcharge.io; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EvnEAnqblTBDjO4L9lAoJAikuecyCt30DJ9Jy9ahvAM=; b=XPjTivTM93RwFnsS/ljsxPX3656SstcIyCWz/ntXj5hdmpSndYugg7yxUcU6rdzkNk EwuLDbRZkZ8qW2KzsNRlPdkxWupoC7hlWR1jJNklPpyjVD42alTaXQI+g3JiTP9VtTUD fDpcf45LF78MkYjJCV/IE4LaUG58VDlzdifWa89+9+iHxv9carzoBVyCSj5k8fWTp2Pp YcgS/vM2TqoWHXRZS68OFmmwTntMELqVb1QETDAD6yFP6wtqeU2DP8CJC9Dqb4B3DV3C 6vLzxj4QRTUw2YTn8aBHMXlx3u2qLPyc+Zrp5YAloicoDCr3DfxWw7yXpoWNGrbVDkhQ 6GEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EvnEAnqblTBDjO4L9lAoJAikuecyCt30DJ9Jy9ahvAM=; b=LvfE67oh00SohG/GUoI33NHFK40NK3rJXInWgsFC++Eduzpke0xMDN5T2t5dm9v9H0 o0+fBvfjY1LoNEiJAcPgVot9DE870/RRwo50VUadFSRAqqBjQi8IK+b0isym5ozQ00b8 YaBEndttv4C2MgGp9Q2fLd2pmCRTmJx1cbroDRx6eKblb41FIva5dMeVeBiPAHBTS3wX 28KP45IEi7b7K+pbADR77XBEsyKB/EQBGh2XTNpMEfDc4MBCg7QSCgopqGPbdhLh9ziS KtzJeMEn5RL6FDoSaVkTY2UDkstei7B7D9O6bhiREv1O0RhxMTUsZhzvb4qmyqfy0spH f1eA== X-Gm-Message-State: AFqh2kpfYHQvF2tpgV+95hnnkCtCnwlcd1pwENiN4VYAPZlihKG30yIC KyjYk7Td84IoBWsEZgyoOELAMg== X-Received: by 2002:ac8:71c1:0:b0:3b6:3abd:fcc2 with SMTP id i1-20020ac871c1000000b003b63abdfcc2mr16964684qtp.46.1674164374360; Thu, 19 Jan 2023 13:39:34 -0800 (PST) Received: from localhost.localdomain (c-66-31-16-167.hsd1.ma.comcast.net. [66.31.16.167]) by smtp.gmail.com with ESMTPSA id l13-20020a05620a28cd00b0070531c5d655sm2600676qkp.90.2023.01.19.13.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 13:39:33 -0800 (PST) From: Dennis Lambe Jr To: Alessandro Zummo , Alexandre Belloni , Krzysztof Kozlowski , Rob Herring , Atsushi Nemoto Cc: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= , Gary Bisson , Javier Martinez Canillas , Troy Kisky , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Dennis Lambe Jr , Krzysztof Kozlowski Subject: [PATCH v3 2/3] dt-bindings: m41t80: add xtal load capacitance Date: Thu, 19 Jan 2023 21:39:02 +0000 Message-Id: <20230119213903.899756-3-dennis@sparkcharge.io> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119213903.899756-1-dennis@sparkcharge.io> References: <20230119213903.899756-1-dennis@sparkcharge.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ST m41t82 and m41t83 support programmable load capacitance from 3.5 pF to 17.4 pF. The hardware defaults to 12.5 pF. The accuracy of the xtal can be calibrated precisely by adjusting the load capacitance. Add default, minimum, and maximum for the standard rtc property quartz-load-femtofarads on compatible devices. Signed-off-by: Dennis Lambe Jr Reviewed-by: Krzysztof Kozlowski --- Notes: v2 -> v3: added "Reviewed-by: Krzysztof Kozlowski" to changelog v1 -> v2: remove accidental wakeup-sources line suggested by Krzysztof Kozlowski spelling fix in changelog .../devicetree/bindings/rtc/st,m41t80.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/st,m41t80.yaml b/Documentation/devicetree/bindings/rtc/st,m41t80.yaml index fc9c6da6483f..6673adf6e99b 100644 --- a/Documentation/devicetree/bindings/rtc/st,m41t80.yaml +++ b/Documentation/devicetree/bindings/rtc/st,m41t80.yaml @@ -33,6 +33,11 @@ properties: "#clock-cells": const: 1 + quartz-load-femtofarads: + default: 12500 + minimum: 3500 + maximum: 17375 + clock-output-names: maxItems: 1 description: From common clock binding to override the default output clock name. @@ -46,6 +51,17 @@ properties: allOf: - $ref: rtc.yaml + - if: + not: + properties: + compatible: + contains: + enum: + - st,m41t82 + - st,m41t83 + then: + properties: + quartz-load-femtofarads: false unevaluatedProperties: false -- 2.25.1