* [PATCH 0/2] Add gpio_ranges property for stm32f7
@ 2023-08-08 9:31 patrice.chotard
2023-08-08 9:31 ` [PATCH 1/2] ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl patrice.chotard
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: patrice.chotard @ 2023-08-08 9:31 UTC (permalink / raw)
To: robh+dt, Krzysztof Kozlowski, alexandre.torgue
Cc: linux-stm32, linux-arm-kernel, linux-kernel, devicetree,
Patrice Chotard
From: Patrice Chotard <patrice.chotard@foss.st.com>
Add missing gpio-ranges property for stm32f7 based boards.
Patrice Chotard (2):
ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl
ARM: dts: stm32: Add gpio-ranges for stm32f769-pinctrl
arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi | 44 +++++++++++++++++++++
arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi | 44 +++++++++++++++++++++
2 files changed, 88 insertions(+)
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl
2023-08-08 9:31 [PATCH 0/2] Add gpio_ranges property for stm32f7 patrice.chotard
@ 2023-08-08 9:31 ` patrice.chotard
2023-08-08 9:31 ` [PATCH 2/2] ARM: dts: stm32: Add gpio-ranges for stm32f769-pinctrl patrice.chotard
2023-08-10 15:51 ` [PATCH 0/2] Add gpio_ranges property for stm32f7 Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: patrice.chotard @ 2023-08-08 9:31 UTC (permalink / raw)
To: robh+dt, Krzysztof Kozlowski, alexandre.torgue
Cc: linux-stm32, linux-arm-kernel, linux-kernel, devicetree,
Patrice Chotard
From: Patrice Chotard <patrice.chotard@foss.st.com>
Since commit 913a956c4363 ("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 <patrice.chotard@foss.st.com>
---
arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi | 44 +++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi
index 781197ef42d6..139f72b790c0 100644
--- a/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi
@@ -8,4 +8,48 @@
&pinctrl {
compatible = "st,stm32f746-pinctrl";
+
+ gpioa: gpio@40020000 {
+ gpio-ranges = <&pinctrl 0 0 16>;
+ };
+
+ gpiob: gpio@40020400 {
+ gpio-ranges = <&pinctrl 0 16 16>;
+ };
+
+ gpioc: gpio@40020800 {
+ gpio-ranges = <&pinctrl 0 32 16>;
+ };
+
+ gpiod: gpio@40020c00 {
+ gpio-ranges = <&pinctrl 0 48 16>;
+ };
+
+ gpioe: gpio@40021000 {
+ gpio-ranges = <&pinctrl 0 64 16>;
+ };
+
+ gpiof: gpio@40021400 {
+ gpio-ranges = <&pinctrl 0 80 16>;
+ };
+
+ gpiog: gpio@40021800 {
+ gpio-ranges = <&pinctrl 0 96 16>;
+ };
+
+ gpioh: gpio@40021c00 {
+ gpio-ranges = <&pinctrl 0 112 16>;
+ };
+
+ gpioi: gpio@40022000 {
+ gpio-ranges = <&pinctrl 0 128 16>;
+ };
+
+ gpioj: gpio@40022400 {
+ gpio-ranges = <&pinctrl 0 144 16>;
+ };
+
+ gpiok: gpio@40022800 {
+ gpio-ranges = <&pinctrl 0 160 8>;
+ };
};
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: stm32: Add gpio-ranges for stm32f769-pinctrl
2023-08-08 9:31 [PATCH 0/2] Add gpio_ranges property for stm32f7 patrice.chotard
2023-08-08 9:31 ` [PATCH 1/2] ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl patrice.chotard
@ 2023-08-08 9:31 ` patrice.chotard
2023-08-10 15:51 ` [PATCH 0/2] Add gpio_ranges property for stm32f7 Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: patrice.chotard @ 2023-08-08 9:31 UTC (permalink / raw)
To: robh+dt, Krzysztof Kozlowski, alexandre.torgue
Cc: linux-stm32, linux-arm-kernel, linux-kernel, devicetree,
Patrice Chotard
From: Patrice Chotard <patrice.chotard@foss.st.com>
Since commit 913a956c4363 ("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 <patrice.chotard@foss.st.com>
---
arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi | 44 +++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi
index c26abc04e2ce..02c2a8b08468 100644
--- a/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi
@@ -8,4 +8,48 @@
&pinctrl {
compatible = "st,stm32f769-pinctrl";
+
+ gpioa: gpio@40020000 {
+ gpio-ranges = <&pinctrl 0 0 16>;
+ };
+
+ gpiob: gpio@40020400 {
+ gpio-ranges = <&pinctrl 0 16 16>;
+ };
+
+ gpioc: gpio@40020800 {
+ gpio-ranges = <&pinctrl 0 32 16>;
+ };
+
+ gpiod: gpio@40020c00 {
+ gpio-ranges = <&pinctrl 0 48 16>;
+ };
+
+ gpioe: gpio@40021000 {
+ gpio-ranges = <&pinctrl 0 64 16>;
+ };
+
+ gpiof: gpio@40021400 {
+ gpio-ranges = <&pinctrl 0 80 16>;
+ };
+
+ gpiog: gpio@40021800 {
+ gpio-ranges = <&pinctrl 0 96 16>;
+ };
+
+ gpioh: gpio@40021c00 {
+ gpio-ranges = <&pinctrl 0 112 16>;
+ };
+
+ gpioi: gpio@40022000 {
+ gpio-ranges = <&pinctrl 0 128 16>;
+ };
+
+ gpioj: gpio@40022400 {
+ gpio-ranges = <&pinctrl 0 144 16>;
+ };
+
+ gpiok: gpio@40022800 {
+ gpio-ranges = <&pinctrl 0 160 8>;
+ };
};
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Add gpio_ranges property for stm32f7
2023-08-08 9:31 [PATCH 0/2] Add gpio_ranges property for stm32f7 patrice.chotard
2023-08-08 9:31 ` [PATCH 1/2] ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl patrice.chotard
2023-08-08 9:31 ` [PATCH 2/2] ARM: dts: stm32: Add gpio-ranges for stm32f769-pinctrl patrice.chotard
@ 2023-08-10 15:51 ` Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2023-08-10 15:51 UTC (permalink / raw)
To: patrice.chotard, robh+dt, Krzysztof Kozlowski
Cc: linux-stm32, linux-arm-kernel, linux-kernel, devicetree
On 8/8/23 11:31, patrice.chotard@foss.st.com wrote:
> From: Patrice Chotard <patrice.chotard@foss.st.com>
>
> Add missing gpio-ranges property for stm32f7 based boards.
>
> Patrice Chotard (2):
> ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl
> ARM: dts: stm32: Add gpio-ranges for stm32f769-pinctrl
>
> arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi | 44 +++++++++++++++++++++
> arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi | 44 +++++++++++++++++++++
> 2 files changed, 88 insertions(+)
>
Series applied on stm32-next.
Cheers
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-10 15:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 9:31 [PATCH 0/2] Add gpio_ranges property for stm32f7 patrice.chotard
2023-08-08 9:31 ` [PATCH 1/2] ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl patrice.chotard
2023-08-08 9:31 ` [PATCH 2/2] ARM: dts: stm32: Add gpio-ranges for stm32f769-pinctrl patrice.chotard
2023-08-10 15:51 ` [PATCH 0/2] Add gpio_ranges property for stm32f7 Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).