Re: [U-boot] [PATCH 01/13] arch: arm: dts: k3-am625-phyboard-lyra: Add fixed partitions

2024-06-12 Thread Wadim Egorov
Am 11.06.24 um 10:08 schrieb Teresa Remmet: Hello Wadim, Am Montag, dem 10.06.2024 um 15:33 +0200 schrieb Wadim Egorov: From: Nathan Morrisson Add a fixed partitions node to the AM62x device tree so that it can be used to fixup the Linux device tree. for which branch is this series

[PATCH 13/13] board: phytec: phycore-am62x: Use memory nodes in higher boot stages

2024-06-10 Thread Wadim Egorov
There is no need to reread the EEPROM multiple times in different stages to detect the RAM size. We can do this once at an early stage and let higher stages decode memory nodes using fdtdec. Make sure to pass fixup memory nodes before passing to u-boot stage. Signed-off-by: Wadim Egorov

[PATCH 12/13] doc: board: phytec: phycore-am6: Use mtd commands

2024-06-10 Thread Wadim Egorov
Update Flash to SPI NOR chapter for use with mtd commands. This is more convenient as we do not have to remember any offsets in the SPI. Signed-off-by: Wadim Egorov --- doc/board/phytec/phycore-am62x.rst | 8 doc/board/phytec/phycore-am64x.rst | 8 2 files changed, 8

[PATCH 11/13] doc: board: phytec: phycore-am62x: Add USB DFU switch config

2024-06-10 Thread Wadim Egorov
Provide boot switch config for USB DFU boot. Signed-off-by: Wadim Egorov --- doc/board/phytec/phycore-am62x.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/board/phytec/phycore-am62x.rst b/doc/board/phytec/phycore-am62x.rst index bc6d5246694..f8870657be0 100644 --- a/doc/board

[PATCH 10/13] configs: phycore_am6xx: Update MTD & SPI configs

2024-06-10 Thread Wadim Egorov
Enable mtd command and remove SPI NOR flashes we do not populate on our SoMs. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 4 ++-- configs/phycore_am62x_r5_defconfig | 1 - configs/phycore_am64x_a53_defconfig | 4 ++-- configs/phycore_am64x_r5_defconfig | 1 - 4 files

[PATCH 09/13] board: phytec: phycore-am62x: Pull in k3_dfu.env

2024-06-10 Thread Wadim Egorov
Pull in ti/k3_dfu.env for dfu_alt_info_ram in SPL stage. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore_am62x.env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/phytec/phycore_am62x/phycore_am62x.env b/board/phytec/phycore_am62x/phycore_am62x.env index

[PATCH 08/13] configs: phycore_am62x_a53_defconfig: Enable DFU boot

2024-06-10 Thread Wadim Egorov
Enable configs required for booting via DFU. Configs taken from the am62x_a53_usbdfu.config config fragment. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 28 1 file changed, 28 insertions(+) diff --git a/configs/phycore_am62x_a53_defconfig

[PATCH 07/13] arm: dts: k3-am625-phyboard-lyra-rdk: Enable usb port in u-boot

2024-06-10 Thread Wadim Egorov
Enable usb0 in all boot phases for use with DFU. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi b/arch/arm/dts/k3-am625-phyboard-lyra-rdk-u

[PATCH 04/13] board: phytec: phycore-am62x: Fix CONFIG_SPL_BOARD_INIT

2024-06-10 Thread Wadim Egorov
Make sure spl_board_init() gets compiled by enabling missing CONFIG_SPL_BOARD_INIT and including hardware.h. Fixes: 085cd6459dae ("board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM") Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore-am62x.c | 1

[PATCH 03/13] board: phytec: common: k3: Copy fixed partitions to OS device tree

2024-06-10 Thread Wadim Egorov
Copy fixed-partitions nodes from U-Boot device tree to OS device tree. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/board.c | 10 ++ configs/phycore_am62x_a53_defconfig | 1 + 2 files changed, 11 insertions(+) diff --git a/board/phytec/common/k3/board.c b/board/phytec

[PATCH 05/13] configs: phycore_am62x: Update environment location

2024-06-10 Thread Wadim Egorov
Update environment location to align with OSPI fixed-partition definitions and provide a redundant environment at a 2nd location. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs

[PATCH 06/13] configs: phycore_am64x: Update environment location

2024-06-10 Thread Wadim Egorov
Update environment location to align with OSPI fixed-partition definitions and provide a redundant environment at a 2nd location. Signed-off-by: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs

[PATCH 02/13] arch: arm: dts: k3-am642-phyboard-electra: Add fixed partitions

2024-06-10 Thread Wadim Egorov
From: Nathan Morrisson Add a fixed partitions node to the AM64x device tree so that it can be used to fixup the Linux device tree. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- .../k3-am642-phyboard-electra-rdk-u-boot.dtsi | 26 +++ 1 file changed, 26

[PATCH 01/13] arch: arm: dts: k3-am625-phyboard-lyra: Add fixed partitions

2024-06-10 Thread Wadim Egorov
From: Nathan Morrisson Add a fixed partitions node to the AM62x device tree so that it can be used to fixup the Linux device tree. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- .../k3-am625-phyboard-lyra-rdk-u-boot.dtsi| 26 +++ 1 file changed, 26

