[PATCH] power: pmic: pca9450: Add support for system reset

2025-07-16 Thread Primoz Fiser
the SW_RST register. Support in Linux for restarting via PCA9450 PMIC has been added by Linux commit 6157e62b07d9 ("regulator: pca9450: Add restart handler"). Now add support for it also in the U-Boot via sysreset framework. Signed-off-by: Primoz Fiser --- drivers/power/pmic/pca9

[PATCH 2/2] board: phytec: phycore-imx93: Drop unused include files

2025-07-16 Thread Primoz Fiser
Drop unused include files from the PHYTEC phyCORE-i.MX93 board code. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore-imx93.c | 3 --- board/phytec/phycore_imx93/spl.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore-imx93.c b

[PATCH 1/2] board: phytec: phycore-imx93: Drop unused PMIC define

2025-07-16 Thread Primoz Fiser
Drop unused define for PCA9450 PMIC register which is already part of the header file since commit 1d0d25704345 ("imx93_evk: spl: update pmic settings"). Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/spl.c | 5 - 1 file changed, 5 deletions(-) diff --git a/bo

[PATCH] ARM: dts: imx93-phycore: Migrate to OF_UPSTREAM

2025-05-16 Thread Primoz Fiser
Migrate to OF_UPSTREAM for phyCORE-i.MX93 since board can use upstream Linux kernel device-tree for phyBOARD-Segin-i.MX93. Signed-off-by: Primoz Fiser --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx93-phyboard-segin.dts | 117 --- arch/arm/dts/imx93

[PATCH 1/6] board: phycore-imx93: env: Move fdt and bootenv addresses

2025-04-10 Thread Primoz Fiser
downstream PHYTEC u-boot for i.MX93 in preparation for FIT image support in the future. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec

[PATCH 4/6] board: phycore-imx93: env: Add option to disable bootenv.txt import

2025-04-10 Thread Primoz Fiser
Add support for disabling external environment import (bootenv.txt) by setting the ${no_bootenv} environment variable. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/board/phytec

[PATCH 6/6] board: phycore-imx93: env: Add common RAUC boot logic

2025-04-10 Thread Primoz Fiser
From: Martin Schwan Add a common RAUC boot logic environment and make use of it in the i.MX93 environment. The RAUC boot logic is deactivated by default and can be activated by setting "doraucboot" to "1". Signed-off-by: Martin Schwan Reviewed-by: Leonard Anderweit Signed-

[PATCH 5/6] board: phycore-imx93: env: Move bootcmd from defconfig to env

2025-04-10 Thread Primoz Fiser
From: Leonard Anderweit Move the default bootcmd from the defconfig to the board environment in preparation for RAUC support. No change in functionality. Signed-off-by: Leonard Anderweit Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 9 + configs/imx93

[PATCH 3/6] board: phycore-imx93: env: Add prepare_mcore to environment

2025-04-10 Thread Primoz Fiser
Add prepare_mcore script to environment to be able to notify Linux about the state of M33 core via the kernel cmdline by appending to ${optargs}. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/phytec

[PATCH 0/6] Update phyCORE-i.MX93 environment

2025-04-10 Thread Primoz Fiser
Update PHYTEC phyCORE-i.MX93 environment in mainline U-Boot with changes from the downstream fork to get back in sync. Leonard Anderweit (1): board: phycore-imx93: env: Move bootcmd from defconfig to env Martin Schwan (1): board: phycore-imx93: env: Add common RAUC boot logic Primoz Fiser

[PATCH 2/6] board: phycore-imx93: env: Add optargs to environment

2025-04-10 Thread Primoz Fiser
Add the optargs variable so we can set optional arguments while booting. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec

[PATCH] board: phytec: common: Fix phytec_get_product_name()

2025-04-08 Thread Primoz Fiser
rid of the error. While at it, also simplify switch case statements by grouping them together. This makes it more concise and readable. Signed-off-by: Primoz Fiser Reviewed-by: Daniel Schultz --- board/phytec/common/phytec_som_detection.c | 7 +++ 1 file changed, 3 insertions(+), 4

Re: [PATCH v4 2/3] board: phytec: imx93: Add eeprom-based hardware introspection

