Skip to content

Commit

Permalink
arm64: dts: ti: k3-j721s2: Fix the interrupt ranges property for main…
Browse files Browse the repository at this point in the history
… & wkup gpio intr

[ Upstream commit b8aa36c ]

The parent's input irq number is wrongly subtracted with 32 instead of
using the exact numbers in:

https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j721s2/interrupt_cfg.html

The GPIO interrupts are not working because of that. The toggling works
fine but interrupts are not firing. Fix the parent's input irq that
specifies the base for parent irq.

Tested for MAIN_GPIO0_6 interrupt on the j721s2 EVM.

Fixes: b8545f9 ("arm64: dts: ti: Add initial support for J721S2 SoC")
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Vaishnav Achath <vaishnav.a@ti.com>
Link: https://lore.kernel.org/r/20220922072950.9157-1-j-keerthy@ti.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Keerthyj authored and gregkh committed Dec 31, 2022
1 parent 2b2c143 commit d31b758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#interrupt-cells = <1>;
ti,sci = <&sms>;
ti,sci-dev-id = <148>;
ti,interrupt-ranges = <8 360 56>;
ti,interrupt-ranges = <8 392 56>;
};

main_pmx0: pinctrl@11c000 {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#interrupt-cells = <1>;
ti,sci = <&sms>;
ti,sci-dev-id = <125>;
ti,interrupt-ranges = <16 928 16>;
ti,interrupt-ranges = <16 960 16>;
};

mcu_conf: syscon@40f00000 {
Expand Down

0 comments on commit d31b758

Please sign in to comment.