From patchwork Mon Dec 19 19:09:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Lambe Jr X-Patchwork-Id: 635230 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DF07C4332F for ; Mon, 19 Dec 2022 19:09:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232240AbiLSTJc (ORCPT ); Mon, 19 Dec 2022 14:09:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232054AbiLSTJa (ORCPT ); Mon, 19 Dec 2022 14:09:30 -0500 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6607F7666 for ; Mon, 19 Dec 2022 11:09:29 -0800 (PST) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-3e45d25de97so139949537b3.6 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=6LnYT92FsypCJG34P1IFt6raHlGGO+Azf946QoMM2V24ZkjFsiKlA2IkPkkcWbcjmL ThKjduMN6O2QxB7XCmUPiDu3S7wYIuQ5kpQf+2WUmM/bGCCcbhMfw50lvCk6nIBYuqnT d1JOn4wCoZqUr54TNVZzmGYl7I1qByiDck7Tnm0EG4txdHosKavqVgatff53RHe27QJf 6XPJWuvtwjsMzssFQzzqtIy96qj8XWuQ1JsHsRqPBBRXXw7mqYNMl+N2vw/uq3FZwE+V PCHr0g38m2tG1YSYrZ/2WkcNECxPnFmKfEEKwICIi20HNJpMj8plhR4QotRF7PaH1Lv5 xK9A== X-Gm-Message-State: ANoB5plg399U0Hvoqkocl+b7Wu49w3ux3c5yFnZuHUbpGcx6Qlyi8GdG xdyBLatRFNweZcimwwFADGQ3Bg== X-Google-Smtp-Source: AA0mqf44nMz5abpw0HK4kEBj2kKEH3vxLyWo3MJtQh8GEuw7y7qKmmjIxm/2+br+4bkTBKOW+LiDsg== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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