2024-11-21 Thread Primoz Fiser
Tested on phyBOARD-Nash-i.MX93 with 1.8V IO_VOLTAGE capable of HS400ES eMMC mode. Link: https://gist.github.com/pfiser/964617af99e43fb5cc6fec6b65070f21 Tested-by: Primoz Fiser On 20. 11. 24 17:31, Christoph Stoidner wrote: > The phyCORE-i.MX 93 is available in various variants. Relev

Re: [PATCH v3 2/3] board: phytec: imx93: Add eeprom-based hardware introspection

2024-11-20 Thread Primoz Fiser
g variant > options. Add evaluation of the eeprom data to the spl/u-boot to > enable/disable HS400 and to select the appropriate ram configuration at > startup. > > Signed-off-by: Christoph Stoidner > Reviewed-by: Wadim Egorov > --- > Cc: Mathieu Othacehe > Cc: Chri

Re: [PATCH v3 1/3] board: phytec: phycore-imx93: Add 2GB LPDDR4X RAM timings

2024-11-20 Thread Primoz Fiser
Tested on phyBOARD-Nash-i.MX93 with phyCORE-i.MX93 2GiB SOM Link: https://gist.github.com/pfiser/d5766c95f5639e6a9852c94412f39eb5 Tested-by: Primoz Fiser On 19. 11. 24 17:29, Christoph Stoidner wrote: > The phyCORE-i.MX 93 is available with a 1GB ram chip or a 2GB ram chip. > Add t

Re: [PATCH v2 2/3] board: phytec: imx93: Add eeprom-based hardware introspection

2024-11-14 Thread Primoz Fiser
ehe > Cc: Christoph Stoidner > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: "NXP i.MX U-Boot Team" > Cc: Tom Rini > Cc: Yannic Moog > Cc: Primoz Fiser > Cc: Andrej Picej > Cc: Wadim Egorov > --- > Changes in v2: > - encapsulate handling of feature fl

Re: [PATCH v2 3/3] board: phytec: imx93: Add phyCORE-i.MX 93 support for all SOM variants

2024-11-14 Thread Primoz Fiser
evam > Cc: "NXP i.MX U-Boot Team" > Cc: Tom Rini > Cc: Yannic Moog > Cc: Primoz Fiser > Cc: Andrej Picej > Cc: Wadim Egorov > --- > Changes in v2: > - just rename imx93-phyboard-segin_defconfig and add needed CONFIGs, > instead of creating an en

Re: [PATCH 1/2] net: fec_mxc: Fix clk_ref rate on iMX93

2024-09-23 Thread Primoz Fiser
is change breaks fec ethernet. I had to revert this already in NXP downstream u-boot. BR, Primoz > + > ret = clk_set_rate(clk_ref, freq); > if (ret < 0) > return ret; -- Primoz Fiser| phone: +386-41-390-545 | -

[PATCH] imx: imx9: Set correct critical temperature

2024-08-13 Thread Primoz Fiser
Commit 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") wrongly set critical temperature to (maxc - 5) instead of maxc. Fixes: 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") Signed-off-by: Primoz Fiser --- arch/arm/mach-imx/imx9/soc.c | 2 +- 1 file

Re: [PATCH 1/3] arm: dts: imx93-phyboard-segin: Add USB support.

2024-03-19 Thread Primoz Fiser
Hi Marek, On 18. 03. 24 22:48, Marek Vasut wrote: > On 3/18/24 6:16 PM, Mathieu Othacehe wrote: >> Enable both usbotg1 and usbotg2 ports. > > Drop fullstop from $subject end. > >> Signed-off-by: Mathieu Othacehe >> --- >>   arch/arm/dts/imx93-phyboard-segin.dts | 13 + >>   1 file ch

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

2024-03-19 Thread Primoz Fiser
CONFIG_IMX_TMU=y > +CONFIG_USB=y > +CONFIG_USB_EHCI_HCD=y > +CONFIG_USB_GADGET=y > +CONFIG_USB_GADGET_MANUFACTURER="FSL" > +CONFIG_USB_GADGET_VENDOR_NUM=0x1fc9 > +CONFIG_USB_GADGET_PRODUCT_NUM=0x0152 > +CONFIG_CI_UDC=y > CONF

Re: [PATCH v4] board: phytec: phycore-imx93: Add phyBOARD-Segin-i.MX93 support

