Re: [PATCH v3 0/2] Basic Kontron SMARC-sAL28 board support

2020-06-17 Thread Michael Walle
[+CC some more as suggested by Marek] Am 2020-05-10 01:20, schrieb Michael Walle: Add basic board support for the Kontron SMARC-sAL28 board. Please note, that this board doesn't support TF-a (yet). Therefore, the u-boot SPL is the first code which is run and it has to set up the RAM. changes

Re: [PATCHv2 22/31] arm: toradex: Convert CONFIG_CONSOLE_MUX to Kconfig

2020-06-17 Thread Igor Opaniuk
Hi Tom, On Wed, Jun 17, 2020, 02:12 Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_CONSOLE_MUX > > Cc: Igor Opaniuk > Signed-off-by: Tom Rini > --- > configs/apalis_imx6_defconfig | 2 -- > configs/colibri_imx6_defconfig | 2 -- > include/configs/apalis_imx6.h | 1 - >

Re: [PATCH] phy: atheros: ar8035: Fix clock output calculation

2020-06-17 Thread Michael Walle
Am 18. Juni 2020 05:08:59 MESZ schrieb Fabio Estevam : >The "qca,clk-out-frequency" is calculated incorrectly for AR8035 >due to incorrect masking of priv->clk_25m_reg and priv->clk_25m_mask. > >This same issue has been already fixed in the kernel by: > >commit b1f4c209d84057b6d40b939b6e4404854271d

Re: [PATCH v2 01/10] pinctrl: Add pinmux property support to pinctrl-generic

2020-06-17 Thread Sean Anderson
On 6/16/20 11:11 PM, Simon Glass wrote: > Hi Sean, > > On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: >> >> The pinmux property allows for smaller and more compact device trees, >> especially when there are many pins which need to be assigned individually. >> Instead of specifying an array of

[PATCH] phy: atheros: ar8035: Fix clock output calculation

2020-06-17 Thread Fabio Estevam
The "qca,clk-out-frequency" is calculated incorrectly for AR8035 due to incorrect masking of priv->clk_25m_reg and priv->clk_25m_mask. This same issue has been already fixed in the kernel by: commit b1f4c209d84057b6d40b939b6e4404854271d797 Author: Oleksij Rempel Date: Wed Apr 1 11:57:32 2020 +

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
Hi Tom, On Wed, Jun 17, 2020 at 6:28 PM Fabio Estevam wrote: > > Hi Tom, > > On Wed, Jun 17, 2020 at 4:00 PM Tom Rini wrote: > > > Based on your follow-up patches, I think you'll be unsurprised it > > doesn't work. I get: > > Net: Could not get PHY for FEC0: addr 0 > > Now I understand why th

Re: [EXT] Re: [PATCHv2 26/31] arm: imx: Finish migration of CONFIG_CSF_SIZE to Kconfig

2020-06-17 Thread Ye Li
On Wed, 2020-06-17 at 10:51 +0200, Stefano Babic wrote: > > On 17.06.20 01:06, Tom Rini wrote: > > > > While in most cases CSF_SIZE is handled via Kconfig we have some > > i.MX8M > > platforms that set the size based on the now-renamed > > CONFIG_SECURE_BOOT > > symbol.  Update things so that CSF

Re: [PATCH 1/2] riscv: Use correct version of fdtdec_get_addr_size

2020-06-17 Thread Bin Meng
Hi Atish, On Thu, Jun 18, 2020 at 7:51 AM Atish Patra wrote: > > fdtdec_get_addr_size uses a fixed value for address_cells & size_cells > which may not work correctly always. fdtdec_get_addr_size_no_parent > will automatically calculate the cell sizes from parent but not > optimized especially wh

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
On Wed, Jun 17, 2020 at 6:30 PM Tom Rini wrote: > I'll test that out tomorrow. But my question now is, what do you want > to do about the various platforms where ethernet isn't working? I fixed the mx6sabresd Ethernet regression today and I can also try to convert other imx platforms from rgmii

[PATCH 2/2] riscv: Do not return error if reserved node already exists

2020-06-17 Thread Atish Patra
Not all errors are fatal. If a reserved memory node already exists in the destination device tree, we can continue to boot without failing. Signed-off-by: Atish Patra --- arch/riscv/lib/fdt_fixup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/lib/fdt_fixup.c b/a

[PATCH 1/2] riscv: Use correct version of fdtdec_get_addr_size

2020-06-17 Thread Atish Patra
fdtdec_get_addr_size uses a fixed value for address_cells & size_cells which may not work correctly always. fdtdec_get_addr_size_no_parent will automatically calculate the cell sizes from parent but not optimized especially when parent node is already available with the caller. Use fdtdec_get_addr

