[PATCH 1/2] arm: imx8mm-phycore: move to OF_UPSTREAM

2024-05-28 Thread Yannic Moog
The PHYCORE_IMX8MM is used by the phyBOARD-Polis and the phyGATE-Tauri-L. Migrate both boards to OF_UPSTREAM. Linux kernel device trees for both boards can be used as is, corresponding U-Boot device tree files are removed. U-Boot tweaks are kept unchanged. Signed-off-by: Yannic Moog --- arch

[PATCH 2/2] arm: imx8mp-phycore: move to OF_UPSTREAM

2024-05-28 Thread Yannic Moog
The PHYCORE_IMX8MP is used by the phyBOARD-Pollux. Migrate board to OF_UPSTREAM. Linux kernel device tree for the board can be used as is, corresponding U-Boot device tree files are removed. U-Boot tweaks are kept unchanged. Signed-off-by: Yannic Moog --- arch/arm/dts/Makefile

[PATCH 0/2] Migrate PHYTEC imx8m boards to OF_UPSTREAM

2024-05-28 Thread Yannic Moog
- update MAINTAINERS - delete synced dt files - imply OF_UPSTREAM - update default device tree --- Yannic Moog (2): arm: imx8mm-phycore: move to OF_UPSTREAM arm: imx8mp-phycore: move to OF_UPSTREAM arch/arm/dts/Makefile | 3 - arch/arm/dts/imx8mm-phyboard

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

2024-03-26 Thread Yannic Moog
Hi Fabio, hi Marek, On Sun, 2024-03-24 at 15:00 -0300, Fabio Estevam wrote: > On Thu, Mar 21, 2024 at 4:17 PM Marek Vasut wrote: > > > $ git grep -i usb.*phytec configs > > configs/phycore_pcl063_defconfig:CONFIG_USB_GADGET_MANUFACTURER="Phytec" > >

[PATCH] board: phytec: phycore_imx8mp.env fix netboot issues

2024-03-22 Thread Yannic Moog
inux FHS 3.0, change the nfsroot default directory to /srv/nfs. Fixes: 60f64bec414e ("board: phytec: phycore_imx8mp: Add fec support") Signed-off-by: Yannic Moog --- Depends on [1] which is on next already. [1] https://lore.kernel.org/u-boot/20240312085957.902398-1-l.anderw..

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

2024-01-31 Thread Yannic Moog
gt; - watchdog > > Signed-off-by: Mathieu Othacehe Reviewed-by: Yannic Moog > --- > Hello, > > This new revision fixes the remarks of Primoz. The configuration is now > aligned on the savedefconfig output. The FEC Ethernet is also tested to be > working if this patch

Re: [PATCH] Add Phytec i.MX93 support

2024-01-24 Thread Yannic Moog
On Wed, 2024-01-24 at 14:30 +0100, Mathieu Othacehe wrote: > > Hello Yannic, > > > As a heads-up: you need to rebase as am62 (doc) got applied by Tom. > > Noted. > > > Is the trusted-firmware-a upstream version working? If so, please use that > > instead. > > It is but only on the master

Re: [PATCH] Add Phytec i.MX93 support

2024-01-18 Thread Yannic Moog
Hello Mathieu As a heads-up: you need to rebase as am62 (doc) got applied by Tom. On Wed, 2024-01-17 at 08:52 +0100, Mathieu Othacehe wrote: > Add support for the Phytec i.MX93 Segin evaluation kit. The SoM consists > of an NXP i.MX93 dual A55 CPU. The SoM is mounted on a Phytec Segin SBC. > >

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

2024-01-18 Thread Yannic Moog
Hi Mathieu On Thu, 2024-01-18 at 12:04 +0100, Mathieu Othacehe wrote: > > Hi, > > Thanks for the review! > > > s/imx93_phycore/phycore_imx93 > > > > To fit into existing PHYTEC boards already in tree. > > I deliberately picked that order so that it is aligned with most imx > boards already

