]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: ti: k3-j722s: Fix main domain GPIO count
authorVaishnav Achath <vaishnav.a@ti.com>
Tue, 7 May 2024 10:33:32 +0000 (16:03 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 12 Jun 2024 16:01:27 +0000 (21:31 +0530)
J722S does not pin out all of the GPIO same as AM62P and have
more number of GPIO on the main_gpio1 instance. Fix the GPIO
count on both instances by overriding the ti,ngpio property.

Fixes: ea55b9335ad8 ("arm64: dts: ti: Introduce J722S family of SoCs")
More details at J722S/AM67 Datasheet (Section 5.3.11, GPIO):
https://www.ti.com/lit/ds/symlink/am67.pdf

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Link: https://lore.kernel.org/r/20240507103332.167928-1-vaishnav.a@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-j722s.dtsi

index c75744edb1433b42451d79d9518860953e184755..9132b0232b0ba9a9ed89f2582b6421eaff1e5e1c 100644 (file)
        ti,interrupt-ranges = <7 71 21>;
 };
 
+&main_gpio0 {
+       ti,ngpio = <87>;
+};
+
+&main_gpio1 {
+       ti,ngpio = <73>;
+};
+
 &oc_sram {
        reg = <0x00 0x70000000 0x00 0x40000>;
        ranges = <0x00 0x00 0x70000000 0x40000>;