[PATCH v2] sysboot: add zboot support to boot x86 Linux kernel image

2020-12-25 Thread Kory Maincent
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

[PATCH] sysboot: add zboot support to boot x86 image

2020-12-10 Thread Kory Maincent
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

[PATCH] gpio-uclass: fix gpio flags save condition

2021-01-22 Thread Kory Maincent
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

[PATCH v3] sysboot: add zboot support to boot x86 Linux kernel image

2021-02-01 Thread Kory Maincent
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

[PATCH v4 2/3] command.h: Clean-up patch, remove extern from the header

2021-02-02 Thread Kory Maincent
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

[PATCH v4 3/3] pxe_utils: clean-up, replace ifdef by IS_ENABLED

2021-02-02 Thread Kory Maincent
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

[PATCH v4 1/3] sysboot: add zboot support to boot x86 Linux kernel image

2021-02-02 Thread Kory Maincent
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

[PATCH v5 2/3] pxe_utils: clean-up, replace ifdef by IS_ENABLED

2021-02-02 Thread Kory Maincent
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 cmd/pxe_utils.c | 52

[PATCH v5 1/3] command.h: Clean-up patch, remove extern from the header

2021-02-02 Thread Kory Maincent
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

[PATCH v5 3/3] sysboot: add zboot support to boot x86 Linux kernel image

2021-02-02 Thread Kory Maincent
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:

[PATCH] Makefile: add support to build dedicated devicetree

2021-07-09 Thread Kory Maincent
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

[PATCH v5 04/10] ti/common: add support for extension_scan_board function

2021-05-04 Thread Kory Maincent
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

[PATCH v5 01/10] fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c

2021-05-04 Thread Kory Maincent
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

[PATCH v5 00/10] Add support for extension boards detection and DT overlays application

2021-05-04 Thread Kory Maincent
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):

[PATCH v5 03/10] pytest: add sandbox test for "extension" command

2021-05-04 Thread Kory Maincent
. 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

[PATCH v5 02/10] cmd: add support for a new "extension" command

2021-05-04 Thread Kory Maincent
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 bracket - Move

[PATCH v5 06/10] w1: replace dt detection by automatic detection

2021-05-04 Thread Kory Maincent
-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

[PATCH v5 08/10] configs: CHIP: add support for DIP detect functionality

2021-05-04 Thread Kory Maincent
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

[PATCH v5 07/10] arm: sunxi: add support for DIP detection to CHIP board

2021-05-04 Thread Kory Maincent
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

[PATCH v5 05/10] am57xx: add support for cape detect functionality

2021-05-04 Thread Kory Maincent
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

[PATCH v5 09/10] arm: am335x: add support for i2c2 bus

2021-05-04 Thread Kory Maincent
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

[PATCH v5 10/10] am335x: add support for cape detect functionality

2021-05-04 Thread 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

[PATCH v3 00/10] Add support for extension boards detection and DT overlays application

2021-03-24 Thread Kory Maincent
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"

[PATCH v3 01/10] fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c

2021-03-24 Thread Kory Maincent
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

[PATCH v3 04/10] ti/common: add support for extension_scan_board function

2021-03-24 Thread Kory Maincent
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

[PATCH v3 02/10] cmd: add support for a new "extension" command

2021-03-24 Thread Kory Maincent
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). => extension apply

[PATCH v3 09/10] arm: am335x: add support for i2c2 bus

2021-03-24 Thread Kory Maincent
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

[PATCH v3 07/10] arm: sunxi: add support for DIP detection to CHIP board

2021-03-24 Thread Kory Maincent
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

[PATCH v3 03/10] pytest: add sandbox test for "extension" command

2021-03-24 Thread Kory Maincent
. 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

[PATCH v3 05/10] am57xx: add support for cape detect functionality

2021-03-24 Thread Kory Maincent
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

[PATCH v3 06/10] w1: replace dt detection by automatic detection

2021-03-24 Thread Kory Maincent
-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

[PATCH v3 10/10] am335x: add support for cape detect functionality

2021-03-24 Thread 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

[PATCH v3 08/10] configs: CHIP: add support for DIP detect functionality

2021-03-24 Thread Kory Maincent
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

[PATCH v2 02/12] cmd: add support for a new "extension" command

2021-03-02 Thread Kory Maincent
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). => extension apply

[PATCH v2 04/12] ti/common: add support for extension_scan_board function

2021-03-02 Thread Kory Maincent
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

[PATCH v2 03/12] pytest: add sandbox test for "extension" command

2021-03-02 Thread Kory Maincent
. 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

[PATCH v2 07/12] w1-eeprom: remove sandbox eeprom driver

2021-03-02 Thread Kory Maincent
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