2024-01-31 Thread Primoz Fiser
Hi Mathieu, Thanks for v4. I have no more remarks. Also tested your v4 on the board. Everything works, even eMMC booting which you were not able to test. With that my Tested-by: can be applied. Tested-by: Primoz Fiser BR, Primoz On 30. 01. 24 15:50, Mathieu Othacehe wrote: > Add init

Re: [PATCH v3] board: phytec: phycore-imx93: Add phyBOARD-Segin-i.MX93 support

2024-01-30 Thread Primoz Fiser
Hi Mathieu, On 30. 01. 24 14:37, Mathieu Othacehe wrote: > >> I am based on latest master 6faba41927bd (tag: v2024.04-rc1) > > That was it. I rebased from 043ca8c8a9b to 6faba41927bd and I now have > the same behaviour as you. I cannot find which commit fixed the > situation in that interval tho

Re: [PATCH v3] board: phytec: phycore-imx93: Add phyBOARD-Segin-i.MX93 support

2024-01-30 Thread Primoz Fiser
Hi Mathieu, On 30. 01. 24 13:49, Mathieu Othacehe wrote: > > Hey, > >> Can you re-check, please? >> >> Maybe check your include/generated/environment.h? > > Thanks for checking. It is strange that you do not reproduce that one. > > My include/generated/environment.h looks like: > > --8<--

[PATCH] imx9: clock: Fix board_interface_eth_init for FEC

2024-01-30 Thread Primoz Fiser
is always returned from the function in such case. Fix this by returning 0 (success) when FEC interface is primarily used instead of EQOS interface on i.MX93. Fixes: d5eae216d833 ("net: dwc_eth_qos: Add board_interface_eth_init() for i.MX93") Signed-off-by: Primoz Fiser --- arch/arm/mach-

Re: [PATCH v3] board: phytec: phycore-imx93: Add phyBOARD-Segin-i.MX93 support

2024-01-30 Thread Primoz Fiser
Hi Mathieu, On 30. 01. 24 10:43, Mathieu Othacehe wrote: > > Hello, > >> Please remove findfdt script. >> >> Not needed when you set fdt_file to CONFIG_DEFAULT_FDT_FILE above. > > The reason I used findfdt is that CONFIG_DEFAULT_FDT_FILE is a string > so, we end up with: > > --8<--

Re: [PATCH v3] board: phytec: phycore-imx93: Add phyBOARD-Segin-i.MX93 support

2024-01-29 Thread Primoz Fiser
Hi Mathieu, thanks for fixing my remarks. Here are just a few left for v4. On 25. 01. 24 17:45, Mathieu Othacehe wrote: > Add initial support for the PHYTEC phyBOARD-Segin-i.MX93 board based on > the PHYTEC phyCORE-i.MX93 SoM. > > Supported features: > - 1GB LPDDR4 RAM > - eMMC > - external

Re: [PATCH v2] Add Phytec i.MX93 support

2024-01-25 Thread Primoz Fiser
Hi Mathieu, First of all, thank you for the v2. I was able quickly build & test on the actual board. Here are my findings: - FEC ethernet doesn't work - distroboot doesn't work Did you expirience the same? Nonetheless, here are my comments for v2: On 24. 01. 24 14:42, Mathieu Othacehe wrote

Re: [PATCH] Add Phytec i.MX93 support

2024-01-18 Thread Primoz Fiser
Hi Mathieu, I already gave my review on the kernel mailing list. As first step, naming scheme is not compatible with PHYTEC naming convention. Please fix it across the entire patch. Maybe reference downstream u-boot for that? Please also use "phyBOARD-Segin-i.MX93" when referencing the board as

[PATCH 0/1] i.MX9 thermal trip fixups

2024-01-11 Thread Primoz Fiser
, Primoz Primoz Fiser (1): imx: imx9: fixup thermal trips from fuses arch/arm/mach-imx/imx9/soc.c | 45 1 file changed, 45 insertions(+) -- 2.25.1

[PATCH 1/1] imx: imx9: fixup thermal trips from fuses

2024-01-11 Thread Primoz Fiser
Read i.MX9 CPU temp grade from fuses and fixup thermal trips in Linux device-tree accordingly. Based on commit 0543a1ed2787 ("imx8m: fixup thermal trips") Signed-off-by: Primoz Fiser --- arch/arm/mach-imx/imx9/soc.c | 45 1 file changed, 45