public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards
@ 2024-08-27 14:04 Valentin Caron
  2024-08-27 14:04 ` [PATCH 1/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp15 Valentin Caron
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

This series enable WLAN/BT module on stm32mp1x discovery boards.
Use LSCO from RTC to supply 32kHz clock to WLAN/BT modules.
This is done by selecting "rtc_lsco_pins_a" in the WLAN pinctrl node.

And also add RTC nodes on stm32mp25x to enable RTC on stm32mp257f-ev1
board.

Christophe Roullier (2):
  ARM: dts: stm32: add support of WLAN/BT on stm32mp157c-dk2
  ARM: dts: stm32: add support of WLAN/BT on stm32mp135f-dk

Valentin Caron (7):
  ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp15
  ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp13
  ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp157c-dk2
  ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp135f-dk
  arm64: dts: st: add RTC on stm32mp25x
  arm64: dts: st: enable RTC on stm32mp257f-ev1 board
  ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp25

 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi   |  7 +++
 arch/arm/boot/dts/st/stm32mp135f-dk.dts       | 52 +++++++++++++++++++
 arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi   |  7 +++
 arch/arm/boot/dts/st/stm32mp157c-dk2.dts      | 51 +++++++++++++++++-
 arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi |  6 +++
 arch/arm64/boot/dts/st/stm32mp251.dtsi        | 10 ++++
 arch/arm64/boot/dts/st/stm32mp257f-ev1.dts    |  4 ++
 7 files changed, 136 insertions(+), 1 deletion(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp15
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 2/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp13 Valentin Caron
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

Declare pin for LSCO in stm32-pinctrl provider node to reserve this pin
for RTC OUT2_RMP, in stm32mp15-pinctrl.dtsi.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi
index ae83e7b102323..0df526cc48f2b 100644
--- a/arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi
@@ -1696,6 +1696,13 @@ pins {
 		};
 	};
 
+	/omit-if-no-ref/
+	rtc_rsvd_pins_a: rtc-rsvd-0 {
+		pins {
+			pinmux = <STM32_PINMUX('I', 8, ANALOG)>; /* RTC_OUT2_RMP */
+		};
+	};
+
 	/omit-if-no-ref/
 	sai2a_pins_a: sai2a-0 {
 		pins {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp13
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
  2024-08-27 14:04 ` [PATCH 1/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp15 Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 3/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp157c-dk2 Valentin Caron
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

Declare pin for LSCO in stm32-pinctrl provider node to reserve this pin
for RTC OUT2_RMP, in stm32mp13-pinctrl.dtsi.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi
index c9f588a650944..5c28de7e365d9 100644
--- a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi
@@ -582,6 +582,13 @@ pins {
 		};
 	};
 
