Add interrupts property for CDNS CSI2RX. Interrupt IDs are taken from the
J721S2 TRM [0].
Interrupt Line | Source Interrupt
--------------------|----------------------------
GIC500SS_SPI_IN_153 | CSI_RX_IF1_CSI_ERR_IRQ_0
GIC500SS_SPI_IN_152 | CSI_RX_IF1_CSI_IRQ_0
GIC500SS_SPI_IN_157 | CSI_RX_IF2_CSI_ERR_IRQ_0
GIC500SS_SPI_IN_156 | CSI_RX_IF2_CSI_IRQ_0
[0]: https://www.ti.com/lit/zip/spruj28
Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
---
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
index 62f45377a2c9..6f32a2b0c40c 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
@@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
cdns_csi2rx0: csi-bridge@4504000 {
compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
reg = <0x00 0x04504000 0x00 0x1000>;
+ interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "error_irq", "irq";
clocks = <&k3_clks 38 3>, <&k3_clks 38 1>, <&k3_clks 38 3>,
<&k3_clks 38 3>, <&k3_clks 38 4>, <&k3_clks 38 4>;
clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
@@ -1301,6 +1304,9 @@ ti_csi2rx1: ticsi2rx@4510000 {
cdns_csi2rx1: csi-bridge@4514000 {
compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
reg = <0x00 0x04514000 0x00 0x1000>;
+ interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "error_irq", "irq";
clocks = <&k3_clks 39 3>, <&k3_clks 39 1>, <&k3_clks 39 3>,
<&k3_clks 39 3>, <&k3_clks 39 4>, <&k3_clks 39 4>;
clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
--
2.34.1
On 7/14/2025 2:57 PM, Yemike Abhilash Chandra wrote:
> Add interrupts property for CDNS CSI2RX. Interrupt IDs are taken from the
> J721S2 TRM [0].
>
> Interrupt Line | Source Interrupt
> --------------------|----------------------------
> GIC500SS_SPI_IN_153 | CSI_RX_IF1_CSI_ERR_IRQ_0
> GIC500SS_SPI_IN_152 | CSI_RX_IF1_CSI_IRQ_0
> GIC500SS_SPI_IN_157 | CSI_RX_IF2_CSI_ERR_IRQ_0
> GIC500SS_SPI_IN_156 | CSI_RX_IF2_CSI_IRQ_0
>
> [0]: https://www.ti.com/lit/zip/spruj28
>
> Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
> ---
> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
> index 62f45377a2c9..6f32a2b0c40c 100644
> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
> cdns_csi2rx0: csi-bridge@4504000 {
> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
> reg = <0x00 0x04504000 0x00 0x1000>;
> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
Just cosmetic thing, if you are doing v2 then consider 152 first ,
followed by 153.
Otherwise
Reviewed-by: Udit Kumar <u-kumar1@ti.com>
> + interrupt-names = "error_irq", "irq";
> clocks = <&k3_clks 38 3>, <&k3_clks 38 1>, <&k3_clks 38 3>,
> <&k3_clks 38 3>, <&k3_clks 38 4>, <&k3_clks 38 4>;
> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
> @@ -1301,6 +1304,9 @@ ti_csi2rx1: ticsi2rx@4510000 {
> cdns_csi2rx1: csi-bridge@4514000 {
> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
> reg = <0x00 0x04514000 0x00 0x1000>;
> + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "error_irq", "irq";
> clocks = <&k3_clks 39 3>, <&k3_clks 39 1>, <&k3_clks 39 3>,
> <&k3_clks 39 3>, <&k3_clks 39 4>, <&k3_clks 39 4>;
> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
On 21/07/2025 16:07, Kumar, Udit wrote:
>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> index 62f45377a2c9..6f32a2b0c40c 100644
>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
>> cdns_csi2rx0: csi-bridge@4504000 {
>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>> reg = <0x00 0x04504000 0x00 0x1000>;
>> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
>> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
>
> Just cosmetic thing, if you are doing v2 then consider 152 first ,
> followed by 153.
No, you cannot just randomly change numbers or the order.
Best regards,
Krzysztof
On 7/21/2025 7:39 PM, Krzysztof Kozlowski wrote:
> On 21/07/2025 16:07, Kumar, Udit wrote:
>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>> index 62f45377a2c9..6f32a2b0c40c 100644
>>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
>>> cdns_csi2rx0: csi-bridge@4504000 {
>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>> reg = <0x00 0x04504000 0x00 0x1000>;
>>> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
>>> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
>> Just cosmetic thing, if you are doing v2 then consider 152 first ,
>> followed by 153.
>
> No, you cannot just randomly change numbers or the order.
>
To be precise both , interrupt-names and interrupts,
if this make sense to change.
> Best regards,
> Krzysztof
On 21/07/2025 16:12, Kumar, Udit wrote:
>
> On 7/21/2025 7:39 PM, Krzysztof Kozlowski wrote:
>> On 21/07/2025 16:07, Kumar, Udit wrote:
>>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> index 62f45377a2c9..6f32a2b0c40c 100644
>>>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
>>>> cdns_csi2rx0: csi-bridge@4504000 {
>>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>>> reg = <0x00 0x04504000 0x00 0x1000>;
>>>> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
>>>> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
>>> Just cosmetic thing, if you are doing v2 then consider 152 first ,
>>> followed by 153.
>>
>> No, you cannot just randomly change numbers or the order.
>>
> To be precise both , interrupt-names and interrupts,
>
> if this make sense to change.
No, it does not makes any sense. You cannot change the order and if you
tested this, you would see errors.
Best regards,
Krzysztof
On 7/21/2025 7:37 PM, Kumar, Udit wrote:
>
> On 7/14/2025 2:57 PM, Yemike Abhilash Chandra wrote:
>> Add interrupts property for CDNS CSI2RX. Interrupt IDs are taken from
>> the
>> J721S2 TRM [0].
>>
>> Interrupt Line | Source Interrupt
>> --------------------|----------------------------
>> GIC500SS_SPI_IN_153 | CSI_RX_IF1_CSI_ERR_IRQ_0
>> GIC500SS_SPI_IN_152 | CSI_RX_IF1_CSI_IRQ_0
>> GIC500SS_SPI_IN_157 | CSI_RX_IF2_CSI_ERR_IRQ_0
>> GIC500SS_SPI_IN_156 | CSI_RX_IF2_CSI_IRQ_0
>>
>> [0]: https://www.ti.com/lit/zip/spruj28
>>
>> Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
>> ---
>> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> index 62f45377a2c9..6f32a2b0c40c 100644
>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
>> cdns_csi2rx0: csi-bridge@4504000 {
>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>> reg = <0x00 0x04504000 0x00 0x1000>;
>> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
>> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
>
> Just cosmetic thing, if you are doing v2 then consider 152 first ,
> followed by 153.
>
> Otherwise
>
> Reviewed-by: Udit Kumar <u-kumar1@ti.com>
Sorry, sent too fast, offset of 32 missing .
>
>> + interrupt-names = "error_irq", "irq";
>> clocks = <&k3_clks 38 3>, <&k3_clks 38 1>, <&k3_clks 38
>> 3>,
>> <&k3_clks 38 3>, <&k3_clks 38 4>, <&k3_clks 38 4>;
>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
>> @@ -1301,6 +1304,9 @@ ti_csi2rx1: ticsi2rx@4510000 {
>> cdns_csi2rx1: csi-bridge@4514000 {
>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>> reg = <0x00 0x04514000 0x00 0x1000>;
>> + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
>> + <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
>> + interrupt-names = "error_irq", "irq";
>> clocks = <&k3_clks 39 3>, <&k3_clks 39 1>, <&k3_clks 39
>> 3>,
>> <&k3_clks 39 3>, <&k3_clks 39 4>, <&k3_clks 39 4>;
>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
Hi Udit,
Thanks for the review.
On 21/07/25 19:40, Kumar, Udit wrote:
>
> On 7/21/2025 7:37 PM, Kumar, Udit wrote:
>>
>> On 7/14/2025 2:57 PM, Yemike Abhilash Chandra wrote:
>>> Add interrupts property for CDNS CSI2RX. Interrupt IDs are taken from
>>> the
>>> J721S2 TRM [0].
>>>
>>> Interrupt Line | Source Interrupt
>>> --------------------|----------------------------
>>> GIC500SS_SPI_IN_153 | CSI_RX_IF1_CSI_ERR_IRQ_0
>>> GIC500SS_SPI_IN_152 | CSI_RX_IF1_CSI_IRQ_0
>>> GIC500SS_SPI_IN_157 | CSI_RX_IF2_CSI_ERR_IRQ_0
>>> GIC500SS_SPI_IN_156 | CSI_RX_IF2_CSI_IRQ_0
>>>
>>> [0]: https://www.ti.com/lit/zip/spruj28
>>>
>>> Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
>>> ---
>>> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 6 ++++++
>>> 1 file changed, 6 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>> b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>> index 62f45377a2c9..6f32a2b0c40c 100644
>>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
>>> cdns_csi2rx0: csi-bridge@4504000 {
>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>> reg = <0x00 0x04504000 0x00 0x1000>;
>>> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
>>> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
>>
>> Just cosmetic thing, if you are doing v2 then consider 152 first ,
>> followed by 153.
>>
>> Otherwise
>>
>> Reviewed-by: Udit Kumar <u-kumar1@ti.com>
>
>
> Sorry, sent too fast, offset of 32 missing .
>
From what I’ve seen, the SPI interrupt IDs on J721S2 start from 0,
so I don’t think we need to subtract the 32 offset.
Interrupt Input Line Interrupt ID Source Interrupt
-------------------------------------------------------------
GIC500SS_SPI_IN_00 0 ESM0_ESM_INT_CFG_LVL_0
To confirm this, I’ve latched onto the correct interrupt line, and
my IRQ handler is getting triggered as expected. I’m also seeing the
desired output [0].
Let me know if I might be missing anything.
[0]:
https://gist.github.com/Yemike-Abhilash-Chandra/f46587ec1ef72671ee31803dd93434b4
Thanks and Regards
Yemike Abhilash Chandra
>
>>
>>> + interrupt-names = "error_irq", "irq";
>>> clocks = <&k3_clks 38 3>, <&k3_clks 38 1>, <&k3_clks 38
>>> 3>,
>>> <&k3_clks 38 3>, <&k3_clks 38 4>, <&k3_clks 38 4>;
>>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
>>> @@ -1301,6 +1304,9 @@ ti_csi2rx1: ticsi2rx@4510000 {
>>> cdns_csi2rx1: csi-bridge@4514000 {
>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>> reg = <0x00 0x04514000 0x00 0x1000>;
>>> + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
>>> + <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
>>> + interrupt-names = "error_irq", "irq";
>>> clocks = <&k3_clks 39 3>, <&k3_clks 39 1>, <&k3_clks 39
>>> 3>,
>>> <&k3_clks 39 3>, <&k3_clks 39 4>, <&k3_clks 39 4>;
>>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
On 7/22/25 00:50, Yemike Abhilash Chandra wrote:
> Hi Udit,
>
> Thanks for the review.
>
> On 21/07/25 19:40, Kumar, Udit wrote:
>>
>> On 7/21/2025 7:37 PM, Kumar, Udit wrote:
>>>
>>> On 7/14/2025 2:57 PM, Yemike Abhilash Chandra wrote:
>>>> Add interrupts property for CDNS CSI2RX. Interrupt IDs are taken from the
>>>> J721S2 TRM [0].
>>>>
>>>> Interrupt Line | Source Interrupt
>>>> --------------------|----------------------------
>>>> GIC500SS_SPI_IN_153 | CSI_RX_IF1_CSI_ERR_IRQ_0
>>>> GIC500SS_SPI_IN_152 | CSI_RX_IF1_CSI_IRQ_0
>>>> GIC500SS_SPI_IN_157 | CSI_RX_IF2_CSI_ERR_IRQ_0
>>>> GIC500SS_SPI_IN_156 | CSI_RX_IF2_CSI_IRQ_0
>>>>
>>>> [0]: https://www.ti.com/lit/zip/spruj28
>>>>
>>>> Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
>>>> ---
>>>> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 6 ++++++
>>>> 1 file changed, 6 insertions(+)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> index 62f45377a2c9..6f32a2b0c40c 100644
>>>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
>>>> cdns_csi2rx0: csi-bridge@4504000 {
>>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>>> reg = <0x00 0x04504000 0x00 0x1000>;
>>>> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
>>>> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
>>>
>>> Just cosmetic thing, if you are doing v2 then consider 152 first , followed by 153.
>>>
>>> Otherwise
>>>
>>> Reviewed-by: Udit Kumar <u-kumar1@ti.com>
>>
>>
>> Sorry, sent too fast, offset of 32 missing .
>>
>
> From what I’ve seen, the SPI interrupt IDs on J721S2 start from 0,
> so I don’t think we need to subtract the 32 offset.
>
>
> Interrupt Input Line Interrupt ID Source Interrupt
> -------------------------------------------------------------
> GIC500SS_SPI_IN_00 0 ESM0_ESM_INT_CFG_LVL_0
>
> To confirm this, I’ve latched onto the correct interrupt line, and
> my IRQ handler is getting triggered as expected. I’m also seeing the
> desired output [0].
>
> Let me know if I might be missing anything.
>
The interrupt lines are correct (153, 152, 157, and 152), but when I
read the TRM (specifically the Appendix xls) [0], the lines'
definitions include the offset. Where are you looking for the line
name?
Interrupt Input Line | Source Interrupt
-------------------------------------------|-----------------------------
COMPUTE_CLUSTER0_CLEC_SOC_EVENTS_IN_IN_184 | CSI_RX_IF0_CSI_IRQ_OUT_0
COMPUTE_CLUSTER0_CLEC_SOC_EVENTS_IN_IN_185 | CSI_RX_IF0_CSI_ERR_IRQ_OUT_0
COMPUTE_CLUSTER0_CLEC_SOC_EVENTS_IN_IN_188 | CSI_RX_IF1_CSI_IRQ_OUT_0
COMPUTE_CLUSTER0_CLEC_SOC_EVENTS_IN_IN_189 | CSI_RX_IF1_CSI_ERR_IRQ_OUT_0
You may want to change your comment to reflect the TRM's appendix.
[0]: https://www.ti.com/lit/zip/spruj28
> [0]: https://gist.github.com/Yemike-Abhilash-Chandra/f46587ec1ef72671ee31803dd93434b4
>
> Thanks and Regards
> Yemike Abhilash Chandra
>
>>
>>>
>>>> + interrupt-names = "error_irq", "irq";
>>>> clocks = <&k3_clks 38 3>, <&k3_clks 38 1>, <&k3_clks 38 3>,
>>>> <&k3_clks 38 3>, <&k3_clks 38 4>, <&k3_clks 38 4>;
>>>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
>>>> @@ -1301,6 +1304,9 @@ ti_csi2rx1: ticsi2rx@4510000 {
>>>> cdns_csi2rx1: csi-bridge@4514000 {
>>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>>> reg = <0x00 0x04514000 0x00 0x1000>;
>>>> + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
>>>> + <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
>>>> + interrupt-names = "error_irq", "irq";
>>>> clocks = <&k3_clks 39 3>, <&k3_clks 39 1>, <&k3_clks 39 3>,
>>>> <&k3_clks 39 3>, <&k3_clks 39 4>, <&k3_clks 39 4>;
>>>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
>
--
Best,
Jared McArthur
On 7/22/2025 11:20 AM, Yemike Abhilash Chandra wrote:
> Hi Udit,
>
> Thanks for the review.
>
> On 21/07/25 19:40, Kumar, Udit wrote:
>>
>> On 7/21/2025 7:37 PM, Kumar, Udit wrote:
>>>
>>> On 7/14/2025 2:57 PM, Yemike Abhilash Chandra wrote:
>>>> Add interrupts property for CDNS CSI2RX. Interrupt IDs are taken
>>>> from the
>>>> J721S2 TRM [0].
>>>>
>>>> Interrupt Line | Source Interrupt
>>>> --------------------|----------------------------
>>>> GIC500SS_SPI_IN_153 | CSI_RX_IF1_CSI_ERR_IRQ_0
>>>> GIC500SS_SPI_IN_152 | CSI_RX_IF1_CSI_IRQ_0
>>>> GIC500SS_SPI_IN_157 | CSI_RX_IF2_CSI_ERR_IRQ_0
>>>> GIC500SS_SPI_IN_156 | CSI_RX_IF2_CSI_IRQ_0
>>>>
>>>> [0]: https://www.ti.com/lit/zip/spruj28
>>>>
>>>> Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
>>>> ---
>>>> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 6 ++++++
>>>> 1 file changed, 6 insertions(+)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> index 62f45377a2c9..6f32a2b0c40c 100644
>>>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>>>> @@ -1248,6 +1248,9 @@ ti_csi2rx0: ticsi2rx@4500000 {
>>>> cdns_csi2rx0: csi-bridge@4504000 {
>>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>>> reg = <0x00 0x04504000 0x00 0x1000>;
>>>> + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
>>>> + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
>>>
>>> Just cosmetic thing, if you are doing v2 then consider 152 first ,
>>> followed by 153.
>>>
>>> Otherwise
>>>
>>> Reviewed-by: Udit Kumar <u-kumar1@ti.com>
>>
>>
>> Sorry, sent too fast, offset of 32 missing .
>>
>
> From what I’ve seen, the SPI interrupt IDs on J721S2 start from 0,
> so I don’t think we need to subtract the 32 offset.
>
>
> Interrupt Input Line Interrupt ID Source Interrupt
> -------------------------------------------------------------
> GIC500SS_SPI_IN_00 0 ESM0_ESM_INT_CFG_LVL_0
>
> To confirm this, I’ve latched onto the correct interrupt line, and
> my IRQ handler is getting triggered as expected. I’m also seeing the
> desired output [0].
>
> Let me know if I might be missing anything.
>
Thanks for update and please retain Reviewed-by
> [0]:
> https://gist.github.com/Yemike-Abhilash-Chandra/f46587ec1ef72671ee31803dd93434b4
>
> Thanks and Regards
> Yemike Abhilash Chandra
>
>>
>>>
>>>> + interrupt-names = "error_irq", "irq";
>>>> clocks = <&k3_clks 38 3>, <&k3_clks 38 1>, <&k3_clks
>>>> 38 3>,
>>>> <&k3_clks 38 3>, <&k3_clks 38 4>, <&k3_clks 38 4>;
>>>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
>>>> @@ -1301,6 +1304,9 @@ ti_csi2rx1: ticsi2rx@4510000 {
>>>> cdns_csi2rx1: csi-bridge@4514000 {
>>>> compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
>>>> reg = <0x00 0x04514000 0x00 0x1000>;
>>>> + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
>>>> + <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
>>>> + interrupt-names = "error_irq", "irq";
>>>> clocks = <&k3_clks 39 3>, <&k3_clks 39 1>, <&k3_clks
>>>> 39 3>,
>>>> <&k3_clks 39 3>, <&k3_clks 39 4>, <&k3_clks 39 4>;
>>>> clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
© 2016 - 2026 Red Hat, Inc.