moby: limit i2c1 frequency to 400 kHz

This commit is contained in:
2024-10-15 03:48:28 +00:00
parent 0a2945e9a9
commit 9fbe040ea5

View File

@@ -188,7 +188,10 @@
// declared in rk3399-base.dtsi, as `i2c1: i2c@ff110000 { ... }`
&i2c1 {
status = "okay";
// clock-frequency = <400000>;
// ALC5640 datasheet specifies max i2c rate of 400kHz
// - max rise time: 300ns
// - max fall time: 300ns
clock-frequency = <400000>;
// from rk3399-firefly.dts
// note that i2c3 in pinephone-pro is defined as 450/15 rise/fall
i2c-scl-rising-time-ns = <300>;