aboutsummaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* arm: mach-k3: Add weak do_board_detect() to common fileAndrew Davis2023-04-247-15/+20
| | | | | | | | | | | This matches how it was done for pre-K3 TI platforms and it allows us to move the forward declaration out of sys_proto.h. It also removes the need for K3_BOARD_DETECT as one is free to simply override the weak function in their board files as needed. Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
* arm: mach-k3: Move sysfw-loader.h out of mach includesAndrew Davis2023-04-247-6/+6
| | | | | | | | This header is only used locally by K3 init files, no need to have it up with the global mach includes. Move into local includes. Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
* arm: mach-k3: Make release_resources_for_core_shutdown() commonAndrew Davis2023-04-2412-214/+127
| | | | | | | | | This function is the same for each device when it needs to shutdown the R5 core. Move this to the common section and move the remaining device specific ID list to the device hardware include. Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
* arm: mach-k3: Move J721e SoC detection out of common sectionAndrew Davis2023-04-244-26/+25
| | | | | | | | | | | | 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 <afd@ti.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
* arm: mach-k3: Move MSMC fixup to SoC levelAndrew Davis2023-04-242-1/+16
| | | | | | | | | | | | | | 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 <afd@ti.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
* Revert "arm: dts: dra7*/am57xx-idk-evm-u-boot: Add ipu early boot DT changes"Andrew Davis2023-04-245-5/+0
| | | | | | | | 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 <afd@ti.com>
* arm: dts: keystone: Non-functional changes sync with v6.3-rc6Andrew Davis2023-04-2417-156/+159
| | | | | | | 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 <afd@ti.com>
* arm: dts: omap: Non-functional changes sync with v6.3-rc6Andrew Davis2023-04-2420-65/+75
| | | | | | | 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 <afd@ti.com>
* arm: dts: dm8x: Non-functional changes sync with v6.3-rc6Andrew Davis2023-04-245-30/+37
| | | | | | | 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 <afd@ti.com>
* arm: dts: dra7x: Non-functional changes sync with v6.3-rc6Andrew Davis2023-04-2414-220/+226
| | | | | | | 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 <afd@ti.com>
* arm: dts: am3x: Non-functional changes sync with v6.3-rc6Andrew Davis2023-04-2426-291/+298
| | | | | | | 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 <afd@ti.com>
* arm: dts: am437x: Update to IOPAD to sync with v6.3-rc6Andrew Davis2023-04-242-303/+302
| | | | | | | 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 <afd@ti.com>
* arm: dts: am3x: Update IOPAD to PADCONF to sync with v6.3-rc6Andrew Davis2023-04-2415-789/+787
| | | | | | | 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 <afd@ti.com>
* arm: dts: keystone: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-2418-86/+35
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: omap5x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-245-13/+7
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: omap4x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-2410-21/+13
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: omap3x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-2418-80/+30
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: dra7x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-2418-92/+34
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: dm8x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-247-32/+8
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: am57x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-2410-37/+17
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: am43x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-246-29/+11
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* arm: dts: am3x: Update devicetree header comments to sync with v6.3-rc6Andrew Davis2023-04-2419-74/+26
| | | | Signed-off-by: Andrew Davis <afd@ti.com>
* Merge tag 'u-boot-rockchip-20230421' of ↵WIP/23Apr2023Tom Rini2023-04-2329-252/+636
|\ | | | | | | | | | | | | | | | | | | | | | | 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;
| * arm: dts: rockchip: radxa-cm3-io, rock-3a: enable regulators for usbFUKAUMI Naoki2023-04-212-0/+12
| | | | | | | | | | | | | | enable regulators for usb host function Signed-off-by: FUKAUMI Naoki <naoki@radxa.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: rk3588-rock-5b: Include eMMC node in SPL dtbJonas Karlman2023-04-212-2/+14
| | | | | | | | | | | | | | | | Add sdhci node to SPL and u-boot,spl-boot-order. Also add more supported mmc modes and pinctrl. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: rk3568-rock-3a: Enable support for more eMMC modesJonas Karlman2023-04-211-0/+8
| | | | | | | | | | | | | | Add supported mmc modes to rk3568-rock-3a device tree. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * ARM: dts: rockchip: rk3588s-u-boot: Add rng nodeChris Morgan2023-04-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <macromorgan@hotmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Sughosh Ganu <sughosh.ganu@linaro.org>
| * rockchip: rk3588: Sync sdmmc node from linux-nextJonas Karlman2023-04-215-18/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: rk3588: Add support for sdmmc clocks in SPLJonas Karlman2023-04-212-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: rk35xx: Enable fdtoverlay and kernel compressionJonas Karlman2023-04-211-0/+2
| | | | | | | | | | | | | | | | | | 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 <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: rk35xx: Fix boot with a large fdt blobJonas Karlman2023-04-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <jonas@kwiboo.se>
| * rockchip: rk3588-rock-5b: Fix sdmmc bootJonas Karlman2023-04-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: misc: fix misc_read() return checkJohn Keeping2023-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <jonas@kwiboo.se> Signed-off-by: John Keeping <john@metanate.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4Johan Jonker2023-04-216-26/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: rk3188-u-boot: add gpio-rangesJohan Jonker2023-04-211-0/+13
| | | | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: rk3066a-u-boot: add gpio-rangesJohan Jonker2023-04-211-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: rk3288: partial sync pwm nodesJohan Jonker2023-04-211-13/+5
| | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodesJohan Jonker2023-04-211-24/+24
| | | | | | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> # chromebook-jerry Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: rk3288: partial sync edp nodeJohan Jonker2023-04-212-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> # chromebook-jerry Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: rk3288: partial sync grf and pmu nodesJohan Jonker2023-04-211-96/+173
| | | | | | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> # chromebook-jerry Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * arm: dts: rockchip: rk3288: move io-domains nodesJohan Jonker2023-04-215-62/+58
| | | | | | | | | | | | | | | | | | | | | | 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 <jbx6244@gmail.com> Reviewed-by: John Keeping <john@metanate.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> # chromebook-jerry Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: rk3288: Use ft_system_setup instead of ft_board_setupJohn Keeping2023-04-212-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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 <john@metanate.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: Use an external TPL binary on RK3588Jonas Karlman2023-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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 <jonas@kwiboo.se> Reviewed-by: Jagan Teki <jagan@edgeble.ai>
| * board: rockchip: Add rk3588 evbKever Yang2023-04-214-0/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <kever.yang@rock-chips.com> Reviewed-by: Jagan Teki <jagan@edgeble.ai>
* | Merge https://source.denx.de/u-boot/custodians/u-boot-riscvTom Rini2023-04-2221-50/+1373
|\ \ | | | | | | | | | | | | | | | * Add StarFive VisionFive v2 Board support * Support CONFIG_REMAKE_ELF * Code cleanups for RISC-V architecture
| * | riscv: Support CONFIG_REMAKE_ELFSamuel Holland2023-04-201-0/+2
| | | | | | | | | | | | | | | | | | Add flags to tell objcopy what kind of ELF to create. Signed-off-by: Samuel Holland <samuel@sholland.org>
| * | riscv: Update alignment for some sections in linker scriptsBin Meng2023-04-202-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <bmeng@tinylab.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
| * | riscv: spl: Remove relocation sectionsBin Meng2023-04-202-25/+2
| | | | | | | | | | | | | | | | | | | | | U-Boot SPL is not relocable. Drop these relocation sections. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
| * | riscv: Avoid updating the link registerBin Meng2023-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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 <bmeng@tinylab.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
| * | riscv: Change to use positive offset to access relocation entriesBin Meng2023-04-201-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <bmeng@tinylab.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>