[PATCH 4/4] config: xea: Add limits for SPL and u-boot proper sizes

2024-03-29 Thread Lukasz Majewski
The XEA board has following hard constraints regarding size of binaries: - u-boot.sb < 48 KiB - u-boot.img < 448 KiB Added values are supposed to avoid exceeding size of binaries during future u-boot development. Signed-off-by: Lukasz Majewski --- (no changes since v1) c

[PATCH 3/4] arm: xea: Add support for reading SoM (CPU) board HW revision

2024-03-29 Thread Lukasz Majewski
' environment variable will be used to point correct configuration from the Linux FIT file. Additionally, as now XEA has its second HW revision - this information is printed when u-boot proper starts. Signed-off-by: Lukasz Majewski --- Changes in v2: Remove "inline" from get_som_rev(

[PATCH 2/4] arm: spl: Add definition for PHY reset GPIO for XEA HW rev. 2

2024-03-29 Thread Lukasz Majewski
configuration chosen). Signed-off-by: Lukasz Majewski --- (no changes since v1) board/liebherr/xea/spl_xea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index 551ed6fbae..4068a2ad49 100644 --- a/board

[PATCH 1/4] arm: spl: xea: Remove I2S pins configuration from early initialization

2024-03-29 Thread Lukasz Majewski
XEA is not supporting and using I2S codec, so there is no need to configure pins for it. Signed-off-by: Lukasz Majewski --- (no changes since v1) board/liebherr/xea/spl_xea.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c

[PATCH 0/4] arm: xea: Provide enhancements for XEA board

2024-03-29 Thread Lukasz Majewski
: Remove "inline" from get_som_rev() function definition Squash with 'config: xea: Enable late board initialization to set revision variable' Update commit message Squash with 'arm: xea: Print information about XEA's SoM HW revision' Lukasz Majewski (4): arm: spl: xea: Remove I2S pins con

[PATCH 6/6] config: xea: Add limits for SPL and u-boot proper sizes

2024-03-28 Thread Lukasz Majewski
The XEA board has following hard constraints regarding size of binaries: - u-boot.sb < 48 KiB - u-boot.img < 448 KiB Added values are supposed to avoid exceeding size of binaries during future u-boot development. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 3 +++

[PATCH 5/6] arm: xea: Print information about XEA's SoM HW revision

2024-03-28 Thread Lukasz Majewski
As now XEA has its second HW revision - this information is printed when u-boot proper starts. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 9 + 1 file changed, 9 insertions(+) diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c index 90a1e03077

[PATCH 4/6] config: xea: Enable late board initialization to set revision variable

2024-03-28 Thread Lukasz Majewski
The 'board_som_rev' environment variable will be used to point correct configuration from the Linux FIT file. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 12 configs/imx28_xea_defconfig| 1 + configs/imx28_xea_sb_defconfig | 1 + 3 files changed, 14

[PATCH 3/6] arm: spl: Add definition for PHY reset GPIO for XEA HW rev. 2

2024-03-28 Thread Lukasz Majewski
configuration chosen). Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index 71194db235..6cf8f8390e 100644 --- a/board/liebherr/xea/spl_xea.c +++ b

[PATCH 2/6] arm: xea: Add support for reading SoM (CPU) and base board HW revision

2024-03-28 Thread Lukasz Majewski
in it. It was necessary to handle reading GPIOs values solely in u-boot proper as one configuration (i.e. 'single binary' - imx28_xea_sb_defconfig) is not using SPL framework. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 11 +++ board/liebherr/xea/xea.c | 29

[PATCH 1/6] arm: spl: xea: Remove I2S pins configuration from early initialization

2024-03-28 Thread Lukasz Majewski
XEA is not supporting and using I2S codec, so there is no need to configure pins for it. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index df354cac64

[PATCH 0/6] arm: xea: Provide enhancements for XEA board

