From: Michael Wu <michael.wu@kneron.us>
To: Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jarkko Nikula <jarkko.nikula@linux.intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Jan Dabros <jsd@semihalf.com>,
linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Morgan Chang <morgan.chang@kneron.us>,
mvp.kutali@gmail.com, Michael Wu <michael.wu@kneron.us>
Subject: [PATCH v2 1/2] dt-bindings: i2c: snps,designware-i2c: add bus-capacitance-pf and clk-freq-optimized
Date: Fri, 27 Sep 2024 12:22:16 +0800 [thread overview]
Message-ID: <20240927042230.277144-2-michael.wu@kneron.us> (raw)
In-Reply-To: <20240927042230.277144-1-michael.wu@kneron.us>
Since there are no registers controlling the hardware parameters
IC_CAP_LOADING and IC_CLK_FREQ_OPTIMIZATION, their values can only be
declared in the device tree.
bus-capacitance-pf indicates the bus capacitance in picofarad (pF). It
affects the high and low pulse width of SCL line in high speed mode. The
only legal values for this property are 100 and 400, which are used to
calculate the tHIGH and tLOW periods for high speed mode. This property
corresponds to IC_CAP_LOADING.
clk-freq-optimized indicates that the hardware input clock frequency is
reduced by reducing the internal latency. The property affects the high
period and low period of the SCL line. The property conrresponds to
IC_CLK_FREQ_OPTIMIZATION.
Signed-off-by: Michael Wu <michael.wu@kneron.us>
---
.../bindings/i2c/snps,designware-i2c.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
index 60035a787e5c..fc19e6a8b306 100644
--- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
@@ -87,6 +87,20 @@ properties:
This value is used to compute the tHIGH period.
default: 300
+ bus-capacitance-pf:
+ description: |
+ This property represents the bus capacitance in picofarad (pF). It
+ affects the high and low pulse width of SCL line in high speed mode.
+ The only legal values for this property are 100 and 400, which are used
+ to calculate the tHIGH and tLOW periods for high speed mode.
+ default: 100
+
+ clk-freq-optimized:
+ description: |
+ If the hardware input clock frequency is reduced by reducing the
+ internal latency, this property must be declared in the device tree. It
+ affects the high period and low period of SCL line.
+
dmas:
items:
- description: TX DMA Channel
--
2.43.0
next prev parent reply other threads:[~2024-09-27 5:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-27 4:22 [PATCH v2 0/2] Compute HS HCNT and LCNT based on HW parameters Michael Wu
2024-09-27 4:22 ` Michael Wu [this message]
2024-09-27 8:35 ` [PATCH v2 1/2] dt-bindings: i2c: snps,designware-i2c: add bus-capacitance-pf and clk-freq-optimized Krzysztof Kozlowski
2024-09-28 7:07 ` Michael Wu
2024-09-27 4:22 ` [PATCH v2 2/2] i2c: dwsignware: determine HS tHIGH and tLOW based on HW parameters Michael Wu
2024-09-27 8:36 ` Krzysztof Kozlowski
2024-09-27 9:44 ` Andy Shevchenko
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=20240927042230.277144-2-michael.wu@kneron.us \
--to=michael.wu@kneron.us \
--cc=andi.shyti@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jarkko.nikula@linux.intel.com \
--cc=jsd@semihalf.com \
--cc=krzk+dt@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=morgan.chang@kneron.us \
--cc=mvp.kutali@gmail.com \
--cc=robh@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
all inboxes | Powered by JetHome®