Re: USB patch for rpi4

2020-06-17 Thread Stuart Yoder
On Mon, Jun 15, 2020 at 4:48 AM Nicolas Saenz Julienne wrote: > > On Mon, 2020-06-15 at 11:28 +0200, Sylwester Nawrocki wrote: > > Hi, > > > > (Cc: Nicolas and Jim) > > Jim, FYI, this relates to u-boot's pcie-brcmstb implementation. > > > On 11.06.2020 11:18, Peter Robinson wrote: > > > > > > I am

Re: [PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-17 Thread Stephen Warren
On 6/16/20 9:11 PM, Simon Glass wrote: > Hi Stephen, > > On Mon, 8 Jun 2020 at 11:25, Stephen Warren wrote: >> >> On 6/8/20 11:12 AM, Simon Glass wrote: >>> Hi Stephen, >>> >>> On Mon, 8 Jun 2020 at 10:43, Stephen Warren wrote: On 6/7/20 7:45 AM, Simon Glass wrote: > On Thu, 4 Jun

Re: [PATCH v2 29/49] tegra: Drop the unused non-binman code

2020-06-17 Thread Stephen Warren
On 6/16/20 7:44 AM, Simon Glass wrote: > Hi Stephen, > > On Mon, 15 Jun 2020 at 16:03, Stephen Warren wrote: >> >> On 6/13/20 8:57 PM, Simon Glass wrote: >>> This has been in the Makefile long enough to ensure migration is complete. >>> Drop it. >> >>> diff --git a/Makefile b/Makefile >> >>> -OBJ

Re: [PATCH v4 4/4] test: env: add test for env info sub-command

2020-06-17 Thread Stephen Warren
On 6/16/20 2:01 AM, Patrick DELAUNAY wrote: > Hi Stephen, > >> From: Stephen Warren >> Sent: mardi 16 juin 2020 00:09 >> >> On 6/15/20 8:01 AM, Patrick Delaunay wrote: >>> Add a pytest for testing the env info sub-command: >>> >>> test_env_info: test command with several option >>> >>> test_env_i

RE: [PATCH v8 1/2] mmc: ca_dw_mmc: Misc cleanup of driver

2020-06-17 Thread Peng Fan
It has been applied, could you check tom's master tree? > -Original Message- > From: Alex Nemirovsky [mailto:alex.nemirov...@cortina-access.com] > Sent: 2020年6月18日 4:25 > To: U-Boot-Denx > Cc: 李冠德 ; Peng Fan > ; Jaehoon Chung ; Tom Rini > > Subject: Re: [PATCH v8 1/2] mmc: ca_dw_mmc: Mis

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 06:28:37PM -0300, Fabio Estevam wrote: > Hi Tom, > > On Wed, Jun 17, 2020 at 4:00 PM Tom Rini wrote: > > > Based on your follow-up patches, I think you'll be unsurprised it > > doesn't work. I get: > > Net: Could not get PHY for FEC0: addr 0 > > Now I understand why t

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
Hi Tom, On Wed, Jun 17, 2020 at 4:00 PM Tom Rini wrote: > Based on your follow-up patches, I think you'll be unsurprised it > doesn't work. I get: > Net: Could not get PHY for FEC0: addr 0 Now I understand why the PHY could not be found with the patches I sent. On mx6cubox the AR8035 is clo

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Michael Walle
Hi Fabio, Am 2020-06-17 23:02, schrieb Fabio Estevam: Hi Michael, On Wed, Jun 17, 2020 at 5:54 PM Michael Walle wrote: Almost nobody ;) https://lists.denx.de/pipermail/u-boot/2019-October/388360.html Cool, here is what I used: https://pastebin.com/raw/mcKdwwTs Mine was just a shot in the

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Fabio Estevam
Hi Michael, On Wed, Jun 17, 2020 at 5:54 PM Michael Walle wrote: > Almost nobody ;) > https://lists.denx.de/pipermail/u-boot/2019-October/388360.html Cool, here is what I used: https://pastebin.com/raw/mcKdwwTs That allows me to use 'qca,clk-out-frequency' in the device tree and get rid of the

Re: [PATCH v2 6/6] crypto/fsl: add RNG support