2024-03-28 Thread Lukasz Majewski
This patch series is a preparatory patch for supporting different versions of XEA board HW (until problem with Linux kernel support for multiple revisions is resorted). Moreover, limits for u-boot.sb and u-boot.img has been set to avoid binary sizes exceeding in the future. Lukasz Majewski (6

Re: Thoughts about U-boot binary size increase

2024-03-28 Thread Lukasz Majewski
Hi Tom, > On Thu, Mar 28, 2024 at 01:55:22PM +0100, Lukasz Majewski wrote: > > Hi Tom, > > > > > On Thu, Mar 28, 2024 at 10:20:49AM +0100, Lukasz Majewski wrote: > > > > Dear Community, > > > > > > > > I'd like to share with yo

Re: Thoughts about U-boot binary size increase

2024-03-28 Thread Lukasz Majewski
Hi Tom, > On Thu, Mar 28, 2024 at 10:20:49AM +0100, Lukasz Majewski wrote: > > Dear Community, > > > > I'd like to share with you some thoughts about growth of u-boot's > > binary size for SPL and u-boot proper. > > > > Board: XEA > > SoC : imx287

Re: Thoughts about U-boot binary size increase

2024-03-28 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Thu, Mar 28, 2024 at 6:20 AM Lukasz Majewski wrote: > > > > Dear Community, > > > > I'd like to share with you some thoughts about growth of u-boot's > > binary size for SPL and u-boot proper. > > > > Board

Re: Thoughts about U-boot binary size increase

2024-03-28 Thread Lukasz Majewski
Hi Marek, > On 3/28/24 10:20 AM, Lukasz Majewski wrote: > > Dear Community, > > > > I'd like to share with you some thoughts about growth of u-boot's > > binary size for SPL and u-boot proper. > > > > Board: XEA > > SoC : imx287 (still in active

Thoughts about U-boot binary size increase

2024-03-28 Thread Lukasz Majewski
it be possible to take more concern about the binary size growth? Maybe CI could catch patches, which enable by default some features and the size is unintentionally increased? I'm open for any feedback and thoughts on "stopping" the binary size increase. Best regards, Lukasz Majewski

Re: [PATCH 00/12] arm: xea: Provide support for different XEA board HW versions

2024-03-27 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Mon, Mar 25, 2024 at 5:48 AM Lukasz Majewski wrote: > > > The case here is that I'm modifying the *-u-boot.dts{i} files only. > > In > > The diff below shows that you are creating imx28-xea-1.dts and > imx28-xea-2.dts fo

Re: [PATCH 00/12] arm: xea: Provide support for different XEA board HW versions

2024-03-26 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Mon, Mar 25, 2024 at 5:48 AM Lukasz Majewski wrote: > > > The case here is that I'm modifying the *-u-boot.dts{i} files only. > > In > > The diff below shows that you are creating imx28-xea-1.dts and > imx28-xea-2.dts fo

Re: [PATCH 00/12] arm: xea: Provide support for different XEA board HW versions

2024-03-25 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Fri, Mar 22, 2024 at 8:43 AM Lukasz Majewski wrote: > > > arch/arm/dts/Makefile | 3 +- > > arch/arm/dts/imx28-xea-1-u-boot.dtsi | 11 > > arch/arm/dts/imx28-xea-1.dts | 8 +++

[PATCH 12/12] arm: env: Add support for booting different HW revisions of XEA boards

2024-03-22 Thread Lukasz Majewski
In the scenario of recovery, the FitImage is used to boot the system. This patch provides support for deciding which dtb configuration shall be used. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board

[PATCH 11/12] arm: xea: Print information about XEA's SoM HW revision

2024-03-22 Thread Lukasz Majewski
As now XEA has its second HW revision - this information is printed when u-boot proper starts. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 9 + 1 file changed, 9 insertions(+) diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c index 5bac614153

[PATCH 10/12] config: xea: Enable late board initialization to set revision variable

2024-03-22 Thread Lukasz Majewski
The 'board_som_rev' environment variable will be used to point correct configuration from the Linux FIT file. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 12 configs/imx28_xea_defconfig| 1 + configs/imx28_xea_sb_defconfig | 1 + 3 files changed, 14

[PATCH 09/12] arm: config: xea: Enable support for multiple DTBs for XEA board

2024-03-22 Thread Lukasz Majewski
After this change u-boot proper is able to support two HW revisions of the XEA board. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig| 2 ++ configs/imx28_xea_sb_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/imx28_xea_defconfig b/configs

[PATCH 08/12] arm: spl: Add definition for PHY reset GPIO for XEA HW rev. 2

2024-03-22 Thread Lukasz Majewski
configuration chosen). Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index 71194db235..6cf8f8390e 100644 --- a/board/liebherr/xea/spl_xea.c +++ b

[PATCH 07/12] dts: xea: Add device tree description for XEA HW rev. 2

2024-03-22 Thread Lukasz Majewski
For SPL and u-boot proper, the difference between revsions boils down only to the GPIO pin for PHY reset. Signed-off-by: Lukasz Majewski --- arch/arm/dts/Makefile| 3 ++- arch/arm/dts/imx28-xea-2-u-boot.dtsi | 11 +++ arch/arm/dts/imx28-xea-2.dts | 8

[PATCH 06/12] arm: xea: Add support for multiple dtbs in u-boot

2024-03-22 Thread Lukasz Majewski
location (0xE000 - 2). This board also uses falcon boot for production setup, so the proper dtb is flashed during production (also based on GPIO values describing HW ID). Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH 05/12] dts: xea: Remove outdated comment