[PATCH v2 05/12] am57xx: add support for cape detect functionality

2021-03-02 Thread Kory Maincent
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

[PATCH v2 00/12] Add support for extension boards detection and DT overlays application

2021-03-02 Thread Kory Maincent
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

[PATCH v2 01/12] fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c

2021-03-02 Thread Kory Maincent
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

[PATCH v2 10/12] sun5i: add support for DIP detection to CHIP board

2021-03-02 Thread Kory Maincent
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

[PATCH v2 11/12] arm: am335x: add support for i2c2 bus

2021-03-02 Thread Kory Maincent
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

[PATCH v2 06/12] w1: replace dt detection by automatic detection

2021-03-02 Thread Kory Maincent
. 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

[PATCH v2 12/12] am335x: add support for cape detect functionality

2021-03-02 Thread 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

[PATCH v2 08/12] sandbox: remove w1-eeprom declaration and document

2021-03-02 Thread Kory Maincent
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

[PATCH v2 09/12] arm: mach-sunxi: add configuration for the CHIP to enable w1

2021-03-02 Thread Kory Maincent
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

[PATCH v4 07/10] arm: sunxi: add support for DIP detection to CHIP board

2021-04-20 Thread Kory Maincent
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

[PATCH v4 02/10] cmd: add support for a new "extension" command

2021-04-20 Thread Kory Maincent
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 bracket - Move

[PATCH v4 09/10] arm: am335x: add support for i2c2 bus

2021-04-20 Thread Kory Maincent
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

[PATCH v4 05/10] am57xx: add support for cape detect functionality

2021-04-20 Thread Kory Maincent
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

[PATCH v4 08/10] configs: CHIP: add support for DIP detect functionality

2021-04-20 Thread Kory Maincent
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

[PATCH v4 00/10] Add support for extension boards detection and DT overlays application

2021-04-20 Thread Kory Maincent
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 cm

[PATCH v4 03/10] pytest: add sandbox test for "extension" command

2021-04-20 Thread Kory Maincent
. 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

[PATCH v4 04/10] ti/common: add support for extension_scan_board function

2021-04-20 Thread Kory Maincent
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

[PATCH v4 01/10] fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c

2021-04-20 Thread Kory Maincent
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

[PATCH v4 06/10] w1: replace dt detection by automatic detection

2021-04-20 Thread Kory Maincent
-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

[PATCH v4 10/10] am335x: add support for cape detect functionality

2021-04-20 Thread 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

[PATCH 04/10] ti/common: add support for extension_scan_board function

2021-02-18 Thread Kory Maincent
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

[PATCH 03/10] pytest: add sandbox test for "extension" command

2021-02-18 Thread Kory Maincent
. 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

[PATCH 01/10] fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c

2021-02-18 Thread Kory Maincent
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 00/10] Add support for extension boards detection and DT overlays application

2021-02-18 Thread Kory Maincent
P - 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 "

[PATCH 09/10] arm: am335x: add support for i2c2 bus

2021-02-18 Thread Kory Maincent
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

[PATCH 02/10] cmd: add support for a new "extension" command

2021-02-18 Thread Kory Maincent
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). => extension apply

[PATCH 05/10] am57xx: add support for cape detect functionality

2021-02-18 Thread Kory Maincent
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

[PATCH 07/10] arm: mach-sunxi: add CHIP board target

2021-02-18 Thread Kory Maincent
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

[PATCH 06/10] arm: dts: sun5i: enable one-wire on the CHIP

2021-02-18 Thread Kory Maincent
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

[PATCH 08/10] sun5i: add support for DIP detection to CHIP board

2021-02-18 Thread Kory Maincent
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

[PATCH 10/10] am335x: add support for cape detect functionality

2021-02-18 Thread Kory Maincent
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

[PATCH v2] dts: Makefile: add support to build dedicated devicetree

2021-07-20 Thread Kory Maincent
to 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

[PATCH] mtd: nand: Add support to dedicated function to set timings

2022-02-01 Thread Kory Maincent
not 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

[PATCH v2] mtd: rawnand: Add support to dedicated function to set timings

2022-06-22 Thread kory . maincent
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

[PATCH] usb: kbd: allow probing even if usbkbd not in stdin

2022-06-22 Thread kory . maincent
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

[PATCH v2] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-29 Thread Kory Maincent
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

Re: [PATCH] include: extension_board: Increase overlay file name size

2024-05-22 Thread Kory Maincent
ned-off-by: Daniel Schultz Acked-by: Kory Maincent -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com

Re: [PATCH] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-28 Thread Kory Maincent
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 deali

[PATCH] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-28 Thread Kory Maincent
this 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