Skip to content

Commit da8c0fc

Browse files
Mathieu Choplainkartben
authored andcommitted
boards: st: remove U suffix from "clocks" in DTS
PR 79683 added unnecessary U suffix to constants in DTS. This bloats the files for no reason and is starting to spread as people use the DTS for reference in other places, and so copy this bad pattern. Remove the useless U suffixes in DTS files for ST boards. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent fb55091 commit da8c0fc

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

boards/st/nucleo_c071rb/nucleo_c071rb.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1 &adc1_in4_pa4>;
151151
pinctrl-names = "default";
152152
st,adc-clock-source = "ASYNC";
153-
clocks = <&rcc STM32_CLOCK(APB1_2, 20U)>,
153+
clocks = <&rcc STM32_CLOCK(APB1_2, 20)>,
154154
<&rcc STM32_SRC_HSI ADC_SEL(2)>;
155155
st,adc-prescaler = <4>;
156156
status = "okay";

boards/st/nucleo_l476rg/nucleo_l476rg.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ stm32_lp_tick_source: &lptim1 {
199199

200200
&rng {
201201
/* Change clock source to avoid using MSI */
202-
clocks = <&rcc STM32_CLOCK(AHB2, 18U)>,
202+
clocks = <&rcc STM32_CLOCK(AHB2, 18)>,
203203
<&rcc STM32_SRC_PLL_Q CLK48_SEL(2)>;
204204
status = "okay";
205205
};

boards/st/nucleo_u083rc/nucleo_u083rc.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
};
149149

150150
stm32_lp_tick_source: &lptim1 {
151-
clocks = <&rcc STM32_CLOCK(APB1, 31U)>,
151+
clocks = <&rcc STM32_CLOCK(APB1, 31)>,
152152
<&rcc STM32_SRC_LSI LPTIM1_SEL(1)>;
153153
status = "okay";
154154
};
@@ -169,7 +169,7 @@ stm32_lp_tick_source: &lptim1 {
169169
};
170170

171171
&rng {
172-
clocks = <&rcc STM32_CLOCK(AHB1, 18U)>,
172+
clocks = <&rcc STM32_CLOCK(AHB1, 18)>,
173173
<&rcc STM32_SRC_HSI48 CLK48_SEL(1)>;
174174
status = "okay";
175175
};
@@ -179,15 +179,15 @@ stm32_lp_tick_source: &lptim1 {
179179
};
180180

181181
zephyr_udc0: &usb {
182-
clocks = <&rcc STM32_CLOCK(APB1, 13U)>,
182+
clocks = <&rcc STM32_CLOCK(APB1, 13)>,
183183
<&rcc STM32_SRC_HSI48 CLK48_SEL(1)>;
184184
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
185185
pinctrl-names = "default";
186186
status = "okay";
187187
};
188188

189189
&rtc {
190-
clocks = <&rcc STM32_CLOCK(APB1, 10U)>,
190+
clocks = <&rcc STM32_CLOCK(APB1, 10)>,
191191
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
192192
status = "okay";
193193
};

boards/st/sensortile_box/sensortile_box.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ zephyr_udc0: &usbotg_fs {
252252

253253
&rng {
254254
/* Change clock source to avoid using MSI */
255-
clocks = <&rcc STM32_CLOCK(AHB2, 18U)>,
255+
clocks = <&rcc STM32_CLOCK(AHB2, 18)>,
256256
<&rcc STM32_SRC_PLL_Q CLK48_SEL(2)>;
257257
status = "okay";
258258
};

boards/st/stm32f4_disco/stm32f4_disco.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ zephyr_udc0: &usbotg_fs {
203203
mck-enabled;
204204
pinctrl-0 = <&i2s3_ws_pa4 &i2s3_ck_pc10 &i2s3_sd_pc12 &i2s3_mck_pc7>;
205205
pinctrl-names = "default";
206-
clocks = <&rcc STM32_CLOCK(APB1, 15U)>,
206+
clocks = <&rcc STM32_CLOCK(APB1, 15)>,
207207
<&rcc STM32_SRC_PLLI2S_R I2S_SEL(0)>;
208208
status = "okay";
209209
};

boards/st/stm32u5g9j_dk2/stm32u5g9j_dk2.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ zephyr_udc0: &usbotg_hs {
332332
};
333333

334334
&xspi1 {
335-
clocks = <&rcc STM32_CLOCK(AHB2_2, 12U)>,
335+
clocks = <&rcc STM32_CLOCK(AHB2_2, 12)>,
336336
<&rcc STM32_SRC_PLL2_Q HSPI_SEL(2)>;
337337

338338
pinctrl-0 = <&hspi1_dqs0_pi2 &hspi1_ncs_ph9

0 commit comments

Comments
 (0)