Re: [U-Boot] [PATCH] usb: ehci-mx5: Fix bus enumeration for DM case

2019-06-24 Thread Lukasz Majewski
match = mx5_usb_ids, > .ofdata_to_platdata = ehci_usb_ofdata_to_platdata, > + .bind = ehci_usb_bind, > .probe = ehci_usb_probe, > .remove = ehci_deregister, > .ops= _usb_ops, Tested-by: Lukasz Majewski Tested on HSC|DDC i.MX53 board (usb start

Re: [U-Boot] [PATCH] usb: ehci-mx6: Fix bus enumeration for DM case

2019-06-24 Thread Lukasz Majewski
Hi Marek, > On 6/24/19 12:26 PM, Lukasz Majewski wrote: > > On Mon, 24 Jun 2019 12:06:28 +0200 > > Marek Vasut wrote: > > > >> On 6/24/19 8:33 AM, Peng Fan wrote: > >>> Hi Marek, > >>> > >>>> Subject: Re: [PATCH] usb

Re: [U-Boot] [PATCH] usb: ehci-mx6: Fix bus enumeration for DM case

2019-06-24 Thread Lukasz Majewski
n dts, introducing > > xx-u-boot.dtsi for such case. > > What good would that make if you can obtain the PHY address from the > DT, without the need for arbitrary error-prone indexes? The indexes > are remnants from when there was no DM or from the DM conversion, so > we should re

Re: [U-Boot] [PATCH v5 3/6] ARM: dts: imx: Provide 'gpio-ranges' for mxs_gpio driver

2019-06-24 Thread Lukasz Majewski
On Wed, 19 Jun 2019 17:05:15 +0200 Marek Vasut wrote: > On 6/19/19 4:53 PM, Lukasz Majewski wrote: > > On Wed, 19 Jun 2019 16:32:57 +0200 > > Marek Vasut wrote: > > > >> On 6/19/19 4:19 PM, Lukasz Majewski wrote: > >>> Hi Marek, > >>>

Re: [U-Boot] [PATCH] ext4: add support for filesystems without JOURNAL

2019-06-24 Thread Lukasz Majewski
s/ext4/ext4_journal.h > +++ b/fs/ext4/ext4_journal.h > @@ -17,6 +17,8 @@ > #ifndef __EXT4_JRNL__ > #define __EXT4_JRNL__ > > +#define EXT4_FEATURE_COMPAT_HAS_JOURNAL 0x0004 > + > #define EXT2_JOURNAL_INO 8 /* Journal inode */ > #define EX

Re: [U-Boot] [PATCH] ext4: fix calculating inode blkcount for non-512 blocksize filesystems

2019-06-24 Thread Lukasz Majewski
lude > #define SECTOR_SIZE 0x200 > +#define LOG2_SECTOR_SIZE 9 > > /* Magic value used to identify an ext2 filesystem. */ > #define EXT2_MAGIC 0xEF53 Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DE

Re: [U-Boot] [PATCH v4] rtc: Add DM support to ds3231

2019-06-21 Thread Lukasz Majewski
return ret; > + > + return 0; > +} > + > +static int ds3231_probe(struct udevice *dev) > +{ > + i2c_set_chip_flags(dev, DM_I2C_CHIP_RD_ADDRESS | > + DM_I2C_CHIP_WR_ADDRESS); > + > + return 0; > +} > + > +static const struct r

Re: [U-Boot] [PATCH v3] rtc: Add DM support to ds3231

