From: Dennis Lambe Jr <dennis@sparkcharge.io>
To: Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-rtc@vger.kernel.org,
Dennis Lambe Jr <dennis@sparkcharge.io>
Subject: [PATCH v2 2/3] dt-bindings: m41t80: add xtal load capacitance
Date: Wed, 4 Jan 2023 05:25:05 +0000 [thread overview]
Message-ID: <20230104052506.575619-3-dennis@sparkcharge.io> (raw)
In-Reply-To: <20230104052506.575619-1-dennis@sparkcharge.io>
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 <dennis@sparkcharge.io>
---
Notes:
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
next prev parent reply other threads:[~2023-01-04 5:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-04 5:25 [PATCH v2 0/3] rtc: Set M41T82 & M41T83 xtal load capacitance from DT Dennis Lambe Jr
2023-01-04 5:25 ` [PATCH v2 1/3] rtc: m41t80: probe: use IS_ENABLED for CONFIG_OF Dennis Lambe Jr
2023-01-04 5:25 ` Dennis Lambe Jr [this message]
2023-01-10 13:02 ` [PATCH v2 2/3] dt-bindings: m41t80: add xtal load capacitance Krzysztof Kozlowski
2023-01-04 5:25 ` [PATCH v2 3/3] rtc: m41t80: set xtal load capacitance from DT Dennis Lambe Jr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230104052506.575619-3-dennis@sparkcharge.io \
--to=dennis@sparkcharge.io \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=anemo@mba.ocn.ne.jp \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).