]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
2 years agoMAINTAINERS: add tree link for fastboot
Mattijs Korpershoek [Thu, 16 May 2024 09:15:41 +0000 (11:15 +0200)] 
MAINTAINERS: add tree link for fastboot

Fastboot patches go through the u-boot-dfu tree.

Add a link in the maintainers file for it.

Link: https://lore.kernel.org/r/20240516-gadget-maintainer-v2-1-23cc916df434@baylibre.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agousb: dwc3: gadget: Disable GUSB2PHYCFG.SUSPHY for End Transfer
Thinh Nguyen [Fri, 12 Apr 2024 20:26:06 +0000 (22:26 +0200)] 
usb: dwc3: gadget: Disable GUSB2PHYCFG.SUSPHY for End Transfer

Upstream Linux commit 3aa07f72894d.

If there's a disconnection while operating in eSS, there may be a delay
in VBUS drop response from the connector. In that case, the internal
link state may drop to operate in usb2 speed while the controller thinks
the VBUS is still high. The driver must make sure to disable
GUSB2PHYCFG.SUSPHY when sending endpoint command while in usb2 speed.
The End Transfer command may be called, and only that command needs to
go through at this point. Let's keep it simple and unconditionally
disable GUSB2PHYCFG.SUSPHY whenever we issue the command.

This scenario is not seen in real hardware. In a rare case, our
prototype type-c controller/interface may have a slow response
triggerring this issue.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/5651117207803c26e2f22ddf4e5ce9e865dcf7c7.1668045468.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240412202611.3565052-7-alexander.sverdlin@siemens.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agousb: dwc3: gadget: properly check ep cmd
Felipe Balbi [Fri, 12 Apr 2024 20:26:05 +0000 (22:26 +0200)] 
usb: dwc3: gadget: properly check ep cmd

Upstream Linux commit 5999914f227b.

The cmd argument we pass to
dwc3_send_gadget_ep_cmd() could contain extra
arguments embedded. When checking for StartTransfer
command, we need to make sure to match only lower 4
bits which contain the actual command and ignore the
rest.

Reported-by: Janusz Dziedzic <januszx.dziedzic@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
[A. Sverdlin: cherry-picked only DWC3_DEPCMD_CMD() define]
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240412202611.3565052-6-alexander.sverdlin@siemens.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agousb: dwc3: gadget: Check ENBLSLPM before sending ep command
Thinh Nguyen [Fri, 12 Apr 2024 20:26:04 +0000 (22:26 +0200)] 
usb: dwc3: gadget: Check ENBLSLPM before sending ep command

Upstream Linux commit 87dd96111b0b.

When operating in USB 2.0 speeds (HS/FS), if GUSB2PHYCFG.ENBLSLPM or
GUSB2PHYCFG.SUSPHY is set, it must be cleared before issuing an endpoint
command.

Current implementation only save and restore GUSB2PHYCFG.SUSPHY
configuration. We must save and clear both GUSB2PHYCFG.ENBLSLPM and
GUSB2PHYCFG.SUSPHY settings. Restore them after the command is
completed.

DWC_usb3 3.30a and DWC_usb31 1.90a programming guide section 3.2.2

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240412202611.3565052-5-alexander.sverdlin@siemens.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agousb: dwc3: gadget: only resume USB2 PHY in <=HIGHSPEED
Felipe Balbi [Fri, 12 Apr 2024 20:26:03 +0000 (22:26 +0200)] 
usb: dwc3: gadget: only resume USB2 PHY in <=HIGHSPEED

Upstream Linux commit ab2a92e7a608.

As a micro-power optimization, let's only resume the
USB2 PHY if we're working on <=HIGHSPEED. If we're
gonna work on SUPERSPEED or SUPERSPEED+, there's no
point in resuming the USB2 PHY.

Fixes: 2b0f11df84bb ("usb: dwc3: gadget: clear SUSPHY bit before ep cmds")
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240412202611.3565052-4-alexander.sverdlin@siemens.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agousb: dwc3: gadget: clear SUSPHY bit before ep cmds
Felipe Balbi [Fri, 12 Apr 2024 20:26:02 +0000 (22:26 +0200)] 
usb: dwc3: gadget: clear SUSPHY bit before ep cmds

Upstream Linux commit 2b0f11df84bb.

Synopsys Databook 2.60a has a note that if we're
sending an endpoint command we _must_ make sure that
DWC3_GUSB2PHY(n).SUSPHY bit is cleared.

This patch implements that particular detail.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240412202611.3565052-3-alexander.sverdlin@siemens.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agousb: dwc3: gadget: combine return points into a single one
Felipe Balbi [Fri, 12 Apr 2024 20:26:01 +0000 (22:26 +0200)] 
usb: dwc3: gadget: combine return points into a single one

Upstream Linux commit c0ca324d09a0.

dwc3_send_gadget_ep_cmd() had three return
points. That becomes a pain to track when we need to
debug something or if we need to add more code
before returning.

Let's combine all three return points into a single
one just by introducing a local 'ret' variable.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240412202611.3565052-2-alexander.sverdlin@siemens.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agodma: ti: k3-udma: invalidate prepared buffers before pushing to recv ring
Matthias Schiffer [Fri, 26 Apr 2024 08:02:28 +0000 (10:02 +0200)] 
dma: ti: k3-udma: invalidate prepared buffers before pushing to recv ring

Buffers must not have an unclean cache before being used for DMA - a
pending write-back may corrupt the next dev-to-mem transfer otherwise.

This was consistently noticeable during long TFTP transfers, when an ARP
request is answered by U-Boot in the middle of the transfer:

As U-Boot's arp_receive() reuses the receive buffer to prepare its
reply packet, the beginning of one of the next incoming TFTP packets
is overwritten by the ARP reply. The corrupted packet is ignored, but
the TFTP transfer stalls for a few seconds until a timeout is detected
and a retransmit is triggered.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
2 years agodma: ti: k3-udma: add missing <net.h> include
Matthias Schiffer [Fri, 26 Apr 2024 08:02:27 +0000 (10:02 +0200)] 
dma: ti: k3-udma: add missing <net.h> include

net.h is needed for PKTBUFSRX. Without this definition, the driver will
always use 4 RX buffers, causing am65-cpsw-nuss initialization to fail
when a higher number of buffers is requested.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
2 years agonet: ti: am65-cpsw-nuss: fix error handling for "RX dma add buf failed"
Matthias Schiffer [Fri, 26 Apr 2024 08:02:26 +0000 (10:02 +0200)] 
net: ti: am65-cpsw-nuss: fix error handling for "RX dma add buf failed"

The RX DMA channel has been requested at this point already, so it must
be freed.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
2 years agonet: ti: am65-cpsw-nuss: avoid errors due to imbalanced start()/stop()
Matthias Schiffer [Fri, 26 Apr 2024 08:02:25 +0000 (10:02 +0200)] 
net: ti: am65-cpsw-nuss: avoid errors due to imbalanced start()/stop()

The eth-uclass state machine doesn't prevent imbalanced start()/stop()
calls - to the contrary, it even provides eth_init_state_only() and
eth_halt_state_only() functions that change the state without any calls
into the driver. This means that the driver must be robust against
duplicate start() and stop() calls as well as send/recv calls while the
interface is down.

We decide not to print error messages but just to return an error in the
latter case, as trying to send packets on a disabled interface commonly
happens when the netconsole is still active after the Ethernet has been
halted during bootm.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
2 years agonet: eth-uclass: guard against reentrant eth_init()/eth_halt() calls
Matthias Schiffer [Fri, 26 Apr 2024 08:02:24 +0000 (10:02 +0200)] 
net: eth-uclass: guard against reentrant eth_init()/eth_halt() calls

With netconsole, any log message can result in an eth_init(), possibly
causing an reentrant call into eth_init() if a driver's ops print
anything:

    eth_init() -> driver.start() -> printf() -> netconsole -> eth_init()
    eth_halt() -> driver.stop() -> printf() -> netconsole -> eth_init()

Rather than expecting every single Ethernet driver to handle this case,
prevent the reentrant calls in eth_init() and eth_halt().

The issue was noticed on an AM62x board, where a bootm after
simultaneous netconsole and TFTP would result in a crash.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Link: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1350550/sk-am62a-lp-am65_cpsw_nuss_port-error-in-u-boot-while-using-netconsole-functionality/
2 years agoMerge patch series "Add remoteproc driver for AM62a SoC"
Tom Rini [Wed, 15 May 2024 16:45:33 +0000 (10:45 -0600)] 
Merge patch series "Add remoteproc driver for AM62a SoC"

Hari Nagalla <hnagalla@ti.com> says:

This series adds relevant ip data in remoteproc driver for AM62a devices.

Logs: https://paste.sr.ht/~hnagalla/5e20838705c1d688bca81886dad56451b56d3913

2 years agoboard: ti: am62ax: Add support for remote proc load
Hari Nagalla [Thu, 9 May 2024 14:20:37 +0000 (09:20 -0500)] 
board: ti: am62ax: Add support for remote proc load

Add AM62a remote proc firmware names to environment variables for
loading of C7x DSP and R5F processors.

Signed-off-by: Hari Nagalla <hnagalla@ti.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
2 years agoconfigs: am62ax: enable remote proc drivers
Hari Nagalla [Thu, 9 May 2024 14:20:36 +0000 (09:20 -0500)] 
configs: am62ax: enable remote proc drivers

Enable K3-DSP and K3-R5FSS remote proc drivers for am62ax.

Signed-off-by: Hari Nagalla <hnagalla@ti.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
2 years agoremoteproc: k3-r5: Add support for R5F core on AM62A SoCs
Hari Nagalla [Thu, 9 May 2024 14:20:35 +0000 (09:20 -0500)] 
remoteproc: k3-r5: Add support for R5F core on AM62A SoCs

AM62A has a R5F core in MCU voltage domain.
Extend support for R5F remote proc driver on AM62A with compatible
strings.

Signed-off-by: Hari Nagalla <hnagalla@ti.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
2 years agoremoteproc: k3-dsp: Enable C71x support for AM62A
Hari Nagalla [Thu, 9 May 2024 14:20:34 +0000 (09:20 -0500)] 
remoteproc: k3-dsp: Enable C71x support for AM62A

AM62A SoC has a single C71x DSP subsystem with analytics engine in
main voltage domain. Extend support to AM62A with compatible strings.

Signed-off-by: Hari Nagalla <hnagalla@ti.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
2 years agoMerge patch series "Add DFU and usb boot for TI am62x SK and beagleplay"
Tom Rini [Wed, 15 May 2024 16:45:10 +0000 (10:45 -0600)] 
Merge patch series "Add DFU and usb boot for TI am62x SK and beagleplay"

Martyn Welch <martyn.welch@collabora.com> says:

This series adds DFU support for TI AM62 SK and beagleplay boards.

I have picked this series up from Sjoerd due to time constraints.

Since the last revision:
* Removed dwc3 mode setting in favour of reinstating forced peripheral
  mode for usb0
* Use of config fragments for both r5 and a53 DFU configuration to
  reduce duplication
* Typographical improvements to documentation

We plan to also submit the dts changes to linux so that those can be
dropped again in the near future (hopefully)

2 years agodoc: board: Add document for DFU boot on am62x SoCs
Sjoerd Simons [Mon, 6 May 2024 14:38:46 +0000 (15:38 +0100)] 
doc: board: Add document for DFU boot on am62x SoCs

Both AM62 SK and beagleplay support DFU boot in a similar way now;
Document how to actually run DFU boot for both boards

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on beagle play
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
2 years agobeagleplay: Add DFU support
Sjoerd Simons [Mon, 6 May 2024 14:38:45 +0000 (15:38 +0100)] 
beagleplay: Add DFU support

DFU mode on a beagleplay can be used via the Type-C connector by holding
the USR switch while powering on.

Configuration is already provided as fragments for both the A53 and R5
u-boot parts. Include the am62x_a53_usbdfu.config config. The
am62x_r5_usbdfu.config fragment needs to be added should DFU boot be
required as this will disable booting from persistent storage due to
binary size constraints.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agoconfigs: am62x_evm_*: Enable USB and DFU support
Sjoerd Simons [Mon, 6 May 2024 14:38:44 +0000 (15:38 +0100)] 
configs: am62x_evm_*: Enable USB and DFU support

Provide config fragments to enable USB host as well as USB gadget and DFU
support for a53 and r5. This relevant fragment is included into the
am62x EVM a53 defconfig. For the r5, due to the smaller available size,
the config fragment also disables support for persistent storage to free
up space for USB support. This fragment needs to be included is DFU
booting is desired.

The CONFIG_DFU_SF option is placed in the defconfig rather than the
fragment as this is known not to be supported on all boards that can
support DFU.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agoarm: dts: k3-am625-sk: Enable usb port in u-boot
Sjoerd Simons [Mon, 6 May 2024 14:38:43 +0000 (15:38 +0100)] 
arm: dts: k3-am625-sk: Enable usb port in u-boot

Enable usb0 in all boot phases for use with DFU

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agoboard: ti: am62x: am62x: include env for DFU
Sjoerd Simons [Mon, 6 May 2024 14:38:42 +0000 (15:38 +0100)] 
board: ti: am62x: am62x: include env for DFU

Include standard TI K3 dfu environment

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on beagle play
2 years agousb: dwc3: Add dwc3 glue driver for am62
Sjoerd Simons [Mon, 6 May 2024 14:38:41 +0000 (15:38 +0100)] 
usb: dwc3: Add dwc3 glue driver for am62

Add glue code for TI AM62 to the dwc3 driver; Most code adopted from
TI vendor u-boot code.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on beagle play
2 years agoMerge branch '2024-05-13-assorted-updates' into next
Tom Rini [Tue, 14 May 2024 13:46:33 +0000 (07:46 -0600)] 
Merge branch '2024-05-13-assorted-updates' into next

- A few zfs fixes, ARMv8 timer cleanups, support more algorithms with
  the nuvoton crypto driver, virtio + env in filesystem fix, K3 code
  cleanup and warning fix in gen_compile_commands.

2 years agoMerge https://source.denx.de/u-boot/custodians/u-boot-riscv
Tom Rini [Tue, 14 May 2024 13:45:49 +0000 (07:45 -0600)] 
Merge https://source.denx.de/u-boot/custodians/u-boot-riscv

CI: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/20690

- RISC-V: Add NULL check after parsing compatible string
- Board: Add Milk-V Mars CM board
- Andes: Unify naming policy

2 years agoMerge branch 'qcom-main' of https://source.denx.de/u-boot/custodians/u-boot-snapdragon
Tom Rini [Tue, 14 May 2024 13:45:14 +0000 (07:45 -0600)] 
Merge branch 'qcom-main' of https://source.denx.de/u-boot/custodians/u-boot-snapdragon

This [pull request] for master fixes framebuffer video on almost all
Qualcomm platforms where the framebuffer is initialised by the first
stage bootloader.

2 years agoandes: Unify naming policy for Andes related source
Leo Yu-Chi Liang [Tue, 14 May 2024 09:50:11 +0000 (17:50 +0800)] 
andes: Unify naming policy for Andes related source

Signed-off-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2 years agoriscv: simplify backtrace report
Heinrich Schuchardt [Tue, 14 May 2024 05:51:42 +0000 (07:51 +0200)] 
riscv: simplify backtrace report

* We already have a header 'backtrace', there is no need to repeat the
  word backtrace on every line.
* Add a blank line before the backtrace section of the crash report for
  improved readability.
* If U-Boot is compiled without backtrace, there is no need to write a
  message at all.
* Avoid #ifdef. We prefer functions to always be compiled and let
  the linker remove them if not needed.
* Foresee 3 digits for the backtrace index.

For testing the 'exception' command can be used.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2 years agostarfive: add mac vendor sub-command
Heinrich Schuchardt [Sun, 12 May 2024 04:25:26 +0000 (06:25 +0200)] 
starfive: add mac vendor sub-command

As boards from multiple vendors (Milk-V, StarFive, Pine64) use the mac
command provide a sub-command to set the vendor string.

Reported-by: E. Shattow <lucent@gmail.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2 years agoconfigs: visionfive2: enable SPL_YMODEM_SUPPORT
Heinrich Schuchardt [Sun, 12 May 2024 04:25:25 +0000 (06:25 +0200)] 
configs: visionfive2: enable SPL_YMODEM_SUPPORT

We can use U-Boot for recovering JH7110 based boards via UART
if CONFIG_SPL_YMODEM_SUPPORT=y.

* Send u-boot-spl.normal.out via XMODEM.
* Send u-boot.itb via YMODEM.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: E. Shattow <lucent@gmail.com>
2 years agodoc: Milk-V Mars CM and Milk-V Mars CM Lite
Heinrich Schuchardt [Sun, 12 May 2024 04:25:24 +0000 (06:25 +0200)] 
doc: Milk-V Mars CM and Milk-V Mars CM Lite

Provide a man-page describing the usage of U-Boot on
the Milk-V Mars CM and Milk-V Mars CM Lite boards.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: E Shattow <lucent@gmail.com>
2 years agoboard: add support for Milk-V Mars CM
Heinrich Schuchardt [Sun, 12 May 2024 04:25:23 +0000 (06:25 +0200)] 
board: add support for Milk-V Mars CM