[PATCH v2] board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION

2024-01-15 Thread Yannic Moog
d includes that cause build failures on arm 32bit boards. SoM detection shall support 32bit boards as well, but arch specific code should not be included in the generic module. Fixes: aa7858fe5e2e ("board: phytec: som_detection: move definitions to source file") Signed-off-by: Yannic Moo

Re: [PATCH] board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION

2024-01-15 Thread Yannic Moog
Hi Fabio On Fri, 2024-01-12 at 14:55 -0300, Fabio Estevam wrote: > Hi Yannic, > > On Thu, Jan 11, 2024 at 5:27 AM Yannic Moog wrote: > > > > Commit aa7858fe5e2e ("board: phytec: som_detection: move definitions to > > source file") moved function d

[PATCH] board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION

2024-01-11 Thread Yannic Moog
t;board: phytec: som_detection: move definitions to source file") Signed-off-by: Yannic Moog --- board/phytec/common/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/phytec/common/Makefile b/board/phytec/common/Makefile index fe28964ce21..5f8e8435413 100644 --- a

[PATCH v2 2/3] doc: board: phytec: Add phyGATE-Tauri board documentation

2024-01-10 Thread Yannic Moog
Add brief documentation on how to build a bootable U-Boot image for the phyGATE-Tauri-L. Signed-off-by: Yannic Moog --- board/phytec/phycore_imx8mm/MAINTAINERS | 2 + doc/board/phytec/imx8mm-phygate-tauri-l.rst | 60 + doc/board/phytec/index.rst

[PATCH v2 3/3] board: phytec: MAINTAINERS: add missing phytec doc files

2024-01-10 Thread Yannic Moog
Add rst documentation files to the respective MAINTAINERS file for PHYTEC boards. Signed-off-by: Yannic Moog --- board/phytec/phycore_imx8mm/MAINTAINERS | 1 + board/phytec/phycore_imx8mp/MAINTAINERS | 1 + 2 files changed, 2 insertions(+) diff --git a/board/phytec/phycore_imx8mm/MAINTAINERS

[PATCH v2 1/3] Add support for phyGATE-Tauri-L-iMX8MM

2024-01-10 Thread Yannic Moog
phyGATE-Tauri-L-iMX8MM is a Gateway based on the phycore-imx8mm SoM. As a result, all the board code of the phycore-imx8mm is used. Device tree synced with kernel v6.7. Signed-off-by: Yannic Moog --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx8mm-phygate-tauri-l-u

[PATCH v2 0/3] This series adds support for the phyGATE-Tauri-L.

2024-01-10 Thread Yannic Moog
. --- Changes in v2: - readd TIDP83867; is populated on the SoM by default - remove remnants from SPI config options (savedefconfig) - add doc/board/phytec files to MAINTAINERS --- Yannic Moog (3): Add support for phyGATE-Tauri-L-iMX8MM doc: board: phytec: Add phyGATE-Tauri board

[PATCH 2/2] doc: board: phytec: Add phyGATE-Tauri board documentation

2024-01-10 Thread Yannic Moog
Add brief documentation on how to build a bootable U-Boot image for the phyGATE-Tauri-L. Signed-off-by: Yannic Moog --- doc/board/phytec/imx8mm-phygate-tauri-l.rst | 60 + doc/board/phytec/index.rst | 1 + 2 files changed, 61 insertions(+) diff

[PATCH 1/2] Add support for phyGATE-Tauri-L-iMX8MM

2024-01-10 Thread Yannic Moog
phyGATE-Tauri-L-iMX8MM is a Gateway based on the phycore-imx8mm SoM. As a result, all the board code of the phycore-imx8mm is used. Device tree synced with kernel v6.7. Signed-off-by: Yannic Moog --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx8mm-phygate-tauri-l-u

[PATCH 0/2] This series adds support for the phyGATE-Tauri-L.

2024-01-10 Thread Yannic Moog
The config is minimal and mostly a copy from the phycore-imx8mm. TI PHY and SPI (flash) are disabled as they are not populated by default. --- Yannic Moog (2): Add support for phyGATE-Tauri-L-iMX8MM doc: board: phytec: Add phyGATE-Tauri board documentation arch/arm/dts/Makefile

[PATCH v2 4/5] board: phytec: som_detection: move definitions to source file

2023-12-20 Thread Yannic Moog
Move all function definitions in {phytec|imx8m}_som_detection from the header to the source file to prevent potential linker error regarding multiple definitions. Also move the #if blocks with the definitions. Signed-off-by: Yannic Moog --- board/phytec/common/imx8m_som_detection.c | 32

[PATCH v2 5/5] board: phytec: phytec_som_detection: fix uninitialized bug

2023-12-20 Thread Yannic Moog
When som_type does not match any case, it is uninitialized and the function still tries to print the SoM info. Rather, this is an error condition and the function should abort prematurely. Highlight this by printing an error message and returning early. Signed-off-by: Yannic Moog --- board

[PATCH v2 0/5] This series fixes various bugs in the phytec som_detection unit.

2023-12-20 Thread Yannic Moog
--- Changes in v2: - fixed accidental squashing of changes -> split into 2 separate patches --- Yannic Moog (5): board: phytec: imx8m_som_detection: change phytec_imx8m_detect return type board: phytec: imx8m_som_detection: fix uninitialized pointer bug board: phy

[PATCH v2 3/5] board: phytec: phytec_som_detection: fix eeprom_data zero check

2023-12-20 Thread Yannic Moog
array index to compare all chunks of the buffer. Signed-off-by: Yannic Moog --- board/phytec/common/phytec_som_detection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/phytec/common/phytec_som_detection.c b/board/phytec/common/phytec_som_detection.c index

[PATCH v2 2/5] board: phytec: imx8m_som_detection: fix uninitialized pointer bug

2023-12-20 Thread Yannic Moog
Pointer in phytec_imx8m_detect was accessed without checking it first. Fix this by moving the pointer check in front of any accesses. Signed-off-by: Yannic Moog --- board/phytec/common/imx8m_som_detection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/phytec

[PATCH v2 1/5] board: phytec: imx8m_som_detection: change phytec_imx8m_detect return type

2023-12-20 Thread Yannic Moog
phytec_imx8m_detect returns -1 on error, but the return type is u8 leading to 255 return values. Fix this by changing the return type to int; there is no reason to keep it as u8 . Signed-off-by: Yannic Moog --- board/phytec/common/imx8m_som_detection.c | 2 +- board/phytec/common

Re: [PATCH 3/4] board: phytec: phytec_som_detection: fix eeprom_data zero check

2023-12-20 Thread Yannic Moog
Hello Teresa, On Wed, 2023-12-20 at 09:24 +0100, Teresa Remmet wrote: > Hello Yannic, > > Am Mittwoch, dem 20.12.2023 um 09:19 +0100 schrieb Yannic Moog: > > In phytec_eeprom_data_init, after reading eeprom data into buffer, it > > is > > checked whether all byte

[PATCH 3/4] board: phytec: phytec_som_detection: fix eeprom_data zero check

2023-12-20 Thread Yannic Moog
array index to compare all chunks of the buffer. Signed-off-by: Yannic Moog --- board/phytec/common/imx8m_som_detection.c | 32 ++ board/phytec/common/imx8m_som_detection.h | 32 -- board/phytec/common/phytec_som_detection.c | 43

[PATCH 4/4] board: phytec: phytec_som_detection: fix uninitialized bug

2023-12-20 Thread Yannic Moog
When som_type does not match any case, it is uninitialized and the function still tries to print the SoM info. Rather, this is an error condition and the function should abort prematurely. Highlight this by printing an error message and returning early. Signed-off-by: Yannic Moog --- board

