Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2995529rwj; Mon, 19 Dec 2022 11:27:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YC1ZG3ToyPRQsde1LnZWxOLDB4GMuYBkq8u7r5adpErS9zfrM8PHSAqs49Xil0xK4Nqgn X-Received: by 2002:a05:6402:3209:b0:46a:c6d3:9a41 with SMTP id g9-20020a056402320900b0046ac6d39a41mr40224672eda.14.1671478070397; Mon, 19 Dec 2022 11:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671478070; cv=none; d=google.com; s=arc-20160816; b=h9CICkl8Na16nrXR6NhIqU7E88ftEqzyhc6ueMzVSC91mNDiaT82hi/IZqn002cD8K //ZF4ecjJ9QgdUBPb6Mg2VrA9HW0DXXBTWQ9+aib0ZaEWEjQSE0aFTUfPZj6FFHLW+mL aKKHAhgFJ34HZkGhsH8EsBpILw8KMZUaFJHXSCBHK8vHZOYLmkbnVvTh1VQW01LL9UqI Hlvzqw/dh3KsNsZn/t2HaidvvEwLu4Jr3n4ZIgO0zvQeOsz0pJ+WlsYUpo7YY+2R5mT2 mJkmZWYIYsY/XdgaPUwMbMn1GUrT8IVqLLOm3m2bp8DwwXkaQJOuKyVCFd44r4uTlWp2 FVIA== 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=NK5TSyyNAxFyXbebfxPbStKYwQ+QFfdsKkMuy6XtJfo=; b=N3M6CMJsVqBz29DLX8P5WqNdqJZ7tSPSM9UyGPgan6cVsxmf84jB8d2Xyn81EIyCMM NvpSiChsu87zaaUjl0dBNquoZXCQ8ltSjZTiyNd+GwKra2qGSFE9gODAYu+x+XjYwG69 sJy2BcYdTlHHiNyeCM0Tm7n5lDnbC2enVwkCrIGdScDxKF/AOJGDSe580lG7mYqCv2y5 LBgNakgUmsxOem9Wn7NMR1+V86WJmWpFqoRjcwuYlJQz9joNh5cSKSAvjJbGbGDT7Ssr QgriseD88z9miMQS6Ic+ccD8kviwF2UD3rYICLpWYS9BbMZIEDMWMsf+CfNg/LAVlfKJ qhQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@sparkcharge.io header.s=google header.b=OnUKpSFa; 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 q13-20020a056402518d00b00461c0fd2597si10921843edd.89.2022.12.19.11.27.34; Mon, 19 Dec 2022 11:27:50 -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=OnUKpSFa; 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 S231881AbiLSTJi (ORCPT + 70 others); Mon, 19 Dec 2022 14:09:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232037AbiLSTJa (ORCPT ); Mon, 19 Dec 2022 14:09:30 -0500 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65F46765E for ; Mon, 19 Dec 2022 11:09:29 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-4407c61433bso97217327b3.9 for ; Mon, 19 Dec 2022 11:09:29 -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=NK5TSyyNAxFyXbebfxPbStKYwQ+QFfdsKkMuy6XtJfo=; b=OnUKpSFaN8t2aIjjI7uFwBz0cJMxPX5TKo3WgWz+MQStEMBcc7bguKH9u0uxdpr6F3 Bt15BepxBCOl+uLkZbEipvuRh5UB4JtcyOyaFAJDiVzrAA4865XBankn/vUFyA9Q9XsK ZA/2YByOv/XacUu+FETQdP6GwhzOUvHbuYxX2GV0ErgS6sYuBnCZtonZu2oq80SPXXQo gKFg0LkLXwNxAtI92p14Alx0r+zgEi4v5/S+HTN+7btBpbVz83e9aBESJg8dU3OUgmqP JPv6pO5I5Loi5vkh5q/Dkj2j86u4evVhaJh03QW5GTppxwBdhcHLUjX01BVHV96u4HNc 7zXA== 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=NK5TSyyNAxFyXbebfxPbStKYwQ+QFfdsKkMuy6XtJfo=; b=bg2yjTu87tgg/f2YOaCN8fmy8JM3ZrhvMwuGWHtn48jgXDnriERg7XiIMTdrcQvX4/ SLdmtKiqczPdOakkn7cTGaARVNfNp4qyW1nE9qzTPKQ1Rtl1TUVGKtCVgJ1R37jT9Vun F8+RhU0FDPdaN2TwzHGY2luu41nBz2DUABqAlMkH46fdB4iEXrfSfl+tlEzZB5iu4iyg 2vC/Z2WULR9o5D3z9+V3D+FX6XN0AkcX2mAjV55hipavxFwZnHbmqIMs00pikg1DTkLO To7LpaYBsJuRElOdo5ap2h8GdVOqleILOgVQlozPxG44/UjXXf+ZSKSR7sok8zahjTH7 bzqQ== X-Gm-Message-State: ANoB5pk/ImD27PyMbePPS6uTzKtA7CoypXkKagO59BztNW6qw9bEbYRP pNOk2aqzYKZgBlu2zcrLQkA/YQ== X-Received: by 2002:a0d:dd10:0:b0:421:2aa5:7410 with SMTP id g16-20020a0ddd10000000b004212aa57410mr27132070ywe.28.1671476968392; Mon, 19 Dec 2022 11:09:28 -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 i16-20020a05620a249000b006fa9d101775sm7503743qkn.33.2022.12.19.11.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 11:09:28 -0800 (PST) From: Dennis Lambe Jr To: Alessandro Zummo , Alexandre Belloni , Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Alexander Bigga , Dennis Lambe Jr Subject: [PATCH 2/3] dt-bindings: m41t80: add xtal load capacitance Date: Mon, 19 Dec 2022 19:09:14 +0000 Message-Id: <20221219190915.3912384-3-dennis@sparkcharge.io> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221219190915.3912384-1-dennis@sparkcharge.io> References: <20221219190915.3912384-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 capacicance. Add default, minimum, and maximum for the standard rtc property quartz-load-femtofarads on compatible devices. Signed-off-by: Dennis Lambe Jr --- .../devicetree/bindings/rtc/st,m41t80.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/st,m41t80.yaml b/Documentation/devicetree/bindings/rtc/st,m41t80.yaml index fc9c6da6483f..6b72580dc031 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. @@ -44,8 +49,21 @@ properties: clock-frequency: const: 32768 + wakeup-source: true + 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