Re: [U-Boot] [PATCH] arm: zynq: dts: add spi flash node to zedboard

2018-07-30 Thread Michal Simek
On 27.7.2018 10:43, Luis Araneda wrote: > Add a flash node to fix the detection of the memory IC. > With the changes introduced with commit 8fee8845e754 > ("enf_sf: reuse setup_flash_device instead of open coding it") > the SPI speed is now read from device-tree or a default value > is applied. Thi

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-30 Thread Michal Simek
On 27.7.2018 10:40, Chee, Tien Fong wrote: > On Thu, 2018-07-26 at 11:03 +0200, Michal Simek wrote: >> On 25.7.2018 18:03, Tom Rini wrote: >>> >>> On Wed, Jul 25, 2018 at 09:47:17AM -0600, Simon Glass wrote: Hi, On 25 July 2018 at 03:48, Michal Simek wrote: > > >>>

Re: [U-Boot] [linux-sunxi] Re: [PATCH v2 05/13] sunxi: add config for SPL at 0x20000 on H6

2018-07-30 Thread Jagan Teki
On Tue, Jul 24, 2018 at 2:06 PM, Icenowy Zheng wrote: > > > 于 2018年7月24日 GMT+08:00 下午4:34:52, Maxime Ripard > 写到: >>On Sat, Jul 21, 2018 at 04:20:24PM +0800, Icenowy Zheng wrote: >>> On the new Allwinner H6 SoC, the SRAM A2 address (SPL load address) >>is >>> at 0x2, which is different with

Re: [U-Boot] [PATCH] video: sunxi: de2: fix SimpleFB node creation when DE2 not probed

2018-07-30 Thread Maxime Ripard
On Fri, Jul 27, 2018 at 11:50:53PM +0800, Icenowy Zheng wrote: > Sometimes when a monitor without EDID information is plugged, the DE2 > won't be probed (because of lack of timing information), but the HDMI > node is probed, thus a SimpleFB node with invalid information will be > populated. > > Al

[U-Boot] [PATCH v2 0/6] driver: net: fsl-mc: Add support of multiple phys for dpmac

2018-07-30 Thread Pankaj Bansal
This patch set adds support of multiple phys for one dpmac Till now we have had cases where we had one phy device per dpmac. Now, with the upcoming products (LX2160AQDS), we have cases, where there are sometimes two phy devices for one dpmac. One phy for TX lanes and one phy for RX lanes. To handl

[U-Boot] [PATCH v2 1/6] driver: net: fsl-mc: modify the label name

2018-07-30 Thread Pankaj Bansal
The goto label name is misspelled it should be DPMAC not DPAMC Signed-off-by: Pankaj Bansal --- Notes: V2: - No change drivers/net/ldpaa_eth/ldpaa_eth.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_et

[U-Boot] [PATCH v2 3/6] driver: net: fsl-mc: fix error handing in init_phy

2018-07-30 Thread Pankaj Bansal
if an error occurs during init_phy, we should free the phydev structure which has been allocated by phy_connect. Signed-off-by: Pankaj Bansal --- Notes: V2: - after free phydev just pass NULL into wriop_set_phy_dev() drivers/net/ldpaa_eth/ldpaa_eth.c | 10 +- 1 file changed, 9

[U-Boot] [PATCH v2 2/6] driver: net: fsl-mc: remove unused strcture elements

2018-07-30 Thread Pankaj Bansal
The phydev structure is present in both ldpaa_eth_priv and wriop_dpmac_info. the phydev in wriop_dpmac_info is not being used As the phydev is created based on phy_addr and bus members of wriop_dpmac_info, it is appropriate to keep phydev in wriop_dpmac_info. Also phy_regs is not being used, ther

[U-Boot] [PATCH v2 6/6] driver: net: fsl-mc: Add support of multiple phys for dpmac

2018-07-30 Thread Pankaj Bansal
Till now we have had cases where we had one phy device per dpmac. Now, with the upcoming products (LX2160AQDS), we have cases, where there are sometimes two phy devices for one dpmac. One phy for TX lanes and one phy for RX lanes. to handle such cases, add the support for multiple phys in ethernet

[U-Boot] [PATCH v2 5/6] driver: net: fsl-mc: initialize dpmac irrespective of phy

2018-07-30 Thread Pankaj Bansal
The dpmac initalization should not depend on phy. As the phy is not necessary to be present for dpmac to function. Therefore, remove dpmac initialization dependency from phy. Signed-off-by: Pankaj Bansal --- Notes: V2: - No Change drivers/net/fsl-mc/mc.c | 6 ++ 1 file changed, 2 i

[U-Boot] [PATCH v2 4/6] driver: net: fsl-mc: Modify the dpmac link detection method