+	/omit-if-no-ref/
+	rtc_rsvd_pins_a: rtc-rsvd-0 {
+		pins {
+			pinmux = <STM32_PINMUX('I', 1, ANALOG)>; /* RTC_OUT2_RMP */
+		};
+	};
+
 	/omit-if-no-ref/
 	sai1a_pins_a: sai1a-0 {
 		pins {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp157c-dk2
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
  2024-08-27 14:04 ` [PATCH 1/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp15 Valentin Caron
  2024-08-27 14:04 ` [PATCH 2/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp13 Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 4/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp135f-dk Valentin Caron
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

On stm32mp157c-dk2 board, WLAN/BT module LPO_IN pin is wired to
RTC OUT2_RMP pin.

Provide a pinctrl configuration to enable LSCO on OUT2_RMP.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm/boot/dts/st/stm32mp157c-dk2.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/st/stm32mp157c-dk2.dts b/arch/arm/boot/dts/st/stm32mp157c-dk2.dts
index 7a701f7ef0c70..8ac1233f9a02d 100644
--- a/arch/arm/boot/dts/st/stm32mp157c-dk2.dts
+++ b/arch/arm/boot/dts/st/stm32mp157c-dk2.dts
@@ -84,6 +84,16 @@ ltdc_ep1_out: endpoint@1 {
 	};
 };
 
+&rtc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&rtc_rsvd_pins_a>;
+
+	rtc_lsco_pins_a: rtc-lsco-0 {
+		pins = "out2_rmp";
+		function = "lsco";
+	};
+};
+
 &usart2 {
 	pinctrl-names = "default", "sleep", "idle";
 	pinctrl-0 = <&usart2_pins_c>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp135f-dk
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
                   ` (2 preceding siblings ...)
  2024-08-27 14:04 ` [PATCH 3/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp157c-dk2 Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 5/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp157c-dk2 Valentin Caron
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

On stm32mp135f-dk board, WLAN/BT module LPO_IN pin is wired to
RTC OUT2_RMP pin.

Provide a pinctrl configuration to enable LSCO on OUT2_RMP.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm/boot/dts/st/stm32mp135f-dk.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/st/stm32mp135f-dk.dts b/arch/arm/boot/dts/st/stm32mp135f-dk.dts
index 1af335a39993b..ef33cbf3e601c 100644
--- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts
+++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts
@@ -346,7 +346,14 @@ ltdc_out_rgb: endpoint {
 };
 
 &rtc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&rtc_rsvd_pins_a>;
 	status = "okay";
+
+	rtc_lsco_pins_a: rtc-lsco-0 {
+		pins = "out2_rmp";
+		function = "lsco";
+	};
 };
 
 &scmi_regu {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 5/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp157c-dk2
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
                   ` (3 preceding siblings ...)
  2024-08-27 14:04 ` [PATCH 4/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp135f-dk Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 6/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp135f-dk Valentin Caron
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

From: Christophe Roullier <christophe.roullier@foss.st.com>

Add support of WLAN/BT Murata Type 1DX module:
- usart2 is used for Bluetooth interface
- sdmmc2 is used for WLAN (sdio) interface

Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm/boot/dts/st/stm32mp157c-dk2.dts | 41 +++++++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/st/stm32mp157c-dk2.dts b/arch/arm/boot/dts/st/stm32mp157c-dk2.dts
index 8ac1233f9a02d..5f9c0160a9c49 100644
--- a/arch/arm/boot/dts/st/stm32mp157c-dk2.dts
+++ b/arch/arm/boot/dts/st/stm32mp157c-dk2.dts
@@ -24,6 +24,11 @@ aliases {
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	wifi_pwrseq: wifi-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		reset-gpios = <&gpioh 4 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &cryp1 {
@@ -94,10 +99,44 @@ rtc_lsco_pins_a: rtc-lsco-0 {
 	};
 };
 
+/* Wifi */
+&sdmmc2 {
+	pinctrl-names = "default", "opendrain", "sleep";
+	pinctrl-0 = <&sdmmc2_b4_pins_a>;
+	pinctrl-1 = <&sdmmc2_b4_od_pins_a>;
+	pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>;
+	non-removable;
+	cap-sdio-irq;
+	st,neg-edge;
+	bus-width = <4>;
+	vmmc-supply = <&v3v3>;
+	mmc-pwrseq = <&wifi_pwrseq>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	brcmf: bcrmf@1 {
+		reg = <1>;
+		compatible = "brcm,bcm4329-fmac";
+		pinctrl-names = "default";
+		pinctrl-0 = <&rtc_lsco_pins_a>;
+	};
+};
+
+/* Bluetooth */
 &usart2 {
 	pinctrl-names = "default", "sleep", "idle";
 	pinctrl-0 = <&usart2_pins_c>;
 	pinctrl-1 = <&usart2_sleep_pins_c>;
 	pinctrl-2 = <&usart2_idle_pins_c>;
-	status = "disabled";
+	uart-has-rtscts;
+	status = "okay";
+
+	bluetooth {
+		shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
+		compatible = "brcm,bcm43438-bt";
+		max-speed = <3000000>;
+		vbat-supply = <&v3v3>;
+		vddio-supply = <&v3v3>;
+	};
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 6/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp135f-dk
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
                   ` (4 preceding siblings ...)
  2024-08-27 14:04 ` [PATCH 5/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp157c-dk2 Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 7/9] arm64: dts: st: add RTC on stm32mp25x Valentin Caron
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

From: Christophe Roullier <christophe.roullier@foss.st.com>

Add support of WLAN/BT Murata Type 1DX module:
- usart2 is used for Bluetooth interface
- sdmmc2 is used for WLAN (sdio) interface

Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm/boot/dts/st/stm32mp135f-dk.dts | 45 +++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/arch/arm/boot/dts/st/stm32mp135f-dk.dts b/arch/arm/boot/dts/st/stm32mp135f-dk.dts
index ef33cbf3e601c..3a276589fef79 100644
--- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts
+++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts
@@ -121,6 +121,19 @@ panel_in_rgb: endpoint {
 			};
 		};
 	};
+
+	v3v3_ao: v3v3-ao {
+		compatible = "regulator-fixed";
+		regulator-name = "v3v3_ao";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
+	wifi_pwrseq: wifi-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		reset-gpios = <&mcp23017 11 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &adc_1 {
@@ -392,6 +405,30 @@ &sdmmc1 {
 	status = "okay";
 };
 
+/* Wifi */
+&sdmmc2 {
+	pinctrl-names = "default", "opendrain", "sleep";
+	pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_clk_pins_a>;
+	pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_clk_pins_a>;
+	pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>;
+	non-removable;
+	cap-sdio-irq;
+	st,neg-edge;
+	bus-width = <4>;
+	vmmc-supply = <&v3v3_ao>;
+	mmc-pwrseq = <&wifi_pwrseq>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	brcmf: bcrmf@1 {
+		reg = <1>;
+		compatible = "brcm,bcm4329-fmac";
+		pinctrl-names = "default";
+		pinctrl-0 = <&rtc_lsco_pins_a>;
+	};
+};
+
 &spi5 {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&spi5_pins_a>;
@@ -498,6 +535,14 @@ &usart2 {
 	pinctrl-2 = <&usart2_idle_pins_a>;
 	uart-has-rtscts;
 	status = "okay";
+
+	bluetooth {
+		shutdown-gpios = <&mcp23017 13 GPIO_ACTIVE_HIGH>;
+		compatible = "brcm,bcm43438-bt";
+		max-speed = <3000000>;
+		vbat-supply = <&v3v3_ao>;
+		vddio-supply = <&v3v3_ao>;
+	};
 };
 
 &usbh_ehci {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 7/9] arm64: dts: st: add RTC on stm32mp25x
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
                   ` (5 preceding siblings ...)
  2024-08-27 14:04 ` [PATCH 6/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp135f-dk Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 8/9] arm64: dts: st: enable RTC on stm32mp257f-ev1 board Valentin Caron
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

Add compatible, clock, and interrupt properties of STM32 RTC on
stm32mp25x SOCs.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm64/boot/dts/st/stm32mp251.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi
index 1167cf63d7e87..81f59a5b4f61a 100644
--- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi
@@ -916,6 +916,16 @@ gpiok: gpio@442e0000 {
 			};
 		};
 
+		rtc: rtc@46000000 {
+			compatible = "st,stm32mp25-rtc";
+			reg = <0x46000000 0x400>;
+			clocks = <&scmi_clk CK_SCMI_RTC>,
+				 <&scmi_clk CK_SCMI_RTCCK>;
+			clock-names = "pclk", "rtc_ck";
+			interrupts-extended = <&exti2 17 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
 		pinctrl_z: pinctrl@46200000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 8/9] arm64: dts: st: enable RTC on stm32mp257f-ev1 board
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
                   ` (6 preceding siblings ...)
  2024-08-27 14:04 ` [PATCH 7/9] arm64: dts: st: add RTC on stm32mp25x Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-08-27 14:04 ` [PATCH 9/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp25 Valentin Caron
  2024-10-29 16:02 ` [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Alexandre TORGUE
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

Enable RTC on stm32mp257f-ev1 board.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 214191a8322b8..6b68aeaf79ba3 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -93,6 +93,10 @@ &i2c8 {
 	status = "disabled";
 };
 
+&rtc {
+	status = "okay";
+};
+
 &scmi_regu {
 	scmi_vddio1: regulator@0 {
 		regulator-min-microvolt = <1800000>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 9/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp25
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
                   ` (7 preceding siblings ...)
  2024-08-27 14:04 ` [PATCH 8/9] arm64: dts: st: enable RTC on stm32mp257f-ev1 board Valentin Caron
@ 2024-08-27 14:04 ` Valentin Caron
  2024-10-29 16:02 ` [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Alexandre TORGUE
  9 siblings, 0 replies; 11+ messages in thread
From: Valentin Caron @ 2024-08-27 14:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier, Valentin Caron

Declare pin for LSCO in stm32-pinctrl provider node to reserve this pin
for RTC OUT2_RMP, in stm32mp25-pinctrl.dtsi.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi
index 8fdd5f020425d..ce74f7c4fbe7e 100644
--- a/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi
@@ -82,6 +82,12 @@ pins {
 		};
 	};
 
+	rtc_rsvd_pins_a: rtc-rsvd-0 {
+		pins {
+			pinmux = <STM32_PINMUX('I', 8, RSVD)>; /* RTC_OUT2_RMP */
+		};
+	};
+
 	sdmmc1_b4_pins_a: sdmmc1-b4-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('E', 4, AF10)>, /* SDMMC1_D0 */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards
  2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
                   ` (8 preceding siblings ...)
  2024-08-27 14:04 ` [PATCH 9/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp25 Valentin Caron
@ 2024-10-29 16:02 ` Alexandre TORGUE
  9 siblings, 0 replies; 11+ messages in thread
From: Alexandre TORGUE @ 2024-10-29 16:02 UTC (permalink / raw)
  To: Valentin Caron, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Christophe Roullier

Hi Valentin

On 8/27/24 16:04, Valentin Caron wrote:
> This series enable WLAN/BT module on stm32mp1x discovery boards.
> Use LSCO from RTC to supply 32kHz clock to WLAN/BT modules.
> This is done by selecting "rtc_lsco_pins_a" in the WLAN pinctrl node.
> 
> And also add RTC nodes on stm32mp25x to enable RTC on stm32mp257f-ev1
> board.
> 
> Christophe Roullier (2):
>    ARM: dts: stm32: add support of WLAN/BT on stm32mp157c-dk2
>    ARM: dts: stm32: add support of WLAN/BT on stm32mp135f-dk
> 
> Valentin Caron (7):
>    ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp15
>    ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp13
>    ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp157c-dk2
>    ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp135f-dk
>    arm64: dts: st: add RTC on stm32mp25x
>    arm64: dts: st: enable RTC on stm32mp257f-ev1 board
>    ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp25
> 
>   arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi   |  7 +++
>   arch/arm/boot/dts/st/stm32mp135f-dk.dts       | 52 +++++++++++++++++++
>   arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi   |  7 +++
>   arch/arm/boot/dts/st/stm32mp157c-dk2.dts      | 51 +++++++++++++++++-
>   arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi |  6 +++
>   arch/arm64/boot/dts/st/stm32mp251.dtsi        | 10 ++++
>   arch/arm64/boot/dts/st/stm32mp257f-ev1.dts    |  4 ++
>   7 files changed, 136 insertions(+), 1 deletion(-)
> 

I applied the series by removing patch[9] as it raised a build issue.
Furthermore, the pin pin configuration in patch [9] was not used in a 
board, so no need to take it.

Regards
Alex

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-10-29 16:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 14:04 [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Valentin Caron
2024-08-27 14:04 ` [PATCH 1/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp15 Valentin Caron
2024-08-27 14:04 ` [PATCH 2/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp13 Valentin Caron
2024-08-27 14:04 ` [PATCH 3/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp157c-dk2 Valentin Caron
2024-08-27 14:04 ` [PATCH 4/9] ARM: dts: stm32: rtc, add LSCO to WLAN/BT module on stm32mp135f-dk Valentin Caron
2024-08-27 14:04 ` [PATCH 5/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp157c-dk2 Valentin Caron
2024-08-27 14:04 ` [PATCH 6/9] ARM: dts: stm32: add support of WLAN/BT on stm32mp135f-dk Valentin Caron
2024-08-27 14:04 ` [PATCH 7/9] arm64: dts: st: add RTC on stm32mp25x Valentin Caron
2024-08-27 14:04 ` [PATCH 8/9] arm64: dts: st: enable RTC on stm32mp257f-ev1 board Valentin Caron
2024-08-27 14:04 ` [PATCH 9/9] ARM: dts: stm32: rtc, add pin to provide LSCO on stm32mp25 Valentin Caron
2024-10-29 16:02 ` [PATCH 0/9] ARM: dts: st: add WLAN/BT on disco boards Alexandre TORGUE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox