diff mbox series

ARM: dts: stm32mp13: Add support of ck_usbo_48m in pre-reloc stage

Message ID 20241129123325.426138-1-patrice.chotard@foss.st.com
State Accepted
Commit 698c92c647db77895fd6a5ebc2d5efc02403f7e4
Delegated to: Patrice Chotard
Headers show
Series ARM: dts: stm32mp13: Add support of ck_usbo_48m in pre-reloc stage | expand

Commit Message

Patrice CHOTARD Nov. 29, 2024, 12:33 p.m. UTC
From: Patrick Delaunay <patrick.delaunay@foss.st.com>

The clock ck_usbo_48m is a clock source for RCC, so the ck_usbo_48m
clock provided by usbphyc need to be probed when RCC clock driver is
required, in pre-reloc stage.

This patch allow to remove the following warning:

clk_register: failed to get ck_usbo_48m device (parent of usbo_k)

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 arch/arm/dts/stm32mp13-u-boot.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Patrick DELAUNAY Jan. 8, 2025, 6:51 p.m. UTC | #1
Hi,

On 11/29/24 13:33, Patrice Chotard wrote:
> From: Patrick Delaunay <patrick.delaunay@foss.st.com>
>
> The clock ck_usbo_48m is a clock source for RCC, so the ck_usbo_48m
> clock provided by usbphyc need to be probed when RCC clock driver is
> required, in pre-reloc stage.
>
> This patch allow to remove the following warning:
>
> clk_register: failed to get ck_usbo_48m device (parent of usbo_k)
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   arch/arm/dts/stm32mp13-u-boot.dtsi | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/dts/stm32mp13-u-boot.dtsi b/arch/arm/dts/stm32mp13-u-boot.dtsi
> index aa5cfc6e41d..af7edc7e2b2 100644
> --- a/arch/arm/dts/stm32mp13-u-boot.dtsi
> +++ b/arch/arm/dts/stm32mp13-u-boot.dtsi
> @@ -111,3 +111,8 @@
>   &syscfg {
>   	bootph-all;
>   };
> +
> +&usbphyc {
> +	/* stm32-usbphyc-clk = ck_usbo_48m is a source clock of RCC CCF */
> +	bootph-all;
> +};



Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick
Patrice CHOTARD Jan. 31, 2025, 8:04 a.m. UTC | #2
On 1/8/25 19:51, Patrick DELAUNAY wrote:
> Hi,
> 
> On 11/29/24 13:33, Patrice Chotard wrote:
>> From: Patrick Delaunay <patrick.delaunay@foss.st.com>
>>
>> The clock ck_usbo_48m is a clock source for RCC, so the ck_usbo_48m
>> clock provided by usbphyc need to be probed when RCC clock driver is
>> required, in pre-reloc stage.
>>
>> This patch allow to remove the following warning:
>>
>> clk_register: failed to get ck_usbo_48m device (parent of usbo_k)
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
>> ---
>>
>>   arch/arm/dts/stm32mp13-u-boot.dtsi | 5 +++++
>>   1 file changed, 5 insertions(+)
>>
>> diff --git a/arch/arm/dts/stm32mp13-u-boot.dtsi b/arch/arm/dts/stm32mp13-u-boot.dtsi
>> index aa5cfc6e41d..af7edc7e2b2 100644
>> --- a/arch/arm/dts/stm32mp13-u-boot.dtsi
>> +++ b/arch/arm/dts/stm32mp13-u-boot.dtsi
>> @@ -111,3 +111,8 @@
>>   &syscfg {
>>       bootph-all;
>>   };
>> +
>> +&usbphyc {
>> +    /* stm32-usbphyc-clk = ck_usbo_48m is a source clock of RCC CCF */
>> +    bootph-all;
>> +};
> 
> 
> 
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> 
> Thanks
> Patrick
> 
Applied to u-boot-stm32/master

Thanks
Patrice
diff mbox series

Patch

diff --git a/arch/arm/dts/stm32mp13-u-boot.dtsi b/arch/arm/dts/stm32mp13-u-boot.dtsi
index aa5cfc6e41d..af7edc7e2b2 100644
--- a/arch/arm/dts/stm32mp13-u-boot.dtsi
+++ b/arch/arm/dts/stm32mp13-u-boot.dtsi
@@ -111,3 +111,8 @@ 
 &syscfg {
 	bootph-all;
 };
+
+&usbphyc {
+	/* stm32-usbphyc-clk = ck_usbo_48m is a source clock of RCC CCF */
+	bootph-all;
+};