2024-03-22 Thread Lukasz Majewski
The comment in u-boot specific adjustment to XEA DTS is not valid anymore. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-1-u-boot.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/imx28-xea-1-u-boot.dtsi b/arch/arm/dts/imx28-xea-1-u-boot.dtsi index

[PATCH 04/12] dts: xea: Move phy-reset-gpios property to version specific DTS file

2024-03-22 Thread Lukasz Majewski
. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-1-u-boot.dtsi | 4 arch/arm/dts/imx28-xea-u-boot.dtsi | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/imx28-xea-1-u-boot.dtsi b/arch/arm/dts/imx28-xea-1-u-boot.dtsi index 4b2b21eeae..2903be2089

[PATCH 03/12] arm: xea: Rename imx28-xea.dts to imx28-xea-1.dts

2024-03-22 Thread Lukasz Majewski
The former imx28-xea.dts file has been renamed to imx28-xea.dtsi, which is included to new imx28-xea-1.dts file. This is a preparatory work to add support for multiple versions of XEA boards to u-boot. Signed-off-by: Lukasz Majewski --- arch/arm/dts/Makefile | 2

[PATCH 02/12] arm: xea: Add support for reading SoM (CPU) and base board HW revision

2024-03-22 Thread Lukasz Majewski
in it. It was necessary to handle reading GPIOs values solely in u-boot proper as one configuration (i.e. 'single binary' - imx28_xea_sb_defconfig) is not using SPL framework. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 11 +++ board/liebherr/xea/xea.c | 29

[PATCH 01/12] arm: spl: xea: Remove I2S pins configuration from early initialization

2024-03-22 Thread Lukasz Majewski
XEA is not supporting and using I2S codec, so there is no need to configure pins for it. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index df354cac64

[PATCH 00/12] arm: xea: Provide support for different XEA board HW versions

2024-03-22 Thread Lukasz Majewski
to functionality not supported in u-boot), hence there is no need to update them from Linux upstream DTS. Lukasz Majewski (12): arm: spl: xea: Remove I2S pins configuration from early initialization arm: xea: Add support for reading SoM (CPU) and base board HW revision arm: xea: Rename imx28

[PATCH v3 3/3] arm: xea: Add support for boot image source descriptor in SPL

2024-01-15 Thread Lukasz Majewski
Gustschin Signed-off-by: Lukasz Majewski --- Changes in v3: - None board/liebherr/xea/boot_img_scr.h | 27 ++ board/liebherr/xea/xea.c | 85 +++ 2 files changed, 112 insertions(+) create mode 100644 board/liebherr/xea/boot_img_scr.h diff --git a/board

[PATCH v3 2/3] arm: config: Enable CRC8 support in SPL on imx287 XEA board

2024-01-15 Thread Lukasz Majewski
The boot0/1 feature uses simple CRC8 to check (in SPL) if SPI-NOR content is not corrupted, hence the need to enable it. Signed-off-by: Lukasz Majewski --- Changes in v3: - None configs/imx28_xea_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx28_xea_defconfig b

