Commit Graph

90002 Commits

Author SHA1 Message Date
Yilin Sun 85e7731ec8
arm: dts: tlt113i: name mmc based on device order.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-21 13:41:42 +08:00
Yilin Sun 373439ec6e
configs: TLT113: support booting from MMC2.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-21 13:41:10 +08:00
Yilin Sun 7983de7e9d
config: Tronlong TLT113: Add eMMC variant defconfig.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-21 10:35:58 +08:00
Yilin Sun f40e65a1fa
arch: arm: dts: enabled MMC 0/2 boot for TLT113 SoM.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-21 10:35:08 +08:00
Yilin Sun 36e82a0265
configs: tlt113i-minievm: Added env ubi partition.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 09:36:38 +08:00
Yilin Sun 738ce1e4fd
arm: dts: Add fixed partition for TLT113-i SPI NAND.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 09:34:49 +08:00
Yilin Sun 9aa63a2ab5
drivers: mtd: nand: Add FORESEE F35SQA001G/002G support.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 09:34:15 +08:00
Yilin Sun 4eb8e11576
configs: sun8i-t113i-tronlong-tlt113-minievm: Add UBI CMD.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 00:21:30 +08:00
Yilin Sun ffb7ad153e
configs: Add defconfig for Tronlong TLT113-MiniEVM.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 00:15:42 +08:00
Yilin Sun a5ec3a143d
arm: dts: sun8i-t113i-tronlong-tlt113-minevm: Initial support
This patch add support for Tronlong TLT113-MiniEVM board.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 00:14:37 +08:00
Yilin Sun 0afbe90ad2
arm: dts: sun8i-t113i: Add dts.
T113-i is an industrial-grade DRAM-less SoC which is pretty much
identical to T113-S3 or R528.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 00:12:37 +08:00
Yilin Sun aca390cb24
sunxi: Enable additional UART2 pinmux on PORTG.
This patch enables additional pinmux for UART2 on PORT G PG17/PG18. This
is available on certain sun8i devices, e.g. T113

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-01-11 00:11:11 +08:00
Jookia 89e8047f7a arm: dts: sun8i-t113s-mangopi-mq-r-t113: Add USB nodes 2023-12-08 20:57:06 +11:00
Jookia e27886d3c4 musb-new: Fix compilation for device model 2023-12-08 20:57:06 +11:00
Jookia 0fe6f1a12f spi-sunxi: Don't set clock divider on D1
This sets the SPI clock to 24MHz which seems to work fine.
2023-12-08 20:57:05 +11:00
Jookia 25cc03547d configs: Enable MTD, SPINAND flash and UBI on Mango Pi MQ-R 2023-12-08 20:57:05 +11:00
Jookia 1cd3de2337 spi: Add support for sun50i-r329-spi controller 2023-12-08 20:57:05 +11:00
Jookia c9c4031f35 configs: Enable loading FIT images on Mango Pi MQ-R 2023-12-08 20:57:05 +11:00
Jookia a2b04d91d2 spl_ubi: Support loading FIT from volume in RAM 2023-12-08 20:57:05 +11:00
Jookia 701910350f configs: Enable UBI in Mango Pi MQ-R 2023-12-08 20:57:05 +11:00
Jookia 0d323b1397 spl_ubi: Support SPINAND boot 2023-12-08 20:57:05 +11:00
Jookia 50b08adeeb nand: Add spinand_ helper functions and use them in sunxi 2023-12-08 20:57:05 +11:00
Jookia c09732de8d sunxi: Add and use SPL_SPINAND configuration options 2023-12-08 20:57:05 +11:00
Jookia 6a39611c35 ubi: Depends on MTD 2023-12-08 20:57:05 +11:00
Jookia 9a65cadec8 configs: Enable SPI NAND booting on the Mango Pi MQ-R 2023-12-08 20:57:05 +11:00
Jookia c680e9576e sunxi: Support for SPI booting on the T113 2023-12-08 20:57:05 +11:00
Jookia 2c97cf9958 Add BOOT_DEVICE_SPINAND option and use it for sunxi 2023-12-08 20:57:05 +11:00
Jookia cd95fd413d mach-sunxi: Separate boot device and boot position
While MMC1 and MMC2 each currently have only one upper byte possibility,
SPI NAND has quite a few. To solve this, split up the byte handling across
two functions in preparation for SPI NAND support.

