| 868937ee | 30-May-2022 |
Clement Faure <clement.faure@nxp.com> |
drivers: caam: map the CAAM registers with the CAAM_SIZE value
Add the CAAM register MMU mapping with the appropriate size CAAM_SIZE.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by:
drivers: caam: map the CAAM registers with the CAAM_SIZE value
Add the CAAM register MMU mapping with the appropriate size CAAM_SIZE.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 37010ab7 | 07-Jun-2022 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
plat-stm32mp1: use helper header file stm32mp_dt_bindings.h
Changes plat-stm32mp1 and its drivers to rely on stm32mp_dt_bindings.h which simplifies support of both variants STM32MP15 and STM32MP13 t
plat-stm32mp1: use helper header file stm32mp_dt_bindings.h
Changes plat-stm32mp1 and its drivers to rely on stm32mp_dt_bindings.h which simplifies support of both variants STM32MP15 and STM32MP13 that will use each specific DT bindings.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d0d36df6 | 16-Jun-2022 |
Ludvig Pärsson <ludvig.parsson@axis.com> |
drivers: scmi-msg: Fix parameter type
In order to make clock.c and voltage_domain.c compile on 64 bit architecture, we cannot use unsigned int in the function prototype and size_t in the function de
drivers: scmi-msg: Fix parameter type
In order to make clock.c and voltage_domain.c compile on 64 bit architecture, we cannot use unsigned int in the function prototype and size_t in the function definition.
Signed-off-by: Ludvig Pärsson <ludvig.parsson@axis.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 488c73c0 | 08-Jun-2022 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
drivers: clk: remove stm32_clock_*() helpers
Removes function that were deprecated: stm32_clock_is_enabled(), stm32_clock_enable(), stm32_clock_disable() and stm32_clock_get_rate().
Signed-off-by:
drivers: clk: remove stm32_clock_*() helpers
Removes function that were deprecated: stm32_clock_is_enabled(), stm32_clock_enable(), stm32_clock_disable() and stm32_clock_get_rate().
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| b97479cb | 08-Jun-2022 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
drivers: se050: scp: add support for more boards
Add the board specific persistent keys required to stablish the SCP03 sessions with the secure element.
See https://www.nxp.com/docs/en/application-
drivers: se050: scp: add support for more boards
Add the board specific persistent keys required to stablish the SCP03 sessions with the secure element.
See https://www.nxp.com/docs/en/application-note/AN12436.pdf
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| dc0db863 | 08-Jun-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: pm: sam: clarify that the pm_suspend.S file was relicensed
Clarify that this file was imported from Linux and relicensed to avoid any licensing issue.
Acked-by: Nicolas Ferre <nicolas.ferr
drivers: pm: sam: clarify that the pm_suspend.S file was relicensed
Clarify that this file was imported from Linux and relicensed to avoid any licensing issue.
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Acked-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 0347e53f | 17-May-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: smccc_trng: get entropy from secure monitor
Implements random noise generation interface from Arm SMCCC TRNG specification. Configuration switch CFG_ARM_SMCCC_TRNG must be enabled to embed
drivers: smccc_trng: get entropy from secure monitor
Implements random noise generation interface from Arm SMCCC TRNG specification. Configuration switch CFG_ARM_SMCCC_TRNG must be enabled to embed the RNG driver that use this interface.
When CFG_ARM_SMCCC_TRNG is enable and CFG_WITH_SOFTWARE_PRNG is disable, use SMCCC TRNG driver as entropy source. When both CFG_ARM_SMCCC_TRNG and CFG_WITH_SOFTWARE_PRNG are enable, seed OP-TEE PRNG with 32byte of TRNG entropy.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d922c314 | 23-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: add timer clock driver
Add support for the TCB block that are present on the samad2. This series add support for the TCB as a time source and register it using REGISTER_TIME_SOURCE(). More
plat-sam: add timer clock driver
Add support for the TCB block that are present on the samad2. This series add support for the TCB as a time source and register it using REGISTER_TIME_SOURCE(). Moreover, on Linux, the tick is done using the TCB since the sama5d2 does not have the ARM architected timers. Since the time source used for the tick clocksource is probed early in the boot process, the SCMI clock support which uses a platform driver is not yet probed and thus the TCB can't be probe properly. To workaround that problem, this driver enables the TCB clocks and the Linux device-tree is modified to use "fixed-clock" clock instead of the TCB SCMI ones.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 1fe98f82 | 11-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: atmel_piobu: add driver
Add piobu driver which handle secumod GPIOs. This driver also handle tampering interrupts on GPIOs which are configured as input with the device-tree. For instance,
drivers: atmel_piobu: add driver
Add piobu driver which handle secumod GPIOs. This driver also handle tampering interrupts on GPIOs which are configured as input with the device-tree. For instance, the following device-tree excerpt allows to set an input as an intrusion detection pin:
gpios = <0 PIOBU_PIN_INPUT(1, 1, PIOBU_PIN_PULL_DOWN, PIOBU_PIN_DEF_LEVEL_LOW, PIOBU_PIN_WAKEUP_ENABLE)>;
In case of a tamper event, the source of the tampering will be displayed.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| b2e4b77e | 29-Apr-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: atmel_rtc: add atmel_rtc_get_tamper_timestamp()
The sama5d2 RTC actually hold the timestamp of the last tampering attempt. Add a function to get the last time of tampering detection.
Acked
drivers: atmel_rtc: add atmel_rtc_get_tamper_timestamp()
The sama5d2 RTC actually hold the timestamp of the last tampering attempt. Add a function to get the last time of tampering detection.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 74c676be | 30-Jan-2022 |
Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> |
drivers: xiphera_trng: Add support for XIP8001B TRNG
Adds support for Xiphera's XIP8001B true random number generator.
XIP8001B is a FPGA IP core that can be synthesized in FPGA devices to provide
drivers: xiphera_trng: Add support for XIP8001B TRNG
Adds support for Xiphera's XIP8001B true random number generator.
XIP8001B is a FPGA IP core that can be synthesized in FPGA devices to provide TRNG source for device where it is missing like Xilinx Zynq-7000 and Xilinx Zynq MPSoC.
Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> Co-developed-by: Atte Tommiska <atte.tommiska@xiphera.com> Signed-off-by: Atte Tommiska <atte.tommiska@xiphera.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 332dec4a | 23-May-2022 |
Franck LENORMAND <franck.lenormand@nxp.com> |
drivers: imx_snvs: fix the is_otpmk_valid() logic
The logic wanted was the inverse of the one implemented.
Fixes: ea4f7ad67d ("drivers: imx_snvs: add master key selection") Signed-off-by: Franck LE
drivers: imx_snvs: fix the is_otpmk_valid() logic
The logic wanted was the inverse of the one implemented.
Fixes: ea4f7ad67d ("drivers: imx_snvs: add master key selection") Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| de2fcd34 | 23-May-2022 |
Franck LENORMAND <franck.lenormand@nxp.com> |
drivers: imx_snvs: fix SNVS register read operation
A coding mistake in the precedence order of C operators is causing an incorrect read of the SNVS register. This error would return a wrong board l
drivers: imx_snvs: fix SNVS register read operation
A coding mistake in the precedence order of C operators is causing an incorrect read of the SNVS register. This error would return a wrong board lifecycle state by snvs_get_security_cfg().
Fixes: 5cd93c5a ("drivers: imx_snvs: fix SNVS security configuration values") Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 916cc52a | 29-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: add SCMI MSG message protocol
Implements MSG header protocol to handle SCMI messages. MSG header protocol was introduced in Linux kernel v5.15 [1]. It relies on normal cached shar
drivers: scmi-msg: add SCMI MSG message protocol
Implements MSG header protocol to handle SCMI messages. MSG header protocol was introduced in Linux kernel v5.15 [1]. It relies on normal cached shared memory buffer using a 32bit header followed by the SCMI message payload.
To support this message interface, the SCMI PTA defines a new capability and a new command. Capability PTA_SCMI_CAPS_MSG_HEADER allows client and service to negotiate the desired transport configuration. Command PTA_SCMI_CMD_PROCESS_MSG_CHANNEL allows client to request processing of a message sent based on that message exchange protocol.
Platforms shall enable configuration switch CFG_SCMI_MSG_SHM_MSG to have their SCMI service supporting that communication protocol.
Link: [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f301bba0ca7392d16a6ea4f1d264a91f1fadea1a Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 48141578 | 22-Mar-2022 |
Clement Faure <clement.faure@nxp.com> |
drivers: imx_snvs: use snvs_is_device_closed() for RPMB key status
Call the function snvs_is_device_closed() to know if the platform is closed or not in plat_rpmb_key_is_ready() instead of reading t
drivers: imx_snvs: use snvs_is_device_closed() for RPMB key status
Call the function snvs_is_device_closed() to know if the platform is closed or not in plat_rpmb_key_is_ready() instead of reading the platform security configuration.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 8dafb568 | 15-Mar-2022 |
Clement Faure <clement.faure@nxp.com> |
drivers: caam: set OTP as master key
Before the CAAM initialization, set the OTP as the SNVS master key if the device is in closed state.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-
drivers: caam: set OTP as master key
Before the CAAM initialization, set the OTP as the SNVS master key if the device is in closed state.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| ec93a5a2 | 02-Mar-2022 |
Clement Faure <clement.faure@nxp.com> |
drivers: imx_snvs: fix SNVS_SSM_MODE_SECURE value
The value for SNVS_SSM_MODE_SECURE is 15 instead of 14.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.for
drivers: imx_snvs: fix SNVS_SSM_MODE_SECURE value
The value for SNVS_SSM_MODE_SECURE is 15 instead of 14.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 5cd93c5a | 02-Mar-2022 |
Clement Faure <clement.faure@nxp.com> |
drivers: imx_snvs: fix SNVS security configuration values
The SYS_SECURITY_CFG field values of the HPSR register are different on imx8m platforms. Also, this bit field is 4 bits wide on imx8m platfo
drivers: imx_snvs: fix SNVS security configuration values
The SYS_SECURITY_CFG field values of the HPSR register are different on imx8m platforms. Also, this bit field is 4 bits wide on imx8m platforms and 3 bits wide on the imx6/7 platforms.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| ea4f7ad6 | 01-Mar-2022 |
Clement Faure <clement.faure@nxp.com> |
drivers: imx_snvs: add master key selection
Select the OTPMK as the SNVS master key when the platforms is in closed state.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Fori
drivers: imx_snvs: add master key selection
Select the OTPMK as the SNVS master key when the platforms is in closed state.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 916e56ed | 28-Feb-2022 |
Clement Faure <clement.faure@nxp.com> |
core: drivers: merge i.MX SNVS driver files
Move the implementation of plat_rpmb_key_is_ready() from plat-imx/drivers/imx_snvs.c to drivers/imx_snvs.c
Signed-off-by: Clement Faure <clement.faure@nx
core: drivers: merge i.MX SNVS driver files
Move the implementation of plat_rpmb_key_is_ready() from plat-imx/drivers/imx_snvs.c to drivers/imx_snvs.c
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 737ed932 | 12-May-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: fix protocol list querying
Corrects the function reporting the SCMI protocols supported by the platform to not assume 8 protocol IDs at most can be returned. Indeed the number of
drivers: scmi-msg: fix protocol list querying
Corrects the function reporting the SCMI protocols supported by the platform to not assume 8 protocol IDs at most can be returned. Indeed the number of protocol IDs returned depends on the SCMI output buffer size.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| f93760c4 | 12-May-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: fix protocol list response size
Corrects the size of the SCMI response payload when querying the list of the supported protocol. This response payload size depends on the number o
drivers: scmi-msg: fix protocol list response size
Corrects the size of the SCMI response payload when querying the list of the supported protocol. This response payload size depends on the number of protocols enumerated by the response.
Reported-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com> Link: https://lore.kernel.org/lkml/1698297.NAKyZzlH2u@archbook Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 4a382700 | 29-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: move entry functions to generic entry
Moves SCMI channel management entry helper functions from smt.c to generic source file entry.c. This change will ease integration of other SC
drivers: scmi-msg: move entry functions to generic entry
Moves SCMI channel management entry helper functions from smt.c to generic source file entry.c. This change will ease integration of other SCMI shared memory message passing protocol.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 598c63d3 | 10-May-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: rename chan to channel
Renames local variables chan to channel in smt.c.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@li
drivers: scmi-msg: rename chan to channel
Renames local variables chan to channel in smt.c.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| ae07e7ef | 29-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: handle invalid channels
Changes implementation channel_to_smt_hdr() of SMT message management in scmi-msg driver to support being called with invalid channel ID to relax implement
drivers: scmi-msg: handle invalid channels
Changes implementation channel_to_smt_hdr() of SMT message management in scmi-msg driver to support being called with invalid channel ID to relax implementation. On contrary, scmi_smt_init_agent_channel() is expected to be called only for valid SMT channels.
By the way, with this change, scmi_entry_smt() read SMT header status from shared memory after channel in successfully claimed, not before. The change does not affect the communication and makes the implementation more consistent. For consistency, I also rename local variables chan to channel to be more explicit.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|