[PATCH v3 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-15 Thread Lukasz Majewski
The default set of environment variables from CFG_EXTRA_ENV_SETTINGS has been moved to a separate file - board/liebherr/xea/xea.env Adjustments done: - fitImage support - SPI-NOR layout re-organization Signed-off-by: Lukasz Majewski --- Changes in v3: - Remove customer's default IP settings

[PATCH] defconfig: xea: Change default spi-nor memory bus to 2 (single binary)

2024-01-12 Thread Lukasz Majewski
probe' without any extra parameters given) has been adjusted. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_sb_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/imx28_xea_sb_defconfig b/configs/imx28_xea_sb_defconfig index 0b3259866e..9872d35c1b

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
Hi Fabio, > Hi Fabio, > > > On Thu, Jan 11, 2024 at 8:16 AM Fabio Estevam > > wrote: > > > > > > Hi Lukasz, > > > > > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski > > > wrote: > > > > +serverip=10.

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
Hi Fabio, > On Thu, Jan 11, 2024 at 8:16 AM Fabio Estevam > wrote: > > > > Hi Lukasz, > > > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski > > wrote: > > > +serverip=10.8.217.79 > > > +nfs_serverip=10.8.218.113 > > &

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski wrote: > > > +serverip=10.8.217.79 > > +nfs_serverip=10.8.218.113 > > +gatewayip=10.8.209.250 > > These IP addresses should not be hardcoded here. > > They were not prese

[PATCH v2 3/3] arm: xea: Add support for boot image source descriptor in SPL

2024-01-11 Thread Lukasz Majewski
Gustschin Signed-off-by: Lukasz Majewski --- Changes in v2: - Move XEA's env adjustments to xea.env file (from include/configs/xea.h) board/liebherr/xea/boot_img_scr.h | 27 ++ board/liebherr/xea/xea.c | 85 +++ 2 files changed, 112 insertions(+) create

[PATCH v2 2/3] arm: config: Enable CRC8 support in SPL on imx287 XEA board

2024-01-11 Thread Lukasz Majewski
The boot0/1 feature uses simple CRC8 to check (in SPL) if SPI-NOR content is not corrupted, hence the need to enable it. Signed-off-by: Lukasz Majewski --- (no changes since v1) configs/imx28_xea_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx28_xea_defconfig b

[PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
The default set of environment variables from CFG_EXTRA_ENV_SETTINGS has been moved to a separate file - board/liebherr/xea/xea.env Adjustments done: - fitImage support - SPI-NOR layout re-organization Signed-off-by: Lukasz Majewski --- (no changes since v1) board/liebherr/xea/xea.env | 141

Re: [PATCH v1 1/3] arm: config: xea: Update environment variables for XEA board (imx287)

2024-01-11 Thread Lukasz Majewski
Hi Tom, > On Wed, Jan 10, 2024 at 03:48:47PM +0100, Lukasz Majewski wrote: > > > As the XEA now supports fitImage, the default envs shall reflect > > this as well. > > > > Moreover, some SPI-NOR layout re-organization has took place. > >

[PATCH v1 3/3] arm: xea: Add support for boot image source descriptor in SPL

2024-01-10 Thread Lukasz Majewski
Gustschin Signed-off-by: Lukasz Majewski --- board/liebherr/xea/boot_img_scr.h | 27 ++ board/liebherr/xea/xea.c | 85 +++ 2 files changed, 112 insertions(+) create mode 100644 board/liebherr/xea/boot_img_scr.h diff --git a/board/liebherr/xea

[PATCH v1 2/3] arm: config: Enable CRC8 support in SPL on imx287 XEA board

2024-01-10 Thread Lukasz Majewski
The boot0/1 feature uses simple CRC8 to check (in SPL) if SPI-NOR content is not corrupted, hence the need to enable it. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig

[PATCH v1 1/3] arm: config: xea: Update environment variables for XEA board (imx287)

2024-01-10 Thread Lukasz Majewski
As the XEA now supports fitImage, the default envs shall reflect this as well. Moreover, some SPI-NOR layout re-organization has took place. Signed-off-by: Lukasz Majewski --- include/configs/xea.h | 45 --- 1 file changed, 25 insertions(+), 20

Re: [PATCH] net: mv88e6xxx: add missing SMI address init

2023-11-27 Thread Lukasz Majewski
Hi Marek, > On Wed, Nov 22, 2023 at 04:38:41PM +0100, Lukasz Majewski wrote: > > Hi Marek, > > > > > Driver does not currently initialize the smi_addr field, but > > > instead keeps the default value. This leads to issues on systems > > > with di

Re: [PATCH] net: mv88e6xxx: add missing SMI address init

2023-11-22 Thread Lukasz Majewski
Unfortunately, those were not pulled... Maybe you would find fix for your issue, or prepare new version of it? Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-814

Re: [PATCH] dfu: mmc: Add support for exposing whole mmc device

2023-10-30 Thread Lukasz Majewski
by: Marek Vasut > --- > Cc: Lukasz Majewski > Cc: Mattijs Korpershoek > Cc: Tom Rini > --- > doc/usage/dfu.rst | 5 + > drivers/dfu/dfu_mmc.c | 10 ++ > 2 files changed, 15 insertions(+) > > diff --git a/doc/usage/dfu.rst b/doc/usage/df

Re: [PATCH 0/2] MAINTAINERS: Add Mattijs to USB/fastboot maintainers

2023-10-19 Thread Lukasz Majewski
On Thu, 19 Oct 2023 09:40:37 +0200 Mattijs Korpershoek wrote: > Hi Lukasz, Marek, > > On mer., oct. 18, 2023 at 12:52, Lukasz Majewski > wrote: > > > Hi Mattijs, > > > >> From discussions with Marek at Kernel Recipes, it seems that the > &g

Re: [PATCH 0/2] MAINTAINERS: Add Mattijs to USB/fastboot maintainers

2023-10-18 Thread Lukasz Majewski
interested in keeping > that functional as well. > > Note that I have no previous (open-source) maintainer experience so I > will do my best to learn. > Thanks for willing to help with maintaining the code. If you need any help - then just ask :-) Acked-by: Lukasz Majewski

Re: [RFC PATCH] mxs: Don't enable 4P2 reg if mx28 is powered only from DCDC_BATT without 5V

2023-10-09 Thread Lukasz Majewski
ch/20230703163340.101490-2-c...@londelec.com/ Isn't this already addressed with: https://source.denx.de/u-boot/u-boot/-/commit/79230640cb4fb780e2be9bb9a47b31976b18cac4 Please also look into the recent patches for imx287 (xea board for reference): tig -- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c At le

Re: [PATCH] arm: mxs: Clear CPSR V bit to activate low vectors

2023-07-31 Thread Lukasz Majewski
ff-by: Marek Vasut > --- > Cc: "NXP i.MX U-Boot Team" > Cc: Fabio Estevam > Cc: Lukasz Majewski > Cc: Stefano Babic > --- > arch/arm/cpu/arm926ejs/mxs/mxs.c | 3 +++ > arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 4 > 2 files changed, 7 insertions(+)

Re: [PATCH] arm: mxs: Fix ICOLL macro name typo

2023-07-31 Thread Lukasz Majewski
by: Marek Vasut > --- > Cc: "NXP i.MX U-Boot Team" > Cc: Fabio Estevam > Cc: Lukasz Majewski > Cc: Stefano Babic > --- > arch/arm/include/asm/arch-mxs/regs-base.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/include/asm/arch

[PATCH 2/2] config: xea: Disable support for FAT file system

2023-07-12 Thread Lukasz Majewski
On the XEA (imx287) system the FAT file system is not used neither in SPL nor u-boot proper. Hence, to save ~6KiB of u-boot.img size - it has been disabled. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs

[PATCH 1/2] config: xea: Disable support for boot methods EXTLINUX and VBE

2023-07-12 Thread Lukasz Majewski
The XEA system (imx287 based) is not using support for EXTLINUX and VBE. As those configuration options have been enabled by default with modern Kconfig it is safe to explicitly disable them. After that change the u-boot.img size has been reduced by ~16 KiB. Signed-off-by: Lukasz Majewski

Re: [PATCH 2/2] mxs: Don't enable 4P2 reg if MXS is powered only from DCDC_BATT

2023-07-04 Thread Lukasz Majewski
y_linreg) > > powered_by_linreg = cfg->powered_by_linreg(); > > +#endif > > > > if (adjust_up && cfg->bo_irq) { > > if (powered_by_linreg) { > > @@ -1269,7 +1274,9 @@ void mxs_power_init(void) > > POWER_CTRL_VBUS_VAL

