Skip to content

Commit 06113b7

Browse files
Patrice ChotardAlexandre Torgue
authored andcommitted
ARM: dts: st: Add gpio-ranges for stm32f769-pinctrl
Since commit 913a956 ("pinctrl: stm32: use dynamic allocation of GPIO base"), it's impossible to retrieve gpios from phandle, for example, mmc driver can't retrieve cd-gpios. Add missing gpio-ranges properties to fix it. Signed-off-by: Patrice Chotard <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent 756065e commit 06113b7

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,48 @@
88

99
&pinctrl {
1010
compatible = "st,stm32f769-pinctrl";
11+
12+
gpioa: gpio@40020000 {
13+
gpio-ranges = <&pinctrl 0 0 16>;
14+
};
15+
16+
gpiob: gpio@40020400 {
17+
gpio-ranges = <&pinctrl 0 16 16>;
18+
};
19+
20+
gpioc: gpio@40020800 {
21+
gpio-ranges = <&pinctrl 0 32 16>;
22+
};
23+
24+
gpiod: gpio@40020c00 {
25+
gpio-ranges = <&pinctrl 0 48 16>;
26+
};
27+
28+
gpioe: gpio@40021000 {
29+
gpio-ranges = <&pinctrl 0 64 16>;
30+
};
31+
32+
gpiof: gpio@40021400 {
33+
gpio-ranges = <&pinctrl 0 80 16>;
34+
};
35+
36+
gpiog: gpio@40021800 {
37+
gpio-ranges = <&pinctrl 0 96 16>;
38+
};
39+
40+
gpioh: gpio@40021c00 {
41+
gpio-ranges = <&pinctrl 0 112 16>;
42+
};
43+
44+
gpioi: gpio@40022000 {
45+
gpio-ranges = <&pinctrl 0 128 16>;
46+
};
47+
48+
gpioj: gpio@40022400 {
49+
gpio-ranges = <&pinctrl 0 144 16>;
50+
};
51+
52+
gpiok: gpio@40022800 {
53+
gpio-ranges = <&pinctrl 0 160 8>;
54+
};
1155
};

0 commit comments

Comments
 (0)