We already support the VisionFive 2 and the Milk-V Mars board by
patching the VisionFive 2 device tree. With this patch the same
is done for the Milk-V Mars CM.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: E. Shattow <lucent@gmail.com>
Reviewed-by: E. Shattow <lucent@gmail.com>
2 years agoboard: starfive: function to read eMMC size
Heinrich Schuchardt [Sun, 12 May 2024 04:25:22 +0000 (06:25 +0200)] 
board: starfive: function to read eMMC size

The EEPROM provides information about the size of the eMMC.
Provide a new function get_mmc_size_from_eeprom() to read it.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: E. Shattow <lucent@gmail.com>
2 years agoriscv: add NULL check before calling strlen in the riscv cpu's get_desc()
Hanyuan Zhao [Mon, 6 May 2024 09:10:06 +0000 (17:10 +0800)] 
riscv: add NULL check before calling strlen in the riscv cpu's get_desc()

Without the NULL check, if the devicetree that u-boot loads does not have a
compatible property then a store access fault will be raised and force the
machine to reset, due to the NULL pointer we passed to strlen. This commit
adds this check and will return -ENOSPC to indicate the get_desc failed.

Signed-off-by: Hanyuan Zhao <zhaohy22@mails.tsinghua.edu.cn>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2 years agoconfigs: Make USB_GADGET_MANUFACTURER consistent over all PHYTEC boards
Benjamin Hahn [Fri, 3 May 2024 07:00:38 +0000 (09:00 +0200)] 
configs: Make USB_GADGET_MANUFACTURER consistent over all PHYTEC boards

Set CONFIG_USB_GADGET_MANUFACTURER to PHYTEC for all PHYTEC boards.

Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
Acked-by: Wadim Egorov <w.egorov@phytec.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240503-wip-bhahn-bspimx8m-3196-v1-1-855c7242151f@phytec.de
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agousb: cdns3: gadget.c: Set fast access bit
Aswath Govindraju [Wed, 24 Apr 2024 07:39:11 +0000 (13:09 +0530)] 
usb: cdns3: gadget.c: Set fast access bit

When the device port is in a low power state [U3/L2/Not Connected],
accesses to usb device registers may take a long time. This could lead to
potential core hang when the controller registers are accessed after the
port is disabled by setting DEVDS field. Setting the fast register access
bit ensures that the PHY clock is keeping up in active state.

Therefore, set fast access bit to ensure the accesses to device registers
are quick even in low power states.

commit b5148d946f45 ("usb: cdns3: gadget: set fast access bit") in the
upstream kernel is taken as reference.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240424073911.1943-1-r-gunasekaran@ti.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2 years agomach-snapdragon: do carveouts for qcs404 only
Sam Day [Tue, 7 May 2024 18:41:23 +0000 (18:41 +0000)] 
mach-snapdragon: do carveouts for qcs404 only

The newly introduced carve_out_reserved_memory causes issues when
U-Boot is chained from the lk2nd bootloader. lk2nd provides a
simple-framebuffer device and marks the framebuffer region as no-map in
the supplied /reserved-memory. Consequently, the simple_video driver
triggers a page fault when it tries to write to this region.

As per Caleb's advice, this simple patch only does the carveouts for the
qcs404 SoC for which it was originally designed. The intent is to do the
carveouts for more Qualcomm SoCs in future.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2 years agoarm: mach-k3: Move code specific to a SoC into that SoC's directory
Andrew Davis [Fri, 10 May 2024 20:21:24 +0000 (15:21 -0500)] 
arm: mach-k3: Move code specific to a SoC into that SoC's directory

Each SoC now has a directory in mach-k3, let's move the SoC specific
files into their respective directories.

Signed-off-by: Andrew Davis <afd@ti.com>
2 years agoscripts: gen_compile_commands: fix invalid escape sequence warning
Caleb Connolly [Fri, 3 May 2024 15:18:36 +0000 (17:18 +0200)] 
scripts: gen_compile_commands: fix invalid escape sequence warning

Since Python 3.12 unrecognised escape sequences trigger a SyntaxWarning.
Convert the '\#' string to a raw string so the backslash is correctly
used as a literal.

