]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: ti: k3-j722s: Add main_i2c4 device node
authorAniket Limaye <a-limaye@ti.com>
Wed, 4 Mar 2026 09:11:05 +0000 (14:41 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 23 Mar 2026 10:27:49 +0000 (15:57 +0530)
Add missing device tree node for main_i2c4, and the corresponding ranges
in cbass_main. Interrupt for this i2c controller is routed through the
Main GPIOMUX Router.
Base address, Interrupt IDs are taken from J722S TRM [0].
Device, Clock IDs are taken from TISCI docs [1].

Additionally, the I2C4 is the only interrupt source to the GPIOMUX INTR
router that generates level interrupts, while all other sources generate
edge interrupts. Due to this, the router needs to handle interrupt-type
on a per-line basis. Modify the router node and its consumers to
specify the interrupt type corresponding to each interrupt line.

[0]: https://www.ti.com/lit/zip/sprujb3
[1]:
https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/index.html#j722s

Signed-off-by: Jared McArthur <j-mcarthur@ti.com>
Signed-off-by: Aniket Limaye <a-limaye@ti.com>
Tested-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>
Link: https://patch.msgid.link/20260304-j722s-main-i2c4-dt-v1-1-03f79f0cdf97@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi
arch/arm64/boot/dts/ti/k3-j722s-main.dtsi
arch/arm64/boot/dts/ti/k3-j722s.dtsi

index 0e1af2a69ca2ed608b2547e77572e0f96be5e17f..f130c7cb998d797f918e5017b4434496dca6067c 100644 (file)
        main_gpio_intr: interrupt-controller@a00000 {
                compatible = "ti,sci-intr";
                reg = <0x00 0x00a00000 0x00 0x800>;
-               ti,intr-trigger-type = <1>;
                interrupt-controller;
                interrupt-parent = <&gic500>;
-               #interrupt-cells = <1>;
+               #interrupt-cells = <2>;
                ti,sci = <&dmsc>;
                ti,sci-dev-id = <3>;
                ti,interrupt-ranges = <0 32 16>;
                gpio-controller;
                #gpio-cells = <2>;
                interrupt-parent = <&main_gpio_intr>;
-               interrupts = <190>, <191>, <192>,
-                            <193>, <194>, <195>;
+               interrupts = <190 IRQ_TYPE_EDGE_RISING>, <191 IRQ_TYPE_EDGE_RISING>,
+                            <192 IRQ_TYPE_EDGE_RISING>, <193 IRQ_TYPE_EDGE_RISING>,
+                            <194 IRQ_TYPE_EDGE_RISING>, <195 IRQ_TYPE_EDGE_RISING>;
                interrupt-controller;
                #interrupt-cells = <2>;
                ti,davinci-gpio-unbanked = <0>;
                gpio-controller;
                #gpio-cells = <2>;
                interrupt-parent = <&main_gpio_intr>;
-               interrupts = <180>, <181>, <182>,
-                            <183>, <184>, <185>;
+               interrupts = <180 IRQ_TYPE_EDGE_RISING>, <181 IRQ_TYPE_EDGE_RISING>,
+                            <182 IRQ_TYPE_EDGE_RISING>, <183 IRQ_TYPE_EDGE_RISING>,
+                            <184 IRQ_TYPE_EDGE_RISING>, <185 IRQ_TYPE_EDGE_RISING>;
                interrupt-controller;
                #interrupt-cells = <2>;
                ti,davinci-gpio-unbanked = <0>;
index 9ee5d0c8ffd1ef9be023a2739708b1718fbf0539..ddf20e44f0eaf1944e1633088d3b8fd6b1aaae26 100644 (file)
                };
        };
 
+       main_i2c4: i2c@fe80000 {
+               compatible = "ti,am64-i2c", "ti,omap4-i2c";
+               reg = <0x00 0x0fe80000 0x00 0x100>;
+               interrupt-parent = <&main_gpio_intr>;
+               interrupts = <178 IRQ_TYPE_LEVEL_HIGH>;
+               #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>;
index 059c65ece183f60b9b1c6e5447579cee1524f0b3..1b36dcf37925eb90fe5edb9acc569fad8aab91da 100644 (file)
                         <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 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */
+                        <0x00 0x0fe00000 0x00 0x0fe00000 0x00 0x000f0400>, /* Third peripheral window */
+                        <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Fourth peripheral window */
                         <0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */
                         <0x00 0x301c0000 0x00 0x301c0000 0x00 0x00001000>, /* DPHY-TX */
                         <0x00 0x30101000 0x00 0x30101000 0x00 0x00080100>, /* CSI window */