| 90a9b9cc | 21-Jul-2025 |
Sahil Malhotra <sahil.malhotra@nxp.com> |
drivers: imx: mu: rename imx_mu_8ulp.c to imx_mu_8ulp_9x.c
Since same file is used for both i.MX8ULP and i.MX9X platforms, renaming it to more accurate name.
Signed-off-by: Sahil Malhotra <sahil.ma
drivers: imx: mu: rename imx_mu_8ulp.c to imx_mu_8ulp_9x.c
Since same file is used for both i.MX8ULP and i.MX9X platforms, renaming it to more accurate name.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| cdd2fe13 | 13-Mar-2025 |
Rouven Czerwinski <rouven.czerwinski@linaro.org> |
core: drivers: introduce Qualcomm GENI UART driver
Introduce a driver for the GENI UART found on modern Qualcomm platforms.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens W
core: drivers: introduce Qualcomm GENI UART driver
Introduce a driver for the GENI UART found on modern Qualcomm platforms.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Casey Connolly <casey.connolly@linaro.org> Signed-off-by: Rouven Czerwinski <rouven.czerwinski@linaro.org> [SG: cleaned up the driver] Signed-off-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
show more ...
|
| 6aa8d320 | 09-Sep-2025 |
Thomas Bourgoin <thomas.bourgoin@foss.st.com> |
drivers: stm32_rtc: prevent registering of RTC interrupt when it's not used by OP-TEE
Do not register the RTC interrupt when it's not used by OP-TEE as it prevents non-secure world from handling tha
drivers: stm32_rtc: prevent registering of RTC interrupt when it's not used by OP-TEE
Do not register the RTC interrupt when it's not used by OP-TEE as it prevents non-secure world from handling that interrupt.
The RTC interrupt line is only used if the RTC is set as a wakeup source or RTC is secured by the RIF (only for STM32MP2x) and RTC PTA and async notif are enabled.
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Clément Le Goffic <legoffic.clement@gmail.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 4e51bea9 | 12-Jan-2024 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: regulator: DT property regulator-enable-ramp-delay
Implement regulator DT property regulator-enable-ramp-delay.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by
drivers: regulator: DT property regulator-enable-ramp-delay
Implement regulator DT property regulator-enable-ramp-delay.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| 8c48c11b | 12-Jan-2024 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: regulator: DT property regulator-ramp-delay
Implement regulator DT property regulator-ramp-delay.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by: Thomas Bourg
drivers: regulator: DT property regulator-ramp-delay
Implement regulator DT property regulator-ramp-delay.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| 1dc11585 | 02-Oct-2025 |
Thomas Bourgoin <thomas.bourgoin@foss.st.com> |
drivers: regulator: DT properties over-current-protection
Define regulator property flags for the regulator DT binding properties regulator-over-current-protection and regulator-active-discharge.
S
drivers: regulator: DT properties over-current-protection
Define regulator property flags for the regulator DT binding properties regulator-over-current-protection and regulator-active-discharge.
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| d2c909e8 | 07-Aug-2025 |
Michael Tretter <m.tretter@pengutronix.de> |
drivers: rockchip: extract OTP driver from rk3588 platform
The OTP handling is useful outside the rk3588 platform implementation. For example, the fuses for secure boot are accessible via the OTP.
drivers: rockchip: extract OTP driver from rk3588 platform
The OTP handling is useful outside the rk3588 platform implementation. For example, the fuses for secure boot are accessible via the OTP.
Extract the OTP write and read support to a separate driver to make it available for other modules.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Reviewed-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| 37954afb | 11-Sep-2025 |
Thomas Bourgoin <thomas.bourgoin@foss.st.com> |
drivers: stm32_rifsc: add support of stm32mp23
Add support of stm32mp23 platform in RIFSC driver.
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne
drivers: stm32_rifsc: add support of stm32mp23
Add support of stm32mp23 platform in RIFSC driver.
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 92a277cc | 11-Sep-2025 |
Thomas Bourgoin <thomas.bourgoin@foss.st.com> |
drivers: stm32_tamp: support STM32MP23x SoC family
Add support for STM32MP23 SoC family.
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Acked-by: Etienne Carriere <etienne.carriere@fo
drivers: stm32_tamp: support STM32MP23x SoC family
Add support for STM32MP23 SoC family.
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 3f8e5418 | 06-May-2025 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
drivers: stm32_gpio: move dt_flags support in the new ops configure
Move the GPIO configuration based on dt_flags previously done in get_dt ops in the new gpio configure ops.
To avoid glitch on GPI
drivers: stm32_gpio: move dt_flags support in the new ops configure
Move the GPIO configuration based on dt_flags previously done in get_dt ops in the new gpio configure ops.
To avoid glitch on GPIO line, the write in register GPIO_MODER is only kept in the ops stm32_gpio_set_direction(), called by gpio framework function gpio_configure() after the call of configure ops, so we have no more transient GPIO input configuration.
Moreover, this patch allows to correctly apply the dt_flags when they are modify after the call of stm32_gpio_get_dt(), for example in drivers regulator fixed and gpio.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 396e1f07 | 18-Jun-2025 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
drivers: gpio: add new ops configure to initialize gpio
Add the new ops configure to initialize the GPIO resource based on dt_flags. This new ops is require to support the modification of dt_flag do
drivers: gpio: add new ops configure to initialize gpio
Add the new ops configure to initialize the GPIO resource based on dt_flags. This new ops is require to support the modification of dt_flag done by caller after gpio_dt_init_by_index() and before call of gpio_configure().
It is done by example in driver of regulator fixed and gpio.
The new ops is called only in gpio_dt_cfg_by_index() or in gpio_configure() so usage of one of this API is manadatory after this patch.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 39d1e320 | 06-May-2025 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
drivers: gpio: add configure functions
Align the OP-TEE GPIO driver with GPIO lib (devm_gpiod_get_index with enum gpiod_flags) and add a way to select the GPIO configuration directly during request
drivers: gpio: add configure functions
Align the OP-TEE GPIO driver with GPIO lib (devm_gpiod_get_index with enum gpiod_flags) and add a way to select the GPIO configuration directly during request with the new function, gpio_dt_cfg_by_index().
This patch remove assumption on GPIO direction (gpio input was assumed in GPIO driver) or output level when the GPIO is requested by consumer. with this patch it must be requested explicitly with: - GPIO_IN: configure the input GPIO - GPIO_ASIS: direction is managed by caller later with gpio_set_value() call. - GPIO_OUT_LOW / GPIO_OUT_HIGH: output GPIO at expected level, the sequence for GPIO have the correct order to avoid glitch by using the gpio function at the correct order.
This patch is a preliminary step for the introduction of ops configure. The API gpio_dt_get_by_index() is keep for backward compatibility but should be used with gpio_configure() or replaced by gpio_dt_cfg_by_index().
Now gpio_configure() is only used in the 2 drivers, regulator_fixed and regulator_gpio, because in these drivers the flags gpio->dt_flags are modified after call of gpio_dt_get_by_index().
For get_voltage_level_gpio(), GPIO_OUT_HIGH is used by default as it is done in Linux function of_get_gpio_regulator_config().
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| dc374be0 | 06-May-2025 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
drivers: regulator: simplify device tree parsing
Use gpio_dt_get_by_index() to get the properties in device tree with all the possible variant name: "gpio" and "gpios".
Signed-off-by: Patrick Delau
drivers: regulator: simplify device tree parsing
Use gpio_dt_get_by_index() to get the properties in device tree with all the possible variant name: "gpio" and "gpios".
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| a37f67ed | 06-May-2025 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
drivers: gpio: support gpio suffix in device tree
Align the OP-TEE GPIO driver on the Linux GPIO lib behavior for the gpio properties in device tree: search "gpios" or "gpio" when gpio_name is omit
drivers: gpio: support gpio suffix in device tree
Align the OP-TEE GPIO driver on the Linux GPIO lib behavior for the gpio properties in device tree: search "gpios" or "gpio" when gpio_name is omitted and "foo-gpios" or "foo-gpio" when and if the gpio_name="foo".
This patch allows use of the function gpio_dt_get_by_index() by GPIO consumers for all supported bindings.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| b290af13 | 26-Jun-2025 |
Thomas Bourgoin <thomas.bourgoin@foss.st.com> |
core: drivers: allow to configure RIF for GPIO not on the SoC package
The number of GPIO physically accessible depends on package. Some GPIO pins might not be accessible but it is still possible to
core: drivers: allow to configure RIF for GPIO not on the SoC package
The number of GPIO physically accessible depends on package. Some GPIO pins might not be accessible but it is still possible to write RIF registers to block access.
The assert(nb_rif_conf <= bank->ngpios) mandate to have less or the same number of RIF configuration than the number of GPIO pin describe with the property gpio-ranges to have the same number.
Remove the assert and replace() it with MIN() to be less restrictive.
Fixes: bd03c8c3d70f ("drivers: stm32_gpio: add stm32mp25x support") Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| bf491f27 | 18-Jul-2025 |
Clément Le Goffic <clement.legoffic@foss.st.com> |
drivers: stm32_iwdg: move setup function in probe
Setup and probe are meaning mostly the same. Moving the `setup` function content in probe improves readability.
Signed-off-by: Clément Le Goffic <c
drivers: stm32_iwdg: move setup function in probe
Setup and probe are meaning mostly the same. Moving the `setup` function content in probe improves readability.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| 4a62f44c | 13-May-2025 |
Clément Le Goffic <clement.legoffic@foss.st.com> |
drivers: stm32_iwdg: change prescaler value to 1024
Increase the prescaler value to 1024 in order to increase watchdog timeout value. ((2^12) * 1024) / 32767 = 128 It will allow watchdog timeout up
drivers: stm32_iwdg: change prescaler value to 1024
Increase the prescaler value to 1024 in order to increase watchdog timeout value. ((2^12) * 1024) / 32767 = 128 It will allow watchdog timeout up to 128s. Also multiply the IWDG_TIMEOUT_US by 4, same as the prescaler value.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| b49d10f7 | 06-Feb-2025 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
drivers: stm32_iwdg: reload for stopped watchdog
For stopped watchdog, use the early interruption to reload the watchdog without panic, the driver uses ULONG_MAX as an infinite reload indication.
S
drivers: stm32_iwdg: reload for stopped watchdog
For stopped watchdog, use the early interruption to reload the watchdog without panic, the driver uses ULONG_MAX as an infinite reload indication.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| f6ee86ec | 05-Sep-2024 |
Clément Le Goffic <clement.legoffic@foss.st.com> |
drivers: stm32_iwdg: add support for extended watchdog timeout
This commit enhances the STM32 IWDG driver to support extended watchdog timeouts. It introduces new fields in the `stm32_iwdg_device` s
drivers: stm32_iwdg: add support for extended watchdog timeout
This commit enhances the STM32 IWDG driver to support extended watchdog timeouts. It introduces new fields in the `stm32_iwdg_device` structure, updates the interrupt handler to handle multiple refresh cycles, and improves the timeout handling logic to manage and calculate extended timeouts accurately.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| dff60fe8 | 21-May-2024 |
Clément Le Goffic <clement.legoffic@foss.st.com> |
drivers: stm32_iwdg: add stop watchdog handler
Implement .stop watchdog handler in order to allow the platform to `halt` well.
The platform does not allow a way to stop an IWDG once started but a s
drivers: stm32_iwdg: add stop watchdog handler
Implement .stop watchdog handler in order to allow the platform to `halt` well.
The platform does not allow a way to stop an IWDG once started but a solution exists. We disable the platform reset ability of the IWDG we use and the IRQ associated if the reset property is present in the DT.
Be careful, on STM32MP2 platforms, in A35TDCID, the system reset of the IWDG1 cannot be disabled. Therefore, only the IWDG2 can be stopped. The same behavior applies for IWDG3 in M33TDCID, you'll have to use the IWDG4.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| 235baec9 | 18-Dec-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_iwdg: disable clocks during PM standby
Disable STM32 IWDG clock during low power state.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by: Clément Le Goffi
drivers: stm32_iwdg: disable clocks during PM standby
Disable STM32 IWDG clock during low power state.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| e4b8d29a | 18-Dec-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_iwdg: early watchdog interrupt
When the secure device tree defines an interrupt, register a handler to notify secure world of a possible watchdog expiration.
Signed-off-by: Etienne C
drivers: stm32_iwdg: early watchdog interrupt
When the secure device tree defines an interrupt, register a handler to notify secure world of a possible watchdog expiration.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| d8bfc12a | 25-Apr-2025 |
Thomas Bourgoin <thomas.bourgoin@foss.st.com> |
plat: stm32mp2: sysconf: fix CA35SS register names
Align register names with the reference manuel for Arm Cortex-A35 (CA35SS) - CA35SS SYSCFG registers (with 0x2000 offset) - CA35SS Standardized sta
plat: stm32mp2: sysconf: fix CA35SS register names
Align register names with the reference manuel for Arm Cortex-A35 (CA35SS) - CA35SS SYSCFG registers (with 0x2000 offset) - CA35SS Standardized status and control (SSC) registers
This path removes the confusion between SSC and subsystem (SS).
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Co-developed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 2186f9e0 | 13-Jun-2025 |
Sungbae Yoo <sungbaey@nvidia.com> |
drivers: ffa_console: add support for multiple character at once
FFA console will use FFA_CONSOLE_LOG_32 as a default if the current SPMD does not support FFA_CONSOLE_LOG_64.
Signed-off-by: Sungbae
drivers: ffa_console: add support for multiple character at once
FFA console will use FFA_CONSOLE_LOG_32 as a default if the current SPMD does not support FFA_CONSOLE_LOG_64.
Signed-off-by: Sungbae Yoo <sungbaey@nvidia.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 112396a5 | 17-Jun-2025 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
drivers: stm32_tamp: implement reset on tamper event
In case the behavior on a tamper event detection is to reset the platform, call the do_reset() API to force a system reset.
Signed-off-by: Gatie
drivers: stm32_tamp: implement reset on tamper event
In case the behavior on a tamper event detection is to reset the platform, call the do_reset() API to force a system reset.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|