I have not tested this patch to validate that MMC SPL offsets are working.
It looks like it should work though.
2023-12-08 20:57:05 +11:00
Jookia bea38baf59 arm: dts: sun8i-t113s-mangopi-mq-r-t113: Add SPI NAND node
The Mango Pi MQ R has an unpopulated spot for a SPI NAND chip.
Add it to the device tree so I can use it.
2023-12-08 20:57:05 +11:00
Jookia dcac3831d4 configs: mangopi_mq_r_defconfig: Use UART2 2023-12-08 20:57:05 +11:00
Jookia 401df2d803 arm: dts: sunxi-d1s-t113-mangopi-mq-r.dtsi: Use UART2
UART3 needs to be soldered, so use UART2 (PE2 and PE3) instead.
I picked this just because the board I'm using is using UART1 for GPIO.
2023-12-08 20:57:05 +11:00
Jookia 3a3b1e3889 sunxi: Support UART 1 and 2 on the Mango Pi MQ-R
I haven't fully tested this patch, but it should work.
2023-12-08 20:57:05 +11:00
Icenowy Zheng cc0b1dc927 sunxi: enable support for SPI NAND booting on SUNIV
As we added support for SPI NAND to the existing SPL SPI codepath, route
the boot code to it when it detects the BROM loads SPL from SPI NAND, as
for SoCs with both SPI NAND and boot media indicator support, the boot
media indicator is the same for SPI NOR and NAND.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Samuel Holland <samuel@sholland.org>
2023-12-08 20:57:05 +11:00
Icenowy Zheng 002d9e9a4c sunxi: SPL SPI: add initial support for booting from SPI NAND
This commit adds support for booting from SPI NAND to SPL SPI code by
mimicing the behavior of boot ROM (use fixed page size and sequentially
try SPI NOR and NAND).

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Tested-by: Samuel Holland <samuel@sholland.org> # Orange Pi Zero Plus
2023-12-08 20:57:05 +11:00
Icenowy Zheng 34f631f0dc sunxi: SPL SPI: allow multiple boot attempt
As we're going to add support for SPI NAND to this code, add code that
allows multiple boot attempts with different load offsets and functions.

To keep compatibility with loading raw binary on SPI NOR, a bool
parameter is used to allow booting without valid magic number when
booting with SPI NOR.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org> # Orange Pi Zero Plus
2023-12-08 20:57:05 +11:00
Icenowy Zheng 453ff2fb10 sunxi: SPL SPI: add support for read command with 2 byte address
This kind of read command is utilized in SPI NANDs for reading data
inside a selected page, which is obviously smaller than how much 2
byte address can address. So 2 bytes are used for the address and one
dummy byte is needed after the real address. As the address is sent out
in bit endian, this makes it not compatible with usual 3 byte address.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org> # Orange Pi Zero Plus
2023-12-08 20:57:05 +11:00
Icenowy Zheng 6ecb0cba2a sunxi: SPL SPI: extract code for doing SPI transfer
To support SPI NAND flashes, more commands than Read (03h) are needed.

