From: Adam Ford <aford173@gmail.com>
To: linux-renesas-soc@vger.kernel.org
Cc: geert+renesas@glider.be, devicetree@vger.kernel.org,
Adam Ford <aford173@gmail.com>
Subject: [PATCH] arm64: dts: renesas: beacon: Fix i2c2 speed calcuation
Date: Wed, 25 Aug 2021 07:27:57 -0500 [thread overview]
Message-ID: <20210825122757.91133-1-aford173@gmail.com> (raw)
The desired i2c2 speed is 400KHz, but when measured on a scope, it
is incorrect. The driver can use the i2c-scl-rising-time-ns to help
calculate the proper setting to get exactly 400KHz.
Fixes: 900d9fc3bece ("arm64: dts: renesas: beacon: Correct I2C bus speeds")
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
index 2692cc64bff6..987357c58390 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
@@ -328,6 +328,7 @@ &hsusb {
&i2c2 {
status = "okay";
clock-frequency = <400000>;
+ i2c-scl-rising-time-ns = <50>;
pinctrl-0 = <&i2c2_pins>;
pinctrl-names = "default";
--
2.25.1
next reply other threads:[~2021-08-25 12:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-25 12:27 Adam Ford [this message]
2021-08-25 12:47 ` [PATCH] arm64: dts: renesas: beacon: Fix i2c2 speed calcuation Geert Uytterhoeven
2021-09-14 10:41 ` Wolfram Sang
2021-09-20 12:25 ` Adam Ford
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=20210825122757.91133-1-aford173@gmail.com \
--to=aford173@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=linux-renesas-soc@vger.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