[PATCH] arm64: dts: ti: k3-j722s: add I2C4 node and range

Nora Schiffer posted 1 patch 2 weeks, 5 days ago
arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 13 +++++++++++++
arch/arm64/boot/dts/ti/k3-j722s.dtsi      |  1 +
2 files changed, 14 insertions(+)
[PATCH] arm64: dts: ti: k3-j722s: add I2C4 node and range
Posted by Nora Schiffer 2 weeks, 5 days ago
I2C 0..3 are common to the AM62P and J722S, and are thus defined in
k3-am62p-j722s-common-main.dtsi. The J722S has an additional I2C
controller I2C4 that does not exist on AM62P; add it to
k3-j722s-main.dtsi.

Signed-off-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>
---

Prerequisite for one of the RPi-compatible MIPI-CSI camera interfaces
found on the TQ-Systems MBa67xx baseboard for the TQMa67xx SoM (will be
submitted separately once the other prerequisites for the board have
been accepted).

 arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 13 +++++++++++++
 arch/arm64/boot/dts/ti/k3-j722s.dtsi      |  1 +
 2 files changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi
index be7e533e6c38a..aad2169bff75c 100644
--- a/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi
@@ -154,6 +154,19 @@ usb1: usb@31200000 {
 		};
 	};
 
+	main_i2c4: i2c@fe80000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x0fe80000 0x00 0x100>;
+		interrupt-parent = <&main_gpio_intr>;
+		interrupts = <178>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 257 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 257 2>;
+		clock-names = "fck";
+		status = "disabled";
+	};
+
 	ti_csi2rx1: ticsi2rx@30122000 {
 		compatible = "ti,j721e-csi2rx-shim";
 		reg = <0x00 0x30122000 0x00 0x1000>;
diff --git a/arch/arm64/boot/dts/ti/k3-j722s.dtsi b/arch/arm64/boot/dts/ti/k3-j722s.dtsi
index 059c65ece183f..1e8f9cb5558f8 100644
--- a/arch/arm64/boot/dts/ti/k3-j722s.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j722s.dtsi
@@ -160,6 +160,7 @@ cbass_main: bus@f0000 {
 			 <0x00 0x0fd80000 0x00 0x0fd80000 0x00 0x00080000>, /* GPU */
 			 <0x00 0x0fd20000 0x00 0x0fd20000 0x00 0x00000100>, /* JPEGENC0_CORE */
 			 <0x00 0x0fd20200 0x00 0x0fd20200 0x00 0x00000200>, /* JPEGENC0_CORE_MMU */
+			 <0x00 0x0fe80000 0x00 0x0fe80000 0x00 0x00000100>, /* I2C4 */
 			 <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */
 			 <0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */
 			 <0x00 0x301c0000 0x00 0x301c0000 0x00 0x00001000>, /* DPHY-TX */
-- 
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
https://www.tq-group.com/

Re: [PATCH] arm64: dts: ti: k3-j722s: add I2C4 node and range
Posted by Vignesh Raghavendra 2 weeks ago
Hi,

On 18/03/26 17:21, Nora Schiffer wrote:
> I2C 0..3 are common to the AM62P and J722S, and are thus defined in
> k3-am62p-j722s-common-main.dtsi. The J722S has an additional I2C
> controller I2C4 that does not exist on AM62P; add it to
> k3-j722s-main.dtsi.
> 
> Signed-off-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>
> ---
> 
> Prerequisite for one of the RPi-compatible MIPI-CSI camera interfaces
> found on the TQ-Systems MBa67xx baseboard for the TQMa67xx SoM (will be
> submitted separately once the other prerequisites for the board have
> been accepted).
> 

There is already a patch from Aniket at [0] which seems more complete. 
Please Test / Review the same ?

[0] https://lore.kernel.org/r/20260304-j722s-main-i2c4-dt-v1-1-03f79f0cdf97@ti.com


[...]

-- 
Regards
Vignesh
https://ti.com/opensource