summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2023-04-24arm: mach-k3: Move J721e SoC detection out of common sectionAndrew Davis
This belongs in the J721e specific file as it is the only place this is used. Any board level users should use the SOC driver. While here, move the J721e and J7200 SoC IDs out of sys_proto.h and into hardware.h. Use a macro borrowed from Rockchip and add the rest of the SoC IDs for completeness and later use. Signed-off-by: Andrew Davis <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
2023-04-24arm: mach-k3: Move MSMC fixup to SoC levelAndrew Davis
The MSMC fixup is something we do based on SoC, not based on the board. So this fixup does not belong in the board files. Move this to the mach-k3 common file so that it does not have to be done in each board that uses these SoCs. We use ft_system_setup() here instead of ft_board_setup() since it is no longer board level. Enable OF_SYSTEM_SETUP in the configurations that use this to keep functionality the same. Signed-off-by: Andrew Davis <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
2023-04-24Revert "arm: dts: dra7*/am57xx-idk-evm-u-boot: Add ipu early boot DT changes"Andrew Davis
This reverts commit 5717294230bc3578959960003be8984bbbb33642. This does not exist in upstream kernel.org and breaks boot on DRA7-EVMs. Drop the same. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: keystone: Non-functional changes sync with v6.3-rc6Andrew Davis
This is a collection of all the whitespace, renames, comment, and other changes that should not change the DT functionality from Linux v6.3-rc6. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: omap: Non-functional changes sync with v6.3-rc6Andrew Davis
This is a collection of all the whitespace, renames, comment, and other changes that should not change the DT functionality from Linux v6.3-rc6. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: dm8x: Non-functional changes sync with v6.3-rc6Andrew Davis
This is a collection of all the whitespace, renames, comment, and other changes that should not change the DT functionality from Linux v6.3-rc6. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: dra7x: Non-functional changes sync with v6.3-rc6Andrew Davis
This is a collection of all the whitespace, renames, comment, and other changes that should not change the DT functionality from Linux v6.3-rc6. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: am3x: Non-functional changes sync with v6.3-rc6Andrew Davis
This is a collection of all the whitespace, renames, comment, and other changes that should not change the DT functionality from Linux v6.3-rc6. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: am437x: Update to IOPAD to sync with v6.3-rc6Andrew Davis
Several DTS files have been updated in the Linux kernel with a new IOPAD macro. Sync for the same here. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: am3x: Update IOPAD to PADCONF to sync with v6.3-rc6Andrew Davis
Several DTS files have been updated in the Linux kernel with a new PADCONF macro replacing the IOPAD version. Sync for the same here. Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: keystone: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: omap5x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: omap4x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: omap3x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: dra7x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: dm8x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: am57x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: am43x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-24arm: dts: am3x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis
Signed-off-by: Andrew Davis <[email protected]>
2023-04-23Merge tag 'u-boot-rockchip-20230421' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-rockchip - Add rk3588 evb support; - Update pinctrl for rk3568 and rk3588; - Update rk3288 dts; - Update mmc support for rk3568 and rk3588; - Add rng support for rk3588; - Add DSI support for rk3568; - Some other misc fixes in dts, config, driver;
2023-04-22Merge https://source.denx.de/u-boot/custodians/u-boot-riscvTom Rini
* Add StarFive VisionFive v2 Board support * Support CONFIG_REMAKE_ELF * Code cleanups for RISC-V architecture
2023-04-22Merge tag 'u-boot-stm32-20230419' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-stm configs: _ Add usb_pgood_delay for ST boards _ increase malloc size for pre-reloc for stm32mp15 _ Set CONFIG_USB_HUB_DEBOUNCE_TIMEOUT=2s for stm32mp15 dts: _ Add QSPI support on STM32MP13x SoC family _ Add FMC support on STM32MP13x SoC family drivers/machine: _ pinctrl_stm32: Add slew rate support for stm32_pinctrl_get_pin_muxing() _ spi: stm32_qspi: Remove useless struct stm32_qspi_flash _ rawnand: stm32_fmc2: remove unsupported EDO mode _ stm32mp: fix various array bounds checks
2023-04-21arm: dts: rockchip: radxa-cm3-io, rock-3a: enable regulators for usbFUKAUMI Naoki
enable regulators for usb host function Signed-off-by: FUKAUMI Naoki <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21rockchip: rk3588-rock-5b: Include eMMC node in SPL dtbJonas Karlman
Add sdhci node to SPL and u-boot,spl-boot-order. Also add more supported mmc modes and pinctrl. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21rockchip: rk3568-rock-3a: Enable support for more eMMC modesJonas Karlman
Add supported mmc modes to rk3568-rock-3a device tree. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21ARM: dts: rockchip: rk3588s-u-boot: Add rng nodeChris Morgan
Add a node for the trng found on RK3588 SoCs. Changes in V3: - Added Reviewed-By tag. Changes in V2: - None Signed-off-by: Chris Morgan <[email protected]> Reviewed-by: Kever Yang <[email protected]> Acked-by: Sughosh Ganu <[email protected]>
2023-04-21rockchip: rk3588: Sync sdmmc node from linux-nextJonas Karlman
Sync the sdmmc node from linux-next, include required nodes in SPL and imply Kconfig options required for functional sdmmc clk in SPL and U-Boot proper. This make it possible for both SPL and U-Boot proper to configure sdmmc clocks. In SPL, before TF-A is loaded, scru regs is configured, in U-Boot proper a SCMI message is sent to TF-A. Fixes: 95c8656b72dc ("ARM: dts: rockchip: rk3588s-u-boot: Add sdmmc node") Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21rockchip: rk3588: Add support for sdmmc clocks in SPLJonas Karlman
Booting from sdmmc on RK3588 currently works because of a workaround in the device tree, clocks are reordered so that the driver use ciu-sample instead of ciu, and the BootRom initializes sdmmc clocks before SPL is loaded into DRAM. The sdmmc clocks are normally controlled by TF-A using SCMI. However, there is a need to control these clocks in SPL, before TF-A has started. This adds a rk3588_scru driver to control the sdmmc clocks in SPL before TF-A has started, using scru regs. It also adds a small glue driver to bind the scmi clock node to the rk3588_scru driver in SPL. Fixes: 7a474df74023 ("clk: rockchip: Add rk3588 clk support") Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21rockchip: rk35xx: Enable fdtoverlay and kernel compressionJonas Karlman
Add fdtoverlay_addr_r, kernel_comp_addr_r and imply use of OF_LIBFDT_OVERLAY on RK3568 and RK3588 to support fdtoverlay and kernel compression. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-04-21rockchip: rk35xx: Fix boot with a large fdt blobJonas Karlman
The TF-A blobs used to boot RK3568 and RK3588 boards is based on atf v2.3. Mainline atf v2.3 contains an issue that could lead to a crash when it fails to parse the fdt blob being passed as the platform param. An issue that was fixed in atf v2.4. The vendor TF-A seem to suffer from a similar issue, and this prevents booting when fdt blob is large enough to trigger this condition. Fix this by implying SPL_ATF_NO_PLATFORM_PARAM to let u-boot pass a NULL pointer instead of the fdt blob as the platform param. This fixes booting Radxa ROCK 3A after recent sync of device tree. Fixes: 073d911ae64a ("rockchip: rk3568-rock-3a: Sync device tree from linux") Signed-off-by: Jonas Karlman <[email protected]>
2023-04-21rockchip: rk3588-rock-5b: Fix sdmmc bootJonas Karlman
Running U-Boot from a SD-card on ROCK 5 Model B fails to load atf using DMA and prints debug_uart messages. <debug_uart> <debug_uart> U-Boot SPL 2023.04-rc3 (Mar 12 2023 - 00:30:16 +0000) Trying to boot from MMC1 ## Checking hash(es) for config config-1 ... OK ## Checking hash(es) for Image atf-1 ... sha256 error! Bad hash value for 'hash' hash node in 'atf-1' image node mmc_load_image_raw_sector: mmc block read error SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### Use fifo-mode to disable DMA in SPL, add same-as-spl to boot-order and remove DEBUG_UART_ANNOUNCE option to fix this. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21rockchip: misc: fix misc_read() return checkJohn Keeping
misc_read() is documented to return the number of bytes read or a negative error value. The Rockchip drivers currently do not implement this correctly and instead return zero on success or a negative error value. In preparation for fixing the drivers, fix the condition here to only error on negative values. Suggested-by: Jonas Karlman <[email protected]> Signed-off-by: John Keeping <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4Johan Jonker
Sync rk3066/rk3188 DT files from Linux. This is the state as of linux-next v6.2-rc4. New nfc node for MK808 rk3066a. CRU nodes now have a clock property. To prefend dtoc errors a fixed clock must also be included for tpl/spl in the rk3xxx-u-boot.dtsi file. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: rk3188-u-boot: add gpio-rangesJohan Jonker
The gpio node names are made generic, but without gpio bank ID. Add gpio-ranges to rk3188-u-boot.dtsi for now till a better method is found. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: rk3066a-u-boot: add gpio-rangesJohan Jonker
The gpio node names are made generic, but without gpio bank ID. Add gpio-ranges to rk3066a-u-boot.dtsi for now till a better method is found. Disable gpio6 as the driver gives an error code on return as status. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: rk3288: partial sync pwm nodesJohan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the pwm nodes. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodesJohan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the vop/lvds/mipi/hdmi nodes. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Simon Glass <[email protected]> # chromebook-jerry Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: rk3288: partial sync edp nodeJohan Jonker
The rk3288 edp node has a phy node in Linux with a clock property while current U-Boot driver expects this clock on position index 1. Move U-Boot-specific DT clock properties to rk3288-u-boot.dtsi and partially sync the edp node. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Simon Glass <[email protected]> # chromebook-jerry Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: rk3288: partial sync grf and pmu nodesJohan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the grf and pmu nodes. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Simon Glass <[email protected]> # chromebook-jerry Reviewed-by: Kever Yang <[email protected]>
2023-04-21arm: dts: rockchip: rk3288: move io-domains nodesJohan Jonker
In order to better compare the Linux rk3288.dtsi version with the U-Boot version move the io-domains nodes. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: John Keeping <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Simon Glass <[email protected]> # chromebook-jerry Reviewed-by: Kever Yang <[email protected]>
2023-04-21rockchip: rk3288: Use ft_system_setup instead of ft_board_setupJohn Keeping
ft_board_setup() should be availble for use in board files but using it in the rk3288 machine file blocks this functionality. ft_system_setup() is the more appropriate function to use in a machine definition. Signed-off-by: John Keeping <[email protected]> Reviewed-by: Kever Yang <[email protected]>
2023-04-21rockchip: Use an external TPL binary on RK3588Jonas Karlman
There is no support to initialize DRAM on RK3588 SoCs using U-Boot TPL and instead an external TPL binary must be used to generate a bootable u-boot-rockchip.bin image. Enable ROCKCHIP_EXTERNAL_TPL by default for RK3588, add build steps for RK3588 to documentation and clean up CONFIG_BINMAN_FDT options. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
2023-04-21board: rockchip: Add rk3588 evbKever Yang
rk3588 evb1 v10 is a evalution board from Rockchip, it is a dev board for rockchip and also a reference board for board vendors. Hardware: SoC: RK3588 DRAM: LPDDR4X 8GB Debug: UART2 via USB PCIe: 3x4 *1 SATA *2 HDMI out *2 HDMI IN *1 USB2.0 Host *2 USB3.0 Host *1 Type C *1 MIPI DSI panel dts Sync from Linux v6.2. Signed-off-by: Kever Yang <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
2023-04-20riscv: Support CONFIG_REMAKE_ELFSamuel Holland
Add flags to tell objcopy what kind of ELF to create. Signed-off-by: Samuel Holland <[email protected]>
2023-04-20riscv: Update alignment for some sections in linker scriptsBin Meng
Some sections in the linker scripts are aligned to 4 bytes, which may cause misaligned exception on some platforms, e.g.: clearing the bss section on 64-bit hardware if __bss_start does not start from a naturally 8 bytes aligned address. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2023-04-20riscv: spl: Remove relocation sectionsBin Meng
U-Boot SPL is not relocable. Drop these relocation sections. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2023-04-20riscv: Avoid updating the link registerBin Meng
board_init_r does not return for U-Boot SPL hence there is no need to update the link register when jumping to board_init_r. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2023-04-20riscv: Change to use positive offset to access relocation entriesBin Meng
The codes currently skip the very first relocation entry, and have an inaccurate comment "skip first reserved entry" indicating that the first entry is reserved, but later it references the elements in the first relocation entry using a minus offset. Change to use a positive offset so that there is no need to skip the first relocation entry. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2023-04-20riscv: Optimize loading relocation typeBin Meng
't5' already contains relocation type so don't bother reloading it. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Rick Chen <[email protected]>
2023-04-20riscv: Optimize source end address calculation in start.SBin Meng
The __bss_start is the source end address hence load its address directly into register 't2' for optimization. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Rick Chen <[email protected]>