[PATCH 2/4] board: phytec: imx8m_som_detection: fix uninitialized pointer bug

2023-12-20 Thread Yannic Moog
Pointer in phytec_imx8m_detect was accessed without checking it first. Fix this by moving the pointer check in front of any accesses. Signed-off-by: Yannic Moog --- board/phytec/common/imx8m_som_detection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/phytec

[PATCH 1/4] board: phytec: imx8m_som_detection: change phytec_imx8m_detect return type

2023-12-20 Thread Yannic Moog
phytec_imx8m_detect returns -1 on error, but the return type is u8 leading to 255 return values. Fix this by changing the return type to int; there is no reason to keep it as u8 . Signed-off-by: Yannic Moog --- board/phytec/common/imx8m_som_detection.c | 2 +- board/phytec/common

[PATCH 0/4] This series fixes various bugs in the phytec som_detection unit.

2023-12-20 Thread Yannic Moog
--- Yannic Moog (4): board: phytec: imx8m_som_detection: change phytec_imx8m_detect return type board: phytec: imx8m_som_detection: fix uninitialized pointer bug board: phytec: phytec_som_detection: fix eeprom_data zero check board: phytec: phytec_som_detection: fix

Re: [PATCH v2 6/6] board: phytec: phycore_imx8mp: Add 4000MTS RAM timings based on PCB rev

2023-08-28 Thread Yannic Moog
mmet Reviewed-by: Yannic Moog Tested-by: Yannic Moog > -- > Changes in v2: > - Fix wrong RAM Timing values as pointed out by Yannic > --- >  board/phytec/phycore_imx8mp/spl.c | 61 > +++ >  1 file changed, 61 insertions(+) > > diff --git a/b

Re: [PATCH v2 5/6] board: phytec: common: phytec_som_detection: Add helper for PCB revision

2023-08-28 Thread Yannic Moog
On Thu, 2023-08-17 at 10:57 +0200, Teresa Remmet wrote: > Add helper function to read out the PCB revision of a PHYTEC SoM. > > Signed-off-by: Teresa Remmet Reviewed-by: Yannic Moog Tested-by: Yannic Moog > --- > Changes in v2: > - none > --- >  board/phytec/commo

Re: [PATCH v2 4/6] board: phytec: phycore_imx8mp: Update 2GB RAM Timings

2023-08-28 Thread Yannic Moog
-off-by: Teresa Remmet Reviewed-by: Yannic Moog Tested-by: Yannic Moog > --- > Changes in v2: > - none > --- >  board/phytec/phycore_imx8mp/lpddr4_timing.c | 278 ++- > - >  1 file changed, 135 insertions(+), 143 deletions(-) > > diff --git a/board/phyte

Re: [PATCH v2 3/6] board: phytec: phycore-imx8mp: Add EEPROM detection initialisation

2023-08-28 Thread Yannic Moog
On Thu, 2023-08-17 at 10:57 +0200, Teresa Remmet wrote: > Add EEPROM detection initialisation for phyCORE-i.MX8MM and > print SoM information during boot when successful. > > Signed-off-by: Teresa Remmet Reviewed-by: Yannic Moog Tested-by: Yannic Moog > --- > Changes

Re: [PATCH v2 2/6] board: phytec: common: Add imx8m specific EEPROM detection support

2023-08-28 Thread Yannic Moog
On Thu, 2023-08-17 at 10:57 +0200, Teresa Remmet wrote: > Add imx8m specific detection part. Which includes checking the > EEPROM data for article number options. > > Signed-off-by: Teresa Remmet Reviewed-by: Yannic Moog Tested-by: Yannic Moog > --- > Changes in v2: >

Re: [PATCH v2 1/6] board: phytec: Add common PHYTEC SoM detection

