mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
|
From a63147794f18db239bde3189611d251131111414 Mon Sep 17 00:00:00 2001
|
||
|
From: Phil Elwell <phil@raspberrypi.com>
|
||
|
Date: Mon, 16 Oct 2023 09:06:25 +0100
|
||
|
Subject: [PATCH 0673/1085] dts: bcm2712: Set default I2C baudrates to 100kHz
|
||
|
|
||
|
The RP1 I2C interfaces were being left with their default clock rates,
|
||
|
apparently 400kHz.
|
||
|
|
||
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||
|
---
|
||
|
arch/arm/boot/dts/broadcom/bcm2712-rpi-5-b.dts | 2 ++
|
||
|
arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi | 2 ++
|
||
|
2 files changed, 4 insertions(+)
|
||
|
|
||
|
--- a/arch/arm/boot/dts/broadcom/bcm2712-rpi-5-b.dts
|
||
|
+++ b/arch/arm/boot/dts/broadcom/bcm2712-rpi-5-b.dts
|
||
|
@@ -250,11 +250,13 @@ i2c0mux: &rp1_gpio {};
|
||
|
i2c_csi_dsi0: &i2c6 { // Note: This is for MIPI0 connector only
|
||
|
pinctrl-0 = <&rp1_i2c6_38_39>;
|
||
|
pinctrl-names = "default";
|
||
|
+ clock-frequency = <100000>;
|
||
|
};
|
||
|
|
||
|
i2c_csi_dsi1: &i2c4 { // Note: This is for MIPI1 connector only
|
||
|
pinctrl-0 = <&rp1_i2c4_40_41>;
|
||
|
pinctrl-names = "default";
|
||
|
+ clock-frequency = <100000>;
|
||
|
};
|
||
|
|
||
|
i2c_csi_dsi: &i2c_csi_dsi1 { }; // An alias for compatibility
|
||
|
--- a/arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi
|
||
|
+++ b/arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi
|
||
|
@@ -204,11 +204,13 @@ uart4: &rp1_uart4 { };
|
||
|
i2c_vc: &i2c0 { // This is pins 27,28 on the header (not MIPI)
|
||
|
pinctrl-0 = <&rp1_i2c0_0_1>;
|
||
|
pinctrl-names = "default";
|
||
|
+ clock-frequency = <100000>;
|
||
|
};
|
||
|
|
||
|
i2c_arm: &i2c1 {
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&rp1_i2c1_2_3>;
|
||
|
+ clock-frequency = <100000>;
|
||
|
};
|
||
|
|
||
|
&i2c2 {
|