Re: [PATCH v1 2/6] net: mv88e61xx: Configure PHY ports to also pass packets between them

2023-06-02 Thread Lukasz Majewski
mmon for all mv88e6xxx devices. Links: [1] - https://patchwork.ozlabs.org/project/uboot/cover/20221130174251.82087-1-thar...@gateworks.com/ Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lu...@denx.de pgp0yjSCKGb8L.pgp Description: OpenPGP digital signature

Re: [PATCH v1 6/6] net: mv88e61xx: Reset switch PHYs when bootstrapped to !NO_CPU

2023-06-01 Thread Lukasz Majewski
Hi Marek, > On 6/1/23 12:00, Lukasz Majewski wrote: > > Some devices, when configured in bootstrap to 'no cpu' mode require > > PHY manual reset to get them operational and responding to reading > > their ID registers. > > > > Without this step - the PHYLIB pr

Re: [PATCH v1 2/6] net: mv88e61xx: Configure PHY ports to also pass packets between them

2023-06-01 Thread Lukasz Majewski
Hi Marek, > On 6/1/23 12:00, Lukasz Majewski wrote: > > After this change PHY ports are able to pass packets between them > > (and also to CPU port). > > > > The Kconfig variable - CONFIG_MV88E61XX_PHY_PORTS - is used to get > > the PHY ports of th

[PATCH v1 4/6] net: mv88e61xx: Directly access the switch chip

2023-06-01 Thread Lukasz Majewski
The mv88e6020 is accessed in a direct way (i.e. with direct read and write to mdio bus). The only necessary indirection is required when accessing its PHY registers. Signed-off-by: Lukasz Majewski Reviewed-by: Ramon Fried --- drivers/net/phy/mv88e61xx.c | 15 ++- 1 file changed