Ported from Linux commit dae4a0171e25 ("gen_compile_commands: fix invalid
escape sequence warning").

This updates the script to be in-line with Linux 6.9-rc6.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: João Marcos Costa <jmcosta944@gmail.com>
2 years agoInit virtio before loading ENV from EXT4 or FAT
Fiona Klute [Wed, 1 May 2024 08:54:09 +0000 (10:54 +0200)] 
Init virtio before loading ENV from EXT4 or FAT

Specifying a file in an EXT4 or FAT partition on a virtio device as
environment location failed because virtio hadn't been initialized by
the time the environment was loaded. This patch mirrors commit
54ee5ae84191 ("Add SCSI scan for ENV in EXT4 or FAT") in issue and
fix, just for a different kind of block device.

The additional include in include/virtio.h is needed so all functions
called there are defined, the alternative would have been to include
dm/device.h separately in the env/ sources.

Checkpatch suggests using "if (IS_ENABLED(CONFIG...))" instead of
"#if defined(CONFIG_...)", I'm sticking to the style of the existing
code here.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
CC: Joe Hershberger <joe.hershberger@ni.com>
CC: Bin Meng <bmeng.cn@gmail.com>
CC: Rogier Stam <rogier@unrailed.org>
2 years agoarmv8: generic_timer: Use event stream for udelay
Peter Hoyes [Wed, 1 May 2024 08:16:33 +0000 (09:16 +0100)] 
armv8: generic_timer: Use event stream for udelay

Polling cntpct_el0 in a tight loop for delays is inefficient.
This is particularly apparent on Arm FVPs, which do not simulate
real time, meaning that a 1s sleep can take a couple of orders
of magnitude longer to execute in wall time.

If running at EL2 or above (where CNTHCTL_EL2 is available), enable
the cntpct_el0 event stream temporarily and use wfe to implement
the delay more efficiently. The event period is chosen as a
trade-off between efficiency and the fact that Arm FVPs do not
typically simulate real time.

This is only implemented for Armv8 boards, where an architectural
timer exists, and only enabled by default for the ARCH_VEXPRESS64
board family.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
2 years agoarm: Move sev() and wfe() definitions to common Arm header file
Peter Hoyes [Wed, 1 May 2024 08:16:32 +0000 (09:16 +0100)] 
arm: Move sev() and wfe() definitions to common Arm header file

The sev() and wfe() asm macros are currently defined only for
mach-exynos. As these are common Arm instructions, move them to the
common asm/system.h header file, for both Armv7 and Armv8, so they
can be used by other machines.

wfe may theoretically trigger a context switch if an interrupt occurs
so add a memory barrier to this call.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Reviewed-by: Andre Przywara<andre.przywara@arm.com>
2 years agosandbox: make function 'do_undefined' properly compiles for PowerPC
WHR [Tue, 30 Apr 2024 16:55:10 +0000 (00:55 +0800)] 
sandbox: make function 'do_undefined' properly compiles for PowerPC

The 2 bytes 0xffff is too short for being a PowerPC instruction, resulting
in an error similar to:
    /tmp/ccW8yjie.s: Assembler messages:
    /tmp/ccW8yjie.s: Error: unaligned opcodes detected in executable segment
    /tmp/ccW8yjie.s:223: Error: instruction address is not a multiple of 4
    make[2]: *** [/tmp/ccyF4HIC.mk:17: /tmp/ccCKUFuF.ltrans5.ltrans.o] Error 1

Signed-off-by: WHR <msl0000023508@gmail.com>
2 years agozfs: fix function 'zlib_decompress' pointlessly calling itself
WHR [Tue, 30 Apr 2024 16:40:38 +0000 (00:40 +0800)] 
zfs: fix function 'zlib_decompress' pointlessly calling itself

In order to prevent crashing due to infinite recursion and actually
decompress the requested data, call the zlib function 'uncompress'
instead.

Signed-off-by: WHR <msl0000023508@gmail.com>
2 years agozfs: recognize zpools formatted with features support
WHR [Tue, 30 Apr 2024 16:28:32 +0000 (00:28 +0800)] 
zfs: recognize zpools formatted with features support

Currently no features are implemented, only the zpool version 5000 that
indicating the features support, is recognized. Since it is possible for
OpenZFS to create a pool with features support enabled, but without
enabling any actual feature, this change enables U-Boot to read such
pools.

Signed-off-by: WHR <msl0000023508@gmail.com>
2 years agocrypto: nuvoton: npcm_sha: Support SHA 384/512
Jim Liu [Mon, 29 Apr 2024 06:38:03 +0000 (14:38 +0800)] 
crypto: nuvoton: npcm_sha: Support SHA 384/512

1. Use vendor naming rule to rename each function
2. add SHA 384/512 support

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
2 years agoMerge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"
Tom Rini [Mon, 13 May 2024 15:15:51 +0000 (09:15 -0600)] 
Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"

Roger Quadros <rogerq@kernel.org> says:

Sync AM62 device tree files with Linux v6.9 and
add in the missing bits in -u-boot.dtsi to get CPSW
Ethernet working.

CI testing: https://github.com/u-boot/u-boot/pull/534

2 years agoarm: dts: k3-am625-beagleplay: Fix Ethernet PHY reset GPIO
Roger Quadros [Mon, 13 May 2024 12:13:56 +0000 (15:13 +0300)] 
arm: dts: k3-am625-beagleplay: Fix Ethernet PHY reset GPIO

Move GPIO pinmux to MDIO node. Add GB Ethernet reset GPIO.

Add PIN_INPUT to Fix SPE ethernet reset gpio so that
reading the GPIO can give correct status.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
2 years agoarm: dts: k3-am625-beagleplay: get CPSW Ethernet to work
Roger Quadros [Mon, 13 May 2024 12:13:55 +0000 (15:13 +0300)] 
arm: dts: k3-am625-beagleplay: get CPSW Ethernet to work

Add missing bits in -u-boot.dtsi to get CPSW Ethernet working.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
2 years agoarm: dts: k3-am62*: sync with Linux v6.9
Roger Quadros [Mon, 13 May 2024 12:13:54 +0000 (15:13 +0300)] 
arm: dts: k3-am62*: sync with Linux v6.9

Update k3-am62 DT files from Linux v6.9

Signed-off-by: Roger Quadros <rogerq@kernel.org>
2 years agodoc/sphinx: Bump Jinja2 to 3.1.4
Tom Rini [Mon, 6 May 2024 21:22:30 +0000 (15:22 -0600)] 
doc/sphinx: Bump Jinja2 to 3.1.4

While we unlikely to have an issue with CVE-2024-22195, it is simple
enough to bump our version of Jinja2 to receive the fix, do so.

Reported-by: GitHub dependabot
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoMerge tag 'rpi-2024.07-rc3' of https://source.denx.de/u-boot/custodians/u-boot-raspbe...
Tom Rini [Mon, 13 May 2024 13:43:52 +0000 (07:43 -0600)] 
Merge tag 'rpi-2024.07-rc3' of https://source.denx.de/u-boot/custodians/u-boot-raspberrypi

Updates for RPi for 2024.07:

- Switch to OF_HAS_PRIOR_STAGE by default

2 years agorpi: Switch to OF_HAS_PRIOR_STAGE by default
Tom Rini [Fri, 24 Dec 2021 16:57:04 +0000 (11:57 -0500)] 
rpi: Switch to OF_HAS_PRIOR_STAGE by default

On all Raspberry Pi platforms, we're loaded by a prior stage firmware
that has assembled and passed on a device tree binary for us to use.
Switch to using this tree by default.

Cc: Matthias Brugger <mbrugger@suse.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: François Ozog <francois.ozog@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Tested-by: Simon Glass <sjg@chromium.org>
2 years agoMerge branch 'master-cleanup' of https://source.denx.de/u-boot/custodians/u-boot-sh
Tom Rini [Sun, 12 May 2024 17:36:57 +0000 (11:36 -0600)] 
Merge branch 'master-cleanup' of https://source.denx.de/u-boot/custodians/u-boot-sh

2 years agoARM: dts: renesas: Drop DTs with OF_UPSTREAM counterparts
Marek Vasut [Sat, 27 Apr 2024 18:59:41 +0000 (20:59 +0200)] 
ARM: dts: renesas: Drop DTs with OF_UPSTREAM counterparts

Remove DTs which are now replaced by OF_UPSTREAM counterparts.
No functional change expected.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Acked-by: Adam Ford <aford173@gmail.com> #beacon boards
2 years agoMerge patch series "Add AM64x Support to PRUSS and PRU_RPROC driver"
Tom Rini [Fri, 10 May 2024 16:44:58 +0000 (10:44 -0600)] 
Merge patch series "Add AM64x Support to PRUSS and PRU_RPROC driver"

MD Danish Anwar <danishanwar@ti.com> says:

This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers.
This series is a prerequisite for ICSSG Ethernet driver.

Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send
another series to enable ICSSG Ethernet driver for AM64x as well.

2 years agoMerge patch series "Generate all SR boot binaries"
Tom Rini [Fri, 10 May 2024 16:43:09 +0000 (10:43 -0600)] 
Merge patch series "Generate all SR boot binaries"

Neha Malcom Francis <n-francis@ti.com> says:

Add support for missing HS SRs in the build for J721E and J7200.

Boot logs (updated for v2):
https://gist.github.com/nehamalcom/e652752623537aced8cf31308015d7c9

2 years agoMerge patch series "*** Commonize board code for K3 based SoMs ***"
Tom Rini [Fri, 10 May 2024 16:42:25 +0000 (10:42 -0600)] 
Merge patch series "*** Commonize board code for K3 based SoMs ***"

Wadim Egorov <w.egorov@phytec.de> says:

Factor out code that we can reuse across all our K3 based SoMs.
2nd patch of this series require patch [1] to be applied first.

[1] https://lists.denx.de/pipermail/u-boot/2024-April/552021.html

2 years agoarm: mach-k3: am642: Provide a way to obtain boot device for non SPLs
Wadim Egorov [Wed, 24 Apr 2024 12:43:20 +0000 (14:43 +0200)] 
arm: mach-k3: am642: Provide a way to obtain boot device for non SPLs

Let's provide get_boot_device() for AM64, similar to what we did
in commit 2f9095e2bf59 ("arm: mach-k3: am625: Provide a way to obtain boot
device for non SPLs") for AM62.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 years agosoc: ti: pruss: Add support for AM64x
MD Danish Anwar [Tue, 30 Apr 2024 10:46:33 +0000 (16:16 +0530)] 
soc: ti: pruss: Add support for AM64x

Add support for AM64x by adding it's compatible in pruss driver.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
2 years agoremoteproc: pru: Add support for AM64x PRU / RTU cores
MD Danish Anwar [Tue, 30 Apr 2024 10:46:32 +0000 (16:16 +0530)] 
remoteproc: pru: Add support for AM64x PRU / RTU cores

Add support for AM64x PRU cores by adding compatibles for AM64x.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
2 years agoarm: dts: k3-j7200-binman: Add support for HSSE1.0 and HSFS1.0
Neha Malcom Francis [Thu, 25 Apr 2024 22:06:59 +0000 (03:36 +0530)] 
arm: dts: k3-j7200-binman: Add support for HSSE1.0 and HSFS1.0

J7200  has SR1.0 and SR2.0 having three variants of each GP, HS-FS and
HS-SE. Current build does not generate HS-SE SR1.0 and HS-FS SR1.0 so
add support for them.

Reported-by: Suman Anna <s-anna@ti.com>
Reported-by: Aniket Limaye <a-limaye@ti.com>
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
2 years agoarm: dts: k3-j721e-binman: Add support for HSFS1.1
Neha Malcom Francis [Thu, 25 Apr 2024 22:06:58 +0000 (03:36 +0530)] 
arm: dts: k3-j721e-binman: Add support for HSFS1.1

J721E has SR1.1 and SR2.0 having three variants of each GP, HS-FS and
HS-SE. Current build does not generate HS-FS SR1.1 so add support for
them.

Reported-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
2 years agophycore_am64x_a53_defconfig: Enable CONFIG_BOARD_LATE_INIT
Wadim Egorov [Wed, 24 Apr 2024 12:53:35 +0000 (14:53 +0200)] 
phycore_am64x_a53_defconfig: Enable CONFIG_BOARD_LATE_INIT

Enable CONFIG_BOARD_LATE_INIT to use PHYTECs common board_late_init()
to set handy environment variables for u-boot.
Also, resync after savedefconfig.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 years agoboard: phytec: Commonize board code for K3 based SoMs
Wadim Egorov [Wed, 24 Apr 2024 12:53:34 +0000 (14:53 +0200)] 
board: phytec: Commonize board code for K3 based SoMs

Environment handling code can be reused across all our K3 based SoMs.
Instead of adding the same code for every new SoM, move it to a common
board.c file.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 years agotest/py: Make the number of SPL banners seen a variable
Tom Rini [Wed, 24 Apr 2024 22:45:37 +0000 (16:45 -0600)] 
test/py: Make the number of SPL banners seen a variable

Currently we have the option to tell the console code that we should
ignore the SPL banner. We also have an option to say that we can see it
a second time, and ignore it. However, some platforms such as TI AM64x
will have us see the SPL banner three times. Rather than add an
"spl3_skipped" option, rework the code. By default we expect to see the
banner once, but boards can specify seeing it as many times as they
expect to.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: Add drivers for Sysnopsys Ethernet 10G device
Boon Khai Ng [Wed, 17 Apr 2024 07:46:56 +0000 (15:46 +0800)] 
net: Add drivers for Sysnopsys Ethernet 10G device

This driver support the Synopsys Designware Ethernet 10G
IP block refer from the driver dwc_eth_qos.

The driver MAC register mapping is different between
Synopsys QoS IP and Synopsys 10G IP, and thus new file
is created meant for Sysnopsys 10G IP.

The dwc_eth_xgmac_socfpga.c is specific to a device family,
the driver support the specific configuration used in
Intel SoC FPGA Agilex5.

This driver is extensible for other device family to use.

Signed-off-by: Boon Khai Ng <boon.khai.ng@intel.com>
2 years agoMerge patch series "arm: Add Analog Devices SC5xx Machine Type"
Tom Rini [Wed, 8 May 2024 01:24:07 +0000 (19:24 -0600)] 
Merge patch series "arm: Add Analog Devices SC5xx Machine Type"

Greg Malysa <greg.malysa@timesys.com> says:

This series adds support for the ADI SC5xx machine type and includes two
core drivers that are required for being able to boot any board--a UART
driver, the gptimer driver which is used as a clock reference (CNTVCNT
is not supported on the armv7 sc5xx SoCs) and the clock tree driver. Our
corresponding Linux support relies on u-boot configuring the clocks
correctly before booting, so it is not possible to boot any board
without the CGU/CDU configuration happening here. There are also no
board files, device trees, or defconfigs included here, but some common
definitions that will be used to build board files currently are. The
sc5xx SoCs themselves include many armv7 families (sc57x, sc58x, and
sc594) all using an ARM Cortex-A5, and one armv8 family (sc598) indended
to be a drop-in replacement for the SC594 in terms of peripherals, with
a Cortex-A55 instead.

Some of the configuration code in dmcinit and clkinit is quite scary and
causes a lot of checkpatch violations. It is modified from code
initially provided by ADI, but it has not been fully rewritten. There's
a question of how important it is to clean up this code--it has some
quality violations, but it has been in use (including in production) for
over two years and is known to work for performing the low level SoC
initialization, while a rewrite might introduce timing or sequence bugs
that could take a significant amount of time to detect in the future.

2 years agodrivers: timer: Add in driver support for ADI SC5XX-family GP timer peripheral
Greg Malysa [Thu, 25 Apr 2024 00:04:03 +0000 (20:04 -0400)] 
drivers: timer: Add in driver support for ADI SC5XX-family GP timer peripheral

Co-developed-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
Signed-off-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
Co-developed-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Co-developed-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Greg Malysa <greg.malysa@timesys.com>
2 years agodrivers: serial: Add in UART for ADI SC5XX-family processors
Nathan Barrett-Morrison [Thu, 25 Apr 2024 00:04:02 +0000 (20:04 -0400)] 
drivers: serial: Add in UART for ADI SC5XX-family processors

Co-developed-by: Greg Malysa <greg.malysa@timesys.com>
Signed-off-by: Greg Malysa <greg.malysa@timesys.com>
Co-developed-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Vasileios Bimpikas <vasileios.bimpikas@analog.com>
Signed-off-by: Utsav Agarwal <utsav.agarwal@analog.com>
Signed-off-by: Arturs Artamonovs <arturs.artamonovs@analog.com>
Signed-off-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
2 years agodrivers: clk: adi: Add in SC5XX-family clock driver
Nathan Barrett-Morrison [Thu, 25 Apr 2024 00:04:01 +0000 (20:04 -0400)] 
drivers: clk: adi: Add in SC5XX-family clock driver

This adds support for the SC5XX clock trees which are required for reading
clock speeds on the SoCs. This is largely a port of the same support for
Linux, which has not yet been submitted upstream.

Co-developed-by: Greg Malysa <greg.malysa@timesys.com>
Signed-off-by: Greg Malysa <greg.malysa@timesys.com>
Co-developed-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Vasileios Bimpikas <vasileios.bimpikas@analog.com>
Signed-off-by: Utsav Agarwal <utsav.agarwal@analog.com>
Signed-off-by: Arturs Artamonovs <arturs.artamonovs@analog.com>
Signed-off-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
2 years agoarch: arm: Add Analog Devices SC5xx machine type
Nathan Barrett-Morrison [Thu, 25 Apr 2024 00:04:00 +0000 (20:04 -0400)] 
arch: arm: Add Analog Devices SC5xx machine type

Add support for the SC5xx machine type from Analog Devices. This
includes support for the SC57x, SC58x, SC59x, and SC59x-64 SoCs, which
have many common features such as common ADI IP blocks, and SHARC DSP
cores. This commit introduces core functionality required for all boards
using an SC5xx SoC, such as:

- SPL configuration
- Required CPU hooks such as reset
- Boot ROM interaction to load the stage 2 bootloader in the reference
  configuration. Other options are possible but not officially supported
  at this time
- SoC-common configuration expected to be reused by all boards
- Early initialization for system clocks and DDR controller

Co-developed-by: Greg Malysa <greg.malysa@timesys.com>
Signed-off-by: Greg Malysa <greg.malysa@timesys.com>
Co-developed-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Ian Roberts <ian.roberts@timesys.com>
Signed-off-by: Vasileios Bimpikas <vasileios.bimpikas@analog.com>
Signed-off-by: Utsav Agarwal <utsav.agarwal@analog.com>
Signed-off-by: Arturs Artamonovs <arturs.artamonovs@analog.com>
Signed-off-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
2 years agoMerge patch series "arm: davinci: Migrate da850-evm to OF_UPSTREAM"
Tom Rini [Tue, 7 May 2024 17:59:26 +0000 (11:59 -0600)] 
Merge patch series "arm: davinci: Migrate da850-evm to OF_UPSTREAM"

- This series moves some additional 32bit TI platforms to using
  OF_UPSTREAM.

2 years agoarm: ti: logicpd-som-lv: Migrate to OF_UPSTREAM
Adam Ford [Wed, 1 May 2024 09:57:53 +0000 (04:57 -0500)] 
arm: ti: logicpd-som-lv: Migrate to OF_UPSTREAM

The DM37 and OMAP35 SOM-LV share a few files, but both of them
can be migrated to OF_UPSTREAM with a small update to their
respective u-boot.dtsi files to address changes made the aliases.
Both defconfigs need to properly point to the upstream directory
structure for the device trees.  With those updated, the U-Boot
device tree files can be deleted.

Signed-off-by: Adam Ford <aford173@gmail.com>
V2:  Remove DT from Makefile

2 years agoarm: ti: logicpd-torpedo: Migrate to OF_UPSTREAM
Adam Ford [Wed, 1 May 2024 09:57:52 +0000 (04:57 -0500)] 
arm: ti: logicpd-torpedo: Migrate to OF_UPSTREAM

The DM37 and OMAP35 Torpedo share a few files, but both of them
can be migrated to OF_UPSTREAM with a small update to their
respective u-boot.dtsi files to address changes made the aliases.
Both defconfigs need to properly point to the upstream directory
structure for the device trees.  With those updated, the U-Boot
device tree files can be deleted.

Signed-off-by: Adam Ford <aford173@gmail.com>
V2:  Remove DT from Makefile

2 years agoarm: ti: am3517_evm: Migrate to OF_UPSTREAM
Adam Ford [Wed, 1 May 2024 09:57:51 +0000 (04:57 -0500)] 
arm: ti: am3517_evm: Migrate to OF_UPSTREAM

With the feature of OF_UPSTREAM now available, the device trees
for the SOM and baseboard can now deleted and the device tree
locations need to point to the ti/omap directory.

Signed-off-by: Adam Ford <aford173@gmail.com>
V2:  Remove DT reference from Makefile.

2 years agoarm: davinci: Migrate da850-evm to OF_UPSTREAM
Adam Ford [Wed, 1 May 2024 09:57:50 +0000 (04:57 -0500)] 
arm: davinci: Migrate da850-evm to OF_UPSTREAM

The da850-evm can remove the U-Boot device trees if migrated
to OF_UPSTREAM.  This means pointing the device trees to the
ti/davinci directory.

Signed-off-by: Adam Ford <aford173@gmail.com>
v2:  Remove DTS from Makefile.

2 years agoMerge tag 'u-boot-rockchip-20240507' of https://source.denx.de/u-boot/custodians...
Tom Rini [Tue, 7 May 2024 14:27:24 +0000 (08:27 -0600)] 
Merge tag 'u-boot-rockchip-20240507' of https://source.denx.de/u-boot/custodians/u-boot-rockchip

CI: https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/pipelines/20628

- migrate to use OF_UPSTREAM for rv1108, rk3308, rk3328, rk356x, rk3588;

2 years agoMerge branch '2024-05-06-remove-include-common_h' into next
Tom Rini [Tue, 7 May 2024 14:01:06 +0000 (08:01 -0600)] 
Merge branch '2024-05-06-remove-include-common_h' into next

- Merge the four series that I made to finally remove include/common.h.
  For the most part, this is just removing <common.h> entirely. In a few
  cases we needed to add <linux/types.h> or <time.h>. In the case of
  PowerPC related code, we instead need to bring in <asm/ppc.h>.

2 years agocommon.h: Remove this file and all references
Tom Rini [Thu, 2 May 2024 01:31:38 +0000 (19:31 -0600)] 
common.h: Remove this file and all references

With all files that had included this file directly having been updated,
we can now remove this file.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoapi: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:37 +0000 (19:31 -0600)] 
api: Remove <common.h> and add needed includes

Remove <common.h> from here and when needed add missing include files
directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoxen: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:36 +0000 (19:31 -0600)] 
xen: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agowatchdog: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:35 +0000 (19:31 -0600)] 
watchdog: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Acked-by: Angelo Dureghello <angelo@kernel-space.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agow1-eeprom: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:34 +0000 (19:31 -0600)] 
w1-eeprom: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agow1: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:33 +0000 (19:31 -0600)] 
w1: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agovirtio: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:32 +0000 (19:31 -0600)] 
virtio: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agovideo: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:31 +0000 (19:31 -0600)] 
video: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoreboot-mode: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:12 +0000 (19:31 -0600)] 
reboot-mode: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:30 +0000 (19:31 -0600)] 
usb: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoram: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:11 +0000 (19:31 -0600)] 
ram: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoufs: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:29 +0000 (19:31 -0600)] 
ufs: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agopwm: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:10 +0000 (19:31 -0600)] 
pwm: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agotpm: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:28 +0000 (19:31 -0600)] 
tpm: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agopower: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:09 +0000 (19:31 -0600)] 
power: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agotimer: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:27 +0000 (19:31 -0600)] 
timer: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agopinctrl: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:08 +0000 (19:31 -0600)] 
pinctrl: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agothermal: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:26 +0000 (19:31 -0600)] 
thermal: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agophy: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:07 +0000 (19:31 -0600)] 
phy: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agosysreset: Remove <common.h> and add needed includes
Tom Rini [Thu, 2 May 2024 01:31:25 +0000 (19:31 -0600)] 
sysreset: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>