diff mbox series

[1/7] ARM: dts: stm32: change USART1 clock to an SCMI clock on stm32mp15 boards

Message ID 20230327152948.274743-2-valentin.caron@foss.st.com (mailing list archive)
State New, archived
Headers show
Series ARM: dts: stm32: stm32mp15 various fixes and add stm32mp13 usart nodes | expand

Commit Message

Valentin Caron March 27, 2023, 3:29 p.m. UTC
On ST stm32mp15 boards, change clock of USART1 node to SCMI clock
"CK_SCMI_USART1"

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
 arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts | 4 ++++
 arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts | 4 ++++
 arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts | 4 ++++
 arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts | 4 ++++
 4 files changed, 16 insertions(+)

Comments

Alexandre TORGUE March 28, 2023, 12:02 p.m. UTC | #1
Hi Valentin

On 3/27/23 17:29, Valentin Caron wrote:
> On ST stm32mp15 boards, change clock of USART1 node to SCMI clock
> "CK_SCMI_USART1"

I'll change commit title and message as your patch doesn't target 
STM43MP15 boards but STM32MP15 SCMI boards.

Cheers
Alex



> Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
> ---
>   arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts | 4 ++++
>   arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts | 4 ++++
>   arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts | 4 ++++
>   arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts | 4 ++++
>   4 files changed, 16 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts b/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
> index e539cc80bef8..5c8164c10e46 100644
> --- a/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
> +++ b/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
> @@ -77,3 +77,7 @@ &rng1 {
>   &rtc {
>   	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>   };
> +
> +&usart1 {
> +	clocks = <&scmi_clk CK_SCMI_USART1>;
> +};
> diff --git a/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts b/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
> index 97e4f94b0a24..2c9a207a9d49 100644
> --- a/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
> +++ b/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
> @@ -83,3 +83,7 @@ &rng1 {
>   &rtc {
>   	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>   };
> +
> +&usart1 {
> +	clocks = <&scmi_clk CK_SCMI_USART1>;
> +};
> diff --git a/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts b/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
> index 9cf0a44d2f47..21c8169f0e82 100644
> --- a/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
> +++ b/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
> @@ -82,3 +82,7 @@ &rng1 {
>   &rtc {
>   	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>   };
> +
> +&usart1 {
> +	clocks = <&scmi_clk CK_SCMI_USART1>;
> +};
> diff --git a/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts b/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
> index 3b9dd6f4ccc9..0084abbeb60e 100644
> --- a/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
> +++ b/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
> @@ -88,3 +88,7 @@ &rng1 {
>   &rtc {
>   	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>   };
> +
> +&usart1 {
> +	clocks = <&scmi_clk CK_SCMI_USART1>;
> +};
Valentin Caron March 28, 2023, 3:21 p.m. UTC | #2
Hi Alex,

I think this patch is useless.
I will send you a V2 without.

Thank you,
Valentin

On 3/28/23 14:02, Alexandre TORGUE wrote:
> Hi Valentin
>
> On 3/27/23 17:29, Valentin Caron wrote:
>> On ST stm32mp15 boards, change clock of USART1 node to SCMI clock
>> "CK_SCMI_USART1"
>
> I'll change commit title and message as your patch doesn't target 
> STM43MP15 boards but STM32MP15 SCMI boards.
>
> Cheers
> Alex
>
>
>
>> Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
>> ---
>>   arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts | 4 ++++
>>   arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts | 4 ++++
>>   arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts | 4 ++++
>>   arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts | 4 ++++
>>   4 files changed, 16 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts 
>> b/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
>> index e539cc80bef8..5c8164c10e46 100644
>> --- a/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
>> +++ b/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
>> @@ -77,3 +77,7 @@ &rng1 {
>>   &rtc {
>>       clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>>   };
>> +
>> +&usart1 {
>> +    clocks = <&scmi_clk CK_SCMI_USART1>;
>> +};
>> diff --git a/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts 
>> b/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
>> index 97e4f94b0a24..2c9a207a9d49 100644
>> --- a/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
>> +++ b/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
>> @@ -83,3 +83,7 @@ &rng1 {
>>   &rtc {
>>       clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>>   };
>> +
>> +&usart1 {
>> +    clocks = <&scmi_clk CK_SCMI_USART1>;
>> +};
>> diff --git a/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts 
>> b/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
>> index 9cf0a44d2f47..21c8169f0e82 100644
>> --- a/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
>> +++ b/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
>> @@ -82,3 +82,7 @@ &rng1 {
>>   &rtc {
>>       clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>>   };
>> +
>> +&usart1 {
>> +    clocks = <&scmi_clk CK_SCMI_USART1>;
>> +};
>> diff --git a/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts 
>> b/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
>> index 3b9dd6f4ccc9..0084abbeb60e 100644
>> --- a/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
>> +++ b/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
>> @@ -88,3 +88,7 @@ &rng1 {
>>   &rtc {
>>       clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
>>   };
>> +
>> +&usart1 {
>> +    clocks = <&scmi_clk CK_SCMI_USART1>;
>> +};
>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts b/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
index e539cc80bef8..5c8164c10e46 100644
--- a/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
+++ b/arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts
@@ -77,3 +77,7 @@  &rng1 {
 &rtc {
 	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
 };
+
+&usart1 {
+	clocks = <&scmi_clk CK_SCMI_USART1>;
+};
diff --git a/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts b/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
index 97e4f94b0a24..2c9a207a9d49 100644
--- a/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
+++ b/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
@@ -83,3 +83,7 @@  &rng1 {
 &rtc {
 	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
 };
+
+&usart1 {
+	clocks = <&scmi_clk CK_SCMI_USART1>;
+};
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts b/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
index 9cf0a44d2f47..21c8169f0e82 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts
@@ -82,3 +82,7 @@  &rng1 {
 &rtc {
 	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
 };
+
+&usart1 {
+	clocks = <&scmi_clk CK_SCMI_USART1>;
+};
diff --git a/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts b/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
index 3b9dd6f4ccc9..0084abbeb60e 100644
--- a/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts
@@ -88,3 +88,7 @@  &rng1 {
 &rtc {
 	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
 };
+
+&usart1 {
+	clocks = <&scmi_clk CK_SCMI_USART1>;
+};