[PATCH 00/13] *** Various fixes & improvements for phycore-AM6* SoMs ***

2024-06-10 Thread Wadim Egorov
: dts: k3-am642-phyboard-electra: Add fixed partitions Wadim Egorov (11): board: phytec: common: k3: Copy fixed partitions to OS device tree board: phytec: phycore-am62x: Fix CONFIG_SPL_BOARD_INIT configs: phycore_am62x: Update environment location configs: phycore_am64x: Update environment

Re: [PATCH v3 7/8] board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled

2024-05-30 Thread Wadim Egorov
Hi Santhosh, thanks for this series! Am 23.05.24 um 07:04 schrieb Santhosh Kumar K: As there are few redundant functions in board/ti/*/evm.c files, pull them to a common location of access to reuse and include the common file to access the functions. Call k3-ddrss driver through

Re: [Upstream] [PATCH 5/6] board: phytec: common: k3: Set MAC

2024-05-22 Thread Wadim Egorov
_data data; + int ret; + + ret = phytec_eeprom_data_setup(, 0, EEPROM_ADDR); + if (ret || !data.valid) + return 0; Don't you want to return an error or at least print a warning? Apart from that, Reviewed-by: Wa

Re: [Upstream] [PATCH 6/6] configs: phycore_am62x_a53_defconfig: Enable CONFIG_ENV_OVERWRITE

2024-05-22 Thread Wadim Egorov
Hi Daniel, Am 22.05.24 um 08:18 schrieb Daniel Schultz: Enable CONFIG_ENV_OVERWRITE to overwrite ethaddr in the environment. This is required because our environment is not located in the boot partition. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 1 + What about

Re: [Upstream] [PATCH 0/6] PHYTEC SOM Detection API v3

2024-05-22 Thread Wadim Egorov
the Ethernet interface number (u8), MAC address (6 x u8) and a CRC8 checksum. For this series, Tested-by: Wadim Egorov

[PATCH v2 2/5] board: phytec: Fix function definitions in AM6x SOM detection

2024-05-22 Thread Wadim Egorov
Functions are declared as phytec_am6* and not phytec_am62*. Update the definitions to match the declarations. Fixes: 9d152c23279c ("board: phytec: Add SOM detection for AM6x") Signed-off-by: Wadim Egorov Tested-by: John Ma --- board/phytec/common/am6_som_detection.c | 18 +--

[PATCH v2 5/5] board: phytec: am62x: Add support for 1 & 4 GB RAM variants

2024-05-22 Thread Wadim Egorov
Use content of EEPROM to detect the actual RAM size and adjust DDR timings, size and banks accordingly. Also enable the SoM detection per default in the defconfigs. Signed-off-by: Wadim Egorov Tested-by: John Ma --- v2: - Add Kconfig option to select RAM size statically --- board/phytec

[PATCH v2 4/5] board: phytec: common: Introduce a method to inject DDR timings deltas

2024-05-22 Thread Wadim Egorov
Introduce fdt_apply_ddrss_timings_patch() to allow board code to override DDR settings in the device tree prior to DDRSS driver probing. Signed-off-by: Wadim Egorov Tested-by: John Ma --- v2: - Make board/phytec/common/k3 always compile for CONFIG_ARCH_K3 --- board/phytec/common/Makefile

[PATCH v2 3/5] arm: mach-k3: am625: Call do_board_detect() before DDR probing

2024-05-22 Thread Wadim Egorov
Call do_board_detect() hook before the K3 DDRSS driver gets probed. It will allow boards to adjust DDR timings in do_board_detect(). Signed-off-by: Wadim Egorov Tested-by: John Ma --- arch/arm/mach-k3/am62x/am625_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-k3

[PATCH v2 0/5] *** phyCORE-AM62x: DDR detection / Inject DDR timing deltas ***

2024-05-22 Thread Wadim Egorov
Changes in v2: - Reabse to current next - Add Tested-by: John Ma - Add Kconfig option to select RAM size statically - Make board/phytec/common/k3 always compile for CONFIG_ARCH_K3 v1: https://lists.denx.de/pipermail/u-boot/2024-May/553057.html Wadim Egorov (5): board: phytec: Make AM6

[PATCH v2 1/5] board: phytec: Make AM6 SoM detection depend on I2C

2024-05-22 Thread Wadim Egorov
SoM detection is using I2C driver model functions. Let's depend on I2C. Signed-off-by: Wadim Egorov Tested-by: John Ma --- board/phytec/common/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/phytec/common/Kconfig b/board/phytec/common/Kconfig index 1077f0f4b61..56c8290f641

[PATCH 5/5] board: phytec: am62x: Add support for 1 & 4 GB RAM variants

2024-05-07 Thread Wadim Egorov
Use content of EEPROM to detect the actual RAM size and adjust DDR timings, size and banks accordingly. Also enable the SoM detection per default in the defconfigs. Signed-off-by: Wadim Egorov --- board/phytec/common/am6_som_detection.h | 8 + board/phytec/phycore_am62x/phycore-am62x.c

[PATCH 4/5] board: phytec: common: Introduce a method to inject DDR timings deltas

2024-05-07 Thread Wadim Egorov
Introduce fdt_apply_ddrss_timings_patch() to allow board code to override DDR settings in the device tree prior to DDRSS driver probing. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/Makefile | 1 + board/phytec/common/k3/k3_ddrss_patch.c | 68 + board

[PATCH 3/5] arm: mach-k3: am625: Call do_board_detect() before DDR probing

2024-05-07 Thread Wadim Egorov
Call do_board_detect() hook before the K3 DDRSS driver gets probed. It will allow boards to adjust DDR timings in do_board_detect(). Signed-off-by: Wadim Egorov --- arch/arm/mach-k3/am625_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-k3/am625_init.c b/arch/arm/mach

[PATCH 1/5] board: phytec: Make AM6 SoM detection depend on I2C

2024-05-07 Thread Wadim Egorov
SoM detection is using I2C driver model functions. Let's depend on I2C. Signed-off-by: Wadim Egorov --- board/phytec/common/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/phytec/common/Kconfig b/board/phytec/common/Kconfig index 1077f0f4b61..56c8290f641 100644 --- a/board

[PATCH 2/5] board: phytec: Fix function definitions in AM6x SOM detection

2024-05-07 Thread Wadim Egorov
Functions are declared as phytec_am6* and not phytec_am62*. Update the definitions to match the declarations. Fixes: 9d152c23279c ("board: phytec: Add SOM detection for AM6x") Signed-off-by: Wadim Egorov --- board/phytec/common/am6_som_detection.c | 18 +- 1 file

[PATCH 0/5] *** phyCORE-AM62x: DDR detection / Inject DDR timing deltas ***

2024-05-07 Thread Wadim Egorov
last patch adds support for a 1 GB and 4 GB RAM variant of the phyCORE-AM62x. Patch 4 & 5 are based on https://patchwork.ozlabs.org/project/uboot/list/?series=404273 Wadim Egorov (5): board: phytec: Make AM6 SoM detection depend on I2C board: phytec: Fix function definitions in AM6x SOM detecti

Re: [PATCH 103/149] board: phytec: Remove and add needed includes

2024-05-03 Thread Wadim Egorov
Am 01.05.24 um 04:42 schrieb Tom Rini: Remove from this board vendor directory and when needed add missing include files directly. Signed-off-by: Tom Rini Acked-by: Wadim Egorov --- Cc: Martyn Welch Cc: Parthiban Nallathambi Cc: "Albert ARIBAUD (3ADEV)" Cc: Niel Fourie

Re: [PATCH] configs: Make USB_GADGET_MANUFACTURER consistent over all PHYTEC boards

2024-05-03 Thread Wadim Egorov
Am 03.05.24 um 09:00 schrieb Benjamin Hahn: Set CONFIG_USB_GADGET_MANUFACTURER to PHYTEC for all PHYTEC boards. Signed-off-by: Benjamin Hahn Acked-by: Wadim Egorov --- configs/phycore-imx8mp_defconfig | 2 +- configs/phycore_am64x_a53_defconfig | 2 +- configs

Usage of fdt_addr vs fdt_addr_r

2024-04-29 Thread Wadim Egorov
Hi, there are multiple definitions of fdt_addr and fdt_addr_r: usage/environment.rst: Tells us fdt_addr is in flash location and _r in RAM develop/distro.rst: fdt_addr -> Mandatory for any system that provides the DTB in HW (e.g. ROM) I also noticed that

[PATCH 2/2] phycore_am64x_a53_defconfig: Enable CONFIG_BOARD_LATE_INIT

2024-04-24 Thread Wadim Egorov
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 --- configs/phycore_am64x_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH 0/2] *** Commonize board code for K3 based SoMs ***

2024-04-24 Thread Wadim Egorov
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 Wadim Egorov (2): board: phytec: Commonize board code for K3 based SoMs

[PATCH 1/2] board: phytec: Commonize board code for K3 based SoMs

2024-04-24 Thread Wadim Egorov
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 --- board/phytec/common/Makefile | 2 + board/phytec/common/k3/Makefile| 2 + board

[PATCH] arm: mach-k3: am642: Provide a way to obtain boot device for non SPLs

2024-04-24 Thread Wadim Egorov
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 --- arch/arm/mach-k3/Makefile | 1 + arch/arm/mach-k3/am642_init

Re: [PATCH] arm: mach-k3: am642: Fix reset for workaround errata ID i2331

2024-04-23 Thread Wadim Egorov
the firmware driver which will then probe the sysreset driver allowing do_reset() to again function as expected. Reported-by: Jonathan Humphreys Fixes: fc5d40283483 ("firmware: ti_sci: Bind sysreset driver when enabled") Signed-off-by: Andrew Davis Tested-by: Wadim Egorov on phy

[PATCH 2/3] phycore-am64x: Migrate to OF_UPSTREAM

2024-04-19 Thread Wadim Egorov
nman dtsi file. Signed-off-by: Wadim Egorov --- arch/arm/dts/Makefile | 1 - arch/arm/dts/k3-am64-phycore-som.dtsi | 320 -- .../arm/dts/k3-am642-phyboard-electra-rdk.dts | 302 - arch/arm/dts/k3-am642-phycore-som-binman.dtsi |

[PATCH 3/3] phycore-rk3288: Migrate to OF_UPSTREAM

2024-04-19 Thread Wadim Egorov
alias. Signed-off-by: Wadim Egorov --- arch/arm/dts/Makefile | 1 - arch/arm/dts/rk3288-phycore-rdk-u-boot.dtsi | 19 + arch/arm/dts/rk3288-phycore-rdk.dts | 271 --- arch/arm/dts/rk3288-phycore-som.dtsi| 506 board/phytec

[PATCH 1/3] phycore-am62x: Migrate to OF_UPSTREAM

2024-04-19 Thread Wadim Egorov
The phycore-am62x can be migrated to OF_UPSTREAM. Drop redundant device tree files, update MAINTAINERS and defconfig's DEFAULT_DEVICE_TREE for ti vendor prefix accordingly. Signed-off-by: Wadim Egorov --- arch/arm/dts/Makefile | 1 - arch/arm/dts/k3-am62-phycore

[PATCH 0/3] *** Migrate some PHYTEC boards to OF_UPSTREAM ***

2024-04-19 Thread Wadim Egorov
Migrate the boards I maintain to OF_UPSTREAM. Wadim Egorov (3): phycore-am62x: Migrate to OF_UPSTREAM phycore-am64x: Migrate to OF_UPSTREAM phycore-rk3288: Migrate to OF_UPSTREAM arch/arm/dts/Makefile | 3 - arch/arm/dts/k3-am62-phycore-som.dtsi | 324

[PATCH v2 2/3] arm: mach-k3: am625: Provide a way to obtain boot device for non SPLs

2024-04-03 Thread Wadim Egorov
Introduce get_boot_device() to obtain the booting device. Make it also available for non SPL builds so u-boot can also know the device it is booting from. Signed-off-by: Wadim Egorov --- v2: - Make get_boot_device() read bootindex out of OCRAM --- arch/arm/mach-k3/Makefile

[PATCH v2 3/3] board: phycore-am62x: Extend for better environment handling

2024-04-03 Thread Wadim Egorov
Select environment location based on the device we boot from. Also, introduce a "boot" variable that represents the current boot device and can be used by scripts. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore-am62x.c | 64 +

[PATCH v2 1/3] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL

2024-04-03 Thread Wadim Egorov
Relocate booindex to OCRAM region after it gets opened by TIFS so the main domain bootloaders can have access to this data. Signed-off-by: Wadim Egorov --- v2: - Relocate bootindex to OCRAM, drop misleading comments and remove not needed changes --- arch/arm/mach-k3/am625_init.c

[PATCH v2 0/3] *** Introduce get_boot_device() for K3 platform ***

2024-04-03 Thread Wadim Egorov
not needed changes - Make get_boot_device() read bootindex out of OCRAM - Add user for get_boot_device(), patch 3 v1: https://lists.denx.de/pipermail/u-boot/2024-February/546770.html Wadim Egorov (3): arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL arm: mach-k3: am625

Re: [PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL

2024-04-01 Thread Wadim Egorov
Am 01.04.24 um 16:46 schrieb Bryan Brattlof: On April 1, 2024 thus sayeth Wadim Egorov: Hi Vignesh, Hi Bryan, Am 05.03.24 um 18:36 schrieb Raghavendra, Vignesh: On 3/5/2024 11:04 PM, Bryan Brattlof wrote: On March 5, 2024 thus sayeth Vignesh Raghavendra: On 05/03/24 01:57, Bryan

Re: [PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL

2024-04-01 Thread Wadim Egorov
, On 26/02/24 19:00, Wadim Egorov wrote: Texas Instruments has begun enabling security settings on the SoCs it produces to instruct ROM and TIFS to begin protecting the Security Management Subsystem (SMS) from other binaries we load into the chip by default. One way ROM and TIFS do this is by enabling

Re: [PATCH 2/3] configs: imx93-phyboard-segin: Add USB support.

2024-03-20 Thread Wadim Egorov
Am 19.03.24 um 14:58 schrieb Marek Vasut: On 3/19/24 9:39 AM, Wadim Egorov wrote: Am 18.03.24 um 22:48 schrieb Marek Vasut: On 3/18/24 6:16 PM, Mathieu Othacehe wrote: Enable the `usb` command and some USB drivers. Signed-off-by: Mathieu Othacehe ---   configs/imx93-phyboard

Re: [PATCH 2/3] configs: imx93-phyboard-segin: Add USB support.

2024-03-19 Thread Wadim Egorov
Am 18.03.24 um 22:48 schrieb Marek Vasut: On 3/18/24 6:16 PM, Mathieu Othacehe wrote: Enable the `usb` command and some USB drivers. Signed-off-by: Mathieu Othacehe ---   configs/imx93-phyboard-segin_defconfig | 8   1 file changed, 8 insertions(+) diff --git

Re: [PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL

2024-03-06 Thread Wadim Egorov
Hi Vignesh, Am 04.03.24 um 06:06 schrieb Vignesh Raghavendra: Hi Wadim, On 26/02/24 19:00, Wadim Egorov wrote: Texas Instruments has begun enabling security settings on the SoCs it produces to instruct ROM and TIFS to begin protecting the Security Management Subsystem (SMS) from other

[PATCH] doc: board: phytec: phycore-am62x: Update artifact names

2024-02-28 Thread Wadim Egorov
Use proper binary artifact names for HSFS devices. Do not use the *_unsigned binaries. Signed-off-by: Wadim Egorov --- doc/board/phytec/phycore-am62x.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/board/phytec/phycore-am62x.rst b/doc/board/phytec/phycore

[PATCH v3 2/2] doc: board: phytec: Add phyCORE-AM64x

2024-02-28 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM64x SoM. Signed-off-by: Wadim Egorov Reviewed-by: Dhruva Gole --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am64x.rst | 159 + 2 files changed, 160 insertions(+) create mode 100644 doc/board/phytec

[PATCH v3 0/2] *** Add support for phyCORE-AM64x ***

2024-02-28 Thread Wadim Egorov
Add basic support for the phyCORE-AM64x. v1: https://lists.denx.de/pipermail/u-boot/2024-January/544649.html v2: https://lists.denx.de/pipermail/u-boot/2024-February/546757.html v3: - Update doc to use proper binary artifacts for HSFS devices - Add Dhruva's Reviewed-by Wadim Egorov (2

Re: [PATCH v2 2/2] doc: board: phytec: Add phyCORE-AM64x

2024-02-28 Thread Wadim Egorov
Am 28.02.24 um 06:45 schrieb Dhruva Gole: Hi, On Feb 26, 2024 at 13:23:41 +0100, Wadim Egorov wrote: Add documentation for PHYTEC phyCORE-AM64x SoM. Signed-off-by: Wadim Egorov --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am64x.rst | 159

[PATCH 2/2] arm: mach-k3: am625: Provide a way to obtain boot device for non SPLs

2024-02-26 Thread Wadim Egorov
Introduce get_boot_device() to obtain the booting device. Make it also available for non SPL builds so u-boot can also know the device it is booting from. Signed-off-by: Wadim Egorov --- arch/arm/mach-k3/Makefile| 1 + arch/arm/mach-k3/am625_init.c| 95

[PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL

2024-02-26 Thread Wadim Egorov
(that TIFS has open for us) before we make the jump to the main domain so the main domain's bootloaders can keep access to this information. Based on commit b672e8581070 ("arm: mach-k3: copy bootindex to OCRAM for main domain SPL") Signed-off-by: Wadim Egorov --- arch/arm/mach-

[PATCH 0/2] *** Introduce get_boot_device() for K3 platform ***

2024-02-26 Thread Wadim Egorov
It is handy to have some u-boot environment variables set based on the current booting device. Provide a way to obtain the boot device for non SPLs by factoring out spl_boot_device() into an own function get_boot_device(). Wadim Egorov (2): arm: mach-k3: am625: copy bootindex to OCRAM for main

[PATCH v2 2/2] doc: board: phytec: Add phyCORE-AM64x

2024-02-26 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM64x SoM. Signed-off-by: Wadim Egorov --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am64x.rst | 159 + 2 files changed, 160 insertions(+) create mode 100644 doc/board/phytec/phycore-am64x.rst diff

[PATCH v2 0/2] *** Add support for phyCORE-AM64x ***

2024-02-26 Thread Wadim Egorov
Add basic support for the phyCORE-AM64x. v1: https://lists.denx.de/pipermail/u-boot/2024-January/544649.html v2: - Resync configs after savedefconfig - Set CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400 in R5 config Wadim Egorov (2): board: phytec: am64x: Add PHYTEC phyCORE-AM64x SoM doc

[PATCH 2/2] doc: board: phytec: Add phyCORE-AM64x

2024-01-29 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM64x SoM. Signed-off-by: Wadim Egorov --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am64x.rst | 159 + 2 files changed, 160 insertions(+) create mode 100644 doc/board/phytec/phycore-am64x.rst diff

[PATCH 0/2] *** Add support for phyCORE-AM64x ***

2024-01-29 Thread Wadim Egorov
Add basic support for the phyCORE-AM64x.. Wadim Egorov (2): board: phytec: am64x: Add PHYTEC phyCORE-AM64x SoM doc: board: phytec: Add phyCORE-AM64x arch/arm/dts/Makefile |4 +- .../arm/dts/k3-am64-phycore-som-ddr4-2gb.dtsi | 2189 + arch/arm/dts

Re: [Upstream] [PATCH v4 0/2] *** Add support for phyCORE-AM62x ***

2024-01-15 Thread Wadim Egorov
Wadim Egorov: v4: - Rebase on current next - Drop schema file overrides from binman v3: https://lists.denx.de/pipermail/u-boot/2023-December/539779.html v2: https://lists.denx.de/pipermail/u-boot/2023-November/538971.html v1: https://lists.denx.de/pipermail/u-boot/2023-October/535750.html

[PATCH v4 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-12-20 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov Reviewed-by: Dhruva Gole --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am62x.rst | 158 + doc/board/ti/k3.rst| 1 + 3 files changed, 160

[PATCH v4 0/2] *** Add support for phyCORE-AM62x ***

2023-12-20 Thread Wadim Egorov
v4: - Rebase on current next - Drop schema file overrides from binman v3: https://lists.denx.de/pipermail/u-boot/2023-December/539779.html v2: https://lists.denx.de/pipermail/u-boot/2023-November/538971.html v1: https://lists.denx.de/pipermail/u-boot/2023-October/535750.html Wadim Egorov (2

[PATCH v3 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-12-08 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov Reviewed-by: Dhruva Gole --- v3: - Add boot modes chapter - Reference tiboot3.bin instead of GP binary for default flashing - Minor spelling fixes - Pick up Reviewed-by: Dhruva Gole --- doc/board/phytec

[PATCH v3 0/2] *** Add support for phyCORE-AM62x ***

2023-12-08 Thread Wadim Egorov
.html Wadim Egorov (2): board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM doc: board: phytec: Add phyCORE-AM62x arch/arm/dts/Makefile |4 +- .../arm/dts/k3-am62-phycore-som-ddr4-2gb.dtsi | 2190 + arch/arm/dts/k3-am62-phycore-som.dtsi | 324

Re: [PATCH v2 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-12-01 Thread Wadim Egorov
Hi Dhruva, Am 01.12.23 um 11:10 schrieb Dhruva Gole: Hi, On Nov 30, 2023 at 12:56:07 +0100, Wadim Egorov wrote: Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov --- v2: Rebased on top of -next Please CC Tom Rini on the series. --- doc/board/phytec/index.rst

[PATCH v2 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-11-30 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov --- v2: Rebased on top of -next --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am62x.rst | 125 + doc/board/ti/k3.rst| 1 + 3 files changed, 127

[PATCH v2 0/2] *** Add support for phyCORE-AM62x ***

2023-11-30 Thread Wadim Egorov
tober/535750.html Wadim Egorov (2): board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM doc: board: phytec: Add phyCORE-AM62x arch/arm/dts/Makefile |4 +- .../arm/dts/k3-am62-phycore-som-ddr4-2gb.dtsi | 2190 + arch/arm/dts/k3-am62-phycore-som.dtsi

Re: [PATCH 1/2] board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM

2023-11-02 Thread Wadim Egorov
Am 02.11.23 um 00:21 schrieb Tom Rini: On Wed, Nov 01, 2023 at 07:23:24PM +0100, Wadim Egorov wrote: Hi Dhruva, Am 01.11.23 um 16:57 schrieb Dhruva Gole: Hi, On Oct 31, 2023 at 14:37:31 +0100, Wadim Egorov wrote: Add basic support for PHYTEC phyCORE-AM62x SoM. Supported features

Re: [PATCH 1/2] board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM

2023-11-01 Thread Wadim Egorov
Hi Dhruva, Am 01.11.23 um 16:57 schrieb Dhruva Gole: Hi, On Oct 31, 2023 at 14:37:31 +0100, Wadim Egorov wrote: Add basic support for PHYTEC phyCORE-AM62x SoM. Supported features: - 2GB DDR4 RAM - eMMC Flash - OSPI NOR Flash - external uSD - Ethernet - debug UART Product

[PATCH 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-10-31 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am62x.rst | 125 + doc/board/ti/k3.rst| 1 + 3 files changed, 127 insertions(+) create mode 100644

Re: [PATCH] serial: ns16550: Enable clocks during probe

2022-12-13 Thread Wadim Egorov
Hi Stefan, Am 13.12.22 um 07:14 schrieb Stefan Roese: > Hi Samuel, > > On 12/13/22 02:46, Samuel Holland wrote: >> On 12/12/22 12:54, Tom Rini wrote: >>> On Sun, Nov 27, 2022 at 11:48:34PM -0600, Samuel Holland wrote: >>> If the UART bus or baud clock has a gate, it must be enabled before

[PATCH] configs: phycore-rk3288: Enable CONFIG_LTO

2022-12-13 Thread Wadim Egorov
The phycore-rk3288 SPL binary is reaching the limits of 32KB very often. Enable CONFIG_LTO to reduce the size of the SPL and make the board more future proof for changes increasing the SPL size. Signed-off-by: Wadim Egorov --- configs/phycore-rk3288_defconfig | 1 + 1 file changed, 1 insertion

Re: [PATCH v1] rockchip: phycore_rk3288: remove phycore_init() function

2022-10-19 Thread Wadim Egorov
Am 19.10.22 um 00:35 schrieb Johan Jonker: > > On 10/18/22 13:43, Wadim Egorov wrote: >> Hi Johan, >> >> thanks for this Patch. You were faster with the patch. >> >> I hope the size reduction is enough to make it buildable with Kevers patch. > This patch

Re: [PATCH v1] rockchip: phycore_rk3288: remove phycore_init() function

2022-10-18 Thread Wadim Egorov
within the limits. > > Signed-off-by: Johan Jonker Reviewed-by: Wadim Egorov > --- > arch/arm/mach-rockchip/rk3288/Kconfig| 1 - > board/phytec/phycore_rk3288/phycore-rk3288.c | 46 > 2 files changed, 47 deletions(-) > > diff --git a/arch/arm/mac

Re: [PATCH v6 0/6] rockchip: Add Binman support

2020-01-09 Thread Wadim Egorov
Hi Jagan, On 09.01.20 14:59, Jagan Teki wrote: > On Wed, Jan 8, 2020 at 5:04 PM Wadim Egorov wrote: >> Hi, >> >> On 07.01.20 10:59, Kever Yang wrote: >>> Add Wadim in cc, >>> >>> Hi Jagan, >>> >>> After this patch set apply, the p

Re: [PATCH v6 0/6] rockchip: Add Binman support

2020-01-08 Thread Wadim Egorov
Hi, On 07.01.20 10:59, Kever Yang wrote: > Add Wadim in cc, > > Hi Jagan, > > After this patch set apply, the phycore-rk3288 board's SPL size is > overflow: > >    arm:  +   phycore-rk3288 > +Error: SPL image is too large (size 0x9000 than 0x8000) > +Error: Bad parameters for image type > >

Re: [U-Boot] [PATCH 03/15] rockchip: rk3288: Print reset reason

2019-08-14 Thread Wadim Egorov
elp to find the reset reason directly >>> on U-Boot proper logs. >>> >>> Cc: Wadim Egorov >>> Signed-off-by: Jagan Teki >>> --- >>> arch/arm/mach-rockchip/rk3288-board.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>&g

Re: [U-Boot] [PATCH 18/35] rockchip: rk3288-phycore: move phycore_init() to its own board file

2019-07-23 Thread Wadim Egorov
Hi Kever, this is fine for me. You can drop the phycore_init() code completely. No need to carry this around in our board code. The SOM was redesigned and is equipped with an STM8 connected to the RK818. The required setup we did before in the SPL is now done by the ST controller. I know there

Re: [U-Boot] [PATCH v5] ARM: am335x: Add phyCORE AM335x R2 support

2019-05-09 Thread Wadim Egorov
On 07.05.19 16:43, Niel Fourie wrote: > Hi Tom, > > On 5/7/19 3:19 PM, Tom Rini wrote: >> On Tue, May 07, 2019 at 11:39:12AM +0200, Niel Fourie wrote: >>> Hi Tom, >>> >>> On 5/6/19 7:24 PM, Tom Rini wrote: On Mon, May 06, 2019 at 06:44:48PM +0200, Niel Fourie wrote: > Hi Tom, > >

Re: [U-Boot] [PATCH] phycore-pcl060: U-boot support for Phytec phyCORE PCL060

2019-04-23 Thread Wadim Egorov
Hi, On 19.04.19 17:20, Marek Vasut wrote: > On 4/19/19 5:06 PM, Parthiban Nallathambi wrote: >> Hello Marek, >> >> On 4/19/19 3:35 PM, Marek Vasut wrote: >>> On 4/19/19 3:18 PM, Parthiban Nallathambi wrote: >>> >>> Hi, >>> >>> [...] >>> >> diff --git a/arch/arm/mach-omap2/Kconfig

Re: [U-Boot] [PATCH] imx: Extend PCL063 support for phyCORE-i.MX6ULL SOM

2019-04-10 Thread Wadim Egorov
Martyn, On 09.04.19 12:46, Martyn Welch wrote: > On Tue, 2019-04-09 at 11:30 +0200, Parthiban Nallathambi wrote: >> Hello Martyn, >> >> On 4/9/19 10:49 AM, Martyn Welch wrote: >>> On Mon, 2019-04-08 at 20:04 +0200, Parthiban wrote: Hello Martyn, On 4/8/19 7:45 PM, Martyn Welch

[U-Boot] rk3288 SPL size

2019-04-05 Thread Wadim Egorov
Hi, it seems the new common rockchip pinctrl driver does not really fit into our phycore-rk3288 SPL setup. It works for every other rk3288 based board because they don't need special power configurations at the SPL stage. So my question is: is there any work going on to reduce the SPL size even

Re: [U-Boot] RK3399/RK3288 same-as-spl Option

2019-01-30 Thread Wadim Egorov
Hi Philipp, Am 30.01.19 um 13:56 schrieb Philipp Tomsich: > Wadim, > >> On 30.01.2019, at 13:50, Wadim Egorov > <mailto:w.ego...@phytec.de>> wrote: >> >> I want to know if there is a reason why the same-as-spl boot order >> option [1] was not added f

[U-Boot] RK3399/RK3288 same-as-spl Option

2019-01-30 Thread Wadim Egorov
Hi, I want to know if there is a reason why the same-as-spl boot order option [1] was not added for the RK3288. Do the chromebooks or other RK3288 based boards don't want/need this option? It seems the RK3288 has the same Register that marks the boot source device:  

Re: [U-Boot] [RESENT PATCH v3] rockchip: update emmc/sd index for distro boot order

2018-11-30 Thread Wadim Egorov
Hi Kever, Am 30.11.18 um 02:27 schrieb Kever Yang: > + Andreas from SUSE and Thomas from Armbian > > Hi Wadim, > > > On 11/29/2018 05:54 PM, Wadim Egorov wrote: >> Hi, >> >> Am 29.11.18 um 02:48 schrieb Kever Yang: >>> On 11/28/201

Re: [U-Boot] [RESENT PATCH v3] rockchip: update emmc/sd index for distro boot order

2018-11-29 Thread Wadim Egorov
Hi, Am 29.11.18 um 02:48 schrieb Kever Yang: > > On 11/28/2018 05:15 PM, Philipp Tomsich wrote: >> Kever, >> >>> On 28.11.2018, at 03:06, Kever Yang wrote: >>> >>> According to the emmc/sdcard index in dts alias, emmc is always 0 and >>> sdcard index is 1, let's update to using correct mmc

Re: [U-Boot] [PATCH v2 3/3] imx: Add PHYTEC phyBOARD-i.MX6UL-Segin

2018-11-27 Thread Wadim Egorov
Hi Martyn, thanks for upstreaming this board. For the three patches & with u-boot.imx image type,   Tested-by: Wadim Egorov But it seems, phycore_pcl063_spl_defconfig is not working:   U-Boot spl 2018.11-00307-g74b1be3 (Nov 27 2018 - 15:05:14 +0100)   Trying to boot from MMC1   MMC Devi

Re: [U-Boot] [PATCH v2 01/11] arch: arm: mach-rockchip: rk3288: Enable regulators in board_init

2018-07-19 Thread Wadim Egorov
Hi Philipp, Am 18.07.2018 um 11:05 schrieb Dr. Philipp Tomsich: > Janine, > >> On 18 Jul 2018, at 10:46, Janine Hagemann wrote: >> >> At start-up, the regulators have to be enabled. Let's use >> regulators_enable_boot_on() to enable the regulators needed >>

Re: [U-Boot] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-05-14 Thread Wadim Egorov
minimal clk_enable for the RK3288 and supports the >>>> clocks mandatory for the EHCI controllers; as these are enabled by >>>> default we simply return success. >>>> >>>> Signed-off-by: Wadim Egorov <w.ego...@phytec.de> >>>> Acked-by: Phil

Re: [U-Boot] [PATCH] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-03-21 Thread Wadim Egorov
Kever, Am 20.03.2018 um 15:46 schrieb Kever Yang: > Hi Wadim, > > > On 03/19/2018 11:39 PM, Wadim Egorov wrote: >> The generic ehci-driver (ehci-generic.c) will try to enable the clocks >> listed in the DTSI. If this fails (e.g. due to clk_enable not being >> imple

[U-Boot] [PATCH] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-03-19 Thread Wadim Egorov
clk_enable for the RK3288 and supports the clocks mandatory for the EHCI controllers; as these are enabled by default we simply return success. Signed-off-by: Wadim Egorov <w.ego...@phytec.de> --- drivers/clk/rockchip/clk_rk3288.c | 13 + 1 file changed, 13 insertions(+) diff --git a/d

[U-Boot] [PATCH v4] rockchip: rk3288: Add reset reason detection

2017-08-21 Thread Wadim Egorov
Sometimes it's helpful to know the reset reason caused in the SoC. Add reset reason detection for the RK3288 SoC. This will set an environment variable which represents the reset reason. Signed-off-by: Wadim Egorov <w.ego...@phytec.de> --- Changes in v4: - Factore out env_set() - Use BIT/G

[U-Boot] [PATCH v3] rockchip: phycore: Read configuration EEPROM & set ethaddr in late init

2017-08-21 Thread Wadim Egorov
Read SoM information from EEPROM and set ethaddr in late init. Signed-off-by: Wadim Egorov <w.ego...@phytec.de> --- Changes in v3: - Rebased to current master. Renamed eth_setenv_enetaddr() --- board/phytec/phycore_rk3288/phycore-rk3288.c | 62 board/

Re: [U-Boot] rockchip: i2c: fix >32 byte reads

2017-08-21 Thread Wadim Egorov
Am 18.08.2017 um 15:06 schrieb Philipp Tomsich: > > > On Thu, 3 Aug 2017, Wadim Egorov wrote: > >> The hw can read up to 32 bytes at a time. If we need >> more than one chunk, we have to enter the plain RX mode. > > Why does this need to be in 'plain RX' mode

Re: [U-Boot] [PATCH v2] rockchip: phycore: Read configuration EEPROM & set ethaddr in late init

2017-08-03 Thread Wadim Egorov
Hi, I don't see this patch on master or next. You picked another one: commit c03635c3d14c5402229fcfacedbbdff48f3de221 Author: Wadim Egorov <w.ego...@phytec.de> Date: Tue Jul 18 11:53:10 2017 +0200 rockchip: phycore: Add ID page of M24C32-D EEPROM I dropped the above patc

[U-Boot] [PATCH v3] rockchip: rk3288: Add reset reason detection

2017-08-03 Thread Wadim Egorov
Sometimes it's helpful to know the reset reason caused in the SoC. Add reset reason detection for the RK3288 SoC. This will set an environment variable which represents the reset reason. Signed-off-by: Wadim Egorov <w.ego...@phytec.de> --- Changes in v3: - Fixed typo in commit message - Us

  1   2   >