Skip to content

Commit d72d73a

Browse files
nmenonr-vignesh
authored andcommitted
arm64: dts: ti: k3-am62p: Add gpio-ranges properties
On the AM62P platform we have no single 1:1 relation regarding index of GPIO and pin controller. The GPIOs and pin controller registers have mapping and holes in the map. These have been extracted from the AM62P data sheet. MCU pinctrl definition is shared as it is common between AM62P and J722S, but that is not the case for main domain. Ref: AM62P Data sheet https://www.ti.com/lit/gpn/am62p Signed-off-by: Nishanth Menon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vignesh Raghavendra <[email protected]>
1 parent 50d9981 commit d72d73a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
#pinctrl-cells = <1>;
1313
pinctrl-single,register-width = <32>;
1414
pinctrl-single,function-mask = <0xffffffff>;
15+
pinctrl-single,gpio-range =
16+
<&mcu_pmx_range 0 21 PIN_GPIO_RANGE_IOPAD>,
17+
<&mcu_pmx_range 23 1 PIN_GPIO_RANGE_IOPAD>,
18+
<&mcu_pmx_range 32 2 PIN_GPIO_RANGE_IOPAD>;
1519
bootph-all;
20+
21+
mcu_pmx_range: gpio-range {
22+
#pinctrl-single,gpio-range-cells = <3>;
23+
};
1624
};
1725

1826
mcu_esm: esm@4100000 {

arch/arm64/boot/dts/ti/k3-am62p-main.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,27 @@
4242
ti,interrupt-ranges = <5 69 35>;
4343
};
4444

45+
&main_pmx0 {
46+
pinctrl-single,gpio-range =
47+
<&main_pmx0_range 0 32 PIN_GPIO_RANGE_IOPAD>,
48+
<&main_pmx0_range 33 92 PIN_GPIO_RANGE_IOPAD>,
49+
<&main_pmx0_range 137 5 PIN_GPIO_RANGE_IOPAD>,
50+
<&main_pmx0_range 143 3 PIN_GPIO_RANGE_IOPAD>,
51+
<&main_pmx0_range 149 2 PIN_GPIO_RANGE_IOPAD>;
52+
53+
main_pmx0_range: gpio-range {
54+
#pinctrl-single,gpio-range-cells = <3>;
55+
};
56+
};
57+
4558
&main_gpio0 {
59+
gpio-ranges = <&main_pmx0 0 0 32>, <&main_pmx0 32 33 38>,
60+
<&main_pmx0 70 72 22>;
4661
ti,ngpio = <92>;
4762
};
4863

4964
&main_gpio1 {
65+
gpio-ranges = <&main_pmx0 0 94 32>, <&main_pmx0 42 137 5>,
66+
<&main_pmx0 47 143 3>, <&main_pmx0 50 149 2>;
5067
ti,ngpio = <52>;
5168
};

0 commit comments

Comments
 (0)