to ensure this information is always available.
Signed-off-by: Kory Maincent
---
Change in v2:
- Fix nit in the commit message
---
board/xilinx/zynqmp/zynqmp.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
On Tue, 28 May 2024 16:53:42 +0200
Michal Simek wrote:
> On 5/28/24 16:36, Kory Maincent wrote:
> > Once the environment was saved, we could not retrieve information about
>
> nit: use imperative mood.
Ah indeed.
>
> > the multiboot image used. When dealing wit
information is always available.
Signed-off-by: Kory Maincent
---
board/xilinx/zynqmp/zynqmp.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index f370fb7347a..16292ed1c7e 100644
--- a/board/xilinx/zynqmp
ned-off-by: Daniel Schultz
Acked-by: Kory Maincent
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
From: Kory Maincent
With the current code if the board has an ONFI compliant NAND without
support to the get and set features, U-boot returns an ENOTSUP error when
trying to tune the timings which prevents the probe of the device.
Indeed onfi_set_features() return ENOTSUP error if set/get
From: Kory Maincent
For now the driver does not probe if usbkbd was not present in stdin.
This presents two issues, we can not probe the driver before setting stdin
and we can not use this driver in other manner than stdin console.
This patch fixes this by adding an else statement. It simply
return ENOTSUP because we can use the default timings, the modification of
the NAND timings is optional.
Fixed it by adding an intermediate nand_onfi_set_timings function which
does nothing if set/get feature is not supported.
Signed-off-by: Kory Maincent
---
drivers/mtd/nand/raw/nand_base.c | 30
the related Makefile.
The use case is to ease the management of external devicetree when U-boot
is built by a build system.
Signed-off-by: Kory Maincent
---
Change since v1:
Use the DEVICE_TREE U-boot environment variable to select the devicetree
build rather than appending the devicetree as an
Add the support to build a dedicated devicetree located in arch/$(ARCH)/dts
This devicetree does not need to be listed in the relevant devicetree
makefile.
Just run the following command to build the foo devicetree placed before
at the right path:
$ make foo.dtb
Signed-off-by: Kory Maincent
Update the Kconfig and the board file to make the am335x board compatible
with cape detection.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Remove CAPE_EEPROM_BUS_NUM from board header
arch/arm/mach-omap2/am33xx/Kconfig | 1 +
board/ti/am335x/board.c| 1 +
2 files changed
The am335x from BeagleBone use i2c EEPROM to detect capes.
The memory is wired to i2c bus 2 therefore it need to be enabled.
Add i2c2 clock, pinmux description and pinmux enable function.
Signed-off-by: Kory Maincent
---
arch/arm/mach-omap2/am33xx/clock_am33xx.c | 1 +
board/ti/am335x/board.c
Add the extension_board_scan specific function to scan the information
of the EEPROM on one-wire and fill the extension struct.
Add the Kconfig symbol to enable the needs to detect DIPs.
Signed-off-by: Kory Maincent
Reviewed-by: Maxime Ripard
---
Change since v1:
- Replace TARGET_CHIP options
-by: Kory Maincent
Reviewed-by: Maxime Ripard
---
Change since v2:
- drop the remove action of devicetree match in the W1 EEPROMs drivers.
- move the w1_device_register function to w1-uclass.
- update the w1_device_register function to be compatible with automatic
detection and devicetree
This commit enables using the extension board detection mechanism on
CHIP boards
Signed-off-by: Kory Maincent
Acked-by: Maxime Ripard
---
configs/CHIP_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig
index a70ee31d40..8d40da090b
This commit enables using the extension board detection mechanism on
AM57xx based platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Remove CAPE_EEPROM_BUS_NUM from the header
arch/arm/mach-omap2/omap5/Kconfig | 1 +
board/ti/am57xx/board.c | 1 +
2 files changed, 2
d mmc 0:1 ${extension_overlay_addr}
/boot/${extension_overlay_name}'
=> extension scan
Found 1 extension board(s).
=> extension apply 0
519 bytes read in 3 ms (168.9 KiB/s)
Signed-off-by: Kory Maincent
Reviewed-by: Maxime Ripard
---
Change since v1:
- Add list_for_each_entry loop bracke
ms to read those I2C EEPROMs and fill
in the list of "extension" structures.
Following commits will enable this common logic on two BeagleBone
platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Use CAPE_EEPROM_BUS_NUM in Kconfig in place of the board header
board/ti/commo
.
Signed-off-by: Kory Maincent
---
arch/Kconfig| 2 ++
arch/sandbox/dts/Makefile | 1 +
arch/sandbox/dts/overlay0.dts | 9 ++
arch/sandbox/dts/overlay1.dts | 9 ++
board/sandbox/sandbox.c | 23 +++
test/py/tests/test_extension.py | 52
Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.
Update code syntax.
Signed-off-by: Kory Maincent
Reviewed-by: Tom Rini
Reviewed-by: Maxime Ripard
---
cmd/fdt.c | 49
n detection
- update the patch separation between the mechanism for the CHIP and the
configuration activation
Change since v3:
- Update commit messages on the extension command patch
- Remove a test on CMD_EXTENSION in the chip.c file.
Change since v4:
- Rebase on master
Kory Maincent (10):
Update the Kconfig and the board file to make the am335x board compatible
with cape detection.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Remove CAPE_EEPROM_BUS_NUM from board header
arch/arm/mach-omap2/am33xx/Kconfig | 1 +
board/ti/am335x/board.c| 1 +
2 files changed
-by: Kory Maincent
Reviewed-by: Maxime Ripard
---
Change since v2:
- drop the remove action of devicetree match in the W1 EEPROMs drivers.
- move the w1_device_register function to w1-uclass.
- update the w1_device_register function to be compatible with automatic
detection and devicetree
The am335x from BeagleBone use i2c EEPROM to detect capes.
The memory is wired to i2c bus 2 therefore it need to be enabled.
Add i2c2 clock, pinmux description and pinmux enable function.
Signed-off-by: Kory Maincent
---
arch/arm/mach-omap2/am33xx/clock_am33xx.c | 1 +
board/ti/am335x/board.c
This commit enables using the extension board detection mechanism on
CHIP boards
Signed-off-by: Kory Maincent
Acked-by: Maxime Ripard
---
configs/CHIP_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig
index a70ee31d40..8d40da090b
d mmc 0:1 ${extension_overlay_addr}
/boot/${extension_overlay_name}'
=> extension scan
Found 1 extension board(s).
=> extension apply 0
519 bytes read in 3 ms (168.9 KiB/s)
Signed-off-by: Kory Maincent
Reviewed-by: Maxime Ripard
---
Change since v1:
- Add list_for_each_entry loop bracke
Add the extension_board_scan specific function to scan the information
of the EEPROM on one-wire and fill the extension struct.
Add the Kconfig symbol to enable the needs to detect DIPs.
Signed-off-by: Kory Maincent
Reviewed-by: Maxime Ripard
---
Need the following patches series to fix a one
This commit enables using the extension board detection mechanism on
AM57xx based platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Remove CAPE_EEPROM_BUS_NUM from the header
arch/arm/mach-omap2/omap5/Kconfig | 1 +
board/ti/am57xx/board.c | 1 +
2 files changed, 2
ms to read those I2C EEPROMs and fill
in the list of "extension" structures.
Following commits will enable this common logic on two BeagleBone
platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Use CAPE_EEPROM_BUS_NUM in Kconfig in place of the board header
board/ti/commo
.
Signed-off-by: Kory Maincent
---
arch/Kconfig| 2 ++
arch/sandbox/dts/Makefile | 1 +
arch/sandbox/dts/overlay0.dts | 9 ++
arch/sandbox/dts/overlay1.dts | 9 ++
board/sandbox/sandbox.c | 23 +++
test/py/tests/test_extension.py | 52
n detection
- update the patch separation between the mechanism for the CHIP and the
configuration activation
Change since v3:
- Update commit messages on the extension command patch
- Remove a test on CMD_EXTENSION in the chip.c file.
Kory Maincent (10):
fdt_support: move fdt_valid from cmd_fd
Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.
Update code syntax.
Signed-off-by: Kory Maincent
Reviewed-by: Tom Rini
Reviewed-by: Maxime Ripard
---
cmd/fdt.c | 49
-by: Kory Maincent
---
Change since v2:
- drop the remove action of devicetree match in the W1 EEPROMs drivers.
- move the w1_device_register function to w1-uclass.
- update the w1_device_register function to be compatible with automatic
detection and devicetree detection. I will not bind the
This commit enables using the extension board detection mechanism on
CHIP boards
Signed-off-by: Kory Maincent
---
configs/CHIP_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig
index a70ee31d40..8d40da090b 100644
--- a/configs
Update the Kconfig and the board file to make the am335x board compatible
with cape detection.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Remove CAPE_EEPROM_BUS_NUM from board header
arch/arm/mach-omap2/am33xx/Kconfig | 1 +
board/ti/am335x/board.c| 1 +
2 files changed
The am335x from BeagleBone use i2c EEPROM to detect capes.
The memory is wired to i2c bus 2 therefore it need to be enabled.
Add i2c2 clock, pinmux description and pinmux enable function.
Signed-off-by: Kory Maincent
---
arch/arm/mach-omap2/am33xx/clock_am33xx.c | 1 +
board/ti/am335x/board.c
Add the extension_board_scan specific function to scan the information
of the EEPROM on one-wire and fill the extension struct.
Add the Kconfig symbol to enable the needs to detect DIPs.
Signed-off-by: Kory Maincent
---
Need the following patches series to fix a one-wire gpio issue.
https
This commit enables using the extension board detection mechanism on
AM57xx based platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- remove CAPE_EEPROM_BUS_NUM from the header
arch/arm/mach-omap2/omap5/Kconfig | 1 +
board/ti/am57xx/board.c | 1 +
2 files changed, 2
.
Signed-off-by: Kory Maincent
---
arch/Kconfig| 2 ++
arch/sandbox/dts/Makefile | 1 +
arch/sandbox/dts/overlay0.dts | 9 ++
arch/sandbox/dts/overlay1.dts | 9 ++
board/sandbox/sandbox.c | 23 +++
test/py/tests/test_extension.py | 52
ms to read those I2C EEPROMs and fill
in the list of "extension" structures.
Following commits will enable this common logic on two BeagleBone
platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- use CAPE_EEPROM_BUS_NUM in Kconfig in place of the board header
board/ti/commo
an example on how to use it:
=> run loadfdt
=> fdt addr $fdtaddr
=> setenv extension_overlay_addr 0x1000
=> setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr}
/boot/${extension_overlay_name}'
=> extension scan
Found 1 extension board(s).
=> extens
Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.
Update code syntax.
Signed-off-by: Kory Maincent
Reviewed-by: Tom Rini
---
cmd/fdt.c | 49 ---
common
n detection
- update the patch separation between the mechanism for the CHIP and the
configuration activation
Kory Maincent (10):
fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c
cmd: add support for a new "extension" command
pytest: add sandbox test for "extension"
The am335x from BeagleBone use i2c EEPROM to detect capes.
The memory is wired to i2c bus 2 therefore it need to be enabled.
Add i2c2 clock, pinmux description and pinmux enable function.
Signed-off-by: Kory Maincent
---
arch/arm/mach-omap2/am33xx/clock_am33xx.c | 1 +
board/ti/am335x/board.c
Update the Kconfig and the board file to make the am335x board compatible
with cape detection.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Remove CAPE_EEPROM_BUS_NUM from board header
arch/arm/mach-omap2/am33xx/Kconfig | 1 +
board/ti/am335x/board.c| 1 +
2 files changed
Add the extension_board_scan specific function to scan the information
of the EEPROM on one-wire and fill the extension struct.
Signed-off-by: Kory Maincent
---
arch/arm/mach-sunxi/Kconfig | 2 +
board/sunxi/Makefile| 1 +
board/sunxi/chip.c | 104
The CHIP board use one-wire EEPROM to discover and identify extension
boards (called "DIPs").
This commit add a Kconfig configuration for the CHIP board to enable the
EEPROM one-wire driver.
Signed-off-by: Kory Maincent
---
Need the following patches series to fix a one-wire gpio is
Remove the sandbox example of one-wire node because the detection of w1 is
now automatic and does not depend on the devicetree.
Remove the devicetree binding document.
Signed-off-by: Kory Maincent
---
arch/sandbox/dts/sandbox.dtsi | 18 --
.../w1-eeprom/eep_sandbox.txt
.
Signed-off-by: Kory Maincent
---
drivers/w1-eeprom/ds24xxx.c | 20 ++---
drivers/w1-eeprom/ds2502.c | 18 ++-
drivers/w1-eeprom/w1-eeprom-uclass.c | 45
drivers/w1/w1-uclass.c | 2 +-
include/w1-eeprom.h
Remove the sandbox w1 eeprom driver. The detection of w1 is
now automatic and does not depend on the devicetree, therefore this driver
can not be loaded anymore.
Signed-off-by: Kory Maincent
---
drivers/w1-eeprom/Makefile | 2 --
drivers/w1-eeprom/eep_sandbox.c | 61
ms to read those I2C EEPROMs and fill
in the list of "extension" structures.
Following commits will enable this common logic on two BeagleBone
platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- use CAPE_EEPROM_BUS_NUM in Kconfig in place of the board header
board/ti/commo
This commit enables using the extension board detection mechanism on
AM57xx based platforms.
Signed-off-by: Kory Maincent
---
Change Since v1:
- Remove CAPE_EEPROM_BUS_NUM from the header
arch/arm/mach-omap2/omap5/Kconfig | 1 +
board/ti/am57xx/board.c | 1 +
2 files changed, 2
.
Signed-off-by: Kory Maincent
---
arch/Kconfig| 2 ++
arch/sandbox/dts/Makefile | 1 +
arch/sandbox/dts/overlay0.dts | 9 ++
arch/sandbox/dts/overlay1.dts | 9 ++
board/sandbox/sandbox.c | 23 +++
test/py/tests/test_extension.py | 52
an example on how to use it:
=> run loadfdt
=> fdt addr $fdtaddr
=> setenv extension_overlay_addr 0x1000
=> setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr}
/boot/${extension_overlay_name}'
=> extension scan
Found 1 extension board(s).
=> extens
Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.
Update code syntax.
Signed-off-by: Kory Maincent
Reviewed-by: Tom Rini
---
cmd/fdt.c | 49 ---
common
to makes it automatic and not devicetree
dependant
- replace Kconfig CHIP board target by Kconfig CHIP_DIP_SCAN simple option
- rewrite doc to rST syntax
- make few syntax update
Kory Maincent (12):
fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c
cmd: add support for a new
Add the extension_board_scan specific function to scan the information
of the EEPROM on one-wire and fill the extension struct.
Signed-off-by: Kory Maincent
---
arch/arm/mach-sunxi/Kconfig | 2 +
board/sunxi/Makefile| 1 +
board/sunxi/chip.c | 104
Update the Kconfig and the board file to make the am335x board compatible
with cape detection.
Signed-off-by: Kory Maincent
---
arch/arm/mach-omap2/am33xx/Kconfig | 1 +
board/ti/am335x/board.c| 1 +
include/configs/am335x_evm.h | 2 ++
3 files changed, 4 insertions(+)
diff
The am335x from BeagleBone use i2c EEPROM to detect capes.
The memory is wired to i2c bus 2 therefore it need to be enabled.
Add i2c2 clock, pinmux description and pinmux enable function.
Signed-off-by: Kory Maincent
---
arch/arm/mach-omap2/am33xx/clock_am33xx.c | 1 +
board/ti/am335x/board.c
The CHIP board use one-wire EEPROM to discover and identify extension
boards (called "DIPs").
This commit add the configuration for the CHIP board target to enable the
EEPROM one-wire driver.
Signed-off-by: Kory Maincent
---
Need the following patches series to fix a one-wire gpio is
Add the EEPROM description in the devicetree for the CHIP board.
Signed-off-by: Kory Maincent
---
arch/arm/dts/sun5i-r8-chip.dts | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/dts/sun5i-r8-chip.dts b/arch/arm/dts/sun5i-r8-chip.dts
index 879a4b0f3b..d915eb3eb7 100644
--- a
This commit enables using the extension board detection mechanism on
AM57xx based platforms.
Signed-off-by: Kory Maincent
---
arch/arm/mach-omap2/omap5/Kconfig | 1 +
board/ti/am57xx/board.c | 1 +
include/configs/am57xx_evm.h | 2 ++
3 files changed, 4 insertions(+)
diff --git
an example on how to use it:
=> run loadfdt
=> fdt addr $fdtaddr
=> setenv extension_overlay_addr 0x1000
=> setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr}
/boot/${extension_overlay_name}'
=> extension scan
Found 1 extension board(s).
=> extens
.
Signed-off-by: Kory Maincent
---
arch/Kconfig| 2 ++
arch/sandbox/dts/Makefile | 1 +
arch/sandbox/dts/overlay0.dts | 9 ++
arch/sandbox/dts/overlay1.dts | 9 ++
board/sandbox/sandbox.c | 23 +++
test/py/tests/test_extension.py | 52
ms to read those I2C EEPROMs and fill
in the list of "extension" structures.
Following commits will enable this common logic on two BeagleBone
platforms.
Signed-off-by: Kory Maincent
---
board/ti/common/Kconfig | 3 ++
board/ti/common/Makefile | 1 +
board/ti/commo
Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.
Update code syntax.
Signed-off-by: Kory Maincent
---
cmd/fdt.c | 49 ---
common/fdt_support.c | 46
PATCH 9 and 10 enable the mechanism for the BeagleBone Black
Thanks in advance for your review and feedback
Kory Maincent (10):
fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c
cmd: add support for a new "extension" command
pytest: add sandbox test for "
Add "zboot" command to the list of supported boot in the label_boot
function.
Signed-off-by: Kory Maincent
Reviewed-by: Simon Glass
Reviewed-by: Bin Meng
---
Change since v1:
- Modify comment.
Change since v2:
- Update do_zboot to do_zboot_parent function to follow the patch:
Remove the extern of the header because they are useless.
Signed-off-by: Kory Maincent
Reviewed-by: Bin Meng
---
include/command.h | 56 +++
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/include/command.h b/include/command.h
index
Replace all the macro ifdef by IS_ENABLED.
All of these configs are set in the defconfig files and not in the
include board headers files.
Signed-off-by: Kory Maincent
---
Change since v4:
- Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible
Add "zboot" command to the list of supported boot in the label_boot
function.
Signed-off-by: Kory Maincent
Reviewed-by: Simon Glass
---
Change since v1:
- Modify comment.
Change since v2:
- Update do_zboot to do_zboot_parent function to follow the patch:
5588e776b0
Chang
Replace all the macro ifdef by IS_ENABLED.
All of these configs are set in the defconfig files and not in the
include board headers files.
Signed-off-by: Kory Maincent
---
cmd/pxe_utils.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/cmd/pxe_utils.c b/cmd
Remove the extern of the header because they are useless.
Signed-off-by: Kory Maincent
---
include/command.h | 56 +++
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/include/command.h b/include/command.h
index 45d59f92d2..747f8f8095
Add "zboot" command to the list of supported boot in the label_boot
function.
Signed-off-by: Kory Maincent
---
Change since v1:
- Modify comment
Change since v2:
- Update do_zboot to do_zboot_parent function to follow the patch:
5588e776b0
cmd/pxe_utils.c | 4
include
The commit cd2faeba1a moves the location where we save the flags to the gpio
descriptor but it adds a "!" character.
This breaks the condition we expect to save the flags.
Signed-off-by: Kory Maincent
---
drivers/gpio/gpio-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletio
Add "zboot" command to the list of supported boot in the label_boot function.
Signed-off-by: Kory Maincent
---
Change since v1:
- Modify comment
cmd/pxe_utils.c | 4
include/command.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/cmd/pxe_utils.c b/cmd/pxe_uti
Signed-off-by: Kory Maincent
---
cmd/pxe_utils.c | 4
include/command.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c
index 53af04d7dc..deaedcf347 100644
--- a/cmd/pxe_utils.c
+++ b/cmd/pxe_utils.c
@@ -548,6 +548,10 @@ static int label_boot
76 matches
Mail list logo