| #
2d462888 |
| 30-Oct-2025 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "stm32mp2_fixes" into integration
* changes: fix(stm32mp2-fdts): set SDMMC max frequency to 166 MHz on stm32mp25 fix(stm32mp25-fdts): new swizzle configuration for STM32
Merge changes from topic "stm32mp2_fixes" into integration
* changes: fix(stm32mp2-fdts): set SDMMC max frequency to 166 MHz on stm32mp25 fix(stm32mp25-fdts): new swizzle configuration for STM32MP257F-EV1 board fix(st-clock): prevent panic when external oscillator is absent feat(st-clock): rename RCC_USBTCCFGR register into RCC_UCPDCFGR fix(dt-bindings): bad FLEXGEN configuration of pred-division for STM32MP25 fix(st-clock): force ARM_DIVSEL for flexgen63 config at 400MHz
show more ...
|
| #
6fb522de |
| 11-Aug-2025 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
fix(st-clock): prevent panic when external oscillator is absent
To deactivate the external oscillator, the frequency must be set to 0 in the device tree. The frequency check for 0 was implemented in
fix(st-clock): prevent panic when external oscillator is absent
To deactivate the external oscillator, the frequency must be set to 0 in the device tree. The frequency check for 0 was implemented in clk_stm32_osc_gate_enable() and clk_stm32_osc_gate_disable(), but missing in clk_stm32_osc_gate_is_enabled(). Since clk_stm32_osc_gate_is_enabled() is called by clk_enable() to verify if the clock is actually enabled, this fix prevents a panic when the oscillator is not present.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Change-Id: I90dc671f39bd46d0db19d7532aee9ec7b449ba9d
show more ...
|
| #
78ff3619 |
| 14-Jun-2024 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "st_clk_update" into integration
* changes: feat(st-clock): use early traces fix(st-clock): adapt order of CSS on LSE and HSE refactor(st-clock): remove unused struct
Merge changes from topic "st_clk_update" into integration
* changes: feat(st-clock): use early traces fix(st-clock): adapt order of CSS on LSE and HSE refactor(st-clock): remove unused struct feat(stm32mp1-fdts): remove RTC clock configuration refactor(st-clock): move stm32mp1_clk_rcc_regs_*lock refactor(st-clock): driver size optimization refactor(st-clock): remove BL32 support on STM32MP13 feat(st-clock): don't gate/ungate an oscillator if it is not wired feat(dt-bindings): add missing SPIx bus clocks feat(stm32mp1-fdts): remove PLL1 settings feat(st-clock): update with new bindings feat(stm32mp1-fdts): new RCC DT bindings for STM32MP1 feat(dt-bindings): new RCC DT bindings feat(stm32mp1): always boot at 650MHz refactor(st-clock): remove LSEDRV_MEDIUM_HIGH for STM32MP13 fix(st-clock): display proper PLL number for STM32MP13 fix(st-clock): do not reconfigure LSE feat(stm32mp1-fdts): move RNG1 to CSI to improve random generation refactor(st-clock): remove unused clk function in API refactor(st-clock): support deactivated STGEN in stm32mp_stgen_config feat(st-clock): add function to restore generic timer rate
show more ...
|
| #
1be399b8 |
| 25-Oct-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
refactor(st-clock): move stm32mp1_clk_rcc_regs_*lock
Those functions are only used on MP1, they should not be in STM32 clock core. Move them to MP13 driver (they are already in MP15 driver). Redefin
refactor(st-clock): move stm32mp1_clk_rcc_regs_*lock
Those functions are only used on MP1, they should not be in STM32 clock core. Move them to MP13 driver (they are already in MP15 driver). Redefine new clk_stm32_rcc_regs_*lock() functions in clock core. This change avoid sparse warning: drivers/st/clk/clk-stm32-core.c:46:6: warning: symbol 'stm32mp1_clk_rcc_regs_lock' was not declared. Should it be static? drivers/st/clk/clk-stm32-core.c:51:6: warning: symbol 'stm32mp1_clk_rcc_regs_unlock' was not declared. Should it be static?
Change-Id: I9f255acaa843e41fc14267c1a8091f93bd029796 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| #
d9a7ddeb |
| 21-Aug-2023 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
refactor(st-clock): driver size optimization
Re-ordering structures to avoid gaps and minimize data. Reduce type of gate_refcounts[], uint8_t is enough. Re-ordering structures to avoid gaps and mini
refactor(st-clock): driver size optimization
Re-ordering structures to avoid gaps and minimize data. Reduce type of gate_refcounts[], uint8_t is enough. Re-ordering structures to avoid gaps and minimize data. Use an unsigned char to define a clock ops type.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Change-Id: I6b793dc34abdd6ef013609fc0f122da5d1824a34
show more ...
|
| #
f2aebab8 |
| 08-Jul-2022 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
feat(st-clock): don't gate/ungate an oscillator if it is not wired
If the oscillator is not present, the gating will fail.
Change-Id: If9119460a4bcd42053537f1975afe5fe1df05752 Signed-off-by: Gabrie
feat(st-clock): don't gate/ungate an oscillator if it is not wired
If the oscillator is not present, the gating will fail.
Change-Id: If9119460a4bcd42053537f1975afe5fe1df05752 Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
show more ...
|
| #
25eb6472 |
| 09-Dec-2022 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "fix_misra_st_drivers" into integration
* changes: fix(st-clock): avoid arithmetics on pointers fix(st-clock): give the size for parent_mp13 and dividers_mp13 tables f
Merge changes from topic "fix_misra_st_drivers" into integration
* changes: fix(st-clock): avoid arithmetics on pointers fix(st-clock): give the size for parent_mp13 and dividers_mp13 tables fix(st-clock): remove useless switch fix(st-clock): use Boolean type for tests fix(st-regulator): use Boolean type for tests fix(st-regulator): enclose macro parameters in parentheses fix(st-regulator): rework for_each_*rdev macros fix(st-regulator): explicitly check operators precedence fix(st-pmic): define pmic_regs table size fix(st-pmic): enclose macro parameter in parentheses
show more ...
|
| #
69a2e320 |
| 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): remove useless switch
This corrects MISRA C2012-16.6: Every switch statement shall have at least two switch-clauses. While at it, remove useless rate variable.
Signed-off-by: Yann Ga
fix(st-clock): remove useless switch
This corrects MISRA C2012-16.6: Every switch statement shall have at least two switch-clauses. While at it, remove useless rate variable.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I123784e7184dbf4146fd0d7faeffd6a0382fc6a1
show more ...
|
| #
c3ae7da0 |
| 28-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially
fix(st-clock): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Id217d3da223caf75cd0439d7ce11c9efab87b4d2
show more ...
|
| #
a36af977 |
| 15-Aug-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "st-clk-cleanup" into integration
* changes: refactor(st-clock): code size optimization refactor(st-clock): remove unused PLL field
|
| #
3ff1ff40 |
| 21-Jun-2022 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
refactor(st-clock): code size optimization
Clock name is not used and can be removed for code size optimization.
Change-Id: I75f6a1828e4374004e31a7ce13fa6885c52bbac3 Signed-off-by: Gabriel Fernande
refactor(st-clock): code size optimization
Clock name is not used and can be removed for code size optimization.
Change-Id: I75f6a1828e4374004e31a7ce13fa6885c52bbac3 Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
show more ...
|
| #
daa4df63 |
| 21-Jun-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "st_clk_fixes" into integration
* changes: fix(st-clock): correct MISRA C2012 15.6 fix(st-clock): correctly check ready bit
|
| #
56f895ed |
| 21-Jun-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): correct MISRA C2012 15.6
Add braces to correct MISRA C2012 15.6 warning: The body of an iteration-statement or a selection-statement shall be a compound-statement.
Signed-off-by: Yan
fix(st-clock): correct MISRA C2012 15.6
Add braces to correct MISRA C2012 15.6 warning: The body of an iteration-statement or a selection-statement shall be a compound-statement.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: If26f3732d31df11bf389a16298ec9e9d8a4a2279
show more ...
|
| #
3b06a530 |
| 21-Jun-2022 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(st-clock): correctly check ready bit
The function clk_oscillator_wait_ready() was wrongly checking the set bit and not the ready bit. Correct that by using osc_data->gate_rdy_id when calling _cl
fix(st-clock): correctly check ready bit
The function clk_oscillator_wait_ready() was wrongly checking the set bit and not the ready bit. Correct that by using osc_data->gate_rdy_id when calling _clk_stm32_gate_wait_ready().
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: Ida58f14d7f0f326b580ae24b98d6b9f592d2d711
show more ...
|
| #
fa4751f2 |
| 27-Apr-2022 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "st_clk_fix" into integration
* changes: fix(st-clock): correct stm32_clk_parse_fdt_by_name fix(st-clock): check _clk_stm32_get_parent return
|
| #
7417cda6 |
| 05-Apr-2022 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(st-clock): correct stm32_clk_parse_fdt_by_name
The fdt_getprop() function sets the length to -1 if the property is not found. We should then not use it later in stm32_clk_parse_fdt_by_name() in
fix(st-clock): correct stm32_clk_parse_fdt_by_name
The fdt_getprop() function sets the length to -1 if the property is not found. We should then not use it later in stm32_clk_parse_fdt_by_name() in that case. Directly set *nb to 0U and return 0 if the property is not found.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I19c5c953f392cdc768e0b1f3f240fc99a73a049c
show more ...
|
| #
b8eab512 |
| 29-Mar-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): check _clk_stm32_get_parent return
This issue was found by Coverity (CID 376885). The _clk_stm32_get_parent() return shouldn't be negative. Return the error in this case.
Signed-off-
fix(st-clock): check _clk_stm32_get_parent return
This issue was found by Coverity (CID 376885). The _clk_stm32_get_parent() return shouldn't be negative. Return the error in this case.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I91eff7e99fcdac9a258100b163fd9b040a9bd2c0
show more ...
|
| #
2ff6a49e |
| 22-Mar-2022 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "stm32mp13" into integration
* changes: feat(stm32mp1): select platform compilation either by flag or DT feat(stm32mp1-fdts): add support for STM32MP13 DK board feat(s
Merge changes from topic "stm32mp13" into integration
* changes: feat(stm32mp1): select platform compilation either by flag or DT feat(stm32mp1-fdts): add support for STM32MP13 DK board feat(stm32mp1-fdts): add DDR support for STM32MP13 feat(stm32mp1-fdts): add st-io_policies node for STM32MP13 feat(stm32mp1): updates for STM32MP13 device tree compilation feat(stm32mp1-fdts): add DT files for STM32MP13 feat(dt-bindings): add TZC400 bindings for STM32MP13 feat(stm32mp1): add "Boot mode" management for STM32MP13 feat(stm32mp1): manage HSLV on STM32MP13 feat(stm32mp1): add sdmmc compatible in platform define feat(st-sdmmc2): allow compatible to be defined in platform code feat(stm32mp1): update IO compensation on STM32MP13 feat(stm32mp1): call pmic_voltages_init() in platform init feat(st-pmic): add pmic_voltages_init() function feat(stm32mp1): update CFG0 OTP for STM32MP13 feat(stm32mp1): usb descriptor update for STM32MP13 feat(st-clock): add clock driver for STM32MP13 feat(dt-bindings): add bindings for STM32MP13 feat(stm32mp1): get CPU info from SYSCFG on STM32MP13 feat(stm32mp1): use only one filter for TZC400 on STM32MP13 feat(stm32mp1): add a second fixed regulator feat(stm32mp1): adaptations for STM32MP13 image header feat(stm32mp1): update boot API for header v2.0 feat(stm32mp1): update IP addresses for STM32MP13 feat(stm32mp1): add part numbers for STM32MP13 feat(stm32mp1): chip rev. Z is 0x1001 on STM32MP13 feat(stm32mp1): update BACKUP_BOOT_MODE for STM32MP13 feat(stm32mp1): stm32mp_is_single_core() for STM32MP13 feat(stm32mp1): remove unsupported features on STM32MP13 feat(stm32mp1): update memory mapping for STM32MP13 feat(stm32mp1): introduce new flag for STM32MP13 feat(st): update stm32image tool for header v2
show more ...
|
| #
9be88e75 |
| 11-Mar-2020 |
Gabriel Fernandez <gabriel.fernandez@st.com> |
feat(st-clock): add clock driver for STM32MP13
Add new clock driver for STM32MP13. Split the include file to manage either STM32MP13 or STM32MP15.
Change-Id: Ia568cd12b1d5538809204f0fd2224d51e5d1e9
feat(st-clock): add clock driver for STM32MP13
Add new clock driver for STM32MP13. Split the include file to manage either STM32MP13 or STM32MP15.
Change-Id: Ia568cd12b1d5538809204f0fd2224d51e5d1e985 Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
show more ...
|