summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-09imx: ventana: add GW5910 supportTim Harvey
The GW5910 is a Single Board Computer based on the NXP i.MX6Q/DL SoC with the following features: - DDR3 DRAM - NAND FLASH (256MiB or 2048MiB) - microSD socket - Gateworks System Periperhal Controller - front panel LED's - front panel pushbutton - RS232 connector (2x UARTs) - Digital I/O connector (I2C/GPIO) - SPI connector - u-blox Zoe-M8Q GPS - LIS2DE12 Accellerometer - TI CC1352 ARM Cortex-M4 multiprotocol sub-1GHz / 2.4GHz wireless MCU - On-board brcmfmac WiFi and BT module - RGMII RJ45 GbE - 1x MiniPCIe socket with PCIe/USB 2.0 - 1x MiniPCIe socket with USB 2.0 and nanoSIM socket - Passive PoE and wide-range DC power supply Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: use dt for hwmonTim Harvey
Use dt-bindings for GSC hwmon devices. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: remove hard-coded flexcan standby pinTim Harvey
Flexcan pinmux is configured in kernel dt. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: remove hard-coded analog video codec enableTim Harvey
Analog video codec enable is configured in kernel dt. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: remove hard-coded USB OTG pinmuxTim Harvey
pinmux is now done via dt. Add missing OTG_OC pinmux for boards that use it. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: remove hard-coded PCI resetTim Harvey
PCIe reset configuration is handled via dt now. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: fix UMS supportTim Harvey
The Gateworks Ventana boards have always had usb0=usbh1 and usb1=usbotg because OTG is often subloaded on these boards and a bit in the EEPROM which flagging that OTG is subloaded is used to remove the dt node via the alias. U-Boot DM_USB UMS requires the usb0 alias be assigned to the usbotg so fix the usb0 alias in order for UMS to work. Fixes 72c46327f03f: ("imx: ventana: enable dm support for USB") Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: remove hard-coded USB HUBRST# gpio configTim Harvey
The USB HUB reset is handled via dt now. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: replace hard-coded LED config with dt based configTim Harvey
Use device-tree LED config instead of hard-coded board-specific config. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: remove nand field from common ventana structTim Harvey
NAND fdt fixups can be performed without knowing if NAND is present. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: move wdog/uhs-i board/revision dt fixupsTim Harvey
Move board/revision specific dt fixups for WDOG and UHS-I features so that we can call them early for U-Boot control dt as well. Additionally drop a deprected non-mainline dt-prop fixup regarding HDMI input format. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09imx: ventana: ignore EEPROM config when checking for NAND supportTim Harvey
EEPROM bits no longer indicate support for NAND so instead use hard-coded value from board config struct. Signed-off-by: Tim Harvey <[email protected]>
2021-08-09board: colibri_vf: fix compiling warningOleksandr Suvorov
This patch fixes the following compiler warning: ============= board/toradex/colibri_vf/colibri_vf.c: In function 'ft_board_setup': board/toradex/colibri_vf/colibri_vf.c:436:6: warning: unused variable 'ret' [-Wunused-variable] ============= Fixes: be3f1a56bf8 ("video: fsl_dcu_fb: add DM_VIDEO support") Signed-off-by: Oleksandr Suvorov <[email protected]>
2021-08-09board: colibri_imx6: add board_fit_config_name_match to support FIT in SPLMing Liu
Only one dtb is currently supported, so match with imx6-colibri. Signed-off-by: Ming Liu <[email protected]> Signed-off-by: Oleksandr Suvorov <[email protected]>
2021-08-09board: colibri-imx8x: update building documentationOleksandr Suvorov
Update the documentation on how to build the u-boot image for Colibri iMX8QXP, adding support of V1.0D revision of the module. Signed-off-by: Oleksandr Suvorov <[email protected]>
2021-08-09board: toradex: make USB PID from config block optionalStefan Agner
If config block support is enabled, USB gadget modes unconditionally use Toradex Product ID as USB PID. Some applications might prefer a different and/or static USB PID. Add a Kconfig configuration option to descide whether to use USB PID from config block or the fallback config option CONFIG_G_DNL_PRODUCT_NUM. Signed-off-by: Stefan Agner <[email protected]> Signed-off-by: Oleksandr Suvorov <[email protected]>
2021-08-09board: colibri_imx7: use SDP if USB serial downloader has been usedStefan Agner
In case USB serial downloader has been used to load U-Boot start the serial download protocol (SDP) emulation. This allows to download complete images such as Toradex Easy Installer over USB SDP as well. This code uses the boot ROM provided boot information to reliably detect USB serial downloader. Signed-off-by: Stefan Agner <[email protected]> Signed-off-by: Oleksandr Suvorov <[email protected]>
2021-08-09mx6cuboxi: Fix the console variableFabio Estevam
Do not pass the console baudrate to the 'console' variable to avoid the baudrate being passed twice when extlinux.conf contains the standard: console=${console},${baudrate} format. cat /proc/cmdline root=PARTUUID=00000000-01 rootwait rw console=ttymxc0,115200,115200 Signed-off-by: Fabio Estevam <[email protected]>
2021-08-09mx6cuboxi: Fix the mmc device for the rootfsFabio Estevam
After the conversion to DM_MMC, the rootfs becomes mmc 1, so adjust it accordingly. Signed-off-by: Fabio Estevam <[email protected]>
2021-08-08dtoc: Correct the intarray-widening test caseSimon Glass
This case was intended to check that widening an int array with an int does nothing. Fix it. Reported-by: Walter Lozano <[email protected]> Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Walter Lozano <[email protected]>
2021-08-08patman: Avoid blank lines between tagsSimon Glass
In some cases 'patman status' leaves a blank line between the sign-off and the tags it collects from patchwork. Fix this and add a test. Signed-off-by: Simon Glass <[email protected]>
2021-08-08dm: core: Don't allow uclass use before readySimon Glass
At present it is possible to call uclass_get() before driver model is inited. In fact this happens on x86 boards which use Intel FSPv1, since mrccache_get_region() tries to get the SPI flash device very early during init. This has always been undefined behaviour. Previously it generally worked, i.e. returned an error code without crashing, because gd->uclass_root_s is zeroed and the uclass can be added despite driver model not being ready, due to the way lists are implemented. With the change to use a gd->uclass_root pointer, this no-longer works. For example, it causes a hang on minnowmax. Fix this by adding a check that driver model is ready when uclass_get() is called. This function is called in the process of locating any device, so it is a good place to add the check. This fixes booting on minnowmax. Signed-off-by: Simon Glass <[email protected]> Fixes: 8a715530bb1 ("dm: core: Allow the uclass list to move")
2021-08-08dm: migrate the dm_warn to use the log macroPatrick Delaunay
Migrate the dm_warn function to log macro with LOGC_DM category and LOGL_WARNING level. This macro allows filtering with log command and allows output on all log backend. Signed-off-by: Patrick Delaunay <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2021-08-08Revert "arm: bootm: Disable LMB reservation for command line and board info ↵Jan Kiszka
on arm64" This reverts commit 2359fa7a87848626bcbd3399e92c657595880cd7. While the goal is valid and there is surely unused memory in that area, we also have a lot of crucial things still located at the top-of-memory while running lmb_alloc_base. Such things are the page table (tlb_addr), relocated U-Boot and the active stack. Possibly more. So this patch was premature, we will need relocations of those things first if we want to use the range. Fixes booting on the IOT2050, but likely also on other boards. It got stuck on relocating the FDT - over the relocated U-Boot code. Signed-off-by: Jan Kiszka <[email protected]>
2021-08-08Merge https://source.denx.de/u-boot/custodians/u-boot-shTom Rini
2021-08-08ARM: renesas: Set CONFIG_SYS_TEXT_BASE=0x0 on R-Car Gen3Marek Vasut
Since R-Car Gen3 already enables position independent build, also set CONFIG_SYS_TEXT_BASE=0x0 to finalize the switch. This is possible since 534f0fbd65 ("arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y") fixed current env_get_char() crash with CONFIG_SYS_TEXT_BASE=0x0 . This change permits us to start U-Boot from any location in DRAM instead of specific TEXT_BASE. Signed-off-by: Marek Vasut <[email protected]>
2021-08-08ARM: renesas: Mallocate bootparams on Gen3Marek Vasut
The bootparams do not have to be at fixed location, they can be dynamically mallocated instead. Make it so to get rid of another fixed assignment. Signed-off-by: Marek Vasut <[email protected]> Cc: Biju Das <[email protected]> Cc: Lad Prabhakar <[email protected]>
2021-08-08ARM: renesas: Turn on PIE for Gen3Marek Vasut
Turn on PIE, so that the U-Boot binary can be started from any arbitrary location in DRAM instead of a predefined fixed one. Note that this patch is not setting SYS_TEXT_BASE=0x0 yet, since that triggers relocation bugs in env code that are yet to be fixed. Signed-off-by: Marek Vasut <[email protected]> Cc: Biju Das <[email protected]> Cc: Lad Prabhakar <[email protected]>
2021-08-08ARM: rmobile: Remove default bootargsMarek Vasut
The bootargs in all those boards are a copy of initial example bootargs, just remove those as they make little sense in most configurations. Signed-off-by: Marek Vasut <[email protected]>
2021-08-06Merge tag 'video-2021-08-05' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-video - add display driver for ST-Ericsson MCDE - drop legacy CONFIG_VIDEO dependency for Hitachi tx18d42vm
2021-08-06Merge branch '2021-08-05-drop-almost-all-pre-dm_pci-code'Tom Rini
- Remove the majority of our pre-DM_PCI PCI code as DM_PCI is true in almost all cases now.
2021-08-06pci: Drop migration methodSimon Glass
Migration is complete. Drop the message. Signed-off-by: Simon Glass <[email protected]>
2021-08-06ppc: Drop t4qds and b4860qds referencesSimon Glass
These boards have been removed. Drop the config file and other references. Signed-off-by: Simon Glass <[email protected]>
2021-08-06ppc: Drop idt8t49n222a_serdes_clk driverSimon Glass
This is not used. Drop it. Signed-off-by: Simon Glass <[email protected]>
2021-08-06pci: ppc: Drop ftpci100 driverSimon Glass
This is not used in U-Boot at present. Drop it and related config options. Signed-off-by: Simon Glass <[email protected]>
2021-08-06pci: Drop pci_init_board()Simon Glass
With the conversion to driver model, this is not needed now. Drop it. Signed-off-by: Simon Glass <[email protected]>
2021-08-06distro_bootcmd: Update DM_PCI checkSimon Glass
Now that driver model is always used, check for PCI. Signed-off-by: Simon Glass <[email protected]> [trini: Update logic, reword] Signed-off-by: Tom Rini <[email protected]>
2021-08-06pci: sata_sil: Drop DM_PCI checksSimon Glass
We don't need these checks anymore since when PCI is enabled, driver model is always used. Drop them. Signed-off-by: Simon Glass <[email protected]>
2021-08-06pci: arm: mvebu: Drop DM_PCI check from arch_early_init_rSimon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Use CONFIG_PCI instead. Signed-off-by: Simon Glass <[email protected]> [trini: Correct macro usage) Signed-off-by: Tom Rini <[email protected]>
2021-08-06imx28-evk: Import devicetree file from LinuxFabio Estevam
Import the imx28-evk devicetree files from Linux kernel version 5.11-rc7. This is in preparation for converting the mx28evk_defconfig target to driver model. Signed-off-by: Fabio Estevam <[email protected]>
2021-08-06zynqmp_firmware: Add zynqmp firmware related enumsT Karthik Reddy
Add enums for pm node id's, pm ioctl id's, tapdelay types, dll reset types Signed-off-by: T Karthik Reddy <[email protected]> Signed-off-by: Ashok Reddy Soma <[email protected]> Signed-off-by: Michal Simek <[email protected]>
2021-08-06mmc: sdhci: Change prototype of set_delay to return errorsAshok Reddy Soma
set_delay() has return type as void. If there are any errors while setting tapdelay's it won't be able to return them. Change the prototype of set_delay() in sdhci_ops structure and return the errors from wherever it is called. Signed-off-by: Ashok Reddy Soma <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]> Signed-off-by: Michal Simek <[email protected]>
2021-08-06mmc: zynq_sdhci: Return errors from arasan_sdhci_set_tapdelayAshok Reddy Soma
Change return type of arasan_sdhci_set_tapdelay() to int, to facilitate returning errors. Get return values from input and output set clock phase functions inside arasan_sdhci_set_tapdelay() and return those errors. Signed-off-by: T Karthik Reddy <[email protected]> Signed-off-by: Ashok Reddy Soma <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]> Signed-off-by: Michal Simek <[email protected]>
2021-08-06reset: zynqmp: Add reset controller for ZynqMP SoCMichal Simek
Add firmware based reset controller for Xilinx ZynqMP SoC to let other drivers to call reset functions. Driver is only tested on Xilinx ZynqMP but support for Xilinx Versal can be simply added. That's why reset_id and nr_reset are assigned in probe folder. Driver is inpired by driver from Linux kernel. Signed-off-by: Michal Simek <[email protected]>
2021-08-06xilinx: zynqmp: Enable CMD_RTC command with Zynqmp RTC driverMichal Simek
Enable RTC command to be able to check available. And also enable ZynqMP RTC driver to be possible to use by default. Here is the list when both drivers are enabled: ZynqMP> rtc list RTC #0 - rtc_emul RTC #1 - rtc@ffa60000 Signed-off-by: Michal Simek <[email protected]>
2021-08-06rtc: zynqmp: Add support for ZynqMP RTCMichal Simek
The whole driver logic is taken from Linux kernel but only set/get/reset functions are implemented. When device is power off RTC is power out of battery. Signed-off-by: Michal Simek <[email protected]>
2021-08-06cmd: date: rtc: Update command to read the first RTC with seq 0Michal Simek
RTCs are using sequence number defined in aliases node. Date command with DM_RTC enabled is looking for the first RTC with index 0. But when RTC_EMULATION is enabled it gets likely most of the time index 0 even when system has rtc0 device via aliases node and gets sequence number 0. That's why extend the code to look for sequence 0 number first. If this fails continue to use existing device with index 0. Signed-off-by: Michal Simek <[email protected]>
2021-08-06dm: rtc: uclass: Add flag to control sequence numberingMichal Simek
RTCs are using aliases for sequences. That's why enable DM_UC_FLAG_SEQ_ALIAS for exact RTC indentification. The same flag is used by a lot of other uclasses like mmc, pci, serial, spi, timer, tpm, etc. Signed-off-by: Michal Simek <[email protected]>
2021-08-06firmware: xilinx: Use explicit values for all enum valuesMichal Simek
Based on discussion at https://lore.kernel.org/r/[email protected] we got recommendation to use explicit values for all enum values. The patch is following this recommendation. Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/daeb67ded45d8a8f6a96717d1fb9c84439dd2ae8.1612361627.git.michal.simek@xilinx.com
2021-08-06xilinx: zynqmp: Add support for runtime dfu_alt_info setupMichal Simek
The main reason for this to be implemented is capsule update. Two memories are supported and tested which is MMC FAT based and QSPI based. For creating capsule these commands are used: ./tools/mkeficapsule --raw spl/boot.bin --index 1 capsule1.bin ./tools/mkeficapsule --raw u-boot.itb --index 2 capsule2.bin Then transfer to SD card where these commands run: load mmc 0 10000000 capsule1.bin efidebug capsule update -v 10000000 load mmc 0 10000000 capsule2.bin efidebug capsule update -v 10000000 Depends on the boot device used are binaries loaded to qspi or mmc fat partition. Also multiboot register is handled to make sure that the same location(id) is used as image which is upgraded. Two locations are used by purpose for SPL flow. If only boot.bin is used create only one capsule. Signed-off-by: Michal Simek <[email protected]>