Extract the code for doing SPI transfer from the reading code for code
reuse.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org> # Orange Pi Zero Plus
2023-12-08 20:57:05 +11:00
Tom Rini 2f0282922b Prepare v2024.01-rc4
Signed-off-by: Tom Rini <trini@konsulko.com>
2023-12-04 13:46:56 -05:00
Heinrich Schuchardt 89cb3a9f0a efi_loader: generated SMBIOS table below 4 GiB
We currently use an outdated format 32-bit format for SMBIOS tables.
So we must allocate SMBIOS tables below 4 GiB.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2023-12-04 13:42:40 -05:00
Tom Rini e37e6f181e Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-watchdog
- Correct watchdog timeout print message (Chanho Park)
2023-12-04 13:37:18 -05:00
Chanho Park a341a0e01f watchdog: Correct watchdog timeout print message
The wdt_start function takes timeout_ms as a parameter and starts the
watchdog with this value. However, when you output the message, it shows
the default timeout value for the watchdog device.
So this patch fixes that part to output the correct timeout value.

Before -->
StarFive # wdt start 3000
WDT:   Started watchdog@13070000 without servicing  (60s timeout)

After -->
StarFive # wdt start 3000
WDT:   Started watchdog@13070000 without servicing  (3s timeout)

Fixes: c2fd0ca1a8 ("watchdog: Integrate watchdog triggering into the cyclic framework")
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Stefan Roese <sr@denx.de>
2023-12-04 08:09:09 +01:00
Tom Rini 5c4e9d0c74 Merge branch 'master-rpc-off' of https://source.denx.de/u-boot/custodians/u-boot-sh 2023-12-03 16:30:32 -05:00
Tom Rini b56d21f3bb Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-usb
- USB XHCI fixes
2023-12-02 13:37:27 -05:00
Cong Dang 13bdb6a269 ARM: dts: renesas: Disable RPC driver on R8A779G0 V4H White Hawk board
As requirement of CR side, QSPI Flash usage via RPC driver shall
be disabled and leaving the control of this module to CR side.
Perform DT modification to disable the RPC SPI.

Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Cong Dang <cong.dang.xn@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
[Marek: Do not modify defconfig, modify the DT instead, this way
        the RPC SPI can be enabled without recompiling the U-Boot
	itself. Update commit message accordingly.]
2023-12-02 17:16:01 +01:00
Marek Vasut b95a250805 ARM: dts: renesas: Clean up R8A779G0 V4H RPC SPI DT node
Use the phandle reference to &rpc node in arch/arm/dts/r8a779g0.dtsi
and remove properties which are already in arch/arm/dts/r8a779g0.dtsi.
No functional change and no resulting DT change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2023-12-02 17:16:01 +01:00
Heinrich Schuchardt 493e0e2577 usb: USB_XHCI_PCI depends on PCI
Compiling with CONFIG_USB_XHCI_PCI and CONFIG_PCI=n results in

    usb/host/xhci-pci.c:48:(.text.xhci_pci_probe+0x44):
    undefined reference to `dm_pci_write_config32

Add the missing Kconfig dependency.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-12-01 16:01:59 +01:00
Jonas Karlman 6e91df96dc usb: dwc3-generic: Use combined glue and ctrl node for RK3588
Like Rockchip RK3328 and RK3568, the RK3588 also have a single node to
represent the glue and ctrl for USB 3.0.

Use rk_ops as driver data to select correct ctrl node for RK3588 DWC3.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-12-01 14:06:12 +01:00
Hector Martin 75aabe595f usb: storage: Use the correct CBW lengths
USB UFI uses fixed 12-byte commands (as does RBC, which is not
supported), but SCSI does not have this limitation. Use the correct
command block lengths depending on the subclass.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-12-01 14:06:12 +01:00
Hector Martin b5999f8f6c usb: hub: Add missing reset recovery delay
Some devices like YubiKeys need more time before SET_ADDRESS. The spec
says we need to wait 10ms.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-12-01 14:06:12 +01:00
Hector Martin a14843fdac usb: xhci: Fix DMA address calculation in queue_trb
We need to get the DMA address before incrementing the pointer, as that
might move us onto another segment.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-12-01 14:06:04 +01:00