mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
From 0339c8c61ca6b54c529f699e7bafd65cda9f3733 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Mon, 16 Oct 2023 09:06:25 +0100
|
|
Subject: [PATCH] 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/bcm2712-rpi-5-b.dts | 2 ++
|
|
arch/arm/boot/dts/bcm2712-rpi.dtsi | 2 ++
|
|
2 files changed, 4 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/bcm2712-rpi-5-b.dts
|
|
+++ b/arch/arm/boot/dts/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/bcm2712-rpi.dtsi
|
|
+++ b/arch/arm/boot/dts/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 {
|