2018-07-30 Thread Pankaj Bansal
when there is no phy present for a dpmac, a dummy phy device is created. when we move to multiple phy method, we need to create as many dummy phy devices. Change this method so that we don't need to create dummy phy devices. We always report linkup if no phy is present. Signed-off-by: Pankaj Bans

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-30 Thread Michal Simek
On 27.7.2018 11:14, Stefan Herbrechtsmeier wrote: > Am 27.07.2018 um 08:42 schrieb Michal Simek: >> On 26.7.2018 22:04, Stefan Herbrechtsmeier wrote: >>> Am 26.07.2018 um 10:22 schrieb Michal Simek: On 25.7.2018 21:17, Stefan Herbrechtsmeier wrote: > Am 25.07.2018 um 08:07 schrieb Michal S

Re: [U-Boot] [PATCH v2 6/6] driver: net: fsl-mc: Add support of multiple phys for dpmac

2018-07-30 Thread Pankaj Bansal
Hi Joe, I have incorporated all your review comments except one: "This should jut call wriop_init_dpmac_enet_if(). You can just set dpmac_info[dpmac_id].enabled = 0 after calling wriop_init_dpmac_enet_if()." Actually in wriop_init_dpmac, we assign -1 to phy_addr array and NULL to phydev array

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Michal Simek
On 26.7.2018 18:23, York Sun wrote: > On 07/25/2018 11:52 PM, Michal Simek wrote: >> On 25.7.2018 23:18, York Sun wrote: >>> On 07/24/2018 10:58 PM, Michal Simek wrote: On 24.7.2018 18:26, York Sun wrote: > On 07/24/2018 06:07 AM, Michal Simek wrote: >> There is no reason to limit gzip

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Michal Simek
On 26.7.2018 19:16, Tom Rini wrote: > On Thu, Jul 26, 2018 at 04:23:14PM +, York Sun wrote: >> On 07/25/2018 11:52 PM, Michal Simek wrote: >>> On 25.7.2018 23:18, York Sun wrote: On 07/24/2018 10:58 PM, Michal Simek wrote: > On 24.7.2018 18:26, York Sun wrote: >> On 07/24/2018 06:0

Re: [U-Boot] [PATCH 04/20] W1-EEPROM: Add an W1-EEPROM uclass for 1 wire EEPROMs

2018-07-30 Thread Eugen Hristev
On 20.07.2018 17:28, Maxime Ripard wrote: Hi Eugen, Thanks for giving those patches another shot. On Thu, Jul 19, 2018 at 12:57:52PM +0300, Eugen Hristev wrote: From: Maxime Ripard We might want to access data stored onto one wire EEPROMs. Create a framework to provide a consistent API. S

Re: [U-Boot] [PATCH] board: sun50i: h6: Add OrangePi One Plus initial support

2018-07-30 Thread Maxime Ripard
On Sun, Jul 29, 2018 at 12:03:31AM +0530, Jagan Teki wrote: > OrangePi One Plus is Allwinner H6 based open-source SBC, > which support: > - Allwinner H6 Quad-core 64-bit ARM Cortex-A53 > - GPU Mali-T720 > - 1GB LPDDR3 RAM > - AXP805 PMIC > - 1Gbps GMAC via RTL8211 > - USB 2.0 Host, OTG > - HDMI por

