From: qianfan Zhao
spi-sunxi driver will init pins based on "pinctrl-0", but the
implementation is very limited.
Adding an Kconfig option if you really need this feature, or disable it
and config pinmux at board's board_init.
Signed-off-by: qianfan Zhao
---
drivers/spi/Kconfig | 10 ++
Hi Tony,
On 4/23/22 04:15, Tony Dinh wrote:
Hi Stefan,
Please see my various comments below. And my thoughts at the end.
On Thu, Apr 21, 2022 at 11:15 PM Stefan Roese wrote:
Hi Tony,
On 4/21/22 23:21, Tony Dinh wrote:
What really puzzles me is, why the page address is set to a non-zero
Hi Sean,
On Mon, 18 Apr 2022 at 13:37, Sean Anderson wrote:
>
> This adds support for "nvmem cells" as seen in Linux. The nvmem device
> class in Linux is used for various assorted ROMs and EEPROMs. In this
> sense, it is similar to UCLASS_MISC, but also includes
> UCLASS_I2C_EEPROM, UCLASS_RTC,
Add a bootdev driver for MMC. It mostly just calls the bootdev helper
function.
Add a function to obtain the block device for an MMC controller.
Fix up the comment for mmc_get_blk_desc() while we are here.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Use new Return st
Use the uclass name to get the device type for a block device.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Use new sphynx Return style
drivers/block/blk-uclass.c | 7 +++
include/blk.h | 8
2 files changed, 15 insertions(+)
diff --git a/dri
A 'bootdev' is a device which can be used to boot an operating system.
It is a child of the media device (e.g. MMC) which handles reading files
from that device, such as a bootflow file.
Add a uclass for bootdev and the various helpers needed to make it
work. Also add a binding file, empty for now
When sandbox is used with hostfs we won't have a block device, but still
must set up the filesystem type before any filesystem operation, such as
loading a file. Add a function to handle this.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Add new patch with a function to
Add documentation for this feature, including the commands and full
devicetree bindings.
Signed-off-by: Simon Glass
---
Changes in v5:
- Add a Kconfig to select bootstd by default
- Rebase to master
Changes in v4:
- Update docs for typos that have been fixed
Changes in v3:
- Update docs for "b
We would like to use bootstd by default when EFI boot manager is not
enabled. But so far bootstd does not support all the of distro-boot
fetures. So for now, add an option to select this.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/Kconfig | 17 -
1 file changed,
Add a set of combined tests for the bootdev, bootflow and bootmeth
commands, along with associated functionality.
Expand the sandbox console-recording limit so that these can work.
These tests rely on a filesystem script which is not yet added to the
Python tests. It is included here as a shell s
We need to create a disk image with a partition table and a DOS-format
filesystem containing a few files. Provide a fallback binary for CI since
it does not seem able to detect the loopback partitions.
Add this to a dm_init test so that it happens when needed.
Signed-off-by: Simon Glass
---
(no
Add a bootmeth driver which handles EFI boot manager, using EFI_LOADER.
In effect, this provides the same functionality as the 'bootefi bootmgr'
command and shares the same code. But the interface into it is via a
bootmeth, so it does not require any special scripts, etc.
For now this requires th
Add a bootmeth driver which handles distro boot from a network device, so
we can boot a bootflow using this commonly used mechanism.
In effect, this provides the same functionality as the 'pxe' command
and shares the same code. But the interface into it is via a bootmeth.
For now this requires th
Add a bootmeth driver which handles distro boot from a disk via a U-Boot
script, so we can boot a bootflow using this commonly used mechanism. This
is required by Armbian, for example.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Allow use without a block device
Change
Add a bootdev driver for USB host. It can use the distro boot mechanism to
locate a file, or any other available bootmeth.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/usb_storage.c | 11 ++
drivers/usb/host/Makefile | 4 +++
drivers/usb/host/usb_bootdev.c |
Add a bootmeth driver for sandbox, used for testing.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add a log category
boot/Kconfig| 7 +
boot/Makefile | 1 +
boot/bootmeth_sandbox.c | 69 +
3 files cha
Add a bootmeth driver which handles EFI boot, using EFI_LOADER.
In effect, this provides the same functionality as the 'bootefi' command
and shares the same code. But the interface into it is via a bootmeth,
so it does not require any special scripts, etc.
For now this requires the 'bootefi' comm
Add a bootdev driver for Ethernet. It can use the PXE boot mechanism to
locate a file, added later.
Signed-off-by: Simon Glass
---
(no changes since v1)
MAINTAINERS | 1 +
net/Kconfig | 9 +
net/Makefile | 1 +
net/eth-uclass.c | 8
net/eth_bootdev.c | 101 ++
Add a 'bootflow' command to handle listing and selection of bootflow.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Make CMD_BOOTSTD_FULL depend on BOOTSTD_FULL
- Warn when trying to use the full bootflow command but it is not enabled
Changes in v3:
- Put some features
Add support for bootflows, including maintaining a list of them and
iterating to find them.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Show the bootmeth name when booting
- Use new Return style in function comments
Changes in v3:
- Explain why it is OK to use "?" as
The 'bootstd' device provides the central information about U-Boot
standard boot.
Add a uclass for bootstd and the various helpers needed to make it
work. Also add a binding file.
Signed-off-by: Simon Glass
---
Changes in v5:
- Disable bootstd for EFI app builds, since they use dm_scan_other()
A bootflow encapsulates the process used to boot an operating system.
It typically has a control file (such as extlinux.conf) and information
about which 'bootdev' it came from.
Add the header file for this first, since it is needed by all other
files.
Signed-off-by: Simon Glass
---
(no changes
Add a 'bootmeth' command to handle listing and ordering of boot methods.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Move bootmeth ordering into the uclass
cmd/Kconfig| 11 +
cmd/Makefile | 1 +
cmd/bootmeth.c | 113 ++
Add a 'bootdev' command to handle listing and selection of bootdevs.
Disable standard boot for a few boards which otherwise run out of space.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Use separate Kconfig options for each command
MAINTAINERS
A bootmeth is a method of locating an operating system. For now, just
add the uclass itself. Drivers for particular bootmeths are added later.
If no bootmeths devices are included in the devicetree, create them
automatically. This avoids the need for boilerplate in the devicetree
files.
Signed-of
Update the blk test to stop USB first, in case another test has started
it.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/blk.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/test/dm/blk.c b/test/dm/blk.c
index 8556cc7159c..85c3a3bd45c 100644
--- a/test/dm/blk.c
+++ b
Tweak a few comments to kep sphinx happy, in case we want to include this
file one day.
Also fix the 'exxamine' typo.
Patch-notes:
This uses:
sed -i 's/@param \(\S*\)\s*/@\1: /' include/vsprintf.h
to convert the @param to the new format.
Signed-off-by: Simon Glass
---
(no changes since v4
At present this has a minor bug in that it reads the byte before the
start of the string, if it is empty. Also it doesn't handle a
non-numeric prefix which is only one character long.
Fix these bugs with a reworked implementation. Add a test for the second
case. The first one is hard to test.
Sig
The bootflow tests need to use an MMC with an associated backing file
containing a filesystem. Update the fastboot tests to cope with this.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/fastboot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/dm/fa
In some cases two devices are related and the only way to tell is to
check that the names partially patch. Add a way to check this without
needing to create a new string for the comparison.
Fix the comment for device_find_child_by_namelen() while we are here.
Signed-off-by: Simon Glass
---
(no
It seems that namelen is more common in U-Boot. Rename this function to
fit in better. Also fix a bug where it breaks the operation of
uclass_get_by_name() and add a test.
Signed-off-by: Simon Glass
Reported-by: Patrick Delaunay
Reported-by: Tim Harvey
---
(no changes since v4)
Changes in v4:
This function currently has no tests. Add some.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Use new Return style in function comments
include/vsprintf.h | 4 ++--
test/str_ut.c | 19 +++
2 files changed, 21 insertions(+), 2 deletions(-)
diff --
At present it is not possible to find out which part of the string is the
number part and which is before it. Add a new variant which provides this
feature, so we can separate the two in the caller.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Use new Return style in fu
A few string tests were added to the print module by mistake. Move them.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Correct the commit tag
test/print_ut.c | 40
test/str_ut.c | 40
2
The bootflow feature provide a built-in way for U-Boot to automatically
boot an Operating System without custom scripting and other customisation.
This is called 'standard boot' since it provides a standard way for
U-Boot to boot a distro, without scripting.
It introduces the following concepts:
>-Original Message-
>From: U-Boot On Behalf Of Pali Rohár
>Sent: Tuesday, April 5, 2022 7:11 PM
>To: Priyanka Jain ; Qiang Zhao ;
>Shengzhou Liu ; Alexander Graf ;
>Bin Meng ; Wolfgang Denk ; Sinan
>Akman
>Cc: u-boot@lists.denx.de
>Subject: [PATCH 1/2] powerpc: mpc85xx: Add support for
On 4/24/22 23:39, Marek Vasut wrote:
Add ID for Winbond W25Q128JW device. This is a 128 Mbit QSPI NOR.
Tested on W25Q128JWPIM part.
Signed-off-by: Marek Vasut
Cc: Horatiu Vultur
Cc: Jagan Teki
Cc: Simon Goldschmidt
Cc: Stefan Roese
Cc: Vignesh R
Reviewed-by: Stefan Roese
Thanks,
Stefan
>-Original Message-
>From: U-Boot On Behalf Of Pali Rohár
>Sent: Tuesday, April 5, 2022 6:43 PM
>To: Priyanka Jain ; Qiang Zhao ;
>Shengzhou Liu ; Alexander Graf ;
>Bin Meng ; Wolfgang Denk ; Sinan
>Akman
>Cc: u-boot@lists.denx.de
>Subject: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE ad
Hi Rafal,
Hi Miguel,
On Mon, Apr 11, 2022 at 11:00:32AM +0200, Miquel Raynal wrote:
> On Wed, 2022-04-06 at 14:32:24 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote:
> > From: Rafał Miłecki
> >
> > Until this change MTD subsystem supported handling partitions only with
> > MTD partitions parsers. T
> On Fri, Apr 22, 2022 at 04:45:28PM +0800, Rick Chen wrote:
> > Hi, Tom,
> >
> > > From: Tom Rini
> > > Sent: Wednesday, April 20, 2022 2:43 AM
> > > To: u-boot@lists.denx.de; Rick Jian-Zhi Chen(陳建志)
> > > Subject: Re: [PATCH] nds32: Remove the architecture
> > >
> > > On Wed, Apr 06, 2022 at 09
Signed-off-by: Andrew Abbott
---
arch/arm/mach-rockchip/rk3399/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-rockchip/rk3399/Kconfig
b/arch/arm/mach-rockchip/rk3399/Kconfig
index c1f251316c..4a049935df 100644
--- a/arch/arm/mach-rockchip/rk3399/Kconfig
+++ b/arch/arm/
Binman is now being used to build the final flashable images for
Rockchip devices, thus enabling it for all Rockchip targets here. But
it is not yet being used to generate the FIT image (u-boot.itb),
thus we need to force it to be built.
Signed-off-by: Andrew Abbott
---
Question: Will this cause
Signed-off-by: Andrew Abbott
---
doc/board/rockchip/rockchip.rst | 34 +++--
1 file changed, 11 insertions(+), 23 deletions(-)
diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
index 4ca7b00b1f..1639ce4f72 100644
--- a/doc/board/rockchip/r
These are obsoleted by a previous patch which added binman image
definitions for Rockchip SD/MMC and SPI images.
Signed-off-by: Andrew Abbott
---
Makefile | 31 +++
1 file changed, 3 insertions(+), 28 deletions(-)
diff --git a/Makefile b/Makefile
index 7937a4cfd3..cf
This needs to be accessible to binman (via CONFIG_ preprocessor macros)
so it can build SPI images using the correct offset.
The documentation at 'doc/device-tree-bindings/config.txt' says that
the 'u-boot,spl-payload-offset' device tree option simply overrides
'CONFIG_SYS_SPI_U_BOOT_OFFS', so thi
This pulls in binman definitions so images can be built for all
Rockchip platforms.
Signed-off-by: Andrew Abbott
---
arch/arm/dts/rk3308-u-boot.dtsi | 2 ++
arch/arm/dts/rk3328-u-boot.dtsi | 2 ++
arch/arm/dts/rk3368-u-boot.dtsi | 1 +
arch/arm/dts/rk3568-u-boot.dtsi | 2 ++
4 files changed, 7 i
Currently, building for Rockchip targets produces:
- idbloader.img
- rksd-formatted TPL with SPL appended; or
- rksd-formatted SPL
- u-boot.itb
- U-Boot Proper FIT image
- u-boot-rockchip.bin
- idbloader.img + u-boot.itb, padded the correct amount for SD/MMC
usage.
For RK339
mkimage supports combining multiple input binaries separating them
with colons (':'). This is used at least for Rockchip platforms to
encode payload offsets and sizes in the image header. It is required for
Rockchip SPI boot since for the rkspi format, after the input binary
combining, the entire i
My original goal was to produce SPI images for Rockchip platforms (specifically
for me, ROCKPro64, and in the future ROCK64). Looking into it, it seemed nicer
to just switch the SD/MMC image generation over to binman as well in the
process.
This is my attempt to move Rockchip final full image gene
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base
address. Convert all board configurations to this new macro. This is the
first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a
clean up, no functional change.
The new macro contains compile-time test to verify N
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base
address. Convert all board configurations to this new macro. This is the
first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a
clean up, no functional change.
The new macro contains compile-time test to verify N
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base
address. Convert all board configurations to this new macro. This is the
first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a
clean up, no functional change.
The new macro contains compile-time test to verify N
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base
address. Convert all board configurations to this new macro. This is the
first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a
clean up, no functional change.
The new macro contains compile-time test to verify N
Replace ad-hoc value with LPUART_BASE macro, no functional change.
Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Peng Fan
Cc: Stefano Babic
Cc: Tom Rini
---
include/configs/cgtqmx8.h | 2 +-
include/configs/imx8qm_mek.h | 4 ++--
include/configs/imx8qxp_mek.h | 2 +-
3 files changed,
Add PCA9450 regulator driver. This is complementary driver for the BUCKn
and LDOn regulators provided by the PCA9450 PMIC driver. Currently the
driver permits reading the settngs and configuring the BUCKn and LDOn
regulators.
Reviewed-by: Fabio Estevam
Signed-off-by: Marek Vasut
Cc: Fabio Esteva
The upstream DT regulators node subnodes are named BUCKn and LDOn,
the downstream DT regulators node subnodes are named buckn and ldon,
add the upstream match.
Reviewed-by: Fabio Estevam
Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Peng Fan
Cc: Stefano Babic
---
V2: Add RB by Fabio
---
d
Add ID for Winbond W25Q128JW device. This is a 128 Mbit QSPI NOR.
Tested on W25Q128JWPIM part.
Signed-off-by: Marek Vasut
Cc: Horatiu Vultur
Cc: Jagan Teki
Cc: Simon Goldschmidt
Cc: Stefan Roese
Cc: Vignesh R
---
NOTE: This has been incorrectly marked in PW as Changes Requested
---
drivers/
Suppress warnings when building the SPL without USB_DWC3_GENERIC
Signed-off-by: Angus Ainslie
---
Changes since v1:
Updated Kconfig depends
drivers/usb/dwc3/Kconfig | 7 +++
drivers/usb/dwc3/Makefile | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3/
From: Jan Kiszka
We currently overflow due to wrong types used internally in rtc_mktime,
on all platforms, and we return a too small type on 32-bit.
One consumer that directly benefits from this is mktime64. Many others
may still store the result in a wrong type.
While at it, drop the redundant
Prepare to use ADC channel 1 to check the hardware revision of the board:
- add u-boot dts include with saradc node
Signed-off-by: Vyacheslav Bocharov
---
arch/arm/dts/meson-axg-jethome-jethub-j100-u-boot.dtsi | 10 ++
1 file changed, 10 insertions(+)
create mode 100644 arch/arm/dts/mes
Enable ADC in board config file
Signed-off-by: Vyacheslav Bocharov
Reviewed-by: Neil Armstrong
---
configs/jethub_j100_defconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/configs/jethub_j100_defconfig b/configs/jethub_j100_defconfig
index 1c6db9f6a0..a30940bf1c 100644
--- a/confi
Add support for the SARADC variant found on the AXG SoCs family.
Signed-off-by: Vyacheslav Bocharov
Acked-by: Neil Armstrong
---
drivers/adc/meson-saradc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c
index 1a45a3a265..37023512f0
Update g12a-ao clk driver:
- move clk->id check to .request function
- remove unnecessary check (gate->reg == 0)
Signed-off-by: Vyacheslav Bocharov
---
drivers/clk/meson/g12a-ao.c | 15 +--
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/drivers/clk/meson/g12a-ao.c b/dr
Update the clk-g12a-ao driver from "axg" to "g12a"
Signed-off-by: Vyacheslav Bocharov
Acked-by: Neil Armstrong
---
drivers/clk/meson/g12a-ao.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c
index 0148529e04..17b11eb5
Add minimal driver AO clocks on meson AXG family. Only ADC related clocks
are supported.
Signed-off-by: Vyacheslav Bocharov
Reviewed-by: Sean Anderson
Reviewed-by: Neil Armstrong
---
drivers/clk/meson/Makefile | 1 +
drivers/clk/meson/axg-ao.c | 86 ++
2 fi
Prepare to use ADC channel 1 in JetHub D1 (j100) to check the hardware
revision of the board.
- add support for AXG in saradc driver
- add simple clk-ao driver for AXG (base is taken from g12a)
- enable saradc in dts and board config file
- fix typo in the g12a-clk-ao driver name
- move clk->id c
66 matches
Mail list logo