[Uboot-stm32] [PATCH] stm32: remove dt-binding headers that are available upstream
Patrice CHOTARD
patrice.chotard at foss.st.com
Fri Jan 31 08:46:21 CET 2025
On 12/16/24 11:08, Patrice CHOTARD wrote:
>
>
> On 11/27/24 17:23, Patrick Delaunay wrote:
>> Some dt-binding headers mask the upstream ones which can lead to build
>> failures, or worse: super weird bugs, if they get out of sync.
>>
>> Remove these headers so our devicetree and binding headers will both be
>> in sync with upstream.
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
>> ---
>>
>> drivers/clk/stm32/clk-stm32h7.c | 3 +
>> include/dt-bindings/clock/stm32fx-clock.h | 63 ----
>> include/dt-bindings/clock/stm32h7-clks.h | 167 -----------
>> include/dt-bindings/clock/stm32mp1-clks.h | 274 ------------------
>> include/dt-bindings/clock/stm32mp13-clks.h | 229 ---------------
>> include/dt-bindings/mfd/stm32f4-rcc.h | 108 -------
>> include/dt-bindings/mfd/stm32f7-rcc.h | 115 --------
>> include/dt-bindings/mfd/stm32h7-rcc.h | 138 ---------
>> include/dt-bindings/pinctrl/stm32-pinfunc.h | 45 ---
>> .../regulator/st,stm32mp13-regulator.h | 42 ---
>> include/dt-bindings/reset/stm32mp1-resets.h | 123 --------
>> include/dt-bindings/reset/stm32mp13-resets.h | 100 -------
>> 12 files changed, 3 insertions(+), 1404 deletions(-)
>> delete mode 100644 include/dt-bindings/clock/stm32fx-clock.h
>> delete mode 100644 include/dt-bindings/clock/stm32h7-clks.h
>> delete mode 100644 include/dt-bindings/clock/stm32mp1-clks.h
>> delete mode 100644 include/dt-bindings/clock/stm32mp13-clks.h
>> delete mode 100644 include/dt-bindings/mfd/stm32f4-rcc.h
>> delete mode 100644 include/dt-bindings/mfd/stm32f7-rcc.h
>> delete mode 100644 include/dt-bindings/mfd/stm32h7-rcc.h
>> delete mode 100644 include/dt-bindings/pinctrl/stm32-pinfunc.h
>> delete mode 100644 include/dt-bindings/regulator/st,stm32mp13-regulator.h
>> delete mode 100644 include/dt-bindings/reset/stm32mp1-resets.h
>> delete mode 100644 include/dt-bindings/reset/stm32mp13-resets.h
>>
>> diff --git a/drivers/clk/stm32/clk-stm32h7.c b/drivers/clk/stm32/clk-stm32h7.c
>> index a554eda504de..6acf2ff0a8fb 100644
>> --- a/drivers/clk/stm32/clk-stm32h7.c
>> +++ b/drivers/clk/stm32/clk-stm32h7.c
>> @@ -18,6 +18,9 @@
>>
>> #include <dt-bindings/clock/stm32h7-clks.h>
>>
>> +/* must be equal to last peripheral clock index */
>> +#define LAST_PERIF_BANK SYSCFG_CK
>> +
>> /* RCC CR specific definitions */
>> #define RCC_CR_HSION BIT(0)
>> #define RCC_CR_HSIRDY BIT(2)
>> diff --git a/include/dt-bindings/clock/stm32fx-clock.h b/include/dt-bindings/clock/stm32fx-clock.h
>> deleted file mode 100644
>> index e5dad050d518..000000000000
>> --- a/include/dt-bindings/clock/stm32fx-clock.h
>> +++ /dev/null
>> @@ -1,63 +0,0 @@
>> -/* SPDX-License-Identifier: GPL-2.0-only */
>> -/*
>> - * stm32fx-clock.h
>> - *
>> - * Copyright (C) 2016 STMicroelectronics
>> - * Author: Gabriel Fernandez for STMicroelectronics.
>> - */
>> -
>> -/*
>> - * List of clocks which are not derived from system clock (SYSCLOCK)
>> - *
>> - * The index of these clocks is the secondary index of DT bindings
[...]
>> -#define GPIOA_R 14080
>> -#define GPIOB_R 14081
>> -#define GPIOC_R 14082
>> -#define GPIOD_R 14083
>> -#define GPIOE_R 14084
>> -#define GPIOF_R 14085
>> -#define GPIOG_R 14086
>> -#define GPIOH_R 14087
>> -#define GPIOI_R 14088
>> -#define TSC_R 14095
>> -#define PKA_R 14146
>> -#define SAES_R 14147
>> -#define CRYP1_R 14148
>> -#define HASH1_R 14149
>> -#define RNG1_R 14150
>> -#define AXIMC_R 14160
>> -#define MDMA_R 14208
>> -#define MCE_R 14209
>> -#define ETH1MAC_R 14218
>> -#define FMC_R 14220
>> -#define QSPI_R 14222
>> -#define SDMMC1_R 14224
>> -#define SDMMC2_R 14225
>> -#define CRC1_R 14228
>> -#define USBH_R 14232
>> -#define ETH2MAC_R 14238
>> -
>> -/* SCMI reset domain identifiers */
>> -#define RST_SCMI_LTDC 0
>> -#define RST_SCMI_MDMA 1
>> -
>> -#endif /* _DT_BINDINGS_STM32MP13_RESET_H_ */
>
> Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
Applied to u-boot-stm32/master
Thanks
Patrice
>
> Thanks
> PAtrice
> _______________________________________________
> Uboot-stm32 mailing list
> Uboot-stm32 at st-md-mailman.stormreply.com
> https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32
More information about the U-Boot
mailing list