[PATCH v1 5/6] net: mv88e61xx: Set proper offset when R0_LED/ADDR4 is set on bootstrap

2023-06-01 Thread Lukasz Majewski
The mv88e61xx driver need to be adjusted to handle situation when switch MDIO addresses are switched by offset (0x10 in this case). Signed-off-by: Lukasz Majewski Reviewed-by: Ramon Fried --- drivers/net/phy/mv88e61xx.c | 25 ++--- 1 file changed, 18 insertions(+), 7

[PATCH v1 6/6] net: mv88e61xx: Reset switch PHYs when bootstrapped to !NO_CPU

2023-06-01 Thread Lukasz Majewski
Data1 (0x71) of Scratch and Misc register is read to check if 'no_cpu' and 'addr4' bits were set. Signed-off-by: Lukasz Majewski Reviewed-by: Ramon Fried --- drivers/net/phy/mv88e61xx.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git

[PATCH v1 2/6] net: mv88e61xx: Configure PHY ports to also pass packets between them

2023-06-01 Thread Lukasz Majewski
After this change PHY ports are able to pass packets between them (and also to CPU port). The Kconfig variable - CONFIG_MV88E61XX_PHY_PORTS - is used to get the PHY ports of the switch and generate proper mask. Signed-off-by: Lukasz Majewski Reviewed-by: Ramon Fried --- drivers/net/phy

[PATCH v1 3/6] net: mv88e61xx: Clear temporary structs before using them in get_phy_id()

2023-06-01 Thread Lukasz Majewski
Those automatically created structures can have random value. However, mv88e61xx driver assumes that those are zeroed. Signed-off-by: Lukasz Majewski Reviewed-by: Ramon Fried --- drivers/net/phy/mv88e61xx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/mv88e61xx.c b

[PATCH v1 1/6] net: mv88e61xx: Add support for checking addressing mode

2023-06-01 Thread Lukasz Majewski
Some Marvell switch devices are dual chip ones, like mv88e6020, which use direct MDIO addressing to access its ports' registers. Such approach allows connecting two such devices in a single MDIO bus with simple addressing scheme. Signed-off-by: Lukasz Majewski Reviewed-by: Ramon Fried

[PATCH v1 0/6] Provide support for mv88e6020 Marvell switch

2023-06-01 Thread Lukasz Majewski
. Lukasz Majewski (6): net: mv88e61xx: Add support for checking addressing mode net: mv88e61xx: Configure PHY ports to also pass packets between them net: mv88e61xx: Clear temporary structs before using them in get_phy_id() net: mv88e61xx: Directly access the switch chip net

[PATCH v1 16/16] config: xea: Enable DM_SERIAL for the XEA - single binary (SB) u-boot

2023-05-19 Thread Lukasz Majewski
The single binary version of u-boot for XEA board is used to debrick and factory programming. The produced u-boot.sb is a single file, which allows having fully operational u-boot prompt loaded with imx287 ROM. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_sb_defconfig | 2 ++ 1 file

[PATCH v1 12/16] arm: mxs: Prevent serial console init when in very early SPL boot code

2023-05-19 Thread Lukasz Majewski
When DM_SERIAL is enabled on mxs (i.e. imx28) platform, the console early initialization must be postponed until the driver model is correctly setup. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v1 15/16] config: xea: Enable DM_SERIAL for the XEA (imx287 based) board

2023-05-19 Thread Lukasz Majewski
The XEA board now supports the DM_SERIAL feature in u-boot. The SPL is using the SPL_OF_PLATDATA - i.e. NOT SPL_DM_SERIAL to reduce the overall size of the SPL binary. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v1 14/16] arm: Kconfig: Switch XEA (imx287 based) board to use CONFIG_PL01X_SERIAL

2023-05-19 Thread Lukasz Majewski
The CONFIG_PL011 used by all other ARCH_MX28 based boards is not supporting DM_SERIAL. Instead, other define - namely CONFIG_PL01X_SERIAL shall be used by boards supporting DM_SERIAL. Signed-off-by: Lukasz Majewski --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mxs/Kconfig | 1

[PATCH v1 13/16] arm: xea: Call spl_early_init() before DM serial console is enabled in SPL

2023-05-19 Thread Lukasz Majewski
The in-spl enabled DM serial console requires the board setup to be able to parse SPL_OF_PLATDATA based serial driver (pl01x) for the imx28 based XEA board. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/liebherr/xea/xea.c

[PATCH v1 11/16] serial: pl01x: Modify pending callback to test if transmit FIFO is empty