2019-06-20 Thread Lukasz Majewski
; +} > + > +static int ds3231_probe(struct udevice *dev) > +{ > + i2c_set_chip_flags(dev, DM_I2C_CHIP_RD_ADDRESS | > + DM_I2C_CHIP_WR_ADDRESS); > + > + return 0; > +} > + > +static const struct rtc_ops ds3231_rtc_ops = { > + .get = ds3231

[U-Boot] [PATCH v6 6/6] spi: mxs: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-19 Thread Lukasz Majewski
This patch converts mxs_spi driver to support DM/DTS. Signed-off-by: Lukasz Majewski Reviewed-by: Marek Vasut --- Changes in v6: None Changes in v5: - Set more appropriate tags ("spi: mxs:") Changes in v4: - Adjust the driver to support i.MX23 (add compatible, adjust clk code)

[U-Boot] [PATCH v6 1/6] ARM: dts: imx: Copy imx28 device tree related files from Linux kernel (v5.1.11)

2019-06-19 Thread Lukasz Majewski
This patch copies from the Linux kernel stable (tag v5.1.11) SHA1: 17bb763e7eaf i.MX28 related device tree files. Signed-off-by: Lukasz Majewski Reviewed-by: Marek Vasut --- Changes in v6: None Changes in v5: - Add 12 digit SHA1 ID for tag v5.1.11 Changes in v4: - Add 12 digit SHA1 ID for tag

[U-Boot] [PATCH v6 5/6] pinctrl: mxs: Add support for i.MX2[38] mxs pinctrl driver

2019-06-19 Thread Lukasz Majewski
'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski Reviewed-by: Marek Vasut --- Changes in v6: None Changes in v5: - Set more appropriate tags ("pinctrl: mxs:") - Use the clrsetbits_le32() in mxs_pinctrl_r

[U-Boot] [PATCH v6 3/6] ARM: dts: imx: Provide 'gpio-ranges' for mxs_gpio driver

2019-06-19 Thread Lukasz Majewski
Those properties are U-Boot specific as the mxs gpio Linux driver (up to version v5.1.11) is not supporting them. Signed-off-by: Lukasz Majewski --- Changes in v6: - Provide correct values for gpio-ranges Changes in v5: - Use "ARM: dts: imx: tags" Changes in v4: - New file

[U-Boot] [PATCH v6 2/6] net: fec: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-19 Thread Lukasz Majewski
The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. One only needs to add proper compatible and dependency on FEC_MXC in the Kconfig. Signed-off-by: Lukasz Majewski Reviewed-by: Marek Vasut --- Changes in v6: None Changes in v5: - Set more appropriate tags (net: fec:) Changes

[U-Boot] [PATCH v6 4/6] gpio: mxs: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-19 Thread Lukasz Majewski
This patch adds support for DM/DTS in the mxs_gpio.c driver. Information regarding per gpio controller pin number is passed via DTS. Signed-off-by: Lukasz Majewski Reviewed-by: Marek Vasut --- Changes in v6: None Changes in v5: - Update tags ("gpio: mxs") Changes in v4: - Use B

[U-Boot] [PATCH v6 0/6] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS

2019-06-19 Thread Lukasz Majewski
ropriate tags Changes in v2: - Use #if !CONFIG_IS_ENABLED(DM_GPIO) instead of plain #ifdef CONFIG_DM_GPIO - New patch (conversion of mxs_spi.c to DM_SPI) Lukasz Majewski (6): ARM: dts: imx: Copy imx28 device tree related files from Linux kernel (v5.1.11) net: fec: Enable support for i.MX28 DM

Re: [U-Boot] imx6: [PATCH] Add support for new board "eval1a"

2019-06-19 Thread Lukasz Majewski
> Thanks for your support. > Regards > Claudio > -Ursprüngliche Nachricht- > Von: Lukasz Majewski > Gesendet: Mittwoch, 19. Juni 2019 10:00 > An: clau...@databyte.ch > Cc: u-boot@lists.denx.de > Betreff: Re: [U-Boot] imx6: [PATCH] Add support for new board

Re: [U-Boot] [PATCH v5 3/6] ARM: dts: imx: Provide 'gpio-ranges' for mxs_gpio driver

2019-06-19 Thread Lukasz Majewski
On Wed, 19 Jun 2019 16:32:57 +0200 Marek Vasut wrote: > On 6/19/19 4:19 PM, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 6/19/19 2:27 PM, Lukasz Majewski wrote: > >>> Those properties are U-Boot specific as the mxs gpio Linux driver > >>>

Re: [U-Boot] [PATCH v5 3/6] ARM: dts: imx: Provide 'gpio-ranges' for mxs_gpio driver

2019-06-19 Thread Lukasz Majewski
Hi Marek, > On 6/19/19 2:27 PM, Lukasz Majewski wrote: > > Those properties are U-Boot specific as the mxs gpio Linux driver > > (up to version v5.1.11) is not supporting them. > > > > Signed-off-by: Lukasz Majewski > > [...] > > > + { > > +

[U-Boot] [PATCH v5 6/6] spi: mxs: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-19 Thread Lukasz Majewski
This patch converts mxs_spi driver to support DM/DTS. Signed-off-by: Lukasz Majewski --- Changes in v5: - Set more appropriate tags ("spi: mxs:") Changes in v4: - Adjust the driver to support i.MX23 (add compatible, adjust clk code) - Use BIT() macro where applicable Changes in

[U-Boot] [PATCH v5 5/6] pinctrl: mxs: Add support for i.MX2[38] mxs pinctrl driver

2019-06-19 Thread Lukasz Majewski
'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski --- Changes in v5: - Set more appropriate tags ("pinctrl: mxs:") - Use the clrsetbits_le32() in mxs_pinctrl_rmwl() function - now moved to pinctrl-mxs.h

[U-Boot] [PATCH v5 3/6] ARM: dts: imx: Provide 'gpio-ranges' for mxs_gpio driver

2019-06-19 Thread Lukasz Majewski
Those properties are U-Boot specific as the mxs gpio Linux driver (up to version v5.1.11) is not supporting them. Signed-off-by: Lukasz Majewski --- Changes in v5: - Use "ARM: dts: imx: tags" Changes in v4: - New file - imx28-u-boot.dtsi Changes in v3: None Changes in v2: None ar

[U-Boot] [PATCH v5 4/6] gpio: mxs: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-19 Thread Lukasz Majewski
This patch adds support for DM/DTS in the mxs_gpio.c driver. Information regarding per gpio controller pin number is passed via DTS. Signed-off-by: Lukasz Majewski --- Changes in v5: - Update tags ("gpio: mxs") Changes in v4: - Use BIT() macro instead of 1 << offset - Use

[U-Boot] [PATCH v5 2/6] net: fec: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-19 Thread Lukasz Majewski
The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. One only needs to add proper compatible and dependency on FEC_MXC in the Kconfig. Signed-off-by: Lukasz Majewski --- Changes in v5: - Set more appropriate tags (net: fec:) Changes in v4: - Sort the entries for compatibles

[U-Boot] [PATCH v5 1/6] ARM: dts: imx: Copy imx28 device tree related files from Linux kernel (v5.1.11)

2019-06-19 Thread Lukasz Majewski
This patch copies from the Linux kernel stable (tag v5.1.11) SHA1: 17bb763e7eaf i.MX28 related device tree files. Signed-off-by: Lukasz Majewski --- Changes in v5: - Add 12 digit SHA1 ID for tag v5.1.11 Changes in v4: - Add 12 digit SHA1 ID for tag v5.1.9 Changes in v3: - Update tag to 5.1.9

[U-Boot] [PATCH v5 0/6] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS

2019-06-19 Thread Lukasz Majewski
support i.MX23 (add compatible, adjust clk code) - Use BIT() macro where applicable Changes in v3: - Update tag to 5.1.9 - Set more apropriate tags - Set more appropriate tags - Set more appropriate tags - Set more appropriate tags - Set more appropriate tags Changes in v2: - Use #if !CONFIG_IS_ENABLED(

Re: [U-Boot] [v6, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-06-19 Thread Lukasz Majewski
priv->sdhc_clk = gd->arch.sdhc_clk; > -#endif > if (priv->sdhc_clk <= 0) { > dev_err(dev, "Unable to get clk for %s\n", > dev->name); return -EINVAL; > diff --git a/include/fsl_esdhc_imx.h b/include/fsl_esdhc_imx.h > ind

Re: [U-Boot] imx6: [PATCH] Add support for new board "eval1a"

2019-06-19 Thread Lukasz Majewski
ect. No, You shouldn't be sorry or feel any inconvenience. This is the role of the community to help you to get your board into the mainline. Please do not afraid to ask. :-) > > Regards > Claudio > > -----Ursprüngliche Nachricht- > Von: Lukasz Majewski > Gesendet: Montag,

Re: [U-Boot] [PATCH v4 6/6] ARM: dm: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-19 Thread Lukasz Majewski
Hi Marek, > On 6/19/19 12:01 AM, Lukasz Majewski wrote: > > This patch converts mxs_spi driver to support DM/DTS. > > > > Signed-off-by: Lukasz Majewski > > Tags should be "spi: mxs:" . > > btw can you drop the non-DM part of the driver altogether

Re: [U-Boot] [PATCH v4 5/6] ARM: imx: pinctrl: Add support for i.MX2[38] mxs pinctrl driver

2019-06-19 Thread Lukasz Majewski
Hi Marek, > On 6/19/19 12:01 AM, Lukasz Majewski wrote: > > The code responsible for setting proper values in the MUX registers > > (in the mxs_pinctrl_set_state()) has been ported from Linux kernel > > - SHA1: 17bb763e7eaf tag v5.1.11 from linux-stable. > > May

[U-Boot] [PATCH v4 6/6] ARM: dm: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-18 Thread Lukasz Majewski
This patch converts mxs_spi driver to support DM/DTS. Signed-off-by: Lukasz Majewski --- Changes in v4: - Adjust the driver to support i.MX23 (add compatible, adjust clk code) - Use BIT() macro where applicable Changes in v3: - Set more appropriate tags Changes in v2: - New patch (conversion

[U-Boot] [PATCH v4 4/6] ARM: dm: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-18 Thread Lukasz Majewski
This patch adds support for DM/DTS in the mxs_gpio.c driver. Information regarding per gpio controller pin number is passed via DTS. Signed-off-by: Lukasz Majewski --- Changes in v4: - Use BIT() macro instead of 1 << offset - Use devfdt_get_addr to get gpio number - Use gpio-ranges pr

[U-Boot] [PATCH v4 1/6] ARM: dts: imx: Copy imx28 device tree related files from Linux kernel (v5.1.9)

2019-06-18 Thread Lukasz Majewski
This patch copies from the Linux kernel (tag v5.1.9) SHA1: 2df16141a2c4 i.MX28 related device tree files. Signed-off-by: Lukasz Majewski --- Changes in v4: - Add 12 digit SHA1 ID for tag v5.1.9 Changes in v3: - Update tag to 5.1.9 - Set more apropriate tags Changes in v2: None arch/arm/dts

[U-Boot] [PATCH v4 5/6] ARM: imx: pinctrl: Add support for i.MX2[38] mxs pinctrl driver

2019-06-18 Thread Lukasz Majewski
'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski --- Changes in v4: - Use Linux kernel code to setup pins instead of Barebox - Add soc specific data and compatible for i.MX23 and i.MX28 - Use devm_kfree() to release

[U-Boot] [PATCH v4 2/6] ARM: imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-18 Thread Lukasz Majewski
The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. One only needs to add proper compatible and dependency on FEC_MXC in the Kconfig. Signed-off-by: Lukasz Majewski --- Changes in v4: - Sort the entries for compatibles and Kconfig Changes in v3: - Set more apropriate tags

[U-Boot] [PATCH v4 3/6] DTS: dm: mxs: gpio: Provide 'gpio-ranges' for mxs_gpio driver

2019-06-18 Thread Lukasz Majewski
Those properties are U-Boot specific as the mxs gpio Linux driver (up to version v5.1.11) is not supporting them. Signed-off-by: Lukasz Majewski --- Changes in v4: - New file - imx28-u-boot.dtsi Changes in v3: None Changes in v2: None arch/arm/dts/imx28-u-boot.dtsi | 28

[U-Boot] [PATCH v4 0/6] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS

2019-06-18 Thread Lukasz Majewski
licable Changes in v3: - Update tag to 5.1.9 - Set more apropriate tags - Set more apropriate tags - Set more apropriate tags - Set more apropriate tags - Set more appropriate tags Changes in v2: - Use #if !CONFIG_IS_ENABLED(DM_GPIO) instead of plain #ifdef CONFIG_DM_GPIO - New patch (conversion o

Re: [U-Boot] [PATCH v2 2/2] fastboot: Fix slot names reported by getvar

2019-06-18 Thread Lukasz Majewski
without any notice in the versioning (inside the protocol). > > Thanks! > > [1] > http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/fastboot/fb_getvar.c;h=4268628f5ef0210507c5d23f2e4209b2afc07029;hb=refs/heads/master#l84 > [2] > https://android.googlesource.com/pl

Re: [U-Boot] [PATCH v3 3/5] ARM: dm: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-18 Thread Lukasz Majewski
Hi Marek, > On 6/18/19 8:57 AM, Lukasz Majewski wrote: > > [...] > > > To have a consensus regarding the gpio-ranges and mxs_gpio - here is > > my proposition: > > > > 1. I can provide "gpio-ranges" properties to imx28-u-boot.dtsi > > &g

Re: [U-Boot] [PATCH 3/3] doc: imx: Add documentation for nandbcb command

2019-06-18 Thread Lukasz Majewski
} uboot ${filesize} > > > > > + > > > > > +NAND write: device 0 offset 0x20, size 0x8fd26 > > > > > + 589094 bytes written: OK > > > > > +icorem6qdl> > > > > > > > > Would it be possible to provide nandbcb sho

Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag that need generate stop bit

2019-06-18 Thread Lukasz Majewski
stop signal is generated after this API call), then call > dm_i2c_read to read the register data. > > Signed-off-by: Chuanhua Han Reviewed-by: Lukasz Majewski > --- > Changes in v4: > - Replace DM_I2C_CHIP_RD_NO_I2C_SETUP_OFFSET with > DM_I2C_CHIP_ADDR_STOP. > > Chan

Re: [U-Boot] [PATCH 2/2] rtc: pcf2127: Fixed bug with rtc settings and getting error time

2019-06-18 Thread Lukasz Majewski
using generic flag and can be reused by other ICs with similar issues. Let's wait for Heiko's opinion. Reviewed-by: Lukasz Majewski > > Signed-off-by: Biwen Li > Signed-off-by: Chuanhua Han > --- > Changes in v4: > - Replace DM_I2C_CHIP_RD_NO_I2C_SETUP_OFFSET wit

Re: [U-Boot] [PATCH 3/3] doc: imx: Add documentation for nandbcb command

2019-06-18 Thread Lukasz Majewski
> > If we consider kobs-ng in linux it prints fcb content when we write > some image so it means fcb is already populated at that time. > > > It would present the FCB/DBBT structure. Do you think it is > > needed/feasible ? > > Not sure if is it needed or not >

Re: [U-Boot] [PATCH v3 3/5] ARM: dm: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-18 Thread Lukasz Majewski
Hi Marek, > On 6/17/19 3:01 PM, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 6/17/19 10:37 AM, Lukasz Majewski wrote: > >>> Hi Marek, > >>> > >>>> On 6/16/19 12:34 AM, Lukasz Majewski wrote: > >>>>

Re: [U-Boot] [PATCH v3 5/5] ARM: dm: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/17/19 3:41 PM, Lukasz Majewski wrote: > > On Mon, 17 Jun 2019 15:23:55 +0200 > > Marek Vasut wrote: > > > >> On 6/17/19 2:27 PM, Lukasz Majewski wrote: > >>> Hi Marek, > >>> > >>>

Re: [U-Boot] [PATCH v3 5/5] ARM: dm: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-17 Thread Lukasz Majewski
On Mon, 17 Jun 2019 15:23:55 +0200 Marek Vasut wrote: > On 6/17/19 2:27 PM, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 6/17/19 8:49 AM, Lukasz Majewski wrote: > >>> Hi Marek, > >>> > >>>> On 6/16/19 12:34 AM, Lukasz

Re: [U-Boot] [PATCH v3 3/5] ARM: dm: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/17/19 10:37 AM, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 6/16/19 12:34 AM, Lukasz Majewski wrote: > >>> This commit > >> > >> This is not a commit, it's a change. It only becomes a commit when > >&

Re: [U-Boot] [PATCH v3 5/5] ARM: dm: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/17/19 8:49 AM, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 6/16/19 12:34 AM, Lukasz Majewski wrote: > >>> This commit converts mxs_spi driver to support DM/DTS. > >>> > >>> Signed-off-by: Lukasz Ma

Re: [U-Boot] imx6: [PATCH] Add support for new board "eval1a"

2019-06-17 Thread Lukasz Majewski
+ str r1, [r0, #0x01C] > + > + ldr r1, =0x15208038 > + str r1, [r0, #0x01C] > + > + ldr r1, =0x04008048 > + str r1, [r0, #0x01C] > + > + > + ldr r1, =0x7800 > + str r1, [r0, #0x020] > + ldr r1, =0x0117 > + str r1, [r0, #

Re: [U-Boot] [PATCH v3 3/5] ARM: dm: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/16/19 12:34 AM, Lukasz Majewski wrote: > > This commit > > This is not a commit, it's a change. It only becomes a commit when > applied. > > > adds support for DM in the mxs_gpio.c driver when DM_GPIO > > is enabled in Kconfig. > > Bu

Re: [U-Boot] [PATCH v3 4/5] ARM: imx: pinctrl: Add support for i.MX28 mxs pinctrl driver

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/16/19 12:34 AM, Lukasz Majewski wrote: > > The code responsible for setting proper values in the MUX registers > > (in the mxs_pinctrl_set_state()) has been ported from Barebox > > project (branch: master, SHA1: > > eb3b0f7414cd8102844dd16b1c789e44

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-17 Thread Lukasz Majewski
Hi Chuanhua, > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年6月4日 16:19 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > > Subject: Re: [EXT] Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag > > that no

Re: [U-Boot] [PATCH v3 2/5] ARM: imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/16/19 12:34 AM, Lukasz Majewski wrote: > > The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. > > One only needs to add proper compatible and dependency on FEC_MXC > > in the Kconfig. > > > > Signed-off-by: Lukasz Majewsk

Re: [U-Boot] [PATCH v3 1/5] ARM: dts: imx: Copy imx28 device tree related files from Linux kernel (v5.1.9)

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/16/19 12:34 AM, Lukasz Majewski wrote: > > This commit copies from the Linux kernel (tag v5.1.9) i.MX28 related > > device tree files. > > Please use commit hash (first 12 characters of the SHA-1 ID, see [1]), > that's a unique identifier. Tag name is

Re: [U-Boot] [PATCH v3 5/5] ARM: dm: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-17 Thread Lukasz Majewski
Hi Marek, > On 6/16/19 12:34 AM, Lukasz Majewski wrote: > > This commit converts mxs_spi driver to support DM/DTS. > > > > Signed-off-by: Lukasz Majewski > > Is the non-DM part needed for anything ? Do you mean the non-DM part of the mxs_gpio driver? Yes, it is u

[U-Boot] [PATCH v3 4/5] ARM: imx: pinctrl: Add support for i.MX28 mxs pinctrl driver

2019-06-15 Thread Lukasz Majewski
nodes as subnodes, it was necessary to use 'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski --- Changes in v3: - Set more apropriate tags Changes in v2: None drivers/pinctrl/nxp/Kconfig | 10 ++

[U-Boot] [PATCH v3 3/5] ARM: dm: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-15 Thread Lukasz Majewski
This commit adds support for DM in the mxs_gpio.c driver when DM_GPIO is enabled in Kconfig. Signed-off-by: Lukasz Majewski --- Changes in v3: - Set more apropriate tags Changes in v2: - Use #if !CONFIG_IS_ENABLED(DM_GPIO) instead of plain #ifdef CONFIG_DM_GPIO arch/arm/include/asm/arch-mxs

[U-Boot] [PATCH v3 5/5] ARM: dm: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-15 Thread Lukasz Majewski
This commit converts mxs_spi driver to support DM/DTS. Signed-off-by: Lukasz Majewski --- Changes in v3: - Set more apropriate tags Changes in v2: - New patch (conversion of mxs_spi.c to DM_SPI) drivers/spi/mxs_spi.c | 393 +++--- 1 file changed

[U-Boot] [PATCH v3 2/5] ARM: imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-15 Thread Lukasz Majewski
The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. One only needs to add proper compatible and dependency on FEC_MXC in the Kconfig. Signed-off-by: Lukasz Majewski --- Changes in v3: - Set more apropriate tags Changes in v2: None drivers/net/Kconfig | 2 +- drivers/net

[U-Boot] [PATCH v3 1/5] ARM: dts: imx: Copy imx28 device tree related files from Linux kernel (v5.1.9)

2019-06-15 Thread Lukasz Majewski
This commit copies from the Linux kernel (tag v5.1.9) i.MX28 related device tree files. Signed-off-by: Lukasz Majewski --- Changes in v3: - Update tag to 5.1.9 - Set more apropriate tags Changes in v2: None arch/arm/dts/imx28-pinfunc.h | 506 arch/arm/dts/imx28.dtsi

[U-Boot] [PATCH v3 0/5] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS

2019-06-15 Thread Lukasz Majewski
IO) instead of plain #ifdef CONFIG_DM_GPIO - New patch (conversion of mxs_spi.c to DM_SPI) Lukasz Majewski (5): ARM: dts: imx: Copy imx28 device tree related files from Linux kernel (v5.1.9) ARM: imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver ARM: dm: mxs: gpio: Add su

Re: [U-Boot] [PATCH v2 2/2] fastboot: Fix slot names reported by getvar

2019-06-15 Thread Lukasz Majewski
ers/fastboot/fb_getvar.c > @@ -174,8 +174,8 @@ static void getvar_platform(char *var_parameter, > char *response) > static void getvar_current_slot(char *var_parameter, char *response) > { > - /* A/B not implemented, for now always return _a */ > - fastboot_okay(&

Re: [U-Boot] [PATCH v2 1/5] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2)

2019-06-14 Thread Lukasz Majewski
On Fri, 14 Jun 2019 12:49:10 +0200 Marek Vasut wrote: > On 6/14/19 12:41 PM, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 6/14/19 8:49 AM, Lukasz Majewski wrote: > >>> This commit copies from the Linux kernel (tag v5.1.2) i.

Re: [U-Boot] [PATCH v2 1/5] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2)

2019-06-14 Thread Lukasz Majewski
Hi Marek, > On 6/14/19 8:49 AM, Lukasz Majewski wrote: > > This commit copies from the Linux kernel (tag v5.1.2) i.MX28 > > related device tree files. > > > > Linux 5.1.9 is already out, I will check if there are any differences and update. > commit hash is

Re: [U-Boot] [PATCH 3/3] doc: imx: Add documentation for nandbcb command

2019-06-14 Thread Lukasz Majewski
${filesize} > + > +NAND write: device 0 offset 0x20, size 0x8fd26 > + 589094 bytes written: OK > +icorem6qdl> Would it be possible to provide nandbcb show command (I guess that I can dump it with plain nand read)? It would present the FCB/DBBT structure. Do y

[U-Boot] Pull request: u-boot-dfu (14.06.2019) - fixes v2019.07

2019-06-14 Thread Lukasz Majewski
, 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 pgpqICR38RvYb.pgp Description: OpenPGP digital signature

[U-Boot] [PATCH v2 2/5] imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-14 Thread Lukasz Majewski
The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. One only needs to add proper compatible and dependency on FEC_MXC in the Kconfig. Signed-off-by: Lukasz Majewski --- Changes in v2: None drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 1 + 2 files changed, 2

[U-Boot] [PATCH v2 3/5] DM: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-14 Thread Lukasz Majewski
This commit adds support for DM in the mxs_gpio.c driver when DM_GPIO is enabled in Kconfig. Signed-off-by: Lukasz Majewski --- Changes in v2: - Use #if !CONFIG_IS_ENABLED(DM_GPIO) instead of plain #ifdef CONFIG_DM_GPIO arch/arm/include/asm/arch-mxs/gpio.h | 28 +++ drivers/gpio

[U-Boot] [PATCH v2 5/5] DM: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)

2019-06-14 Thread Lukasz Majewski
This commit converts mxs_spi driver to support DM/DTS. Signed-off-by: Lukasz Majewski --- Changes in v2: - New patch (conversion of mxs_spi.c to DM_SPI) drivers/spi/mxs_spi.c | 393 +++--- 1 file changed, 310 insertions(+), 83 deletions(-) diff

[U-Boot] [PATCH v2 4/5] imx: pinctrl: Add support for i.MX28 mxs pinctrl driver

2019-06-14 Thread Lukasz Majewski
nodes as subnodes, it was necessary to use 'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski --- Changes in v2: None drivers/pinctrl/nxp/Kconfig | 10 +++ drivers/pinctrl/nxp/Makefile | 1

[U-Boot] [PATCH v2 1/5] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2)

2019-06-14 Thread Lukasz Majewski
This commit copies from the Linux kernel (tag v5.1.2) i.MX28 related device tree files. Signed-off-by: Lukasz Majewski --- Changes in v2: None arch/arm/dts/imx28-pinfunc.h | 506 arch/arm/dts/imx28.dtsi | 1330 ++ arch/arm/dts/mxs

[U-Boot] [PATCH v2 0/5] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS

2019-06-14 Thread Lukasz Majewski
s on SPI-NOR memory. Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/545476866 Applied on top of u-boot/master branch SHA1: c2ea87883ef309570c8903e6de4b8b78685d73d0 Changes in v2: - Use #if !CONFIG_IS_ENABLED(DM_GPIO) instead of plain #ifdef CONFIG_DM_GPIO - New patch (conversion of m

Re: [U-Boot] [PATCH v2 3/3] fastboot: Check if partition really exist in getvar_has_slot()

2019-06-13 Thread Lukasz Majewski
On Thu, 13 Jun 2019 07:47:19 +0200 Lukasz Majewski wrote: > Hi Sam, > > > Hi Tom, > > > > We have broken fastboot right now... Can we please apply this > > series, so that it appears in v2019.07? > > I'm running Travis-CI on this series, and send PR to Ma

Re: [U-Boot] [PATCH v2 3/3] fastboot: Check if partition really exist in getvar_has_slot()

2019-06-12 Thread Lukasz Majewski
> + } > > + strcat(part_name_wslot, "_a"); > > + > > + /* Check if this partition exists */ > > + r = getvar_get_part_info(part_name_wslot, response, NULL); > > + if (r >= 0) { > > fastboot_okay("

Re: [U-Boot] [PATCH v2 3/3] fastboot: Check if partition really exist in getvar_has_slot()

2019-06-12 Thread Lukasz Majewski
ists */ > + r = getvar_get_part_info(part_name_wslot, response, NULL); > + if (r >= 0) { > fastboot_okay("yes", response); > - else > - fastboot_okay("no", response); > + return; > + }

Re: [U-Boot] [PATCH v2 2/3] fastboot: getvar: Refactor fastboot_*_get_part_info() usage

2019-06-12 Thread Lukasz Majewski
e; > -#endif > -#if CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND) > - struct part_info *part_info; > - > - r = fastboot_nand_get_part_info(part_name, _info, > response); > - if (r >= 0) > - size = part_info->size; > -#endif > + r = getvar_get_part_info(part_name

Re: [U-Boot] [PATCH v2 1/3] fastboot: Use const qualifier for char *part_name

2019-06-12 Thread Lukasz Majewski
rt_info: Pointer to returned part_info pointer > * @response: Pointer to fastboot response buffer > */ > -int fastboot_nand_get_part_info(char *part_name, struct part_info > **part_info, > - char *response); > +int fastboot_nand_get_part_info(const char

Re: [U-Boot] [PATCH] rtc: Add DM support to ds3231

2019-06-12 Thread Lukasz Majewski
probe(struct udevice *dev) > +{ > + i2c_set_chip_flags(dev, DM_I2C_CHIP_RD_ADDRESS | > + DM_I2C_CHIP_WR_ADDRESS); > + > + return 0; > +} > + > +static const struct rtc_ops ds3231_rtc_ops = { > + .get = ds3231_rtc_get, > + .set = ds3231_rtc_s

Re: [U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Lukasz Majewski
The board I'm testing with is Intel Edison. I think no need to > > tell that nothing has been changed except the base (I'm rebased my > > stuff on top of latest and greatest U-Boot releases). > > v2019.07-rc1 is NOT affected! > > The time difference with DFU: > -rc1: real0m1.114

Re: [U-Boot] [PATCH v1] watchdog: move WATCHDOG_TIMEOUT_MSECS to Kconfig

2019-06-12 Thread Lukasz Majewski
@@ > #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE > > /* Watchdog */ > -#define CONFIG_WATCHDOG_TIMEOUT_MSECS 3 /* 30s */ > > #define CONFIG_SYS_MEMTEST_START 0x8000 > #define CONFIG_SYS_MEMTEST_END > (CONFIG_SYS_MEMTEST_START + SZ_256M) diff --git a/include/wdt.h > b/in

Re: [U-Boot] Default environment file

2019-06-12 Thread Lukasz Majewski
; > Student Telekommunikation Netzwerke und Sicherheit > > Klasse T-3b > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-11 Thread Lukasz Majewski
ing the VID / PID > he managed to get it to work. > > Lukasz, please confirm. I can confirm that I made it working on v2019-rc3 (on display5) after adjusting VID/PID with NXP's 'uuu' utility to recovery i.MX6Q board. > > Thanks Best regards, Lukasz Majewski -- DENX Soft

Re: [U-Boot] ARMv8 switching CPUs into EL1

2019-06-11 Thread Lukasz Majewski
nfigure CPUs state. > Kind regards, > > Mels > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirche

[U-Boot] [PATCH v1 3/4] DM: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-11 Thread Lukasz Majewski
This commit adds support for DM in the mxs_gpio.c driver when DM_GPIO is enabled in Kconfig. Signed-off-by: Lukasz Majewski --- arch/arm/include/asm/arch-mxs/gpio.h | 28 +++ drivers/gpio/mxs_gpio.c | 149 +++ 2 files changed, 177 insertions

[U-Boot] [PATCH v1 2/4] imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-11 Thread Lukasz Majewski
The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. One only needs to add proper compatible and dependency on FEC_MXC in the Kconfig. Signed-off-by: Lukasz Majewski --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 1 + 2 files changed, 2 insertions(+), 1 deletion

[U-Boot] [PATCH v1 4/4] imx: pinctrl: Add support for i.MX28 mxs pinctrl driver

2019-06-11 Thread Lukasz Majewski
nodes as subnodes, it was necessary to use 'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski --- drivers/pinctrl/nxp/Kconfig | 10 +++ drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/n

[U-Boot] [PATCH v1 1/4] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2)

2019-06-11 Thread Lukasz Majewski
This commit copies from the Linux kernel (tag v5.1.2) i.MX28 related device tree files. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-pinfunc.h | 506 arch/arm/dts/imx28.dtsi | 1330 ++ arch/arm/dts/mxs-pinfunc.h | 31

[U-Boot] [PATCH v1 0/4] DM: Convert i.MX28 gpio, pinmux and eth drivers to DM/DTS

2019-06-11 Thread Lukasz Majewski
-dfu/builds/543773376 Applied on top of u-boot/master branch SHA1: dbbb1c43f26cb28b64df80b72fffbaf2801e8a30 Lukasz Majewski (4): DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2) imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver DM: mxs: gpio: A

Re: [U-Boot] [U-Boot-Board-Maintainers] [ANN] U-Boot v2019.07-rc4 released

2019-06-10 Thread Lukasz Majewski
I do prefer 3 months cycle. IMHO with 3 months cycle, we do have a time to fix things and adding new code is done in merge window. > After the last release while I did get some > feedback, the overall balance is still in the 3 month bucket. > > I'm planning on doing -rc5 on June 24th

Re: [U-Boot] [PATCH v4 12/13] clk: Port Linux common clock framework

2019-06-10 Thread Lukasz Majewski
indicating > > necessary for U-boot's DM changes. > > If needed the code can be extended to support the "set" part of the > > clock management. > > Signed-off-by: Lukasz Majewski > > Applied to u-boot-imx, master, thanks ! Thanks for pulling this code

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (10.06.2019)

2019-06-10 Thread Lukasz Majewski
Hi Marek, > On 6/10/19 2:15 PM, Lukasz Majewski wrote: > > On Mon, 10 Jun 2019 14:09:30 +0200 > > Marek Vasut wrote: > > > >> On 6/10/19 8:16 AM, Lukasz Majewski wrote: > >>> Dear Marek, > >>> > >>> The following c

Re: [U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties

2019-06-10 Thread Lukasz Majewski
Hi Adam, > On Sun, Jun 9, 2019 at 3:55 PM Lukasz Majewski wrote: > > > > This file setups UART5 based serial to be used as pre-relocation > > console in the U-Boot proper. > > > > On purpose pinux configuration is omitted here as it has been > > already don

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (10.06.2019)

2019-06-10 Thread Lukasz Majewski
On Mon, 10 Jun 2019 14:09:30 +0200 Marek Vasut wrote: > On 6/10/19 8:16 AM, Lukasz Majewski wrote: > > Dear Marek, > > > > The following changes since commit > > 6d277fb0ed145f82dd50cc6e99d2fa553a588c3b: > > > > spl: Correct SPL_SIZE_LIMIT Kconfi

[U-Boot] [GIT] Pull request: u-boot-dfu (10.06.2019)

2019-06-10 Thread Lukasz Majewski
fails cmd/usb_gadget_sdp.c | 11 --- common/spl/spl_dfu.c | 2 +- common/spl/spl_sdp.c | 6 +- 3 files changed, 14 insertions(+), 5 deletions(-) Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office

Re: [U-Boot] [PATCH v1 05/11] ARM: display5: Increase the pre-relocation malloc pool size to 4KiB

2019-06-10 Thread Lukasz Majewski
t; > > > The early malloc memory is necessary for handling parsing and setup > > of e.g. serial port device (and all its ancestors in DT tree). > > > > Signed-off-by: Lukasz Majewski > > --- > > > > configs/display5_defconfig | 3 +++ > > 1 file cha

Re: [U-Boot] [PATCH 1/6] ARM: dts: imx: imx53: Synchronize iMX53 DT with Linux

2019-06-09 Thread Lukasz Majewski
reg = <1>; > - remote-endpoint = > <_in>; > - }; > + ssi3: ssi@63fe8000 { > + #sound-dai-cells = <0>; > + compatible = "fsl,imx53-ssi", > &q

[U-Boot] [PATCH v1 09/11] DM: display5: Convert display5 board to use DM/DTS

2019-06-09 Thread Lukasz Majewski
PU: write -f /srv/tftp/u-boot-dtb.img -addr 0x1000 SDPU: jump -addr 0x1000 SDPU: done EOF sudo ./uuu/uuu display5_recovery.lst Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx6q-display5-u-boot.dtsi | 5 + arch/arm/mach-imx/mx6/Kconfig | 5 + board/liebherr/display5

[U-Boot] [PATCH v1 08/11] ARM: display5: Remove U_BOOT_DEVICE definition of serial_mxc

2019-06-09 Thread Lukasz Majewski
from provided DTS description. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/display5.c | 9 - 1 file changed, 9 deletions(-) diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c index d8383170d2..410d5bc782 100644 --- a/board/liebherr

[U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties

2019-06-09 Thread Lukasz Majewski
This file setups UART5 based serial to be used as pre-relocation console in the U-Boot proper. On purpose pinux configuration is omitted here as it has been already done in SPL. For early pre-relocation code we only need the serial device from DTS. Signed-off-by: Lukasz Majewski --- arch/arm

[U-Boot] [PATCH v1 10/11] ARM: display5: Remove UART initialization code after DM/DTS conversion (non-console)

2019-06-09 Thread Lukasz Majewski
This UART is not used in U-Boot, so there is no need to initialize it. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/common.c | 13 - board/liebherr/display5/common.h | 1 - board/liebherr/display5/display5.c | 2 -- 3 files changed, 16 deletions(-) diff --git

[U-Boot] [PATCH v1 03/11] ARM: display5: Fix CS check after moving some SPI related CONFIGs to Kconfig

2019-06-09 Thread Lukasz Majewski
. This commit fixes this check and allows proper SPI NOR flash operation in SPL. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/liebherr/display5/common.c b/board/liebherr/display5/common.c index 4e

<    3   4   5   6   7   8   9   10   11   12   >