2020-06-17 Thread Michael Walle
Am 2020-06-17 22:09, schrieb Horia Geantă: On 6/4/2020 6:48 PM, Michael Walle wrote: +static int caam_rng_read(struct udevice *dev, void *data, size_t len) +{ + struct caam_rng_platdata *pdata = dev_get_platdata(dev); + u8 *buffer = data; + size_t size; + int ret; + +

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Michael Walle
Am 2020-06-17 21:25, schrieb Vladimir Oltean: On Wed, 17 Jun 2020 at 22:22, Tom Rini wrote: On Wed, Jun 17, 2020 at 10:12:37PM +0300, Vladimir Oltean wrote: > On Wed, 17 Jun 2020 at 22:01, Vladimir Oltean wrote: > > > > Hi Fabio, > > > > On Wed, 17 Jun 2020 at 21:30, Fabio Estevam wrote: > >

Re: [PATCH v2 5/6] crypto/fsl: instantiate the RNG with prediciton resistance

2020-06-17 Thread Michael Walle
Am 2020-06-17 21:15, schrieb Horia Geantă: On 6/4/2020 6:48 PM, Michael Walle wrote: +static int deinstantiate_rng(u8 sec_idx, int state_handle_mask) +{ + u32 *desc; + int sh_idx, ret = 0; + int desc_size = sizeof(u32) * 3; As you mentioned, descriptor size should be sizeof(u3

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Fabio Estevam
Hi Vladimir, On Wed, Jun 17, 2020 at 4:25 PM Vladimir Oltean wrote: > Not Grygorii's fault, I'm sure. He just noticed that there wasn't an > of node for the PHY, and created one. > > Today I learned, with the phy_connect API, you're supposed to populate > the phydev node _yourself_. > Like zynq_

Re: [PATCH] phy: atheros: Fix the "qca,clk-out-frequency" example

2020-06-17 Thread Michael Walle
Am 2020-06-17 20:07, schrieb Fabio Estevam: The correct name for the property is "qca,clk-out-frequency", so fix it accordingly. Signed-off-by: Fabio Estevam Reviewed-by: Michael Walle -michael

[PATCH v2 3/3] video: sunxi_display: Convert to DM_VIDEO

2020-06-17 Thread Jagan Teki
DM_VIDEO migration deadline is already expired, but around 80 Allwinner boards are still using video in a legacy way. = WARNING == This board does not use CONFIG_DM_VIDEO Please update the board to use CONFIG_DM_VIDEO before the v2019.07 release. Failure to

Re: [PATCH v2 4/6] crypto/fsl: don't regenerate secure keys

2020-06-17 Thread Michael Walle
Am 2020-06-17 20:03, schrieb Horia Geantă: On 6/4/2020 6:47 PM, Michael Walle wrote: The secure keys (TDKEK, JDKEK, TDSK) can only be generated once after a POR. Otherwise the RNG4 will throw an error. Signed-off-by: Michael Walle Reviewed-by: Horia Geantă Did you meet this problem in prac

Re: [PATCH v8 1/2] mmc: ca_dw_mmc: Misc cleanup of driver

2020-06-17 Thread Alex Nemirovsky
Hi Peng, this patch set seems to have stalled. There was some confusion as most of the driver was already pushed to master and thus a new patch was created for some some misc cleanup. Could you review? Thanks Alex > On May 21, 2020, at 5:24 PM, Alex Nemirovsky > wrote: > > From: Arthur Li

[PATCH v2 1/3] logos: Add sunxi logo

2020-06-17 Thread Jagan Teki
Add sunxi logo which would be used for splash screen support. The original images were the crapped version from linux-sunxi.org and generated using below step $ convert sunxi.jpg -type Palette -colors 224 -depth 8 \ -compress none -verbose BMP3:tools/logos/sunxi.bmp Signed-off-by: Jagan Teki --

[PATCH v2 2/3] sunxi: Enable splash screen support

2020-06-17 Thread Jagan Teki
Enable splash screen support for sunxi platforms. The splash screen image, sunxi.bmp would load left corner on screen in 0,0 splash position. This is default legacy logo position on sunxi platform and also it would be common practice to have at 0,0 since the default sunx.bmp is nominal size. Sign

[PATCH v2 0/3] video: sunxi: Convert DM_VIDEO

2020-06-17 Thread Jagan Teki
These series supports DM_VIDEO conversation for missing sunxi platforms. Separate splash screen support is required since the video log support in legacy drivers are not supporting with driver mode video. Dependencies: http://patchwork.ozlabs.org/project/uboot/list/?series=182476 http://patchwo

Re: [PATCH v9 1/2] spi: ca_sflash: Add CAxxxx SPI Flash Controller

2020-06-17 Thread Alex Nemirovsky
Hi Jagan, Seems that this patch set may have stalled. Its marked as change requested but we are unaware of any outstanding change request. Could you look into it? TIA Alex > On Jun 1, 2020, at 1:26 PM, Alex Nemirovsky > wrote: > > From: Pengpeng Chen > > Add SPI Flash controller driver f

Re: [PATCH v2 6/6] crypto/fsl: add RNG support

2020-06-17 Thread Horia Geantă
On 6/4/2020 6:48 PM, Michael Walle wrote: > +static int caam_rng_read(struct udevice *dev, void *data, size_t len) > +{ > + struct caam_rng_platdata *pdata = dev_get_platdata(dev); > + u8 *buffer = data; > + size_t size; > + int ret; > + > + while (len) { > + ret = c

Re: [PATCH v9 1/2] i2c: i2c-cortina: added CAxxxx I2C support

2020-06-17 Thread Alex Nemirovsky
Hi Heiko, seems that this patch set may have slipped through the cracks. Is there anything keeping it from being merged into master? > On Jun 1, 2020, at 12:56 PM, Alex Nemirovsky > wrote: > > From: Arthur Li > > Add I2C controller support for Cortina Access CA SoCs > > Signed-off-by:

[PATCH v4 2/2] log: use BIT() instead of 1 <

2020-06-17 Thread Heinrich Schuchardt
Use the BIT() macro when creating a bitmask for the logging fields. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v4: no change v3: new patch --- common/log_console.c | 14 +++--- common/log_syslog.c | 14 +++--- 2 files changed, 14 insertions(

[PATCH v4 0/2] log: don't show function by default

2020-06-17 Thread Heinrich Schuchardt
When replacing printf() by log function calls it is not desirable to output calling function name. So we should adjust the default log format to show the message only. Using the BIT() macro makes the log format related coding more readable. v4: leave an empty line in enum log_fmt before c

[PATCH v4 1/2] log: don't show function by default

2020-06-17 Thread Heinrich Schuchardt
The name of the function emitting a log message may be of interest for a developer but is distracting for normal users. See the example below: try_load_entry() Booting: Debian Make the default format for log messages customizable. By default show only the message text. Signed-off-by: Heinric

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 04:18:27PM -0300, Fabio Estevam wrote: > On Wed, Jun 17, 2020 at 4:09 PM Fabio Estevam wrote: > > > Does it still probe if you remove the PHY reset from the board code? > > Another suggestion: please use the ar8031_phy_fixup() and > board_phy_config() from mx6sabresd into

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Vladimir Oltean
On Wed, 17 Jun 2020 at 22:22, Tom Rini wrote: > > On Wed, Jun 17, 2020 at 10:12:37PM +0300, Vladimir Oltean wrote: > > On Wed, 17 Jun 2020 at 22:01, Vladimir Oltean wrote: > > > > > > Hi Fabio, > > > > > > On Wed, 17 Jun 2020 at 21:30, Fabio Estevam wrote: > > > > > > > > Hi, > > > > > > > > Now

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 10:12:37PM +0300, Vladimir Oltean wrote: > On Wed, 17 Jun 2020 at 22:01, Vladimir Oltean wrote: > > > > Hi Fabio, > > > > On Wed, 17 Jun 2020 at 21:30, Fabio Estevam wrote: > > > > > > Hi, > > > > > > Now that mx6sabresd board has Ethernet working again with this fix: > >

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 04:09:19PM -0300, Fabio Estevam wrote: > On Wed, Jun 17, 2020 at 4:00 PM Tom Rini wrote: > > > +#ifdef CONFIG_FEC_MXC > > +static int setup_fec(void) > > +{ > > + struct iomuxc *const iomuxc_regs = (struct iomuxc > > *)IOMUXC_BASE_ADDR; > > + struct gpio_desc

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
On Wed, Jun 17, 2020 at 4:09 PM Fabio Estevam wrote: > Does it still probe if you remove the PHY reset from the board code? Another suggestion: please use the ar8031_phy_fixup() and board_phy_config() from mx6sabresd into cubox board file to see if Ethernet works.

Re: [PATCH v2 5/6] crypto/fsl: instantiate the RNG with prediciton resistance

2020-06-17 Thread Horia Geantă
On 6/4/2020 6:48 PM, Michael Walle wrote: > +static int deinstantiate_rng(u8 sec_idx, int state_handle_mask) > +{ > + u32 *desc; > + int sh_idx, ret = 0; > + int desc_size = sizeof(u32) * 3; As you mentioned, descriptor size should be sizeof(u32) * 2. > + > + desc = memalign(ARCH_D

Re: [PATCH v4 4/5] dm: pci: Assign controller device node to root bridge

2020-06-17 Thread Nicolas Saenz Julienne
On Tue, 2020-06-16 at 17:31 -0600, Simon Glass wrote: > Hi Nicolas, > > On Tue, 16 Jun 2020 at 08:09, Nicolas Saenz Julienne > wrote: > > On Tue, 2020-06-16 at 07:43 -0600, Simon Glass wrote: > > > Hi Nicolas, > > > > > > On Fri, 12 Jun 2020 at 10:47, Nicolas Saenz Julienne > > > wrote: > > > > T

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Vladimir Oltean
On Wed, 17 Jun 2020 at 22:01, Vladimir Oltean wrote: > > Hi Fabio, > > On Wed, 17 Jun 2020 at 21:30, Fabio Estevam wrote: > > > > Hi, > > > > Now that mx6sabresd board has Ethernet working again with this fix: > > https://lists.denx.de/pipermail/u-boot/2020-June/416623.html > > > > ,I would like

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
On Wed, Jun 17, 2020 at 4:00 PM Tom Rini wrote: > +#ifdef CONFIG_FEC_MXC > +static int setup_fec(void) > +{ > + struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR; > + struct gpio_desc desc; > + > + int ret = enable_fec_anatop_clock(0, ENET_25MHZ); > + if

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 09:04:44AM -0300, Fabio Estevam wrote: > Hi Tom, > > On Tue, Jun 16, 2020 at 7:30 PM Tom Rini wrote: > > > Yeah, OK, I got far enough on trying to convert this that I see I don't > > quite have time to pick it up and run with it. It looks like there's > > going to be som

Re: mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Vladimir Oltean
Hi Fabio, On Wed, 17 Jun 2020 at 21:30, Fabio Estevam wrote: > > Hi, > > Now that mx6sabresd board has Ethernet working again with this fix: > https://lists.denx.de/pipermail/u-boot/2020-June/416623.html > > ,I would like to remove the ar8031_phy_fixup() from > board/freescale/mx6sabresd/mx6sabre

mx6sabresd: Trying to use qca,clk-out-frequency

2020-06-17 Thread Fabio Estevam
Hi, Now that mx6sabresd board has Ethernet working again with this fix: https://lists.denx.de/pipermail/u-boot/2020-June/416623.html ,I would like to remove the ar8031_phy_fixup() from board/freescale/mx6sabresd/mx6sabresd.c. Here is what I tested so far: https://pastebin.com/raw/cQW5RmXW Howev

[PATCH] phy: atheros: Fix the "qca,clk-out-frequency" example

2020-06-17 Thread Fabio Estevam
The correct name for the property is "qca,clk-out-frequency", so fix it accordingly. Signed-off-by: Fabio Estevam --- doc/device-tree-bindings/net/phy/atheros.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/device-tree-bindings/net/phy/atheros.txt b/doc/device-tree-b

Re: [PATCH v2 4/6] crypto/fsl: don't regenerate secure keys

2020-06-17 Thread Horia Geantă
On 6/4/2020 6:47 PM, Michael Walle wrote: > The secure keys (TDKEK, JDKEK, TDSK) can only be generated once after a > POR. Otherwise the RNG4 will throw an error. > > Signed-off-by: Michael Walle Reviewed-by: Horia Geantă Did you meet this problem in practice? Horia

Re: [PATCH] ARM: dts: imx6qdl-sabresd: Fix AR8031 phy-mode

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 02:33:16PM -0300, Fabio Estevam wrote: > As per kernel commit 0672d22a1924 ("ARM: dts: imx: Fix the AR803X phy-mode) > the correct phy-mode should be "rgmii-id", so fix it accordingly > to fix the Ethernet regression. > > This problem has been exposed by commit: > > commi

[PATCH] ARM: dts: imx6qdl-sabresd: Fix AR8031 phy-mode

2020-06-17 Thread Fabio Estevam
As per kernel commit 0672d22a1924 ("ARM: dts: imx: Fix the AR803X phy-mode) the correct phy-mode should be "rgmii-id", so fix it accordingly to fix the Ethernet regression. This problem has been exposed by commit: commit 13114f38e2ccea9386726d8b9831dfc310589548 Author: Vladimir Oltean Date: Th

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
On Wed, Jun 17, 2020 at 10:23 AM Tom Rini wrote: > You probably need 5f09f9af3cc335fe6a74c031cfa0b1d8bdf4b9db applied when > you see that failure, or a smaller make -j number. Ok, I fixed the issue for mx6sabresd. It was dts problem. I will send the patch.

Re: [PATCH] regulator: fix: enable gpio when requested

2020-06-17 Thread Mark Kettenis
> Date: Tue, 16 Jun 2020 09:18:35 -0400 > From: Tom Rini > > On Mon, Apr 27, 2020 at 11:09:47AM +0200, Mark Kettenis wrote: > > > The fix in commit b7adcdd073c0 has the side-effect that the regulator > > will be disabled when requesting the relevant gpio in > > regulator_common_ofdata_to_platdat

[PATCH] Convert CONFIG_ARMV7_PSCI_1_0 and CONFIG_ARMV7_PSCI_0_2 to Kconfig

2020-06-17 Thread Patrick Delaunay
This converts the following to Kconfig: CONFIG_ARMV7_PSCI_1_0 CONFIG_ARMV7_PSCI_0_2 Signed-off-by: Patrick Delaunay --- arch/arm/cpu/armv7/Kconfig | 14 ++ include/configs/ls1021aqds.h | 2 -- include/configs/ls1021atwr.h | 2 -- include/configs/mx7_common.h | 2 -- include/con

RE: [PATCHv2 04/31] Convert CONFIG_ARMV7_PSCI et al to Kconfig

2020-06-17 Thread Tom Warren
-Original Message- From: Tom Rini Sent: Tuesday, June 16, 2020 4:06 PM To: u-boot@lists.denx.de Cc: Tom Warren ; peter.ch...@data61.csiro.au Subject: [PATCHv2 04/31] Convert CONFIG_ARMV7_PSCI et al to Kconfig External email: Use caution opening links or attachments This converts the fo

Re: [PATCH v2 08/10] led: gpio: Default to using node name if label is absent

2020-06-17 Thread Simon Glass
Hi Sean, On Tue, 16 Jun 2020 at 21:18, Sean Anderson wrote: > > > On 6/16/20 11:11 PM, Simon Glass wrote: > > On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > >> > >> This more closely mirrors Linux's behaviour, and will make it easier to > >> transition to using function+color in the future.

Re: [PATCH v2 02/10] test: pinmux: Add test for pin muxing

2020-06-17 Thread Simon Glass
Hi Sean, On Tue, 16 Jun 2020 at 21:18, Sean Anderson wrote: > > On 6/16/20 11:11 PM, Simon Glass wrote: > > Hi Sean, > > > > On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > >> > >> This extends the pinctrl-sandbox driver to support pin muxing, and adds a > >> test for that behaviour. The tes

Re: [RFC PATCH 1/4] common/image.c: image_decomp: put IH_COMP_XXX cases inside ifndef USE_HOSTCC

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 09:07:20AM +0200, Rasmus Villemoes wrote: > On 17/06/2020 05.11, Simon Glass wrote: > > Hi Rasmus, > > > > On Fri, 12 Jun 2020 at 05:02, Rasmus Villemoes > > wrote: > >> > >> When building host tools, the CONFIG_GZIP etc. symbols are not defined > >> anyway, so this does n

[PATCH 1/1] Dockerfile: add missing package efitools

2020-06-17 Thread Heinrich Schuchardt
Package efitools is needed to run the tests in test/py/tests/test_efi_secboot/. Signed-off-by: Heinrich Schuchardt --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 4138415..899e98f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,7 @@ RUN apt-

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Tom Rini
On Wed, Jun 17, 2020 at 10:06:25AM -0300, Fabio Estevam wrote: > On Wed, Jun 17, 2020 at 9:04 AM Fabio Estevam wrote: > > > > Hi Tom, > > > > On Tue, Jun 16, 2020 at 7:30 PM Tom Rini wrote: > > > > > Yeah, OK, I got far enough on trying to convert this that I see I don't > > > quite have time to

RE: [PATCH 1/4] Drop global data sdhc_adapter for powerpc

2020-06-17 Thread Peng Fan
> Subject: [PATCH 1/4] Drop global data sdhc_adapter for powerpc > > The sdhc_adapter of global data has not been used, and we do not have to > use it as global data even we may need it in the future. > > Signed-off-by: Yangbo Lu Reviewed-by: Peng Fan Regards, Peng. > --- > arch/powerpc/i

Re: [PATCHv2 29/31] spi: Enable missing CONFIG_SPL_DM_SPI support

2020-06-17 Thread Luca Ceresoli
Hi, On 17/06/20 01:06, Tom Rini wrote: > Due to how the Makefile logic is we currently get DM_SPI support in SPL > enabled by having DM_SPI enabled for full U-Boot but not having > CONFIG_SPL_DM_SPI set. Add this missing option to boards that were > inadvertently making use of it. [...] For the

Re: [PATCH v2 8/8] board: ns3: start sp805 watchdog service

2020-06-17 Thread Stefan Roese
Hi Rayagonda, On 17.06.20 09:44, Rayagonda Kokatanur wrote: Hi Stefan, On Thu, Jun 11, 2020 at 4:19 PM Stefan Roese wrote: Hi Rayagonda, On 10.06.20 18:35, Rayagonda Kokatanur wrote: Hi Stefan, On Wed, Jun 10, 2020 at 4:33 PM Stefan Roese wrote: On 10.06.20 12:52, Rayagonda Kokatanur w

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
On Wed, Jun 17, 2020 at 9:04 AM Fabio Estevam wrote: > > Hi Tom, > > On Tue, Jun 16, 2020 at 7:30 PM Tom Rini wrote: > > > Yeah, OK, I got far enough on trying to convert this that I see I don't > > quite have time to pick it up and run with it. It looks like there's > > going to be some extra f

Re: [PATCH u-boot v2 1/4] eth/r8152: reset bmu after disabling Tx/Rx

2020-06-17 Thread Marek Vasut
On 6/16/20 11:09 AM, Hayes Wang wrote: > Reset bmu after disabling Tx/Rx. This is used to clear the FIFO of > Tx/Rx. The remained data may be transferred after Tx/Rx is re-enabled. > And it results in garbage data. > > Signed-off-by: Hayes Wang Applied all to next, thanks!

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Fabio Estevam
Hi Tom, On Tue, Jun 16, 2020 at 7:30 PM Tom Rini wrote: > Yeah, OK, I got far enough on trying to convert this that I see I don't > quite have time to pick it up and run with it. It looks like there's > going to be some extra fun around resetting the PHY perhaps? My quick > pass got things see

[PATCH] arm64: issue ISB after updating system registers

2020-06-17 Thread Volodymyr Babchuk
ARM Architecture reference manual clearly states that PE pipeline should be flushed after any change to system registers. Failing to do so can lead to spurious errors, like synchronous exception when accessing FPU registers. This is very prominent on CPUs with long instruction pipeline, like Cortex

[PATCH 2/4] Move eSDHC adapter card identification to board files

2020-06-17 Thread Yangbo Lu
The eSDHC adapter card identification and multiplexing configuration through FPGA had been implemented in both common mmc driver and fsl_esdhc driver. However it is proper to move these code to board files and do it during board initialization. The FPGA registers are also board specific. This patc

[PATCH 4/4] configs: lx2160aqds: enable CONFIG_BOARD_EARLY_INIT_R

2020-06-17 Thread Yangbo Lu
Enable CONFIG_BOARD_EARLY_INIT_R for SDHC adapter card identification and configuration. Signed-off-by: Yangbo Lu --- configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160aqds_tfa_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/lx2160aqds_tfa_SECU

[PATCH 0/4] Move eSDHC adapter card code to board files

2020-06-17 Thread Yangbo Lu
The eSDHC adapter card identification and multiplexing configuration through FPGA had been implemented in both common mmc driver and fsl_esdhc driver. However it is proper to move these code to board files and do it during board initialization. The FPGA registers are also board specific. This patc

[PATCH 1/4] Drop global data sdhc_adapter for powerpc

2020-06-17 Thread Yangbo Lu
The sdhc_adapter of global data has not been used, and we do not have to use it as global data even we may need it in the future. Signed-off-by: Yangbo Lu --- arch/powerpc/include/asm/global_data.h | 4 +--- drivers/mmc/fsl_esdhc.c| 1 - 2 files changed, 1 insertion(+), 4 deletio

[PATCH 3/4] board: fsl: lx2160aqds: identify SDHC adapter during board init

2020-06-17 Thread Yangbo Lu
Add support for SDHC adapter identification and configuration during board init. Signed-off-by: Yangbo Lu --- board/freescale/common/qixis.h| 11 ++- board/freescale/lx2160a/lx2160a.c | 36 ++-- 2 files changed, 44 insertions(+), 3 deletions(-) diff -

Re: [PATCH for v2020.10 1/1] cmd: drop fitupd command

2020-06-17 Thread Lukasz Majewski
On Wed, 17 Jun 2020 11:09:03 +0200 Heinrich Schuchardt wrote: > The `fitupd' command is not used by any board. The `dfu tftp' command > provides the same capabilities. > > So let's drop the `fitupd' command. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/Kconfig| 7 --- > cmd

[PATCH for v2020.10 1/1] cmd: drop fitupd command

2020-06-17 Thread Heinrich Schuchardt
The `fitupd' command is not used by any board. The `dfu tftp' command provides the same capabilities. So let's drop the `fitupd' command. Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig| 7 --- cmd/Makefile | 1 - cmd/fitupd.c | 30 -- do

Re: [PATCHv2 24/31] arm: imx: Finish migration from CONFIG_SECURE_BOOT to CONFIG_IMX_HAB

2020-06-17 Thread Stefano Babic
On 17.06.20 01:06, Tom Rini wrote: > There are a few remaining places where we say CONFIG_SECURE_BOOT rather > than CONFIG_IMX HAB. Update these instances. > > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot Team > Cc: Eddy Petrișor > Cc: Shawn Guo > Cc: Priyanka Jain > Fixes: d

Re: [PATCHv2 26/31] arm: imx: Finish migration of CONFIG_CSF_SIZE to Kconfig

2020-06-17 Thread Stefano Babic
On 17.06.20 01:06, Tom Rini wrote: > While in most cases CSF_SIZE is handled via Kconfig we have some i.MX8M > platforms that set the size based on the now-renamed CONFIG_SECURE_BOOT > symbol. Update things so that CSF_SIZE itself depends on IMX_HAB being > enabled and provide the default value fo

Re: [PATCH v2 1/2] drivers: gpio: Add a managed API to get a GPIO from the device-tree

2020-06-17 Thread Pratyush Yadav
On 16/06/20 05:37PM, Simon Glass wrote: > Hi Pratyush, > > On Fri, 29 May 2020 at 15:38, Pratyush Yadav wrote: > > > > From: Jean-Jacques Hiblot > > > > Add managed functions to get a gpio from the devce-tree, based on a > > property name (minus the '-gpios' suffix) and optionally an index. > >

Re: [PATCH v2 8/8] board: ns3: start sp805 watchdog service

2020-06-17 Thread Rayagonda Kokatanur
Hi Stefan, On Thu, Jun 11, 2020 at 4:19 PM Stefan Roese wrote: > > Hi Rayagonda, > > On 10.06.20 18:35, Rayagonda Kokatanur wrote: > > Hi Stefan, > > > > On Wed, Jun 10, 2020 at 4:33 PM Stefan Roese wrote: > >> > >> On 10.06.20 12:52, Rayagonda Kokatanur wrote: > >>> Start sp805 watchdog service

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-17 Thread Michael Walle
Am 2020-06-16 23:57, schrieb Vladimir Oltean: On Wed, 17 Jun 2020 at 00:35, Tom Rini wrote: On Tue, Jun 16, 2020 at 11:37:17PM +0300, Vladimir Oltean wrote: > On Tue, 16 Jun 2020 at 23:31, Tom Rini wrote: > > > > On Tue, Jun 16, 2020 at 11:21:08PM +0300, Vladimir Oltean wrote: > > > On Tue, 1

Re: [PATCH] video: vidconsole: avoid multiple lines overwrite logo

2020-06-17 Thread Jagan Teki
On Wed, Jun 10, 2020 at 3:22 PM Ye Li wrote: > > Fix the bug that multiple lines wraps to overwrite logo bmp > display. > > Signed-off-by: Ye Li > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki # bpi-m1+, bpi-m64

Re: [PATCH] video: bmp: Support 8bits BMP to 24/32 bits display

2020-06-17 Thread Jagan Teki
On Wed, Jun 10, 2020 at 3:23 PM Ye Li wrote: > > Update video bmp codes to support 8 bits BMP to 32 bits conversion > so that we can display 8 bits logo on 24 bits or 32 bits display > > Signed-off-by: Ye Li > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki # bpi-m1+, bpi-m64

Re: [PATCH] splash: Fix build warning on 64 bits CPU

2020-06-17 Thread Jagan Teki
On Wed, Jun 10, 2020 at 3:23 PM Ye Li wrote: > > Get below warning on ARM64 platform, because the bmp_load_addr > is defined to u32. > > common/splash.c: In function ‘splash_video_logo_load’: > common/splash.c:74:9: warning: cast to pointer from integer > of different size [-Wint-to-pointer-cast]

Re: [RFC PATCH 1/4] common/image.c: image_decomp: put IH_COMP_XXX cases inside ifndef USE_HOSTCC

2020-06-17 Thread Rasmus Villemoes
On 17/06/2020 05.11, Simon Glass wrote: > Hi Rasmus, > > On Fri, 12 Jun 2020 at 05:02, Rasmus Villemoes > wrote: >> >> When building host tools, the CONFIG_GZIP etc. symbols are not defined >> anyway, so this does not (should not) change anything [1]. However, >> since the host tools also don't i