2023-05-19 Thread Lukasz Majewski
returns true infinitely. As a result, for example in _serial_flush() DM serial function we are locked in endless while(). The fix here is to test explicitly if the TX FIFO is empty. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_pl01x.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v1 09/16] serial: pl01x: Change OF_CONTROL to OF_REAL

2023-05-19 Thread Lukasz Majewski
Before this change, building this driver for SPL with enabled SPL_DM_SERIAL was problematic, as '-Wunused-const-variable=' warning was visible. Now, the code is only considered when u-boot proper is build. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_pl01x.c | 2 +- 1 file changed

[PATCH v1 10/16] serial: pl01x: Prepare the driver to support SPL_OF_PLATDATA

2023-05-19 Thread Lukasz Majewski
This commit prepares the pl01x serial driver to be used with SPL_OF_PLATDATA enabled. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_pl01x.c | 12 include/dm/platform_data/serial_pl01x.h | 4 2 files changed, 16 insertions(+) diff --git a/drivers/serial

[PATCH v1 08/16] dts: xea: Disable 'clks' node for xea (imx287)

2023-05-19 Thread Lukasz Majewski
with error and the board hangs in a very early stage of u-boot proper boot process. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index 52fec31fbb

[PATCH v1 07/16] dts: xea: Remove clocks property from debug UART on XEA

2023-05-19 Thread Lukasz Majewski
The imx287 SoC doesn't support common clock framework (CCF), so the 'clocks' property is removed to avoid early (i.e. in SPL) errors when SPL_OF_PLATDATA is used. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm

[PATCH v1 06/16] dts: xea: Add u-boot specific 'type' property to duart

2023-05-19 Thread Lukasz Majewski
in the SPL (as the size of SPL is crucial). In this case one cannot extract the type of IP block from .data field (corresponding to compatible) and it must be explicitly read at probe from dtoc generated, u-boot specific property. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 1

[PATCH v1 05/16] dts: xea: Enable debug UART support in XEA's SPL (DM_SERIAL)

2023-05-19 Thread Lukasz Majewski
After enabling DM_SERIAL for XEA board, the same serial shall be used in the SPL (with SPL_OF_PLATDATA support). Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts

[PATCH v1 04/16] spl: xea: Provide stub DM driver for imx28 clocks

2023-05-19 Thread Lukasz Majewski
This code fixes following WARNING: DTOCspl/dts/dt-plat.c fsl_imx28_clkctrl: WARNING: the driver fsl_imx28_clkctrl was not found in the driver list As imx28 doesn't yet support common clock framework, this prevents from DTOC warnings during SPL build. Signed-off-by: Lukasz Majewski

[PATCH v1 03/16] defconfig: xea: Change default spi-nor memory bus to 2

2023-05-19 Thread Lukasz Majewski
probe' without any extra parameters given) has been adjusted. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig index 06dd6b1f0e..4a217b1f91 100644

[PATCH v1 02/16] dts: xea: Provide missing FEC required properties (mac0 and reg_fec_3v3)

2023-05-19 Thread Lukasz Majewski
. In u-boot it is handled with 'mac0' node, whereas Linux uses dedicated switch DTS node. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u

[PATCH v1 01/16] dts: xea: Delete not used in u-boot DTS nodes

2023-05-19 Thread Lukasz Majewski
After the re-sync with Linux Kernel's DTS (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e), the XEA's descripion has nodes and properties, which are NOT utilized in the u-boot. To avoid confusion - those are deleted. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 16

[PATCH v1 00/16] arm: xea: Update i.MX28 XEA board to use DM_SERIAL

2023-05-19 Thread Lukasz Majewski
/_build/results?buildId=44=results Applied on top of u-boot/master branch SHA1: 6e1852ca2c418e2536ead4b51c4d84a59926b3f1 Lukasz Majewski (16): dts: xea: Delete not used in u-boot DTS nodes dts: xea: Provide missing FEC required properties (mac0 and reg_fec_3v3) defconfig: xea: Change

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-19 Thread Lukasz Majewski
Hi Marek, > On 5/9/23 17:04, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 5/9/23 16:46, Lukasz Majewski wrote: > >>> Hi Marek, > >> > >> Hi, > >> > >>>> On 5/9/23 16:32, Lukasz Majewski wrote: > >&

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-09 Thread Lukasz Majewski
Hi Marek, > On 5/9/23 16:46, Lukasz Majewski wrote: > > Hi Marek, > > Hi, > > >> On 5/9/23 16:32, Lukasz Majewski wrote: > >>> This option sets the current limit for 5V source to zero, so all > >>> the PMU outputs are pr

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-09 Thread Lukasz Majewski
Hi Marek, > On 5/9/23 16:32, Lukasz Majewski wrote: > > This option sets the current limit for 5V source to zero, so all > > the PMU outputs are primarily powered from battery source > > (DCDC_BAT). > > > > This option may be set on systems, where the 5V is NOT s