[U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
Compressed images should have their compression property set to "none" if U-Boot should leave them compressed. This is especially the case for compressed ramdisks that should be uncompressed by the kernel only. Signed-off-by: Simon Goldschmidt --- doc/uImage.FIT/source_file_format.txt | 4 +++-

[U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Simon Goldschmidt
To prepare supporting compression for all image types, change compression to "none" for ramdisks in all examples. Signed-off-by: Simon Goldschmidt --- arch/arm/cpu/armv8/fsl-layerscape/doc/README.falcon | 2 +- doc/README.bcm7xxx | 2 +- doc/uImage.FIT/multi.its

Re: [U-Boot] [U-Boot, 1/2] snapdragon: Add DRAM detection & FDT fixup

2018-07-30 Thread Tom Rini
On Sun, Jul 22, 2018 at 09:46:05PM +0300, Ramon Fried wrote: > Fixup the Linux FDT with the detection of onboard DRAM as > provided by SBL (Secondary boot loader) by reading > the shared-memory region. > > Signed-off-by: Ramon Fried This breaks 820c and adds a warning on 410c (this is with 2/2

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <20180730105319.79424-1-sgoldschm...@de.pepperl-fuchs.com> you wrote: > Compressed images should have their compression property > set to "none" if U-Boot should leave them compressed. > > This is especially the case for compressed ramdisks that > should be uncompressed by

[U-Boot] [PATCH 1/2] smbios: fix checkstyle error

2018-07-30 Thread Christian Gmeiner
Fixes the following chechpatch -f error: ERROR: "(foo*)" should be "(foo *)" + strncpy((char*)t->uuid, serial_str, sizeof(t->uuid)); Signed-off-by: Christian Gmeiner --- lib/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smbios.c b/lib/smbios.c in

[U-Boot] [PATCH 2/2] smbios: fix checkstyle warning

2018-07-30 Thread Christian Gmeiner
Fixes the following checkstyle warning: WARNING: Missing a blank line after declarations + int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++); + max_struct_size = max(max_struct_size, tmp); Signed-off-by: Christian Gmeiner --- lib/smbios.c | 1 + 1 file change

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Tom Rini
On Mon, Jul 30, 2018 at 01:19:16PM +0200, Wolfgang Denk wrote: > Dear Simon, > > In message <20180730105319.79424-1-sgoldschm...@de.pepperl-fuchs.com> you > wrote: > > Compressed images should have their compression property > > set to "none" if U-Boot should leave them compressed. > > > > This

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 13:19, Wolfgang Denk wrote: Dear Simon, In message <20180730105319.79424-1-sgoldschm...@de.pepperl-fuchs.com> you wrote: Compressed images should have their compression property set to "none" if U-Boot should leave them compressed. This is especially the case for compressed ram

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 10:54, Michal Simek wrote: On 26.7.2018 19:16, Tom Rini wrote: On Thu, Jul 26, 2018 at 04:23:14PM +, York Sun wrote: On 07/25/2018 11:52 PM, Michal Simek wrote: On 25.7.2018 23:18, York Sun wrote: On 07/24/2018 10:58 PM, Michal Simek wrote: On 24.7.2018 18:26, York Sun wr

Re: [U-Boot] [U-Boot, 1/2] snapdragon: Add DRAM detection & FDT fixup

2018-07-30 Thread Ramon Fried
On July 30, 2018 2:18:17 PM GMT+03:00, Tom Rini wrote: >On Sun, Jul 22, 2018 at 09:46:05PM +0300, Ramon Fried wrote: > >> Fixup the Linux FDT with the detection of onboard DRAM as >> provided by SBL (Secondary boot loader) by reading >> the shared-memory region. >> >> Signed-off-by: Ramon Fried

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <20180730105319.79424-2-sgoldschm...@de.pepperl-fuchs.com> you wrote: > To prepare supporting compression for all image types, change > compression to "none" for ramdisks in all examples. What makes you think this is a correct thing to do? There are different approaches to

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <6009778b-1c55-d67b-26a5-7d9039c85...@de.pepperl-fuchs.com> you wrote: > > It might seem obvious to you, but given the examples had both "none" and > "gzip" for ramdisk, it seems it has not been obvious for everybody. These may be different examples, documenting differen

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
Dear Wolfgang, On 30.07.2018 13:46, Wolfgang Denk wrote: Dear Simon, In message <6009778b-1c55-d67b-26a5-7d9039c85...@de.pepperl-fuchs.com> you wrote: It might seem obvious to you, but given the examples had both "none" and "gzip" for ramdisk, it seems it has not been obvious for everybody.

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Simon Goldschmidt
Dear Wolfgang, On 30.07.2018 13:45, Wolfgang Denk wrote: Dear Simon, In message <20180730105319.79424-2-sgoldschm...@de.pepperl-fuchs.com> you wrote: To prepare supporting compression for all image types, change compression to "none" for ramdisks in all examples. What makes you think this is

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > > These may be different examples, documenting different use cases > > which do exactly what they say? > > That might well be, but given that compression in FIT images only works > for kernel sub-images up to now, I strongly doubt that. This might actually

[U-Boot] [PATCH 1/4] gpio: xilinx: Find out bank before use in xilinx_gpio_get_function()

2018-07-30 Thread Michal Simek
Call xilinx_gpio_get_bank_pin() before use. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index 48b52c985a55..8ce

[U-Boot] [PATCH 2/4] gpio: xilinx: Remove !DM driver

2018-07-30 Thread Michal Simek
There is no user for !DM driver that's why remove it. Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 338 + 1 file changed, 2 insertions(+), 336 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index 8ce

[U-Boot] [PATCH 3/4] gpio: xilinx: Set value before changing direction

2018-07-30 Thread Michal Simek
Set a value before changing gpio direction. This will ensure that the old value is not propagated when direction has changed but new value is not written yet. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 4 ++-- 1 file changed, 2 insertions(+

[U-Boot] [PATCH 4/4] gpio: xilinx: Simplify logic in xilinx_gpio_set_value

2018-07-30 Thread Michal Simek
There is no reason to do read/write for if/else separately. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c i

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 14:32, Wolfgang Denk wrote: Dear Simon, In message you wrote: These may be different examples, documenting different use cases which do exactly what they say? That might well be, but given that compression in FIT images only works for kernel sub-images up to now, I strongl

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <6bce9049-a812-d8e4-cd2a-4b86dccae...@de.pepperl-fuchs.com> you wrote: > > However, uncompression currently is only implemented for kernels, not > for other sub-images. This patch aims at updating the docs and the > current .its examples to what they do now. Yes, but the

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <642b8dae-f941-5255-42c7-3761e12d0...@de.pepperl-fuchs.com> you wrote: > > As I'm not that long with U-Boot, can you point me to a rough date of a > release that I could check to see if it worked at that time? I can only speculate... The first bigger rework of the cose

[U-Boot] [PATCH 00/10] net: fec: Code Improvement/cleanups

2018-07-30 Thread Jagan Teki
dm code in fec_mxc has some quite few issues with mdio handling and the dm vs non-dm code in fec_mxc looks very uncomfortable to read and add new support. This series is trying to fixe all necessary issues regarding fec_mxc, along with necessary CONFIG options are moved into defconfig. Require e

[U-Boot] [PATCH 01/10] configs: Drop imx27lite-common.h

2018-07-30 Thread Jagan Teki
This file not used by any config file, hence droped. Cc: Adam Ford Signed-off-by: Jagan Teki --- include/configs/imx27lite-common.h | 172 - 1 file changed, 172 deletions(-) delete mode 100644 include/configs/imx27lite-common.h diff --git a/include/configs/imx27lit

[U-Boot] [PATCH 03/10] net: fec: Use PHY_INTERFACE_MODE_ for xcv_type

2018-07-30 Thread Jagan Teki
Use existing PHY_INTERFACE_MODE_ for xcv_type, this eventually - remove CONFIG_FEC_XCV_TYPE in DM_ETH boards since the phy interface is grabbing from DT phy-mode. - prefix PHY_INTERFACE_MODE_ for CONFIG_FEC_XCV_TYPE in non DM_ETH boards - added MII100, SEVENWIRE PHY mode Signed-off-by: Jagan Tek

[U-Boot] [PATCH 02/10] configs: Move CONFIG_FEC_MXC

2018-07-30 Thread Jagan Teki
- Move CONFIG_FEC_MXC to defconfigs - Add require depends on in kconfig Signed-off-by: Jagan Teki --- Note: - On top of "[PATCH] Convert CONFIG_MII et al to Kconfig" configs/apalis_imx6_defconfig | 1 + configs/apalis_imx6_nospl_com_defconfig | 1 + configs/apalis_imx6_nospl_it_defcon

[U-Boot] [PATCH 05/10] net: fec: Use PHY_ADDR instead of FEC_MXC_PHYADDR

2018-07-30 Thread Jagan Teki
- use PHY_ADDR_ENABLE and PHY_ADDR - few boards are using FEC_MXC_PHYADDR without PHYLIB enable the same. Signed-off-by: Jagan Teki --- board/compulab/cl-som-imx7/cl-som-imx7.c | 2 +- board/freescale/mx6sxsabreauto/mx6sxsabreauto.c | 3 +-- board/freescale/mx6ul_14x14_evk/mx6ul_1

[U-Boot] [PATCH 04/10] net: fec: Add default CONFIG_FEC_MXC_PHYADDR for few boards

2018-07-30 Thread Jagan Teki
Usually PHYADDR is used while PHYLIB is defined, but boards like apx4devkit, mx6qarm2 are not using PHYLIB but they are using CONFIG_FEC_MXC_PHYADDR. So, future patches will convert CONFIG_FEC_MXC_PHYADDR to generic CONFIG_PHY_ADDR and that will depends on PHYLIB. Handle this special case for this

[U-Boot] [PATCH 07/10] dm: net: fec: Move enet init in fec_enet

2018-07-30 Thread Jagan Teki
Move enet initialization code in fec_enet function, no functional changes. Signed-off-by: Jagan Teki --- drivers/net/fec_mxc.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 3ae62ff9d1..76a3bd84f0

[U-Boot] [PATCH 10/10] net: fec: Setup common eth_ops code for dm and non-dm

2018-07-30 Thread Jagan Teki
Setting up common code for dm and non-dm will easy and understandable for adding new features, debugging in both the code area. Signed-off-by: Jagan Teki --- drivers/net/fec_mxc.c | 225 -- drivers/net/fec_mxc.h | 3 + 2 files changed, 108 insertions(+),

[U-Boot] [PATCH 09/10] dm: net: fec: Add support for PHY reset

2018-07-30 Thread Jagan Teki
Add PHY reset code for DM_ETH by retrieving phy-reset-gpios and phy-reset-duration in fec node. Signed-off-by: Jagan Teki --- drivers/net/fec_mxc.c | 50 +-- drivers/net/fec_mxc.h | 7 ++ 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a

[U-Boot] [PATCH 06/10] net: fec_mxc: Use udevice to retrive priv, in fec_phy_init

2018-07-30 Thread Jagan Teki
Retrive priv via udevice using dev_get_priv, so just pass udevice pointer. Signed-off-by: Jagan Teki --- drivers/net/fec_mxc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 11182f27d8..3ae62ff9d1 100644 --- a/drivers/

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Michal Simek
On 30.7.2018 13:28, Simon Goldschmidt wrote: > > > On 30.07.2018 10:54, Michal Simek wrote: >> On 26.7.2018 19:16, Tom Rini wrote: >>> On Thu, Jul 26, 2018 at 04:23:14PM +, York Sun wrote: On 07/25/2018 11:52 PM, Michal Simek wrote: > On 25.7.2018 23:18, York Sun wrote: >> On 07/

[U-Boot] [PATCH 08/10] dm: net: fec: Refactor mdio_init code

2018-07-30 Thread Jagan Teki
mdio initialization in dm code is assigning bus->priv with pointer to struct ethernet_regs which leads to improper mii. Add proper udevice to store mii_bus priv and reuse the same in mdio ops. Also refactor mdio code, to make common ops for dm and non-dm. Signed-off-by: Jagan Teki --- drivers/n

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-30 Thread Michal Simek
On 27.7.2018 10:41, Stefan Herbrechtsmeier wrote: > Am 27.07.2018 um 09:05 schrieb Michal Simek: >> On 26.7.2018 21:46, Stefan Herbrechtsmeier wrote: >>> Am 26.07.2018 um 10:41 schrieb Michal Simek: On 25.7.2018 20:21, Stefan Herbrechtsmeier wrote: > Am 25.07.2018 um 08:39 schrieb Michal S

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Michal Simek
On 26.7.2018 18:23, York Sun wrote: > On 07/25/2018 11:52 PM, Michal Simek wrote: >> On 25.7.2018 23:18, York Sun wrote: >>> On 07/24/2018 10:58 PM, Michal Simek wrote: On 24.7.2018 18:26, York Sun wrote: > On 07/24/2018 06:07 AM, Michal Simek wrote: >> There is no reason to limit gzip

[U-Boot] [PATCH 5/8] clk: Add generic_clk_valid

2018-07-30 Thread Jagan Teki
Add clock validate function for validating specific clock to do further clock operations. Signed-off-by: Jagan Teki Reviewed-by: Simon Glass --- include/clk-uclass.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/clk-uclass.h b/include/clk-uclass.h index e76d98e2f6..452

[U-Boot] [PATCH 4/8] clk: imx: imx6ul: Implement ENET clocks

2018-07-30 Thread Jagan Teki
Add support for ENET clock on i.MX6UL platform. Signed-off-by: Jagan Teki Reviewed-by: Joe Hershberger --- drivers/clk/imx/Kconfig | 7 +++ drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk_imx6ul.c | 92 3 files changed, 100 insertions(+) crea

[U-Boot] [PATCH 3/8] clk: imx: imx6q: Implement ENET clocks

2018-07-30 Thread Jagan Teki
Add support for ENET clock on i.MX6QDL platform. Signed-off-by: Jagan Teki Reviewed-by: Joe Hershberger --- drivers/clk/imx/clk_imx6q.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk_imx6q.c b/drivers/clk/imx/clk_imx6q.c index 301921841

[U-Boot] [PATCH 6/8] net: fec_mxc: Add clock support via CLK

2018-07-30 Thread Jagan Teki
Now enet clock support available for imx6qdl and imx6ul, via CLK framework, so add enable, set_rate support in drivers. Signed-off-by: Jagan Teki Acked-by: Joe Hershberger --- drivers/net/fec_mxc.c | 58 ++- drivers/net/fec_mxc.h | 5 2 files change

[U-Boot] [PATCH 2/8] clk: Add DM CLK driver template for i.MX6QDL

2018-07-30 Thread Jagan Teki
Add DM CLK driver for iMX6QDL platform. - basic template for clk_imx6qdl.c - Kconfig support Signed-off-by: Jagan Teki --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile| 1 + drivers/clk/imx/Kconfig | 18 + drivers/clk/imx/Makefile| 7 drivers/clk/imx/cl

[U-Boot] [PATCH 1/8] clk: Kconfig: Ascending order to sub directiory kconfigs

2018-07-30 Thread Jagan Teki
sourcing of sub directiory kconfig files are not in proper order, so keep them in ascending order. Signed-off-by: Jagan Teki --- drivers/clk/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 18bf8a6d28..a99abed9e9

[U-Boot] [PATCH 8/8] configs: icorem6_rqs: Enable CLK_IMX

2018-07-30 Thread Jagan Teki
CLK support for imx6qdl is available, so enable CLK_IMX for Engicam i.CoreM6 QDL RQS boards. Signed-off-by: Jagan Teki --- configs/imx6qdl_icore_rqs_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx6qdl_icore_rqs_defconfig b/configs/imx6qdl_icore_rqs_defconfig index 0099

[U-Boot] [PATCH 0/8] i.MX: Add initial CLK support

2018-07-30 Thread Jagan Teki
This is first version for previous RFC[1] and on top of fec_mxc series [2] One of the blocking area where fec_mxc is unlikely to move dm can be CLK support, this series trying to add support for it and concentrated on ENET clocking for i.MX6QDL and i.MX6UL. Tested on i.MX6QDL For i.MX6UL, need

[U-Boot] [PATCH 7/8] imx6ul: engicam: Enable CLK_IMX

2018-07-30 Thread Jagan Teki
CLK support for imx6ul is available, so enable CLK_IMX for Engicam i.MX6UL boards. Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig index 521fad74b5..388d2a2069 100644 ---

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 14:36, Wolfgang Denk wrote: Dear Simon, In message <6bce9049-a812-d8e4-cd2a-4b86dccae...@de.pepperl-fuchs.com> you wrote: However, uncompression currently is only implemented for kernels, not for other sub-images. This patch aims at updating the docs and the current .its examp

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 14:44, Wolfgang Denk wrote: Dear Simon, In message <642b8dae-f941-5255-42c7-3761e12d0...@de.pepperl-fuchs.com> you wrote: As I'm not that long with U-Boot, can you point me to a rough date of a release that I could check to see if it worked at that time? I can only speculate

Re: [U-Boot] [PATCH] video: kconfig: remove DM_I2C dependency of I2C_EDID

2018-07-30 Thread Luis Araneda
Hi, On Wed, Jul 4, 2018 at 2:40 AM Luis Araneda wrote: > > Drop the DM_I2C dependency, as the library only implements > the parsing of EDID data and doesn't depend on any driver > > One user of this library, the i2c command, implements > support for legacy and DM I2C drivers > > Tested on a Zynq

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <0787afb7-2da1-4eaa-437e-6f7c75828...@de.pepperl-fuchs.com> you wrote: > > I'd still argue that the standard example in 'multi.its' should have > compression = "none" for the ramdisks. OK, this is your position then. I can only explain where we are coming from: in the e

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-30 Thread Simon Glass
Hi, On 27 July 2018 at 02:40, Chee, Tien Fong wrote: > > On Thu, 2018-07-26 at 11:03 +0200, Michal Simek wrote: > > On 25.7.2018 18:03, Tom Rini wrote: > > > > > > On Wed, Jul 25, 2018 at 09:47:17AM -0600, Simon Glass wrote: > > > > > > > > Hi, > > > > > > > > On 25 July 2018 at 03:48, Michal Sim

Re: [U-Boot] [PATCH 2/3] enable fpga loadfs

2018-07-30 Thread Simon Glass
Hi, On 27 July 2018 at 02:57, Chee, Tien Fong wrote: > On Thu, 2018-07-26 at 10:10 +0200, Marek Vasut wrote: >> On 07/26/2018 09:54 AM, tien.fong.c...@intel.com wrote: >> > >> > From: Tien Fong Chee >> > >> > Signed-off-by: Tien Fong Chee >> > --- >> > arch/arm/dts/socfpga_arria10.dtsi

Re: [U-Boot] [PATCH V2 1/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-07-30 Thread Simon Glass
On 26 July 2018 at 20:20, Peng Fan wrote: > Add dummy functions when CONFIG_POWER_DOMAIN not defined. > > Signed-off-by: Peng Fan > --- > > V2: Use CONFIG_IS_ENABLED > > include/power-domain.h | 28 > 1 file changed, 28 insertions(+) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH V2 2/4] power: Add CONFIG_SPL_POWER_DOMAIN config

2018-07-30 Thread Simon Glass
On 26 July 2018 at 20:20, Peng Fan wrote: > Add CONFIG_SPL_POWER_DOMAIN config entry. > Build drivers/power/domain if this config is selected. > > Signed-off-by: Peng Fan > Cc: Simon Glass > --- > > V2: New > > common/spl/Kconfig| 9 + > drivers/Makefile | 1 + >

Re: [U-Boot] [PATCH 1/4] gpio: xilinx: Find out bank before use in xilinx_gpio_get_function()

2018-07-30 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 14:34 schrieb Michal Simek: Call xilinx_gpio_get_bank_pin() before use. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/d

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-30 Thread Michal Simek
On 30.7.2018 15:26, Simon Glass wrote: > Hi, > > On 27 July 2018 at 02:40, Chee, Tien Fong wrote: >> >> On Thu, 2018-07-26 at 11:03 +0200, Michal Simek wrote: >>> On 25.7.2018 18:03, Tom Rini wrote: On Wed, Jul 25, 2018 at 09:47:17AM -0600, Simon Glass wrote: > > Hi, > >

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 15:25, Wolfgang Denk wrote: Dear Simon, In message <0787afb7-2da1-4eaa-437e-6f7c75828...@de.pepperl-fuchs.com> you wrote: I'd still argue that the standard example in 'multi.its' should have compression = "none" for the ramdisks. OK, this is your position then. I can only e

Re: [U-Boot] [PATCH 4/4] gpio: xilinx: Simplify logic in xilinx_gpio_set_value

2018-07-30 Thread Stefan Herbrechtsmeier
Hi Michal, Am 30.07.2018 um 14:34 schrieb Michal Simek: There is no reason to do read/write for if/else separately. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --gi

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Set value before changing direction

2018-07-30 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 14:34 schrieb Michal Simek: Set a value before changing gpio direction. This will ensure that the old value is not propagated when direction has changed but new value is not written yet. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-30 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 14:40 schrieb Michal Simek: On 27.7.2018 10:41, Stefan Herbrechtsmeier wrote: Am 27.07.2018 um 09:05 schrieb Michal Simek: On 26.7.2018 21:46, Stefan Herbrechtsmeier wrote: Am 26.07.2018 um 10:41 schrieb Michal Simek: On 25.7.2018 20:21, Stefan Herbrechtsmeier wrote: Am 25.0

Re: [U-Boot] [PATCH 4/4] gpio: xilinx: Simplify logic in xilinx_gpio_set_value

2018-07-30 Thread Michal Simek
On 30.7.2018 15:31, Stefan Herbrechtsmeier wrote: > Hi Michal, > > Am 30.07.2018 um 14:34 schrieb Michal Simek: >> There is no reason to do read/write for if/else separately. >> >> Reported-by: Stefan Herbrechtsmeier >> Signed-off-by: Michal Simek >> --- >> >>   drivers/gpio/xilinx_gpio.c | 13 +

Re: [U-Boot] [PATCH 4/4] gpio: xilinx: Simplify logic in xilinx_gpio_set_value

2018-07-30 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 15:42 schrieb Michal Simek: On 30.7.2018 15:31, Stefan Herbrechtsmeier wrote: Hi Michal, Am 30.07.2018 um 14:34 schrieb Michal Simek: There is no reason to do read/write for if/else separately. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek ---   drivers/

Re: [U-Boot] [PATCH v5 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-30 Thread Laurentiu Tudor
Hello, On 27.07.2018 17:00, Horia Geanta wrote: > On 7/27/2018 2:18 PM, Bharat Bhushan wrote: >> >> >>> -Original Message- >>> From: laurentiu.tu...@nxp.com [mailto:laurentiu.tu...@nxp.com] >>> Sent: Friday, July 27, 2018 3:28 PM >>> To: u-boot@lists.denx.de; Prabhakar Kushwaha >>> ; York

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-07-30 Thread Simon Goldschmidt
On 12.05.2018 22:28, Marek Vasut wrote: Pull the serial port configuration from DT and use DM serial instead of having the serial configuration in two places, DT and board config. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/Kconfig

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-07-30 Thread Marek Vasut
On 07/30/2018 04:03 PM, Simon Goldschmidt wrote: > > > On 12.05.2018 22:28, Marek Vasut wrote: >> Pull the serial port configuration from DT and use DM serial instead >> of having the serial configuration in two places, DT and board config. >> >> Signed-off-by: Marek Vasut >> Cc: Chin Liang See

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-30 Thread Michal Simek
On 30.7.2018 15:32, Stefan Herbrechtsmeier wrote: > Am 30.07.2018 um 14:40 schrieb Michal Simek: >> On 27.7.2018 10:41, Stefan Herbrechtsmeier wrote: >>> Am 27.07.2018 um 09:05 schrieb Michal Simek: On 26.7.2018 21:46, Stefan Herbrechtsmeier wrote: > Am 26.07.2018 um 10:41 schrieb Michal S

Re: [U-Boot] [PATCH v5 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-30 Thread Horia Geanta
On 7/30/2018 4:58 PM, Laurentiu Tudor wrote: >> The only way to implement a *mechanism* is to provide different ICIDs for all >> the blocks. >> Any other solution would be imposing a *policy*, thus restricting user's >> possibilities. Admittedly there are use cases less "popular" than others, >> b

Re: [U-Boot] [PATCH 1/1] README: U_BOOT_ENV_CALLBACK functions

2018-07-30 Thread Sam Protsenko
Hi Heinrich, On Sun, Jul 29, 2018 at 12:08 PM, Heinrich Schuchardt wrote: > Describe the interface of environment variable callback functions. > > Signed-off-by: Heinrich Schuchardt > --- > README | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/README b/README > index aee0

Re: [U-Boot] [PATCH v4 00/27] SPI-NAND support

2018-07-30 Thread Stefan Roese
Hi Miquel, Hi Jagan, On 26.07.2018 09:29, Miquel Raynal wrote: Hi Jagan, Jagan Teki wrote on Thu, 26 Jul 2018 11:00:56 +0530: On Fri, Jul 13, 2018 at 6:01 PM, Miquel Raynal wrote: During the last months, Boris Brezillon shared his work to support serial flashes within Linux. First, he deli

Re: [U-Boot] [PATCH v4 00/27] SPI-NAND support

2018-07-30 Thread Miquel Raynal
Hi Stefan, Tom, Stefan Roese wrote on Mon, 30 Jul 2018 17:11:49 +0200: > Hi Miquel, > Hi Jagan, > > On 26.07.2018 09:29, Miquel Raynal wrote: > > Hi Jagan, > > > Jagan Teki wrote on Thu, 26 Jul 2018 > > 11:00:56 +0530: > > >> On Fri, Jul 13, 2018 at 6:01 PM, Miquel Raynal > >> wrote:

[U-Boot] [PATCH v1 0/2] Replace serial setparity by setconfig

2018-07-30 Thread Patrice Chotard
This series : _ replace setparity ops by more complete setconfig in serial uclass _ replace setparity by setconfig in STM32 serial driver Patrice Chotard (1): serial: stm32: Replace setparity by setconfig Patrick Delaunay (1): dm: serial: Replace setparity by setconfig drivers/serial

[U-Boot] [PATCH v1 1/2] dm: serial: Replace setparity by setconfig

2018-07-30 Thread Patrice Chotard
From: Patrick Delaunay Replace setparity by more generic setconfig ops to allow uart parity, bits word length and stop bits number change. Adds SERIAL_GET_PARITY/BITS/STOP macros. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/serial-uclass.c | 14

[U-Boot] [PATCH v1 2/2] serial: stm32: Replace setparity by setconfig

2018-07-30 Thread Patrice Chotard
Replace stm32_serial_setparity by stm32_serial_setconfig which allows to set serial bits number, parity and stop bits number. Only parity setting is implemented. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32.c | 21 +++-- 1 file

[U-Boot] [PATCH v5 00/27] SPI-NAND support

2018-07-30 Thread Miquel Raynal
During the last months, Boris Brezillon shared his work to support serial flashes within Linux. First, he delivered (and merged) a new layer called spi-mem. He also initiated in Linux MTD subsystem the move of all 'raw' NAND related code to a raw/ subdirectory, adding at the same time a NAND core t

[U-Boot] [PATCH v5 02/27] mtd: Uninline mtd_write_oob and move it to mtdcore.c

2018-07-30 Thread Miquel Raynal
From: Ezequiel Garcia There's no reason for having mtd_write_oob inlined in mtd.h header. Move it to mtdcore.c where it belongs. Signed-off-by: Ezequiel Garcia Acked-by: Boris Brezillon Signed-off-by: Jacek Anaszewski Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.c | 12 +++

[U-Boot] [PATCH v5 03/27] mtd: Add sanity checks in mtd_write/read_oob()

2018-07-30 Thread Miquel Raynal
From: Boris Brezillon Unlike what's done in mtd_read/write(), there are no checks to make sure the parameters passed to mtd_read/write_oob() are consistent, which forces implementers of ->_read/write_oob() to do it, which in turn leads to code duplication and possibly errors in the logic. Do gen

[U-Boot] [PATCH v5 01/27] mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

2018-07-30 Thread Miquel Raynal
From: Boris Brezillon Some MTD sublayers/drivers are implementing ->_read/write_oob() and provide dummy wrappers for their ->_read/write() implementations. Let the core handle this case instead of duplicating the logic. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik Acked-by: Brian No

[U-Boot] [PATCH v5 06/27] mtd: fix build issue with includes

2018-07-30 Thread Miquel Raynal
Fix build errors produced by mtd.h and dm/device.h if not included in the right order. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- include/linux/mtd/mtd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index ea659c354b..8def104

[U-Boot] [PATCH v5 07/27] mtd: move definitions to enlarge their range

2018-07-30 Thread Miquel Raynal
Some helpers might be useful in a future 'mtd' U-Boot command to parse MTD device list. Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.h | 6 -- include/linux/mtd/mtd.h | 6 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/mtdcore.h b/drivers/mtd/mtdc

[U-Boot] [PATCH v5 05/27] mtd: add get/set of_node/flash_node helpers

2018-07-30 Thread Miquel Raynal
From: Brian Norris We are going to begin using the mtd->dev.of_node field for MTD device nodes, so let's add helpers for it. Also, we'll be making some conversions on spi_nor (and nand_chip eventually) too, so get that ready with their own helpers. Signed-off-by: Brian Norris Reviewed-by: Boris

[U-Boot] [PATCH v5 04/27] mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing

2018-07-30 Thread Miquel Raynal
Some MTD sublayers/drivers are implementing ->_read/write() and not ->_read/write_oob(). While for NAND devices both are usually valid, for NOR devices, using the _oob variant has no real meaning. But, as the MTD layer is supposed to hide as much as possible the flash complexity to the user, there

[U-Boot] [PATCH v5 08/27] mtd: move all flash categories inside MTD submenu

2018-07-30 Thread Miquel Raynal
There is no reason to have NAND, SPI flashes and UBI sections outside of the MTD submenu in Kconfig. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- drivers/mtd/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig ind

[U-Boot] [PATCH v5 16/27] mtd: spinand: Add initial support for Winbond W25M02GV

2018-07-30 Thread Miquel Raynal
From: Frieder Schrempf Add support for the W25M02GV chip. Signed-off-by: Frieder Schrempf Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal Acked-by: Jagan Teki --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c| 1 + drivers/mtd/nand/spi/winbond.c | 14

[U-Boot] [PATCH v5 11/27] mtd: nand: Add core infrastructure to deal with NAND devices

2018-07-30 Thread Miquel Raynal
From: Boris Brezillon Add an intermediate layer to abstract NAND device interface so that some logic can be shared between SPI NANDs, parallel/raw NANDs, OneNANDs, ... Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal Acked-by: Jagan Teki --- drivers/mtd/nand/Kconfig | 3 + driv

  1   2   3   >