Add Jh7110 Cadence USB dts node, Visionfive2 default setting
is USB 2.0 device.
Signed-off-by: Minda Chen
---
.../dts/jh7110-starfive-visionfive-2.dtsi | 5 ++
arch/riscv/dts/jh7110.dtsi| 52 +++
2 files changed, 57 insertions(+)
diff --git
Add Starfive JH7110 USB 2.0 PHY driver, which is generic
PHY driver.
Signed-off-by: Minda Chen
---
drivers/phy/Kconfig| 1 +
drivers/phy/Makefile | 1 +
drivers/phy/starfive/Kconfig | 14 +++
drivers/phy/starfive/Makefile | 6 ++
Add USB related files to Starfive visionfive2 MAINTAINERS.
Signed-off-by: Minda Chen
Reviewed-by: Marek Vasut
---
board/starfive/visionfive2/MAINTAINERS | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/starfive/visionfive2/MAINTAINERS
b/board/starfive/visionfive2/MAINTAINERS
index
Add cadence USB confiuration.
Signed-off-by: Minda Chen
---
configs/starfive_visionfive2_defconfig | 9 +
1 file changed, 9 insertions(+)
diff --git a/configs/starfive_visionfive2_defconfig
b/configs/starfive_visionfive2_defconfig
index 174ac24dc7..35137eec59 100644
---
Add cdns USB3 wrapper driver.
Signed-off-by: Minda Chen
---
drivers/usb/cdns3/Kconfig | 7 ++
drivers/usb/cdns3/Makefile | 2 +
drivers/usb/cdns3/cdns3-starfive.c | 183 +
3 files changed, 192 insertions(+)
create mode 100644
For some JH7110 boards, USB host overcurent pin is not reserved,
To make USB host work, overcurrent pin must be disabled. So set the
pin default disabled.
Signed-off-by: Minda Chen
---
drivers/pinctrl/starfive/pinctrl-jh7110-sys.c | 11 +--
1 file changed, 9 insertions(+), 2
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic
PHY driver and can be used as USB 3.0 driver.
Signed-off-by: Minda Chen
---
drivers/phy/starfive/Kconfig | 7 +
drivers/phy/starfive/Makefile | 1 +
drivers/phy/starfive/phy-jh7110-pcie.c | 202
USB PHY maybe need to set PHY mode in different USB
dr mode. So translate to generic PHY mode and call
generic_phy_set_mode().
Signed-off-by: Minda Chen
---
drivers/usb/cdns3/core.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/drivers/usb/cdns3/core.c
Add Starfive JH7110 Cadence USB driver and related PHY driver.
So the codes can be used in visionfive2 and star64 7110 board.
The driver is almost the same with kernel driver.
Test with Star64 JH7110 board USB 3.0 + USB 2.0 host.
The code can work.
- Star64 using USB 3.0 and USB 2.0 host must
Hello Alexander,
On 03.07.24 12:12, Alexander Dahl wrote:
Hei hei,
filesystem handling is different in U-Boot and beyond that UBI/UBIFS is
different from other filesystems in U-Boot. There's UBI and UBIFS code
ported from Linux (quite old already now, maybe someone wants to update
that?), and
Martyn Welch writes:
> On Thu, 2024-05-23 at 15:08 -0500, Jon Humphreys wrote:
>> Martyn Welch writes:
>>
>> > From: Sjoerd Simons
>> >
>> > 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
On Sun, 16 Jun 2024 19:31:02 +0200, Heinrich Schuchardt wrote:
> If we have multiple weak implementations of functions, the linker might
> choose any of these.
>
> ARM and RISC-V already provide a weak implementation of flush_dcache_all()
> but cmd/cache.c provides another implementation. Add an
On Wed, 19 Jun 2024 15:27:53 -0600, Tom Rini wrote:
> Implement a weak default version of flush_dcache_all which is based on
> the ARM default, which is to flush the entire range via
> flush_dcache_range(...).
>
>
Applied to u-boot/master, thanks!
--
Tom
A valid memory location to stash bootstage information at will be
architecture dependent. Move the existing defaults to the main Kconfig
file for this option and set 0x0 as the default only for sandbox.
Signed-off-by: Tom Rini
---
Cc: Simon Glass
---
arch/arm/mach-stm32mp/Kconfig.13x | 3 ---
The build option to support images of type 'IMAGE_FORMAT_LEGACY' is
CONFIG_LEGACY_IMAGE_FORMAT so update the pytest to check for the correct
option.
Signed-off-by: Tom Rini
---
test/py/tests/test_fpga.py | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
On Wed, Jul 03, 2024 at 11:12:52AM +0200, Heiko Schocher wrote:
> Hello Tom,
>
> please pull from u-boot-ubi.git master
>
> The following changes since commit 65fbdab27224ee3943a89496b21862db83c34da2:
>
> Merge branch 'next' (2024-07-01 15:00:56 -0600)
>
> are available in the Git
On Wed, Jul 03, 2024 at 09:07:58AM +0100, Simon Glass wrote:
> Hi Tom,
>
> This one is for -master and I dropped the offending commit. It will
> have to wait until someone responds on the MX9 bug.
>
>
On Wed, Jul 03, 2024 at 03:07:47PM -0300, Fabio Estevam wrote:
> Hi Tom,
>
> On Wed, Jul 3, 2024 at 3:03 PM Tom Rini wrote:
>
> > Shouldn't fdt_addr_r change too? This is making me suspect the whole map
> > is too small for safety, how much memory does the platform have at
> > minimum?
>
> It
Hi Tom,
On Wed, Jul 3, 2024 at 3:03 PM Tom Rini wrote:
> Shouldn't fdt_addr_r change too? This is making me suspect the whole map
> is too small for safety, how much memory does the platform have at
> minimum?
It has 2GB of RAM.
Changing only initrd_addr and keeping fdt_addr_r unchanged
On Wed, Jul 03, 2024 at 02:57:27PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam
>
> Booting an initramfs with the current address may lead to initramfs
> corruption and boot failure.
>
> Move it 0x4800 which avoids initramfs overlap and allows a
> successful initramfs boot.
>
>
From: Fabio Estevam
Booting an initramfs with the current address may lead to initramfs
corruption and boot failure.
Move it 0x4800 which avoids initramfs overlap and allows a
successful initramfs boot.
Signed-off-by: Fabio Estevam
---
include/configs/msc_sm2s_imx8mp.h | 2 +-
1 file
Am 03.07.24 um 07:41 schrieb Daniel Schultz:
The overlays are specified in the bootenv.txt file that is loaded into
the environment. Then these overlays get loaded and applied via a script.
These scripts for loading and applying devicetree overlays are identical
for many phytec boards.
Create
On Tue, Jul 02, 2024 at 10:41:53PM -0700, Daniel Schultz wrote:
> The overlays are specified in the bootenv.txt file that is loaded into
> the environment. Then these overlays get loaded and applied via a script.
> These scripts for loading and applying devicetree overlays are identical
> for
On Wed, Jul 03, 2024 at 06:06:52AM +0400, Mikhail Kshevetskiy wrote:
>
> On 7/1/24 19:54, Peter Robinson wrote:
> > Hi Mikhail,
> >
> >> This patch adds HTTP/1.1 compatible web-server that can be used
> >> by other. Server supports GET, POST, and HEAD requests. On client
> >> request it will call
On Fri, Jun 14, 2024 at 11:54:41AM -0500, Jon Humphreys wrote:
> Ilias Apalodimas writes:
>
> > Hi Jonathan
> >
> > On Thu, 13 Jun 2024 at 23:28, Jonathan Humphreys wrote:
> >>
> >> Use the capsule's public key certificate rather than a prebuilt ESL
> >> generated from the certificate. The ESL
Hi all
Working on the clock now. I have done a different implementation
clk-mux, clk-gate I have added a clk_generic_set_rate that is a stub
that propagate to the parent, I think that should work the same but
wihout this while and even on preparation on more
changes I need. Can be work on your
Hi Fabio
On Wed, Jul 3, 2024 at 3:44 PM Fabio Estevam wrote:
>
> Hi Michael,
>
> On Wed, Jul 3, 2024 at 6:15 AM Michael Trimarchi
> wrote:
> >
> > Upstream Linux commit f90b68d6c8b0.
>
>
> > The CORE/BUS root slice has following design, simplied graph:
> > The difference is core not have
Hi Jerome,
On Wed, 3 Jul 2024 at 03:16, Jerome Forissier
wrote:
>
>
> On 7/2/24 22:56, Tom Rini wrote:
> > On Tue, Jul 02, 2024 at 11:22:38AM -0700, Raymond Mao wrote:
> >
> >> lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree
> >> commands.
> >> Usage from U-Boot top directory,
Hi Tom,
On Tue, 2 Jul 2024 at 16:57, Tom Rini wrote:
> On Tue, Jul 02, 2024 at 11:22:38AM -0700, Raymond Mao wrote:
>
> > lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree
> > commands.
> > Usage from U-Boot top directory, run:
> >
> > $ ./lib/mbedtls/update-mbedtls-subtree.sh
On 01/07/24 20:54, Nishanth Menon wrote:
On 15:25-20240701, Sebin Francis wrote:
For HS-FS device we need to sign the fs-stub with customer key. DM firmware
cannot have a component which is signed using customer key.
Please explain please why DM cannot have a component signed using a
Mikhail Kshevetskiy writes:
> +
> +static int led_sw_set_period(struct udevice *dev, int period_ms)
> +{
> + struct led_uc_plat *uc_plat = dev_get_uclass_plat(dev);
> + struct cyclic_info *cyclic = uc_plat->cyclic;
> + struct led_ops *ops = led_get_ops(dev);
> + char
The current MediaTek Kconfig layout prevents the addition of new board
targets that require the existing SoC drivers.
By making the SoC drivers depend on new CONFIG_MT variables, it
becomes possible to select these drivers when adding new boards to the
board selection list. The existing
Use our common environment file to implement MMC boot.
Signed-off-by: Daniel Schultz
---
board/phytec/phycore_am64x/phycore_am64x.env | 12 ++--
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/board/phytec/phycore_am64x/phycore_am64x.env
Use our common environment file to implement MMC boot.
Signed-off-by: Daniel Schultz
---
board/phytec/phycore_am62x/phycore_am62x.env | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/board/phytec/phycore_am62x/phycore_am62x.env
Include the overlays.env file and run the apply routine before
booting the Kernel.
Signed-off-by: Daniel Schultz
---
include/env/phytec/k3_mmc.env | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env
index e1208a6eea1..3d3595ceb7e
This environment include can be used to boot from a
MMC device for PHYTEC's K3-based SoMs.
Signed-off-by: Daniel Schultz
---
include/env/phytec/k3_mmc.env | 18 ++
1 file changed, 18 insertions(+)
create mode 100644 include/env/phytec/k3_mmc.env
diff --git
From: Benjamin Hahn
Rename existing environment variables according to the bootstd doc.
Renamed variables are fdto_addr, bootenv_addr, fdt_addr.
Signed-off-by: Benjamin Hahn
Signed-off-by: Daniel Schultz
---
include/env/phytec/overlays.env | 19 ++-
1 file changed, 10
From: Benjamin Hahn
Rename existing environment variables according to the bootstd doc.
Renamed variables are fdto_addr, bootenv_addr, fdt_addr and
fdt_file.
Signed-off-by: Benjamin Hahn
Signed-off-by: Daniel Schultz
---
.../phytec/phycore_imx8mp/phycore_imx8mp.env | 20 +--
From: Benjamin Hahn
Include the common overlays env file for phycore_imx93.
The common overlays env file supports disabling loading overlays by
setting the no_overlays variable.
Signed-off-by: Benjamin Hahn
Signed-off-by: Daniel Schultz
---
board/phytec/phycore_imx93/phycore_imx93.env | 25
From: Benjamin Hahn
Add support for loading bootenv.txt as well as loading and applying
overlays during boot from mmc and net.
${no_bootenv}: Prevent loading external bootenv.txt environment. Use
${overlays} variable directly from u-boot environment.
${no_overlay}: Do not load
From: Benjamin Hahn
The env scripts for loading and applying overlays are identical for many
PHYTEC Boards. Create a common env that can be included.
The env variables bootenv_addr and fdto_addr are board specific and need
to be set in the board specific file. The env variable get_cmd also
The overlays are specified in the bootenv.txt file that is loaded into
the environment. Then these overlays get loaded and applied via a script.
These scripts for loading and applying devicetree overlays are identical
for many phytec boards.
Create a common overlays.env that can be included.
Add
Hi Michael,
On Wed, Jul 3, 2024 at 6:15 AM Michael Trimarchi
wrote:
>
> Upstream Linux commit f90b68d6c8b0.
> The CORE/BUS root slice has following design, simplied graph:
> The difference is core not have pre_div block.
> A composite core/bus clk has 8 inputs for mux to select, saying
CONFIG_FIT_EXTERNAL_OFFSET=0x3000
CONFIG_SPL_LOAD_FIT=y
---
base-commit: 65fbdab27224ee3943a89496b21862db83c34da2
change-id: 20240703-wip-bhahn-disable_config_android_boot_image-326ea0921a03
Best regards,
--
Benjamin Hahn
On Tue, Jun 25, 2024 at 10:08:06AM +0100, Conor Dooley wrote:
> The firmware on the Icicle is capable of providing a devicetree in a1 to
> U-Boot, but until now the devicetree has been packaged in a "payload" [1]
> alongside U-Boot (or other bootloaders/RTOSes) and appended to the image.
> The
On Tue, 2 Jul 2024 at 21:35, Raymond Mao wrote:
>
> Enable MbedTLS as default setting for qemu arm64
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v2
> - None.
> Changes in v3
> - None.
> Changes in v4
> - removed the unused CONFIG_MBEDTLS_LIB_TLS.
>
> configs/qemu_arm64_defconfig | 4
On Tue, 2 Jul 2024 at 21:30, Raymond Mao wrote:
>
> Add porting layer for public key on top of MbedTLS X509 library.
> Introduce _LEGACY and _MBEDTLS kconfigs for public key legacy and
> MbedTLS implementations respectively.
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v2
> - Move the
The scan_part() function uses a struct uuid to store the little-endian
partition type GUID, but this structure should be used only to contain a
big-endian UUID. Use an efi_guid_t instead and use guidcmp() for the
comparison.
Suggested-by: Heinrich Schuchardt
Signed-off-by: Vincent Stehlé
Cc:
Move the guidcmp() and guidcpy() functions to efi.h, near the definition of
the efi_guid_t type those functions deal with.
Signed-off-by: Vincent Stehlé
Cc: Heinrich Schuchardt
Cc: Ilias Apalodimas
Cc: Tom Rini
---
include/efi.h| 10 ++
include/efi_loader.h | 10 --
2
Hi,
This is a respin of this patch [1] after discussion [2]. Thanks to
Simon and Heinrich for their reviews.
To use the guidcmp() function, as suggested by Heinrich, we need to
make it available to bootmeth_cros.c and I think that the cleanest way
to do that is (arguably) to move the guid helper
On Tue, 2 Jul 2024 at 21:27, Raymond Mao wrote:
>
> Add the mbedtls include directories into the build system.
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v2
> - None.
> Changes in v3
> - Remove changes for PLATFORM_CPPFLAGS.
> Changes in v4
> - Fix errors when building without "O=".
> -
Hi Raymond
On Tue, 2 Jul 2024 at 21:29, Raymond Mao wrote:
>
> Move public_key_free and public_key_signature_free as helper
> functions that can be shared by legacy crypto lib and MbedTLS
> implementation.
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v4
> - Initial patch.
>
>
Safety guard in the U-Boot filesystem glue code, because these functions
are called from different parts of the codebase. For generic filesystem
handling this should have been checked in blk_get_device_part_str()
already. Commands from cmd/ubifs.c should also check this before
calling those
Although kfree() is in fact only a slim wrapper to free() in U-Boot, use
kfree() here, because those structs where allocated with kalloc() or
kzalloc().
Signed-off-by: Alexander Dahl
---
fs/ubifs/super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ubifs/super.c
When mounting ubifs e.g. through command 'ubifsmount' one global static
superblock 'ubifs_sb' is used _and_ the requested volume is opened (like
in Linux). The pointer returned by 'ubifs_open_volume()' is stored in
that superblock struct and freed later on cmd 'ubifsumount' or another
call to
Global superblock pointer 'ubifs_sb' and volume pointer 'ubi' of type
struct ubi_volume_desc in private member sb->s_fs_info of type struct
ubifs_info, can be allocated and freed at runtime, and allocated and
freed again, depending which console or script commands are run. In
some cases ubifs_sb
Hei hei,
filesystem handling is different in U-Boot and beyond that UBI/UBIFS is
different from other filesystems in U-Boot. There's UBI and UBIFS code
ported from Linux (quite old already now, maybe someone wants to update
that?), and there's "glue code" or "wrapper code" to interface with
Chris Webb wrote:
Tom Rini wrote:
Adding Marek, as the author of commit 48b3ecbedf82 ("gpio: Get rid of
gpio_hog_probe_all()").
Thanks! I don't claim this is the correct way to fix this, just that it
works.
Specifically, the two things I found that got gpio-hog working were
(a)
On Tue, 2 Jul 2024 at 21:29, Raymond Mao wrote:
>
> Move x509_check_for_self_signed as a common helper function
> that can be shared by legacy crypto lib and MbedTLS implementation.
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v4
> - Initial patch.
>
> lib/crypto/Makefile | 1 +
>
Hi Raymond
On Tue, 2 Jul 2024 at 21:30, Raymond Mao wrote:
>
> Move pkcs7_get_content_data as a helper function that can be
> shared by legacy crypto lib and MbedTLS implementation.
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v4
> - Initial patch.
>
> lib/crypto/Makefile | 1 +
>
Hi Leith,
I have a better example for reference:
arch/mips/mach-mtmips
ARCH_MTMIPS is defined for the entire MediaTek MIPS platform, same as
ARCH_MEDIATEK.
The mtmips then defined its SoC families:
SOC_MT7620, SOC_MT7621 and SOC_MT7628
Each SoC has its own folder and Kconfig, e.g.:
Hello Tom,
please pull from u-boot-ubi.git master
The following changes since commit 65fbdab27224ee3943a89496b21862db83c34da2:
Merge branch 'next' (2024-07-01 15:00:56 -0600)
are available in the Git repository at:
https://source.denx.de/u-boot/custodians/u-boot-ubi.git
On Thu, Jun 27, 2024 at 09:28:04PM +0200, Heinrich Schuchardt wrote:
>
Hi Heinrich,
Thanks for your review.
My comments below.
Best regards,
Vincent.
>
> Am 27. Juni 2024 19:06:29 MESZ schrieb "Vincent Stehlé"
> :
> >The scan_part() function uses a struct uuid to store the little-endian
>
Upstream Linux commit f90b68d6c8b0.
The CORE/BUS root slice has following design, simplied graph:
The difference is core not have pre_div block.
A composite core/bus clk has 8 inputs for mux to select, saying clk[0-7].
It support target(smart) interface and normal interface. Target interface
is
Make public the clk_fetch_parent_index and rename it. This allow
us to be reused in driver specialization
Signed-off-by: Michael Trimarchi
---
drivers/clk/clk-mux.c| 5 ++---
include/linux/clk-provider.h | 1 +
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
The mux ops for i.MX8M composite clk needs to be specialized.
In order to reduce the code duplication we need to make public some
interface and write a specific function in the mux ops. Those patches
implement the behavior
Michael Trimarchi (2):
clk: clk-mux: Make public the
Hi Raymond
On Tue, 2 Jul 2024 at 21:27, Raymond Mao wrote:
>
> Integrate common/hash.c on the hash shim layer so that hash APIs
> from mbedtls can be leveraged by boot/image and efi_loader.
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v2
> - Use the original head files instead of creating
Hi Quentin,
On 02.07.2024 15:05, Quentin Schulz wrote:
Hi Lukas,
On 7/2/24 2:58 PM, Lukas Funke wrote:
Hi Quentin,
On 02.07.2024 13:37, Quentin Schulz wrote:
Hi Lukas,
On 7/2/24 1:01 PM, Lukas Funke wrote:
Hi Quentin,
On 02.07.2024 11:16, Quentin Schulz wrote:
Hi Lukas,
On 7/2/24 8:48
Hi Mikhail,
On Wed, 3 Jul 2024 at 02:02, Mikhail Kshevetskiy
wrote:
>
> From: Michael Polyntsov
>
> The standard property
>
> linux,default-trigger = "pattern";
>
> used to get an effect. No blinking parameters can be set yet.
>
> Signed-off-by: Michael Polyntsov
> Signed-off-by: Mikhail
Hi Mikhail,
On Wed, 3 Jul 2024 at 02:02, Mikhail Kshevetskiy
wrote:
>
> From: Michael Polyntsov
>
> If hardware (or driver) doesn't support leds blinking, it's
> now possible to use software implementation of blinking instead.
> This relies on cyclic functions.
>
> v2 changes:
> * Drop
Hi Tom,
This one is for -master and I dropped the offending commit. It will
have to wait until someone responds on the MX9 bug.
https://source.denx.de/u-boot/custodians/u-boot-dm/-/commit/c85a05a5d87ce6f077c41d7e63a4a7953ddb351c
The following changes since commit
Hi Tom,
On Tue, 2 Jul 2024 at 20:04, Tom Rini wrote:
>
> On Tue, Jul 02, 2024 at 04:51:30PM +0100, Simon Glass wrote:
>
> > Hi Tom,
> >
> > This is for -next but we need to figure out the patch I just sent
> > first. I can redo the pull if that patch is acceptable, or you can
> > pick that up
On Tue, 2 Jul 2024 at 21:26, Raymond Mao wrote:
>
> We don't need an API specially for non-watchdog since sha1_csum_wd
> supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG.
> Set 0x1 as default chunk size for SHA1.
>
> Signed-off-by: Raymond Mao
> ---
> Changes in v4
> - Initial
On 7/2/24 22:56, Tom Rini wrote:
> On Tue, Jul 02, 2024 at 11:22:38AM -0700, Raymond Mao wrote:
>
>> lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree
>> commands.
>> Usage from U-Boot top directory, run:
>>
>> $ ./lib/mbedtls/update-mbedtls-subtree.sh pull
>> $
74 matches
Mail list logo