]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: ti: k3-am62-main: Add gpio-ranges properties
authorRonald Wahl <ronald.wahl@raritan.com>
Mon, 27 Nov 2023 11:26:57 +0000 (12:26 +0100)
committerNishanth Menon <nm@ti.com>
Mon, 4 Dec 2023 18:17:08 +0000 (12:17 -0600)
On the AM62 platform we have no single 1:1 relation regarding index of
gpio and pin controller. Actually there are some linear ranges with
small holes inbetween. These ranges can be represented with the
gpio-ranges device tree property. They have been extracted manually
from the AM62x datasheet (Table 6-1. Pin Attributes).

Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
Link: https://lore.kernel.org/r/20231127112657.2692103-1-rwahl@gmx.de
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am62-main.dtsi

index e5c64c86d1d5aeed66c385a28813b77ea3421019..0643cd15eeec2dbf19daf99b77ebbdbe0dc6415f 100644 (file)
        main_gpio0: gpio@600000 {
                compatible = "ti,am64-gpio", "ti,keystone-gpio";
                reg = <0x0 0x00600000 0x0 0x100>;
+               gpio-ranges = <&main_pmx0  0  0 32>,
+                             <&main_pmx0 32 33 38>,
+                             <&main_pmx0 70 72 22>;
                gpio-controller;
                #gpio-cells = <2>;
                interrupt-parent = <&main_gpio_intr>;
                compatible = "ti,am64-gpio", "ti,keystone-gpio";
                reg = <0x0 0x00601000 0x0 0x100>;
                gpio-controller;
+               gpio-ranges = <&main_pmx0  0  94 41>,
+                             <&main_pmx0 41 136  6>,
+                             <&main_pmx0 47 143  3>,
+                             <&main_pmx0 50 149  2>;
                #gpio-cells = <2>;
                interrupt-parent = <&main_gpio_intr>;
                interrupts = <180>, <181>, <182>,