[PATCH 5/5] arm: config: Adjust imx287 based XEA board PMU configuration

2023-05-09 Thread Lukasz Majewski
This patch adjusts XEA's PMU setup as this board is supposed to be mainly powered from DCDC_BATT source. Moreover, in this HW design the VDD_4P2 is not used as well. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs

[PATCH 4/5] arm: mxs: Add function to dump PMU registers

2023-05-09 Thread Lukasz Majewski
This commit provides function, which when debugging output is enabled dumps the IMX28 PMU registers. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 24 + 1 file changed, 24 insertions(+) diff --git a/arch/arm/cpu/arm926ejs/mxs

[PATCH 3/5] arm: mxs: Provide Kconfig option to not enable 4P2 regulator in IMX28 PMU

2023-05-09 Thread Lukasz Majewski
VDD5V), as more efficient and stable source for industrial applications. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 3 ++- arch/arm/mach-imx/mxs/Kconfig | 7 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu

[PATCH 2/5] arm: mxs: Provide Kconfig option to disable battery charging at IMX28 PMU

2023-05-09 Thread Lukasz Majewski
This new Kconfig option allows disabling the in-PMU battery charging block. This may be required when DCDC_BAT source is powered not from battery, but from already regulated, good quality source. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 7 +++ arch

[PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-09 Thread Lukasz Majewski
to fixed and regulated 4.2V source (so the "battery" is not present). Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 4 arch/arm/mach-imx/mxs/Kconfig | 8 2 files changed, 12 insertions(+) diff --git a/arch/arm/cpu/arm

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-04 Thread Lukasz Majewski
t is enabled in U-Boot proper, but not in SPL. > > Signed-off-by: Marek Vasut > --- > Cc: Lukasz Majewski > --- > drivers/usb/gadget/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile

Question regarding CONFIG_SPL_OF_PLATDATA_INST usage

2023-04-27 Thread Lukasz Majewski
cify which parts of dts shall be included to the in-TPL DTS? Or is it just using full-blown DTS support ins TPL? I'm using cutting-edge mainline u-boot - SHA1: 6a11fdf0536e02ac9cd4a3da0535a271c694715f Thanks in advance for any help. Best regards, Lukasz Majewski -- DENX Software Engineering

Re: [PATCH] net: eth-uclass: change state before stop() in eth_halt()

2022-12-01 Thread Lukasz Majewski
ug crashes on subsequent calls to malloc()/free(). > > Signed-off-by: Niel Fourie > Cc: Ramon Fried > Cc: Marek Vasut > Cc: Lukasz Majewski > --- > net/eth-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/eth-uclass.c b/net/eth-ucla

Re: [PATCH] dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration

2022-06-20 Thread Lukasz Majewski
t_internal_data { > int dev_num; > }; > > -#define DFU_NAME_SIZE32 > +#define DFU_NAME_SIZE CONFIG_DFU_NAME_MAX_SIZE > #ifndef DFU_DEFAULT_POLL_TIMEOUT > #define DFU_DEFAULT_POLL_TIMEOUT 0 > #endif Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Lukasz Majewski
> > + if (rate == 0) > > !rate || IS_ERR_VALUE(rate) > > > + rate = imx_get_uartclk(); > > > > - _mxc_serial_setbrg(plat->reg, clk, baudrate, > > plat->use_dte); > > + _mxc_serial_setbrg(plat->reg, rate, baudrate, > &g

[PATCH v2 3/3] defconfig: Enable DM_PMIC and DM PMIC_TPS65217 on AM335x EVM board

2022-03-11 Thread Lukasz Majewski
As this board now supports DM_I2C, it is safe for it to also use the DM converted PMIC tps65217 driver. Signed-off-by: Lukasz Majewski --- Changes in v2: - Move the Kconfig definition for PMIC to patch, which adds support for DM configs/am335x_boneblack_vboot_defconfig | 3 +++ configs

[PATCH v2 2/3] power: pmic: Provide DM_PMIC support for tps65217 driver

2022-03-11 Thread Lukasz Majewski
-by: Lukasz Majewski --- (no changes since v1) drivers/power/pmic/pmic_tps65217.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/power/pmic/pmic_tps65217.c b/drivers/power/pmic/pmic_tps65217.c index c7f532df4d..ccbf223593 100644 --- a/drivers/power/pmic

  1   2   3   4   5   6   7   8   9   10   >