Commit ba78573a authored by Ronald Wahl's avatar Ronald Wahl Committed by Nishanth Menon

arm64: dts: ti: k3-am62-main: Add gpio-ranges properties

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: default avatarRonald Wahl <ronald.wahl@raritan.com>
Link: https://lore.kernel.org/r/20231127112657.2692103-1-rwahl@gmx.deSigned-off-by: default avatarNishanth Menon <nm@ti.com>
parent 3b6345e3
...@@ -502,6 +502,9 @@ main_gpio_intr: interrupt-controller@a00000 { ...@@ -502,6 +502,9 @@ main_gpio_intr: interrupt-controller@a00000 {
main_gpio0: gpio@600000 { main_gpio0: gpio@600000 {
compatible = "ti,am64-gpio", "ti,keystone-gpio"; compatible = "ti,am64-gpio", "ti,keystone-gpio";
reg = <0x0 0x00600000 0x0 0x100>; 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-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-parent = <&main_gpio_intr>; interrupt-parent = <&main_gpio_intr>;
...@@ -520,6 +523,10 @@ main_gpio1: gpio@601000 { ...@@ -520,6 +523,10 @@ main_gpio1: gpio@601000 {
compatible = "ti,am64-gpio", "ti,keystone-gpio"; compatible = "ti,am64-gpio", "ti,keystone-gpio";
reg = <0x0 0x00601000 0x0 0x100>; reg = <0x0 0x00601000 0x0 0x100>;
gpio-controller; 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>; #gpio-cells = <2>;
interrupt-parent = <&main_gpio_intr>; interrupt-parent = <&main_gpio_intr>;
interrupts = <180>, <181>, <182>, interrupts = <180>, <181>, <182>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment