[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

[PATCH v2 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-03-11 Thread Lukasz Majewski
support DM_PMIC and DM_I2C. Signed-off-by: Lukasz Majewski --- (no changes since v1) drivers/power/pmic/Kconfig | 8 drivers/power/pmic/Makefile | 2 +- include/configs/am335x_evm.h| 2 +- include/configs/am335x_guardian.h | 2 +- include/configs/am335x_shc.h

Re: [PATCH 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-03-11 Thread Lukasz Majewski
Hi Tom, > On Fri, Mar 11, 2022 at 01:09:08PM +0100, Lukasz Majewski wrote: > > Hi Tom, > > > > > On Tue, Feb 22, 2022 at 09:03:58AM +0100, Lukasz Majewski wrote: > > > > Up till now the CONFIG_POWER_TPS65217 has been defined in > &g

Re: [PATCH 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-03-11 Thread Lukasz Majewski
Hi Tom, > On Tue, Feb 22, 2022 at 09:03:58AM +0100, Lukasz Majewski wrote: > > Up till now the CONFIG_POWER_TPS65217 has been defined in several > > header files for am335x SoC. > > > > This patch renames it to CONFIG_PMIC_TPS65217, which better > > ref

Re: [PATCH] arm: Add AM335x based CBC board

2022-03-03 Thread Lukasz Majewski
Hi Tom, > On Thu, Mar 03, 2022 at 03:07:47PM +0100, Lukasz Majewski wrote: > > Hi Tom, > > > > > On Thu, Mar 03, 2022 at 10:27:10AM +0100, Lukasz Majewski wrote: > > > > Hi Tom, > > > > > > > > > This commit adds CBC

Re: [PATCH] arm: Add AM335x based CBC board

2022-03-03 Thread Lukasz Majewski
Hi Tom, > On Thu, Mar 03, 2022 at 10:27:10AM +0100, Lukasz Majewski wrote: > > Hi Tom, > > > > > This commit adds CBC board to U-Boot. > > > > > > U-Boot 2022.04-rc1-00271-g930634a4c9 (Feb 21 2022 - 15:08:13 > > > +0100) > > >

Re: [PATCH 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-03-03 Thread Lukasz Majewski
Hi Tom, > Up till now the CONFIG_POWER_TPS65217 has been defined in several > header files for am335x SoC. > > This patch renames it to CONFIG_PMIC_TPS65217, which better reflects > the role of this IC circuit. > Gentle ping on this patch series. > Signed-of

Re: [PATCH 1/3] arm: mmc: Add "ti,am335-sdhci" compatible for TI's omap_hsmmc driver

2022-03-03 Thread Lukasz Majewski
patible for SDHCI can be added. > > After this change the am335x DTS description can be easier ported > from Linux kernel. > Gentle ping on this patch series. > Signed-off-by: Lukasz Majewski > --- > > drivers/mmc/omap_hsmmc.c | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH] arm: Add AM335x based CBC board

2022-03-03 Thread Lukasz Majewski
MC: 2, OMAP SD/MMC: 0, OMAP SD/MMC: 1 > Loading Environment from MMC... OK > Boot Device is eMMC > CBC Variant found: BCT531 > Net: eth2: ethernet@4a10 > Hit any key to stop autoboot: 0 > > Signed-off-by: Lukasz Majewski > > --- > > arch/arm

[PATCH] arm: Add AM335x based CBC board

2022-02-22 Thread Lukasz Majewski
Environment from MMC... OK Boot Device is eMMC CBC Variant found: BCT531 Net: eth2: ethernet@4a10 Hit any key to stop autoboot: 0 Signed-off-by: Lukasz Majewski --- arch/arm/Kconfig| 1 + arch/arm/dts/Makefile | 1 + arch/arm/dts/am335x-cbc-u-boot.dtsi | 18

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

2022-02-22 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 --- configs/am335x_boneblack_vboot_defconfig | 3 +++ configs/am335x_evm_defconfig | 3 +++ configs/am335x_evm_spiboot_defconfig | 3

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

2022-02-22 Thread Lukasz Majewski
CONFIG_PMIC_TPS65217 has been introduced in Kconfig to be used with boards, which both support DM_PMIC and DM_I2C. Signed-off-by: Lukasz Majewski --- drivers/power/pmic/Kconfig | 8 +++ drivers/power/pmic/pmic_tps65217.c | 82 ++ 2 files changed, 90

[PATCH 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-02-22 Thread Lukasz Majewski
Up till now the CONFIG_POWER_TPS65217 has been defined in several header files for am335x SoC. This patch renames it to CONFIG_PMIC_TPS65217, which better reflects the role of this IC circuit. Signed-off-by: Lukasz Majewski --- drivers/power/pmic/Makefile | 2 +- include/configs

[PATCH 3/3] arm: dts: Add DTS description for MMC2 am33xx devices

2022-02-18 Thread Lukasz Majewski
providing clock) is handled in ti-sysc.c driver. Signed-off-by: Lukasz Majewski --- arch/arm/dts/am33xx.dtsi | 39 ++- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/arch/arm/dts/am33xx.dtsi b/arch/arm/dts/am33xx.dtsi index 5f9b306ddb..5871344edb

[PATCH 2/3] arm: dts: Add mmc[01] aliases to am33xx.dtsi

2022-02-18 Thread Lukasz Majewski
This change provides similar aliases definitions as now present in Linux kernel v5.16.9 for am33xx.dtsi file. Signed-off-by: Lukasz Majewski --- arch/arm/dts/am33xx.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/am33xx.dtsi b/arch/arm/dts/am33xx.dtsi index b5093020ee

[PATCH 1/3] arm: mmc: Add "ti, am335-sdhci" compatible for TI's omap_hsmmc driver

2022-02-18 Thread Lukasz Majewski
the am335x DTS description can be easier ported from Linux kernel. Signed-off-by: Lukasz Majewski --- drivers/mmc/omap_hsmmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 820065800f..b2f4a4e721 100644 --- a/drivers/mmc/omap_hsmmc.c

Re: [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description

2021-12-27 Thread Lukasz Majewski
Hi Tom, > On Mon, Dec 27, 2021 at 02:20:04PM +0100, Lukasz Majewski wrote: > > Hi Tom, > > > > > On Mon, Dec 27, 2021 at 11:46:38AM +0100, Lukasz Majewski wrote: > > > > > > > Now the dts information corresponds to the one available in the >

Re: [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description

2021-12-27 Thread Lukasz Majewski
Hi Tom, > On Mon, Dec 27, 2021 at 11:46:38AM +0100, Lukasz Majewski wrote: > > > Now the dts information corresponds to the one available in the > > kernel. With this patch applied the 'mtd list' shows proper names > > and offsets for MTD partitions. > > >

[PATCH v2 4/4] arm: dts: Enable support for USB on XEA (imx28) board

2021-12-27 Thread Lukasz Majewski
This change enables the support for USB with DM on the XEA (imx28) board. Signed-off-by: Lukasz Majewski --- (no changes since v1) arch/arm/dts/imx28-xea.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/imx28-xea.dts b/arch/arm/dts/imx28-xea.dts index

[PATCH v2 3/4] arm: xea: config: Provide special defconfig for a single binary u-boot

2021-12-27 Thread Lukasz Majewski
is enabled and supported. Signed-off-by: Lukasz Majewski --- Changes in v2: - Add support for using 'mtd' command with SPI-NOR partitions configs/imx28_xea_sb_defconfig | 112 + 1 file changed, 112 insertions(+) create mode 100644 configs/imx28_xea_sb_defconfig diff --git

[PATCH v2 2/4] xea: defconfig: Update defconfig to support mtd partitions r/w by name

2021-12-27 Thread Lukasz Majewski
0x0 4 => md.l ${loadaddr} 1 Signed-off-by: Lukasz Majewski --- (no changes since v1) configs/imx28_xea_defconfig | 4 ++-- include/configs/xea.h | 4 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig index 6

[PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description

2021-12-27 Thread Lukasz Majewski
Now the dts information corresponds to the one available in the kernel. With this patch applied the 'mtd list' shows proper names and offsets for MTD partitions. Signed-off-by: Lukasz Majewski --- (no changes since v1) arch/arm/dts/imx28-xea.dts | 55 +++--- 1

[PATCH v3] arm: xea: Modify board code to generate single binary u-boot

2021-12-27 Thread Lukasz Majewski
. However, when it is enabled - the arch/arm/cpu/arm926ejs/start.S is used, which requires the lowlevel_init() function. Signed-off-by: Lukasz Majewski --- Changes in v3: - Use just #ifdef for CONFIG_SPL_BUILD and CONFIG_SPL_FRAMEWORK as those two are some kind of a special defines for low level

Re: [PATCH v1 1/3] arm: xea: Modify board code to generate single binary u-boot

2021-12-23 Thread Lukasz Majewski
Hi Tom, > On Wed, Dec 22, 2021 at 01:49:02PM +0100, Lukasz Majewski wrote: > > > This change provides the possibility to build XEA (imx287 based) > > board U-Boot as a single binary (without support for > > CONFIG_SPL_FRAMEWORK). > > > > The generated

[PATCH v1 3/3] arm: dts: Enable support for USB on XEA (imx28) board

2021-12-22 Thread Lukasz Majewski
This change enables the support for USB with DM on the XEA (imx28) board. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/imx28-xea.dts b/arch/arm/dts/imx28-xea.dts index de049042f83

[PATCH v1 2/3] arm: xea: config: Provide special defconfig for a single binary u-boot

2021-12-22 Thread Lukasz Majewski
is enabled and supported. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_sb_defconfig | 112 + 1 file changed, 112 insertions(+) create mode 100644 configs/imx28_xea_sb_defconfig diff --git a/configs/imx28_xea_sb_defconfig b/configs/imx28_xea_sb_defconfig new file m

[PATCH v1 1/3] arm: xea: Modify board code to generate single binary u-boot

2021-12-22 Thread Lukasz Majewski
: boot -f /srv/tftp/xea/u-boot.sb) The board_init_ll() is used in arch/arm/cpu/arm926ejs/mxs/start.S, which is utilized when CONFIG_SPL_FRAMEWORK is disabled. However, when it is enabled the arch/arm/cpu/arm926ejs/start.S is used, which requires the lowlevel_init() function. Signed-off-by: Lukasz

[PATCH v1 4/4] usb: ehci: dm: Convert i.MX28 ehci code to driver model

2021-12-22 Thread Lukasz Majewski
This commit converts i.MX28's EHCI USB host driver to driver model (DM_USB). It is a straightforward conversion (to reuse as much code as possible), based on ehci-mx5.c code. Signed-off-by: Lukasz Majewski --- drivers/usb/host/ehci-mxs.c | 184 1 file

[PATCH v1 3/4] usb: ehci: Move common mxs code to separate functions (ehci_hcd_{stop|start})

2021-12-22 Thread Lukasz Majewski
Those functions will be re-used when the ehci MXS driver (for imx28) will be converted to also support CONFIG_DM_USB. No functional changes introduced - only cosmetic changes (u32 type) and alignment to pass checkpatch. Signed-off-by: Lukasz Majewski --- drivers/usb/host/ehci-mxs.c | 112

[PATCH v1 2/4] usb: ehci: Refactor the ehci_mxs_toggle_clock function to be reused with DM

2021-12-22 Thread Lukasz Majewski
This function is going to be reused with the CONFIG_DM_USB enabled in the imx28 mxs USB ehci driver. No functional changes introduced. Signed-off-by: Lukasz Majewski --- drivers/usb/host/ehci-mxs.c | 42 ++--- 1 file changed, 21 insertions(+), 21 deletions

[PATCH v1 1/4] usb: Modify Kconfig of the USB_EHCI_MXS to use this driver with imx28

2021-12-22 Thread Lukasz Majewski
The ehci-mxs driver can be also used with imx28 SoC, not only imx23. Signed-off-by: Lukasz Majewski --- drivers/usb/host/Kconfig | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index ccecb5a3b08..7743c962cfa 100644

[PATCH v1 0/4] usb: ehci: Conversion of ehci-mxs driver to support DM (i.MX28)

2021-12-22 Thread Lukasz Majewski
This patch series focuses on converting ehci-mxs driver to support DM and work with i.MX28 (SoC). The XEA board has been used to test the proposed code with USB pen drive. Lukasz Majewski (4): usb: Modify Kconfig of the USB_EHCI_MXS to use this driver with imx28 usb: ehci: Refactor

[PATCH] spl: Provide more space to be used for storing SPL on imx28 OCRAM

2021-12-17 Thread Lukasz Majewski
an grow up to ~57KiB (the maximal size of OCRAM memory available is 0xE3FC). Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/mxsimage-spl.mx28.cfg | 4 ++-- arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff

Re: [PATCH] clk: Add myself as a maintainer for the clock subsystem

2021-11-23 Thread Lukasz Majewski
; > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 6db5354322..d30daff724 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -667,6 +667,7 @@ F:drivers/mtd/jedec_flash.c > > CLOCK > M: Lukasz Ma

Re: [PATCH v1] arm: xea: Modify board code to generate single binary u-boot

2021-11-01 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Sat, 23 Oct 2021 at 09:04, Lukasz Majewski wrote: > > > > This change provides the possibility to build XEA (imx287 based) > > board U-Boot as a single binary (without support for > > CONFIG_SPL_FRAMEWORK). > > > > The g

[PATCH v2] arm: xea: Modify board code to generate single binary u-boot

2021-10-25 Thread Lukasz Majewski
. However, when it is enabled - the arch/arm/cpu/arm926ejs/start.S is used, which requires the lowlevel_init() function. Signed-off-by: Lukasz Majewski --- Changes in v2: - Use CONFIG_IS_ENABLED(FRAMEWORK) instead of #ifdef CONFIG_SPL_FRAMEWORK (previous version used CONFIG_IS_ENABLED

Re: [PATCH] dfu: dfu_sf: Read the SPI flash in 16 MiB chunks

2021-10-25 Thread Lukasz Majewski
Hi Marek, > On 9/14/21 11:31 AM, Lukasz Majewski wrote: > > On Tue, 14 Sep 2021 05:26:51 +0200 > > Marek Vasut wrote: > > > >> Not all SPI flashes and controllers can do continuous transfer > >> longer than 16 MiB, so perform the DFU read in 16 MiB chunk

[PATCH v1] arm: xea: Modify board code to generate single binary u-boot

2021-10-23 Thread Lukasz Majewski
is used, which requires the lowlevel_init() function. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 7 +++ board/liebherr/xea/xea.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index

[PATCH] mxs: power: Change sequence of enabling DCDC switches

2021-10-13 Thread Lukasz Majewski
The imx28 uses following voltage supplies hierarchy: VDD_5V (VDD_BAT) -> VDDIO -> VDDA -> VDDMEM \-> VDDD One shall first enable DCDC on the parent source (VDDIO) and then follow with its children. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/a

Re: [PATCH] dfu: dfu_sf: Add support for multiple flashes

2021-09-14 Thread Lukasz Majewski
Signed-off-by: Marek Vasut > Cc: Lukasz Majewski > --- > drivers/dfu/dfu_sf.c | 21 +++-- > 1 file changed, 15 insertions(+), 6 deletions(-) > > diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c > index b72493ced86..d246e1b21ff 100644 > ---

Re: [PATCH] dfu: dfu_sf: Read the SPI flash in 16 MiB chunks

2021-09-14 Thread Lukasz Majewski
On Tue, 14 Sep 2021 05:26:51 +0200 Marek Vasut wrote: > Not all SPI flashes and controllers can do continuous transfer longer > than 16 MiB, so perform the DFU read in 16 MiB chunks. > > Signed-off-by: Marek Vasut > Cc: Lukasz Majewski > --- > drivers/dfu/dfu_sf.c | 1

Re: u-boot & ZFS

2021-08-18 Thread Lukasz Majewski
rovide any patches for review. However, considering the above, it may be hard for any _exact_ guidelines. Note: [*] - Personally, I didn't saw any usage of ZFS on embedded systems. > Thanks, > Chris Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing

Re: [PATCH 01/13] kp_imx53: Switch to using a local namespace for ID EEPROM

2021-08-18 Thread Lukasz Majewski
Hi Tom, > This platform does not use any of the standard EEPROM functionality > and instead provides its own. Use a local namespace for the I2C > related defines to access the EEPROM. > > Cc: Lukasz Majewski > Signed-off-by: Tom Rini > --- > board/k+p/

Re: [PATCH v3 00/11] clk: k210: Rewrite K210 clock without CCF

2021-06-11 Thread Lukasz Majewski
mode 100644 drivers/clk/kendryte/Makefile > delete mode 100644 drivers/clk/kendryte/bypass.c > delete mode 100644 drivers/clk/kendryte/clk.c > delete mode 100644 drivers/clk/kendryte/pll.c > delete mode 100644 include/kendryte/bypass.h > delete mode 100644 include/kendryte/clk.h > Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lu...@denx.de pgpmpgvmM8CuY.pgp Description: OpenPGP digital signature

Re: [PATCH 3/6] clk: imx8mm: Add SPI clocks

2021-06-08 Thread Lukasz Majewski
posite("ecspi3", imx8mm_ecspi3_sels, > base + 0xc180)); + > + clk_dm(IMX8MM_CLK_ECSPI1_ROOT, > +imx_clk_gate4("ecspi1_root_clk", "ecspi1", base + > 0x4070, 0)); > + clk_dm(IMX8MM_CLK_ECSPI2_ROOT, > +imx_clk_gate4

[PATCH 2/2] i2c: pcf8575: Add support for 8 bit I2C IO expanders (like pca8574)

2021-06-07 Thread Lukasz Majewski
removed as now we also sent 8 bit data. Signed-off-by: Lukasz Majewski --- drivers/gpio/pcf8575_gpio.c | 40 ++--- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index bae9695f28b1

[PATCH 1/2] i2c: pcf8575: Remove not used members of pcf8575_chip structure

2021-06-07 Thread Lukasz Majewski
Those members are not used anymore as ones from gpio_dev_priv structure (when DM_GPIO support is enabled) are used instead. Signed-off-by: Lukasz Majewski --- drivers/gpio/pcf8575_gpio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio

Re: [Uboot-stm32] [PATCH] dfu: dfu_mtd: set max_buf_size to erasesize also for NOR devices

2021-06-07 Thread Lukasz Majewski
gt; - dfu->max_buf_size = has_pages ? mtd->erasesize : 0; > >> + dfu->max_buf_size = mtd->erasesize; > >> > >>st = strsep(, " "); > >> if (!strcmp(st, "raw")) { > >> > > Reviewed-by: Patrice Chotard

Re: [PATCH v3] usb: dfu: Migrate CONFIG_SYS_DFU_DATA_BUF_SIZE and CONFIG_SYS_DFU_MAX_FILE_SIZE to Kconfig

2021-06-02 Thread Lukasz Majewski
users to set these > configs in defconfig files than in config header files as they are a > part of the source code. > > Add Kconfig symbols, and update the defconfigs by using > tools/moveconfig.py script. Acked-by: Lukasz Majewski > > Suggested-by: Pratyush Yadav > Signe

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

2021-05-28 Thread Lukasz Majewski
Hi Joe, Tom, > On Wed, Mar 17, 2021 at 4:14 PM Lukasz Majewski wrote: > > > > 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 devic

Re: [PATCH] fastboot: Fix overflow when calculating chunk size

2021-05-26 Thread Lukasz Majewski
  total_blocks += chunk_data_sz / > >> sparse_header->blk_sz; free(fill_buf); > >>   break; > >> @@ -253,7 +253,7 @@ int write_sparse_image(struct sparse_storage > >> *info, debug("Wrote %d blocks, expected to write %d bloc

Re: [PATCH] dfu: dfu_sf: avoid double free of SPI device

2021-03-25 Thread Lukasz Majewski
t; > + list_for_each_entry(dfu, _list, list) { > > + if (dfu->data.sf.dev == dev) > > + dfu->data.sf.dev = NULL; > > + } > > + spi_flash_free(dev); > > + } > > } > > > > static struct spi_fl

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

2021-03-17 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 --- drivers/net/phy/mv88e61xx.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy

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

2021-03-17 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 --- drivers/net/phy/mv88e61xx.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git

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

2021-03-17 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 --- drivers/net/phy/mv88e61xx.c | 15 ++- 1 file changed, 10 insertions(+), 5

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

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

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

2021-03-17 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 --- drivers/net/phy/mv88e61xx.c | 9 +++-- 1

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

2021-03-17 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 --- drivers/net/phy/mv88e61xx.c

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

2021-03-17 Thread Lukasz Majewski
This patch set provides support for mv88e6020 switch. It is a dual chip device, with direct access to port register on SMI bus. However, PHYs are accessed indirectly. Lukasz Majewski (6): net: mv88e61xx: Add support for checking addressing mode net: mv88e61xx: Configure PHY ports to also

Re: [BUG] double free in dfu_free_entities()

2021-03-11 Thread Lukasz Majewski
sibling_node) { > > We must ensure that dfu_free_entities() removes each device only once. > > Another bug in dfu_free_entities() is that only the first list member > is freed. free() should be called for all list members. Yes. Correct. > > Best regards > > Hei

Re: [PATCH] Nokia RX-51: Enable CONFIG_CMD_BOOTD

2021-03-03 Thread Lukasz Majewski
> https://dev.azure.com/u-boot/a1096300-2999-4ec4-a21a-4c22075e3771/_build/results?buildId=1816=logs=9a06d2a9-1498-5de0-2a01-be581d48ba67 > > >> > > > > > > Lokesh, could you please look at this patch? > > > > I do not see the dependency patch [1]

Re: [RESEND v2 PATCH 00/16] Nokia RX-51: Fix USB TTY console and enable it

2021-02-20 Thread Lukasz Majewski
On Fri, 19 Feb 2021 01:38:14 +0100 Pali Rohár wrote: > On Tuesday 16 February 2021 09:28:06 Lukasz Majewski wrote: > > Hi Pali, > > > > > On Monday 08 February 2021 23:34:06 Pali Rohár wrote: > > > > On Monday 08 February 2021 23:21:38 Pali Rohár wrote:

Re: [RESEND v2 PATCH 00/16] Nokia RX-51: Fix USB TTY console and enable it

2021-02-16 Thread Lukasz Majewski
Hi Pali, > On Monday 08 February 2021 23:34:06 Pali Rohár wrote: > > On Monday 08 February 2021 23:21:38 Pali Rohár wrote: > > > On Monday 08 February 2021 23:15:33 Lukasz Majewski wrote: > > > > Hi Pali, > > > > > > > > >

[GIT] Pull request: u-boot-dfu (12.02.2021)

2021-02-12 Thread Lukasz Majewski
Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lu...@denx.de pgptD4kxEEexr.pgp Description: OpenPGP

Re: [PATCH 06/25] arm: Remove mx28evk board

2021-02-09 Thread Lukasz Majewski
- "nand read ${fdt_addr} fdt 0x0008; " \ > - "bootz ${loadaddr} - ${fdt_addr}; " \ > - "else " \ > - "if test ${boot_fdt} = no; then " \ > - "bootz; " \ >

Re: [RESEND v2 PATCH 00/16] Nokia RX-51: Fix USB TTY console and enable it

2021-02-08 Thread Lukasz Majewski
16 +- > drivers/usb/gadget/ep0.c | 16 +- > drivers/usb/musb/musb_core.c | 12 +- > drivers/usb/musb/musb_udc.c | 61 ++-- > include/configs/nokia_rx51.h | 21 +- > 12 files changed, 82 insertions(+), 481 deletions(-) >

Re: [PATCH v4 8/9] fastboot: Allow u-boot-style partitions

2021-02-06 Thread Lukasz Majewski
Hi Sean, > On 2/5/21 9:46 AM, Lukasz Majewski wrote: > > Hi Sean, > > > >> This adds support for partitions of the form "dev.hwpart:part" and > >> "dev#partname". This allows one to flash to eMMC boot partitions > >> wi

Re: [RESEND PATCH 16/16] Nokia RX-51: Enable usbtty serial console by default

2021-02-06 Thread Lukasz Majewski
\0" \ > + "stderr=usbtty,serial,vga\0" \ > "slide=gpio input " __stringify(GPIO_SLIDE) "\0" \ > "switchmmc=mmc dev ${mmcnum}\0" \ > "kernaddr=0x82008000\0" \ > @@ -198,9 +194,6 @@ int rx51_kp_getc(stru

Re: [RESEND PATCH 15/16] Nokia RX-51: Move content of rx51.h to rx51.c

2021-02-06 Thread Lukasz Majewski
10xfb001202 > -#define ONENAND_GPMC_CONFIG2_RX510x0000 > -#define ONENAND_GPMC_CONFIG3_RX51 0x00020200 > -#define ONENAND_GPMC_CONFIG4_RX510x11001102 > -#define ONENAND_GPMC_CONFIG5_RX510x03101616 > -#define ONENAND_GPMC_CONFIG6_RX510x9006 > - > -#endif Revie

Re: [RESEND PATCH 14/16] Nokia RX-51: Remove function set_muxconf_regs()

2021-02-06 Thread Lukasz Majewski
/*d2d_dmare3*/\ > - MUX_VAL(CP(D2D_N3GTRST),(IEN | PTD | DIS | M0)) > /*d2d_n3gtrs*/\ > - MUX_VAL(CP(D2D_N3GTDI), (IEN | PTD | DIS | > M0)) /*d2d_n3gtdi*/\ > - MUX_VAL(CP(D2D_N3GTDO), (IEN | PTD | DIS | > M0)) /*d2d_n3gtdo*/\ > - MUX_VAL(CP(D

Re: [RESEND PATCH 13/16] arm: omap3: Compile s_init() function only when it is used

2021-02-06 Thread Lukasz Majewski
On Fri, 5 Feb 2021 20:12:09 +0100 Pali Rohár wrote: > Function s_init() is called only from lowlevel_init(). So compile it > only when function lowlevel_init() is compiled. > Reviewed-by: Lukasz Majewski > Signed-off-by: Pali Rohár > --- > arch/arm/mach-omap2/omap3/bo

Re: [RESEND PATCH 12/16] arm: omap3: Compile lowlevel_init() function only when it is used

2021-02-06 Thread Lukasz Majewski
nit) > ldr sp, SRAM_STACK > str ip, [sp]/* stash ip register */ > @@ -187,6 +190,7 @@ ENTRY(lowlevel_init) > b s_init > > ENDPROC(lowlevel_init) > +#endif > > /* the literal pools origin */ > .ltorg Reviewed-by: Lu

Re: [RESEND PATCH 11/16] usb: gadget: Use dbg_ep0() macro instead of serial_printf()

2021-02-06 Thread Lukasz Majewski
On Fri, 5 Feb 2021 20:12:07 +0100 Pali Rohár wrote: > All debug messages from ep0.c except a few are printed by dbg_ep0() > macro. So for remaining few exception use also dbg_ep0() instead of > serial_printf(). Reviewed-by: Lukasz Majewski > > Signed-off-by: Pali Rohár >

Re: [RESEND PATCH 10/16] usb: musb: Ensure that we set musb dynamic FIFO buffer for every endpoint

2021-02-06 Thread Lukasz Majewski
pace between more endpoint cause data loss and > unexpected errors. > > This patch is fixing transmission of characters over usbtty serial > console and allow using of usbtty for debugging purposes on Nokia > N900. Reviewed-by: Lukasz Majewski > > Signed-off-by: Pali

Re: [RESEND PATCH 09/16] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-02-06 Thread Lukasz Majewski
t; usb 1-1: Device not responding to setup address. > usb 1-1: Device not responding to setup address. > usb 1-1: device not accepting address 86, error -71 > > U-Boot was writing address to faddr register too early and did not > wait for correct interrupt after which sh

Re: [RESEND PATCH 08/16] usb: musb: Fix receiving of bigger buffers

2021-02-06 Thread Lukasz Majewski
in pending_intrrx that HW buffer was not fully > processed yet and next iteration is required after U-Boot allocate > space for reading HW buffer. > > This patch fixes receiving large usb buffers, e.g. file transfer via > Kermit protocol implemented by 'loadb' U-Boot command over usbtty &g

Re: [RESEND PATCH 07/16] usb: musb: Fix transmission of bigger buffers

2021-02-06 Thread Lukasz Majewski
kets are put into waiting queue. > > Implement function musb_peri_tx() which transmit checks when > endpoints are ready and continue transmitting of waiting queue. > > This patch fixes sending e.g. output of printenv command over usbtty > serial console. Reviewed-by: Lukasz Majew

Re: [RESEND PATCH 06/16] usb: musb: Read value of PERI_RXCSR to 16bit variable

2021-02-06 Thread Lukasz Majewski
> { > u16 peri_rxcount; > - u8 peri_rxcsr = readw(>ep[ep].epN.rxcsr); > + u16 peri_rxcsr = readw(>ep[ep].epN.rxcsr); > > if (!(peri_rxcsr & MUSB_RXCSR_RXPKTRDY)) { > if (debug_level > 0) Reviewed-by: Lukasz Majewski Best regards,

Re: [RESEND PATCH 05/16] usb: musb: Fix configuring FIFO for endpoints

2021-02-06 Thread Lukasz Majewski
not possible. > > This patch is fixing calculation of start address and buffer size to > minimal value and ensure that it would not overlap with reserved EP0 > buffer. > > This issue caused loose of packets on USB bus in both directions and > basically usbtty was unusable. >

Re: [RESEND PATCH 04/16] usb: musb: Always clear the data toggle bit when configuring ep

2021-02-06 Thread Lukasz Majewski
On Fri, 5 Feb 2021 20:12:00 +0100 Pali Rohár wrote: > Without this patch it was done only when U-Boot was compiled with > MUSB Host Controller. But it is needed also for MUSB Device > Controller, otherwise Device Controller does not work. > Reviewed-by: Lukasz Majewski > Sign

Re: [RESEND PATCH 03/16] usb: musb: Fix compilation of gadget code

2021-02-06 Thread Lukasz Majewski
ence to > `usbd_device_event_irq' arm-linux-gnueabi-ld.bfd: > u-boot/drivers/usb/musb/musb_udc.c: undefined reference to > `usbd_device_event_irq' arm-linux-gnueabi-ld.bfd: > u-boot/drivers/usb/musb/musb_udc.c: undefined reference to > `usbd_device_event_irq' make: *** [Makefile:1762: u

Re: [RESEND PATCH 02/16] serial: usbtty: Send urb data in correct order

2021-02-06 Thread Lukasz Majewski
78,6 +870,8 @@ static int write_buffer (circbuf_t * buf) >*/ > while (buf->size > 0) { > > + current_urb = next_urb (device_instance, > endpoint); + > dest = (char*)current_urb->buffer + >

Re: [RESEND PATCH 01/16] serial: usbtty: Fix puts function

2021-02-06 Thread Lukasz Majewski
s("\r", 1); > - __usbtty_puts(str, n + 1); > + __usbtty_puts(str, n); > + __usbtty_puts("\r\n", 2); > str += (n + 1); > len -= (n + 1); > } else {

Re: [PATCH v4 8/9] fastboot: Allow u-boot-style partitions

2021-02-05 Thread Lukasz Majewski
t_asserteq(1, fastboot_mmc_get_part_info("0#test1", > _dev_desc, > + _info, > response)); > + ut_asserteq(1, fastboot_mmc_get_part_info("0.0#test1", > _dev_desc, > + _info, > response)); > + ut_asserteq(1, fa

Re: [PATCH v2] fastboot: add UUU command UCmd and ACmd support

2021-02-04 Thread Lukasz Majewski
+#if CONFIG_IS_ENABLED(FASTBOOT_UUU_SUPPORT) > + case FASTBOOT_COMMAND_ACMD: > + fastboot_func->in_req->complete = > do_acmd_complete; > + break; > +#endif > } > } > > diff --git a/include/fastboot.h b/include/f

Re: [PATCH v2 1/9] mmc: sandbox: Add support for writing

2021-01-31 Thread Lukasz Majewski
mp)); > - ut_asserteq(2, blk_dread(dev_desc, 0, 2, cmp)); > - ut_assertok(strcmp(cmp, "this is a test")); > + for (i = 0; i < sizeof(write); i++) > + write[i] = i; > + ut_asserteq(2, blk_dwrite(dev_desc, 0, 2, write)); > + ut_asserteq(2,

Re: [PATCH] fastboot: add UUU command UCmd and ACmd support

2021-01-31 Thread Lukasz Majewski
stboot.c > >> +++ b/drivers/usb/gadget/f_fastboot.c > >> @@ -419,6 +419,18 @@ static void do_bootm_on_complete(struct > >> usb_ep *ep, struct usb_request *req) do_exit_on_complete(ep, req); > >> } > >> > >> +#if CONFIG_IS_ENABLED(FASTBOOT_UUU_SUPPORT) >

Re: [PATCH] fastboot: add UUU command UCmd and ACmd support

2021-01-27 Thread Lukasz Majewski
* reboot_bootloader() - Sets reboot bootloader flag. > >>> * > >>> diff --git a/drivers/usb/gadget/f_fastboot.c > >>> b/drivers/usb/gadget/f_fastboot.c index d1d087e12b2..bf52d2505f4 > >>> 100644 --- a/drivers/usb/gadget/f_fastboot.c > >

[GIT] Pull request: u-boot-dfu (26.01.2021)

2021-01-26 Thread Lukasz Majewski
: ci: update speed handling usb: gadget: fastboot: use correct max packet size usb: gaget: ci: set ep's desc when enable ep Peng Fan (1): usb: gadget: add Kconfig for OS descriptors Ye Li (1): usb: gadget: Add ep_config call back to usb_gadget_ops Best regards, Lukasz

Re: [PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-01-23 Thread Lukasz Majewski
Hi Pali, > On Saturday 23 January 2021 16:16:11 Lukasz Majewski wrote: > > Hi Pali, > > > > > Interrupt for EP0 is indicated in intrtx register via first bit. > > > It is set for both RX and TX. First bit in intrrx register is > > > reserved a

[GIT] Pull request: u-boot-dfu (23.01.2021)

2021-01-23 Thread Lukasz Majewski
`dfu_alt_info` reinitialization from flashed script - u-boot: Reduce size of u-boot as usbd_device_* arrays are not exported The repository on Gitlab (master branch): https://gitlab.denx.de/u-boot/custodians/u-boot-dfu/-/commits/master Best regards, Lukasz Majewski -- DENX Software

Re: [PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-01-23 Thread Lukasz Majewski
oid udc_irq(void) > if (intrtx) > musb_peri_tx(intrtx); > } else { > - if (MUSB_INTR_SOF & intrusb) { > + if (readw(>intrtx) & 0x1) { > u8 faddr; >

Re: [RESEND 7/7] fastboot: Implement generic fastboot_set_reboot_flag

2021-01-23 Thread Lukasz Majewski
;= FASTBOOT_REBOOT_REASONS_COUNT) > + return -EINVAL; > + > + return > bcb_write_reboot_reason(CONFIG_FASTBOOT_FLASH_MMC_DEV, "misc", > boot_cmds[reason]); } > /** This patch causes build breaks when I run the CI on azzure. If it is still needed, plea

Re: [RESEND 6/7] Revert "fastboot: Add default fastboot_set_reboot_flag implementation"

2021-01-23 Thread Lukasz Majewski
de/fastboot.h > +++ b/include/fastboot.h > @@ -52,15 +52,6 @@ enum fastboot_reboot_reason { > FASTBOOT_REBOOT_REASONS_COUNT > }; > > -/** > - * BCB boot commands > - */ > -static const char * const fastboot_boot_cmds[] = { > - [FASTBOOT_REBOOT_REASON_BOOTLOADER] = "bootonce-

Re: [PATCH 1/4] fastboot: mmc: Add CONFIG_FASTBOOT_MMC_USER_SUPPORT

2021-01-23 Thread Lukasz Majewski
+--- > > 3 files changed, 24 insertions(+), 8 deletions(-) > > > > Gentle reminder, > > Any comments on this serie [1] > > [1] http://patchwork.ozlabs.org/project/uboot/list/?series=200509 > > Patrick Could you rebase this on top of current -master

Re: [PATCH 00/16] usb: gadget: update

2021-01-23 Thread Lukasz Majewski
gt; > +--- > > > drivers/usb/gadget/epautoconf.c | 6 + > > > drivers/usb/gadget/f_fastboot.c | 83 ++- > > > drivers/usb/gadget/g_dnl.c | 1 + > > > drivers/usb/gadget/u_os_desc.h | 123 ++ > > > d

Re: Contributor meeting notes 19-Jan-21

2021-01-20 Thread Lukasz Majewski
; >> - https://u-boot.readthedocs.io/ > >> - Accept a merge request only with docs included? > >> > >> Next meeting Tuesday 2 Feb. > >> > >> [1] > >> https://docs.google.com/document/d/1YBOMsbM19uSFyoJWnt7-PsOLBaevzQUgV-hiR88a5-o/edit# > &

[PATCH v1 3/3] xea: config: Disable CONFIG_SPL_OF_PLATDATA_PARENT on XEA (imx28)

2020-12-25 Thread Lukasz Majewski
in early SPL stage. This commit fixes XEA regression introduced with e41651fffda7da55f6. 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 index e418d8c9e9..2e1d060024 100644

[PATCH v1 2/3] xea: config: Use CONFIG_PREBOOT from Kconfig

2020-12-25 Thread Lukasz Majewski
in imx28_xea_defconfig the define of CONFIG_PREBOOT shall be removed from xea.h as it is redundant. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 2 ++ include/configs/xea.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/imx28_xea_defconfig b/configs

[PATCH v1 1/3] xea: spl: Disable pull UP for GPIO0_2{35}

2020-12-25 Thread Lukasz Majewski
On the imx287 pin GPMI_WRN (GPIO0_25) no PullUP is available that can be enabled. To get the same behavior for both boot select pins (i.e. GPIO0_2{35}) disable pull UPs on both. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

<    1   2   3   4   5   6   7   8   9   10   >