summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-04moveconfig: Fix misc pylint warningsSimon Glass
Fix various remaining pylint warnings. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Use an encoding with open()Simon Glass
Fix pylint warnings about needing an explicit character encoding. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Correct list-comprehension warningsSimon Glass
Correct some pylint warnings about needing to use list comprehension. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Correct use of members not declared in __init__()Simon Glass
Fix these pylint warnings. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Correct non-snake variables namesSimon Glass
Correct some variable names that do not conform to snake case, with the three-character minimum. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Correct unused variablesSimon Glass
Fix pylint warnings about unused variables. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Use f strings where possibleSimon Glass
Avoid pylint warnings by using 'f' strings where possible. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Correct parameter-type warningsSimon Glass
Fix pylint warnings related to parameter types. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Correct some regular-expression stringsSimon Glass
Use the 'r' prefix for these strings to avoid pylint warnings. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Drop suspicious boardsSimon Glass
This code isn't needed anymore. Drop it. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Drop check_defconfig() and update_dotconfig()Simon Glass
These functions are not needed anymore. Drop them. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Drop CONFIG-moving codeSimon Glass
As a step towards cleaning out old code, drop most of the code that moves CONFIG options to Kconfig. This includes parse_one_config(). Drop the ACTION_... values as well, since they are no-longer used. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Drop unused cleanup optionsSimon Glass
Cleaning up the README and config.h files are not needed now, since we don't have any CONFIG options to convert. Drop this code. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Correct ordering of asteval importSimon Glass
This should be after the standard imports. Move it to avoid a lot of pylint warnings. Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Avoid deprecation warning for setDaemonSimon Glass
Use the recommended new way of setting a thread to be a daemon. This avoids a warning: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead Signed-off-by: Simon Glass <[email protected]>
2023-10-04moveconfig: Drop -H optionSimon Glass
Drop this option, which is no longer needed now that we have converted all CONFIG options to Kconfig. Signed-off-by: Simon Glass <[email protected]>
2023-10-04dm: core: Adjust dump-sorting to get stats only when neededSimon Glass
If we are not sorting the tree we don't need to get the stats. Adjust the code to avoid the wasted time. Signed-off-by: Simon Glass <[email protected]>
2023-10-04Merge tag 'u-boot-stm32-20231004' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-stm STM32 MCU: _ alignment with kernel DT v6.5 for stm32f429 and stm32f746 _ rework way of displaying ST logo for stm32f746-disco and stm32f769-disco STM32 MPU: _ alignment with kernel DT v6.6-rc1 _ add RNG support for stm32mp13 _ add USB, USB boot and stm32prog command support for stm32mp13 _ add support of USART1 clock for stm32mp1 _ only print RAM and board code with SPL_DISPLAY_PRINT flag for stm32mp1 _ rename update_sf to dh_update_sd_to_sf and add dh_update_sd_to_emmc for stm32mp15xx DHCOR [ Fix merge conflict at board/st/common/stm32mp_dfu.c ] Signed-off-by: Tom Rini <[email protected]>
2023-10-04board: st: common: cleanup dfu supportPatrick Delaunay
split the file stm32mp_dfu.c in two files to simplify the Makefile - stm32mp_dfu.c: required by CONFIG_SET_DFU_ALT_INFO - stm32mp_dfu_virt.c: required by CONFIG_DFU_VIRT for stm32prog command or VIRT device for PMIC for CONFIG_SET_DFU_ALT_INFO. This patch also remove some remaining #ifdef CONFIG and avoid compilation error when CONFIG_SET_DFU_ALT_INFO is not activated. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-10-04configs: stm32mp13: add support of usb bootPatrick Delaunay
Add support of USB key boot in distro boot command. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-10-04configs: stm32mp13: activate command stm32progPatrick Delaunay
Activate the command stm32prog with CONFIG_CMD_STM32MPROG. The CONFIG_SET_DFU_ALT_INFO is also activated to support the required weak functions for the DFU virtual backen defined in board/st/common/stm32mp_dfu.c. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-10-04configs: stm32mp13: Enable USB related flagsPatrice Chotard
Enable USB related flags. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-10-04ARM: dts: stm32: force b-session-valid for otg on stm32mp135f-dk boardFabrice Gasnier
stm32mp135f-dk board has a type-c connector to retrieve the connection state. For now, simply force an active peripheral mode in u-boot for flashing. Signed-off-by: Fabrice Gasnier <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-10-04ARM: dts: stm32mp: alignment with v6.6-rc1Patrice Chotard
Device tree alignment with Linux kernel v6.6.rc1. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-10-04ARM: stm32: Add dh_update_sd_to_emmc to STM32MP15xx DHCORMarek Vasut
Add script which installs U-Boot binaries from SD card to eMMC and makes the eMMC bootable. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: stm32: Rename update_sf to dh_update_sd_to_sf on STM32MP15xx DHCORMarek Vasut
Align the script name with DH i.MX8MP DHCOM script name. Add backward compatibility script to avoid breaking user scripts. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04clk: stm32mp1: Add support for USART1 clockAnatolij Gustschin
Add USART1 clock parents and mux configuration. This allows support for configuring the USART1 as the serial console in SPL and U-Boot via device tree. Without this patch the SPL with usart1 serial console enabled crashes because it can not find the clock specified in the device tree for usart1. Signed-off-by: Anatolij Gustschin <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04board: dh_stm32mp1: Only print board code with CONFIG_SPL_DISPLAY_PRINTHarald Seiler
Ensure that the SoM and board code information is only printed when CONFIG_SPL_DISPLAY_PRINT is set. Signed-off-by: Harald Seiler <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
2023-10-04ram: stm32mp1: Only print RAM config with CONFIG_SPL_DISPLAY_PRINTHarald Seiler
Ensure that the RAM configuration line is only printed when CONFIG_SPL_DISPLAY_PRINT is set. Signed-off-by: Harald Seiler <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: add RNG node for STM32MP13x platformsGatien Chevallier
Add RNG node for STM32MP13x platforms. Signed-off-by: Gatien Chevallier <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04rng: stm32: Implement custom RNG configuration supportGatien Chevallier
STM32 RNG configuration should best fit the requirements of the platform. Therefore, put a platform-specific RNG configuration field in the platform data. Default RNG configuration for STM32MP13 is the NIST certified configuration [1]. While there, fix and the RNG init sequence to support all RNG versions. [1] https://csrc.nist.gov/projects/cryptographic-module-validation-program/entropy-validations/certificate/53 Signed-off-by: Gatien Chevallier <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04rng: stm32: add error concealment sequenceGatien Chevallier
Seed errors can occur when using the hardware RNG. Implement the sequences to handle them. This avoids irrecoverable RNG state. Try to conceal seed errors when possible. If, despite the error concealing tries, a seed error is still present, then return an error. A clock error does not compromise the hardware block and data can still be read from RNG_DR. Just warn that the RNG clock is too slow and clear RNG_SR. Signed-off-by: Gatien Chevallier <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04rng: stm32: add RNG clock frequency restraintGatien Chevallier
In order to ensure a good RNG quality and compatibility with certified RNG configuration, add RNG clock frequency restraint. Signed-off-by: Gatien Chevallier <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04rng: stm32: Implement configurable RNG clock error detectionGatien Chevallier
RNG clock error detection is now enabled if the "clock-error-detect" property is set in the device tree. Signed-off-by: Gatien Chevallier <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04configs: default activate CONFIG_RNG_STM32 for STM32MP13x platformsGatien Chevallier
Default embed this configuration. If OP-TEE PTA RNG is exposed, it means that the RNG is managed by the secure world. Therefore, the RNG node should be disabled in the device tree as an access would be denied by the hardware firewall. Signed-off-by: Gatien Chevallier <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04rng: stm32: rename STM32 RNG driverGatien Chevallier
Rename the RNG driver as it is usable by other STM32 platforms than the STM32MP1x ones. Rename CONFIG_RNG_STM32MP1 to CONFIG_RNG_STM32 Signed-off-by: Gatien Chevallier <[email protected]> Reviewed-by: Grzegorz Szymaszek <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32f429: put can2 in secondary modeDario Binacchi
commit 6b443faa313c519db755ff90be32758fd9c66453 Linux upstream. This is a preparation patch for the upcoming support to manage CAN peripherals in single configuration. The addition ensures backwards compatibility. Signed-off-by: Dario Binacchi <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: add pin map for CAN controller on stm32f4Dario Binacchi
commit 559a6e75b4bcf0fc9e41d34865e72cf742f67d8e Linux upstream. Add pin configurations for using CAN controller on stm32f469-disco board. They are located on the Arduino compatible connector CN5 (CAN1) and on the extension connector CN12 (CAN2). Signed-off-by: Dario Binacchi <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: add CAN support on stm32f429Dario Binacchi
commit 7355ad1950f41e755e6dc451834be3b94f82acd4 Linux upstream. Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The chip contains two CAN peripherals, CAN1 the primary and CAN2 the secondary, that share some of the required logic like clock and filters. This means that the secondary CAN can't be used without the primary CAN. Signed-off-by: Dario Binacchi <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04configs: stm32f769-disco: Enable VIDEO_LOGO flagPatrice Chotard
The patch removes the legacy mode of displaying the ST logo and adopts the approach introduced by the commit 284b08fb51b6 ("board: stm32mp1: add splash screen with stmicroelectronics logo"). Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-10-04Remove the hardcoded ST logo no longer in useDario Binacchi
The patch removes the hardcoded ST logo from the code, as it is no longer used. Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04board: stm32f746-disco: refactor the display of the ST logoDario Binacchi
The patch removes the legacy mode of displaying the ST logo and adopts the approach introduced by the commit 284b08fb51b6 ("board: stm32mp1: add splash screen with stmicroelectronics logo"). It was necessary to use a specific logo for the stm32f746-disco board. Furthermore, the previous version didn't properly center the logo, hiding its upper part. Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04configs: stm32f746-disco: limit resolution to 480x272Dario Binacchi
The patch fixes the y-resolution, which was causing the creation of a framebuffer larger than actually needed, resulting in memory waste. Fixes: cc1b0e7b8e55b ("board: Add display to STM32F746 SoC discovery board") Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: support display on stm32f746-disco boardDario Binacchi
The patch applies the changes from Linux commit 10a970bc3ebfa ("ARM: dts: stm32: support display on stm32f746-disco board") and removes the same settings from stm32f746-disco-u-boot.dtsi. Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f746-discoDario Binacchi
commit e4e724099f04072053cf411456e3e9aae48c4af1 Linux upstream. In the schematics of document UM1907, the power supply for the micro SD card is the same 3v3 voltage that is used to power other devices on the board. By generalizing the name of the voltage regulator, it can be referenced by other nodes in the device tree without creating misunderstandings. This patch is preparatory for future developments. Signed-off-by: Dario Binacchi <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: add pin map for LTDC on stm32f7Dario Binacchi
commit ba287d1a0137702a224b1f48673d529257b3c4bf Linux upstream. Add pin configurations for using LTDC (LCD-tft Display Controller) on stm32f746-disco board. Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Raphaël Gallais-Pou <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: add ltdc support on stm32f746 MCUDario Binacchi
The patch applies the changes from Linux commit 008ef8b3a1a00 ("Add LTDC (Lcd-tft Display Controller) support") and removes the same settings from stm32f746-disco-u-boot.dtsi. Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: add touchscreen on stm32f746-disco boardDario Binacchi
commit f0215440069c4fb12958d2d321e05faa2708a11d Linux upstream. The patch adds support for touchscreen on the stm32f746-disco board. Signed-off-by: Dario Binacchi <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: add pin map for i2c3 controller on stm32f7Dario Binacchi
commit 0637e66f8250c61f75042131fcb7f88ead2ad436 Linux upstream. Add pin configurations for using i2c3 controller on stm32f7. Signed-off-by: Dario Binacchi <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
2023-10-04ARM: dts: stm32: use RCC macro for CRC node on stm32f746Dario Binacchi
commit 7a5f349e592c254f3c1ac34665b6c3905576efc2 Linux upstream. The patch replaces the number 12 with the appropriate numerical constant already defined in the file stm32f7-rcc.h. Signed-off-by: Dario Binacchi <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>