2023-08-28 Thread Yannic Moog
; > Signed-off-by: Teresa Remmet Reviewed-by: Yannic Moog Tested-by: Yannic Moog > --- > Changes in v2: > - none > --- >  board/phytec/common/Kconfig    |   5 + >  board/phytec/common/Makefile   |  10 ++ >  board/phy

Re: [PATCH v1 0/4] Port gen_compile_commands.py from Linux to U-Boot

2023-08-28 Thread Yannic Moog
Hello Joao, On Sun, 2023-08-20 at 21:04 +0200, Joao Marcos Costa wrote: > Hello U-Boot community, > > I'm submitting a patch series that ports the gen_compile_commands.py > script from the Linux kernel's sources to U-Boot. This script, > originally > located in

Re: [PATCH v2 0/6] PHYTEC SoM detection for phyCORE-i.MX8MP

2023-08-25 Thread Yannic Moog
Hi Fabio On Thu, 2023-08-24 at 08:52 -0300, Fabio Estevam wrote: > Hi Yannic, > > On Thu, Aug 17, 2023 at 5:57 AM Teresa Remmet > wrote: > > > > second version of the series to add support for EEPROM SoM > > detection used > > by different PHYTEC SoMs. The EEPROM data consist of 32 bytes > >

Re: [PATCH 4/6] board: phytec: phycore_imx8mp: Update 2GB RAM Timings

2023-08-08 Thread Yannic Moog
Hello Teresa, On Tue, 2023-07-18 at 15:35 +0200, Teresa Remmet wrote: > Due to PCB layout constraints in PCB revisions until including > 1549.2, > a RAM frequency of 2 GHz can cause rare instabilities. Set the RAM > frequency to 1.5 GHz to achieve a stable system under all conditions. > >

Re: [PATCH 6/6] board: phytec: phycore_imx8mp: Add 4000MTS RAM timings based on PCB rev

2023-08-03 Thread Yannic Moog
Hello Teresa, On Tue, 2023-07-18 at 15:35 +0200, Teresa Remmet wrote: > Starting with PCB revision 3 we can safely make use of higher RAM > frequency again. Make use of the EEPROM detection to determine the > revision and use the updated RAM timings for new SoMs. > > Signed-off-by: Teresa Remmet

Re: [PATCH 3/6] board: phytec: phycore-imx8mp: Add EEPROM detection initialisation

2023-08-03 Thread Yannic Moog
Hello Teresa, On Tue, 2023-07-18 at 15:35 +0200, Teresa Remmet wrote: > Add EEPROM detection initialisation for phyCORE-i.MX8MM and > print SoM information during boot when successful. > > Signed-off-by: Teresa Remmet > --- >  board/phytec/phycore_imx8mp/Kconfig |  1 + >  

Re: [PATCH 2/6] board: phytec: common: Add imx8m specific EEPROM detection support

2023-07-28 Thread Yannic Moog
Hi Teresa, On Tue, 2023-07-18 at 15:35 +0200, Teresa Remmet wrote: > Add imx8m specific detection part. Which includes checking the > EEPROM data for article number options. > > Signed-off-by: Teresa Remmet > --- >  board/phytec/common/Kconfig   |   8 + >  

[PATCH 2/2] doc: board: phytec: add phycore_imx8mp

2023-06-14 Thread Yannic Moog
Add documentation on how to build a bootable U-Boot image for the PHYTEC phyCORE-i.MX 8M Plus. Signed-off-by: Yannic Moog --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-imx8mp.rst | 60 + 2 files changed, 61 insertions(+) create mode 100644

[PATCH 1/2] doc: board: phytec: add phycore_imx8mm

2023-06-14 Thread Yannic Moog
Add documentation on how to build a bootable U-Boot image for the PHYTEC phyCORE-i.MX 8M Mini. Signed-off-by: Yannic Moog --- doc/board/index.rst | 1 + doc/board/phytec/index.rst | 9 + doc/board/phytec/phycore-imx8mm.rst | 60 + 3