| 8919b8aa | 05-Jun-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_rstctrl: add STM32MP13 compatible
Updates stm32_rstctrl driver for STM32MP13 variant support.
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carri
drivers: stm32_rstctrl: add STM32MP13 compatible
Updates stm32_rstctrl driver for STM32MP13 variant support.
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 59feef28 | 02-Jun-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: hfic: implement mask/unmask handlers
Implements Hafnium interrupts mask/unmask operation handlers using interrupt disable/enable operation handlers. This change is needed as mask/unmask ope
drivers: hfic: implement mask/unmask handlers
Implements Hafnium interrupts mask/unmask operation handlers using interrupt disable/enable operation handlers. This change is needed as mask/unmask operation handlers are required by the new native interrupt framework.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 87db85ac | 02-Jun-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: atmel_saic: implement mask/unmask handlers
Implements Atmel SAIC interrupts mask/unmask operation handlers using interrupt disable/enable operation handlers. This change is needed as mask/u
drivers: atmel_saic: implement mask/unmask handlers
Implements Atmel SAIC interrupts mask/unmask operation handlers using interrupt disable/enable operation handlers. This change is needed as mask/unmask operation handlers are required by the new native interrupt framework.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 08ded0e1 | 01-Jun-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
driver: gic: implement mask/unmask handler
Implements GIC interrupts mask/unmask operation handlers using interrupt disable/enable operation handlers.
Reviewed-by: Jens Wiklander <jens.wiklander@li
driver: gic: implement mask/unmask handler
Implements GIC interrupts mask/unmask operation handlers using interrupt disable/enable operation handlers.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| ac16eac3 | 12-Jun-2023 |
Jose Quaresma <jose.quaresma@foundries.io> |
core: drivers: stm32_bsec: Fix conflicting types due to enum/integer mismatch
This is an error with gcc13 [-Werror=enum-int-mismatch]
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-
core: drivers: stm32_bsec: Fix conflicting types due to enum/integer mismatch
This is an error with gcc13 [-Werror=enum-int-mismatch]
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
show more ...
|
| b357d34f | 06-Jun-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
core: dt_driver: swap TEE_result and retrieved device reference
Changes dt_driver callback function to return a TEE_Result value and pass retrieved device reference by a output argument rather than
core: dt_driver: swap TEE_result and retrieved device reference
Changes dt_driver callback function to return a TEE_Result value and pass retrieved device reference by a output argument rather than the opposite.
This change updates dt_driver.c, dt_driver.h and all drivers implementing related dt_driver callback function.
As a consequence, this change removes all type definition related to device specific callback handler function types which are useless as all these now comply with type dt_driver_probe_func defined in dt_driver.h.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 1b4c5002 | 01-Jun-2023 |
Izhar Nevo <inevo@amazon.com> |
drivers: gic: prevent accessing unimplemented GIC registers
The GIC method for probing for the highest implemented interrupt ignored is done by writing & reading to GIC registers GICD_ISENABLER<n> &
drivers: gic: prevent accessing unimplemented GIC registers
The GIC method for probing for the highest implemented interrupt ignored is done by writing & reading to GIC registers GICD_ISENABLER<n> & GICD_ICENABLER<n> that are not always implemented. This causes an error indication in GIC register GICT_ERR0_STATUS. To prevent this, Check in GIC register GICD_TYPER how many SPI blocks are implemented and access only implemented registers.
Signed-off-by: Izhar Nevo <inevo@amazon.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| be53ee7b | 06-Jun-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
plat-stm32mp1: fix default setting GPIO as non-secure
Fixes STM32MP13 sequence that default configures GPIO as non-secure from set_all_gpios_non_secure() registered at early_init_late initcall level
plat-stm32mp1: fix default setting GPIO as non-secure
Fixes STM32MP13 sequence that default configures GPIO as non-secure from set_all_gpios_non_secure() registered at early_init_late initcall level, that is at same level driver are initially probed by dt_driver framework. This result on set_all_gpios_non_secure() possibly needing a bank resource before it is probed. Fix that by removing initcall function set_all_gpios_non_secure() and default configuring GPIO pins for STM32MP13 variant on their GPIO bank registering.
Fixes: 077d486ef09d ("drivers: stm32_gpio: add helper function stm32_gpio_get_bank()") Acked-by: Lionel Debieve <lionel.debieve@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 2fd102eb | 06-Jun-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: panic on clock enable error
Changes stm32_gpio.c to panic on bank clock gating error.
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carrier
drivers: stm32_gpio: panic on clock enable error
Changes stm32_gpio.c to panic on bank clock gating error.
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 1001585e | 26-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: remove GPIO access specific API functions
Removes stm32_gpio API functions to access GPIOs as the driver has moved to the generic GPIO framework and consumer driver should use t
drivers: stm32_gpio: remove GPIO access specific API functions
Removes stm32_gpio API functions to access GPIOs as the driver has moved to the generic GPIO framework and consumer driver should use the generic API to access GPIOs. The driver now expects CFG_DRIVERS_GPIO is enabled.
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 420a32c5 | 26-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: support CFG_DRIVERS_GPIO
Changes stm32_gpio driver to register GPIO provider resources for each GPIO bank registered when CFG_DRIVERS_GPIO is enabled.
Acked-by: Gatien Chevalli
drivers: stm32_gpio: support CFG_DRIVERS_GPIO
Changes stm32_gpio driver to register GPIO provider resources for each GPIO bank registered when CFG_DRIVERS_GPIO is enabled.
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 98dfceda | 31-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: don't mask interrupt during clock gating
Swaps interrupt masking and clock gating instructions to move GPIO bank gating sequence outside of the time window when interrupt are ma
drivers: stm32_gpio: don't mask interrupt during clock gating
Swaps interrupt masking and clock gating instructions to move GPIO bank gating sequence outside of the time window when interrupt are masked when the GPIO spinlock is locked.
Acked-by: Lionel Debieve <lionel.debieve@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| bed4582f | 30-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: use SHIFT_U32() where applicable
Replaces 32bit operand raw left shift with use of SHIFT_U32() macro.
Acked-by: Lionel Debieve <lionel.debieve@foss.st.com> Acked-by: Gatien Che
drivers: stm32_gpio: use SHIFT_U32() where applicable
Replaces 32bit operand raw left shift with use of SHIFT_U32() macro.
Acked-by: Lionel Debieve <lionel.debieve@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 077d486e | 25-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: add helper function stm32_gpio_get_bank()
Adds helper function stm32_gpio_get_bank() in stm32_gpio to retrieve a GPIO bank instance from the bank ID. This change will allow a la
drivers: stm32_gpio: add helper function stm32_gpio_get_bank()
Adds helper function stm32_gpio_get_bank() in stm32_gpio to retrieve a GPIO bank instance from the bank ID. This change will allow a later change to remove now useless platform helper functions stm32_get_gpio_bank_base() and stm32_get_gpio_bank_clk().
This changes removes the verification of GPIO banks clock reference against platform data (in ckeck_gpio_bank()) which is not really useful as we can consider embedded DTB data are reliable.
Checks clk_enable() return value to panic on failure.
Acked-by: Lionel Debieve <lionel.debieve@foss.st.com> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| f12b4ead | 02-Jun-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: pinctrl: pinctrl name may not be found
Changes pinctrl_get_state_by_name() to return TEE_ERROR_ITEM_NOT_FOUND instead of TEE_ERROR_GENERIC when an pinctrl state index is not found in the DT
drivers: pinctrl: pinctrl name may not be found
Changes pinctrl_get_state_by_name() to return TEE_ERROR_ITEM_NOT_FOUND instead of TEE_ERROR_GENERIC when an pinctrl state index is not found in the DT.
Fixes: 9aec039ec0d7 ("drivers: pinctrl: add pinctrl support") Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 52c31eb0 | 04-May-2023 |
Clement Faure <clement.faure@nxp.com> |
drivers: ele: use the new derive key API for HUK generation
Use the derive key ELE API to generate the OPTEE HUK based on an input pattern. This change might break backward compatibility with pre-pr
drivers: ele: use the new derive key API for HUK generation
Use the derive key ELE API to generate the OPTEE HUK based on an input pattern. This change might break backward compatibility with pre-production firmware revisions.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 92c2884f | 04-May-2023 |
Clement Faure <clement.faure@nxp.com> |
drivers: ele: change RNG command ID
Change ELE API command ID for the RNG to 0xCD. This change might break backward compatibility with pre-production firmware revisions.
Signed-off-by: Clement Faur
drivers: ele: change RNG command ID
Change ELE API command ID for the RNG to 0xCD. This change might break backward compatibility with pre-production firmware revisions.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 322cf9e3 | 23-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: consider DT output data configuration
Get output data pin configuration from DT node property "output-high" and "output-low".
Acked-by: Jerome Forissier <jerome.forissier@linar
drivers: stm32_gpio: consider DT output data configuration
Get output data pin configuration from DT node property "output-high" and "output-low".
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 8fd620f7 | 22-May-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: rename dt_driver_phandle_args to dt_pargs
Renames struct dt_driver_phandle_args to struct dt_pargs to shorten the label and prevent ugly line breaks in function signatures.
Acked-by: Jens Wik
core: rename dt_driver_phandle_args to dt_pargs
Renames struct dt_driver_phandle_args to struct dt_pargs to shorten the label and prevent ugly line breaks in function signatures.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 23bdf063 | 24-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_rng: fix case when RNG is not ready
Checks RNG data ready status bit before each read of a 32bit sample from the RNG FIFO. Indeed the data ready status bit tells that the RNG FIFO con
drivers: stm32_rng: fix case when RNG is not ready
Checks RNG data ready status bit before each read of a 32bit sample from the RNG FIFO. Indeed the data ready status bit tells that the RNG FIFO contains random bytes by burst of 32bit word, not by burst of 4 32bit words.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 0e0435e2 | 23-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: probe pinctrl nodes
This change makes stm32_gpio driver to register GPIO bank when the driver of probed on compatible pin control instances found in the device tree. This change
drivers: stm32_gpio: probe pinctrl nodes
This change makes stm32_gpio driver to register GPIO bank when the driver of probed on compatible pin control instances found in the device tree. This change however does not yet register pinctrl providers to DT_DRIVER framework.
Acked-by: Lionel Debieve <lionel.debieve@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 9818a481 | 23-May-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: stm32_gpio: helper function to register GPIO banks
Adds an helper function (dt_stm32_gpio_bank()) to register GPIO banks in stm32_gpio driver based on DT pinctrl nodes. GPIO banks are regis
drivers: stm32_gpio: helper function to register GPIO banks
Adds an helper function (dt_stm32_gpio_bank()) to register GPIO banks in stm32_gpio driver based on DT pinctrl nodes. GPIO banks are registered in a local list from which will be later used to find a bank based on its ID number. The function is expected to be called from the driver probe sequence. The function ensures a bank is not registered twice.
Acked-by: Lionel Debieve <lionel.debieve@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| 01980f3f | 16-May-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: interrupt: rename itr_init()
Renames itr_init() to interrupt_main_init() as a later change will modify interrupt chip API functions using interrupt_ as prefix.
Reviewed-by: Jens Wiklander <je
core: interrupt: rename itr_init()
Renames itr_init() to interrupt_main_init() as a later change will modify interrupt chip API functions using interrupt_ as prefix.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 358bf47c | 16-May-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: interrupt: rename itr_core_handler()
Renames itr_core_handler() to interrupt_main_handler() as a later change will modify interrupt chip API functions using interrupt_ as prefix.
Reviewed-by:
core: interrupt: rename itr_core_handler()
Renames itr_core_handler() to interrupt_main_handler() as a later change will modify interrupt chip API functions using interrupt_ as prefix.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 0ee3f52e | 16-May-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: gic: factorize call to gic_init() or gic_init_base_addr()
Platforms call either gic_init() or gic_init_base_addr() depending on whether CFG_WITH_ARM_TRUSTED_FW is defined or not. This chang
drivers: gic: factorize call to gic_init() or gic_init_base_addr()
Platforms call either gic_init() or gic_init_base_addr() depending on whether CFG_WITH_ARM_TRUSTED_FW is defined or not. This change factorize this logic from gic_init() implementation and makes gic_init_base_addr() local to gic.c.
For that purpose functions gic_init_base_address() and gic_dt_get_irq() are moved inside gic.c source file. source file.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|