Re: [PATCH v1] i2c: octeon_i2c: Add I2C controller driver for Octeon

2020-05-25 Thread Stefan Roese
Hi Heiko, On 19.05.20 08:07, Heiko Schocher wrote: Hello Stefan, Am 14.05.2020 um 09:23 schrieb Stefan Roese: From: Suneel Garapati Add support for I2C controllers found on Octeon II/III and Octeon TX TX2 SoC platforms. Signed-off-by: Aaron Williams Signed-off-by: Suneel Garapati Signed-o

RE: [PATCH v12 01/18] misc: add driver for the SiFive otp controller

2020-05-25 Thread Pragnesh Patel
Hi Simon, >-Original Message- >From: Simon Glass >Sent: 26 May 2020 03:15 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; Palmer Dabbelt ; Bin >Meng ; Paul Walmsley ; >Jagan Teki ; Anup Patel >; Sagar Kadam ; rick >; Tero Kristo ; Heiko Stuebner >; Finley Xiao chips.com>; A

Re: [PATCH v6 00/16] Add Rockchip RK3399 USB3.0 Host support

2020-05-25 Thread Jagan Teki
On Tue, May 26, 2020 at 9:02 AM Frank Wang wrote: > > This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host support. > > The function has been tested pass on rk3399-evb and roc-rk3399-pc board. > > For V6 update: > - Use [PATCH v6 04/16] instead of [PATCH v5 05/16] to fix that the c

Re: [PATCH v5 00/16] Add Rockchip RK3399 USB3.0 Host support

2020-05-25 Thread Jagan Teki
On Mon, May 25, 2020 at 3:06 PM Marcin Juszkiewicz wrote: > > W dniu 25.05.2020 o 11:32, Jagan Teki pisze: > > On Mon, May 25, 2020 at 2:57 PM Marcin Juszkiewicz > > >> No - "scanning bus dwc3 for devices... cannot reset port 1!?" every time > >> and devices plugged into usb-c are ignored. > > > >

Re: [PATCH v6 04/16] arm: mach-rockchip: bind sub-nodes for rk3399_syscon

2020-05-25 Thread Jagan Teki
On Tue, May 26, 2020 at 9:02 AM Frank Wang wrote: > > There are some sub-nodes under the grf DT, so add bind callback > function in rk3399 syscon driver to scan them recursively. > > Signed-off-by: Frank Wang > --- > arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 3 +++ > 1 file changed, 3 inse

Re: [PATCH v6 12/16] usb: dwc3: add make compatible for rockchip platform

2020-05-25 Thread Jagan Teki
On Tue, May 26, 2020 at 9:04 AM Frank Wang wrote: > > RK3399 Type-C PHY is required that must hold whole USB3.0 OTG controller > in resetting to hold pipe power state in P2 before initializing the PHY. > This commit fixed it and added device compatible for rockchip platform. > > Signed-off-by: Fra

Re: [PATCH v5 05/16] arm64: dts: rk3399: Move u2phy into root port

2020-05-25 Thread Frank Wang
Hi Jagan, Kever, On 2020/5/15 10:40, Kever Yang wrote: Hi Jagan, Frank, On 2020/5/13 下午3:15, Frank Wang wrote: From: Jagan Teki Yes, This is changing the actual device tree u2phy structure but the problem with the current Generic PHY subsystem is unable to find PHY if the PHY node is not par

[PATCH v6 16/16] roc-rk3399-pc: Enable USB3.0 Host

2020-05-25 Thread Frank Wang
From: Jagan Teki Enable USB3.0 Host support for ROC-RK3399-PC boards. Tested USB3.0 SSD on Type C1 port on board. => usb start starting USB... Bus usb@fe38: USB EHCI 1.00 Bus usb@fe3c: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controlle

[PATCH v6 12/16] usb: dwc3: add make compatible for rockchip platform

2020-05-25 Thread Frank Wang
RK3399 Type-C PHY is required that must hold whole USB3.0 OTG controller in resetting to hold pipe power state in P2 before initializing the PHY. This commit fixed it and added device compatible for rockchip platform. Signed-off-by: Frank Wang Signed-off-by: Jagan Teki Reviewed-by: Kever Yang -

[PATCH v6 13/16] driver: usb: drop legacy rockchip xhci driver

2020-05-25 Thread Frank Wang
We have changed to use dwc3 generic driver for usb3.0 host, so the legacy Rockchip's xHCI driver is not needed, and drop it. Signed-off-by: Frank Wang Reviewed-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/usb/host/Kconfig | 9 -- drivers/usb/host/Makefile| 1 - driver

[PATCH v6 15/16] configs: evb-rk3399: update support usb3.0 host

2020-05-25 Thread Frank Wang
Update evb-rk3399 default config to support USB3.0 Host. Signed-off-by: Frank Wang Reviewed-by: Jagan Teki Reviewed-by: Kever Yang --- configs/evb-rk3399_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 7f14e1

[PATCH v6 14/16] ARM: dts: rk3399-evb: usb3.0 host support

2020-05-25 Thread Frank Wang
Configure 'tcphy1' and 'usbdrd_dwc3_1' nodes to support USB3.0 host for Rockchip RK3399 Evaluation Board. Signed-off-by: Frank Wang Reviewed-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/rk3399-evb-u-boot.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/ar

[PATCH v6 10/16] usb: dwc3: Enable AutoRetry feature in the controller

2020-05-25 Thread Frank Wang
From: Jagan Teki By default when core sees any transaction error (CRC or overflow) it replies with terminating retry ACK (Retry=1 and Nump == 0). Enabling this Auto Retry feature in controller will make the core send a non-terminanting ACK upon such transaction errors. That is, ACK TP with Retry

[PATCH v6 11/16] usb: dwc3: amend UTMI/UTMIW phy interface setup

2020-05-25 Thread Frank Wang
Let move 8/16-bit UTMI+ interface initialization into DWC3 core init that is convenient for both DM_USB and u-boot traditional process. Signed-off-by: Frank Wang Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/usb/common/common.c | 25 ++ drivers/usb/dwc3/core.c |

[PATCH v6 07/16] usb: dwc3: add dis_enblslpm_quirk

2020-05-25 Thread Frank Wang
Add a quirk to clear the GUSB2PHYCFG.ENBLSLPM bit, which controls whether the PHY receives the suspend signal from the controller. Refer to commit ec791d149bca("usb: dwc3: Add dis_enblslpm_quirk") in Linux Kernel. Signed-off-by: Frank Wang Reviewed-by: Kever Yang Reviewed-by: Jagan Teki Tested

[PATCH v6 09/16] usb: dwc3: Add disable u2mac linestate check quirk

2020-05-25 Thread Frank Wang
From: Jagan Teki This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Refer the dwc3 databook, we can use it for some special platforms if the linestate not reflect the expected line state(J) during transmission. When use this quirk, the controller implements a fixe

[PATCH v6 05/16] phy: rockchip: Add Rockchip USB2PHY driver

2020-05-25 Thread Frank Wang
From: Jagan Teki Add Rockchip USB2PHY driver with initial support. This will help to use it for EHCI controller in host mode, and USB 3.0 controller in otg mode. More functionality like charge, vbus detection will add it in future changes. Signed-off-by: Jagan Teki Signed-off-by: Frank Wang

[PATCH v6 06/16] phy: rockchip: Add Rockchip USB TypeC PHY driver

2020-05-25 Thread Frank Wang
From: Jagan Teki Add USB TYPEC PHY driver for rockchip platform. Referenced from Linux TypeC PHY driver, currently supporting usb3-port and dp-port need to add it in the future. Signed-off-by: Frank Wang Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/phy/rockchip/Kconfig

[PATCH v6 08/16] usb: dwc3: add dis_u2_freeclk_exists_quirk

2020-05-25 Thread Frank Wang
Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active. Refer to commit 27f83eeb6b42("usb: dwc3: add dis_u2_freeclk_exists_quirk") in Linux Rockchip Kernel. Signed

[PATCH v6 04/16] arm: mach-rockchip: bind sub-nodes for rk3399_syscon

2020-05-25 Thread Frank Wang
There are some sub-nodes under the grf DT, so add bind callback function in rk3399 syscon driver to scan them recursively. Signed-off-by: Frank Wang --- arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3399/syscon_rk339

[PATCH v6 03/16] clk: rk3399: Enable/Disable TCPHY clocks

2020-05-25 Thread Frank Wang
From: Jagan Teki Enable/Disable TCPHY clock for rk3399 platform. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk_rk3399.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_

[PATCH v6 00/16] Add Rockchip RK3399 USB3.0 Host support

2020-05-25 Thread Frank Wang
This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host support. The function has been tested pass on rk3399-evb and roc-rk3399-pc board. For V6 update: - Use [PATCH v6 04/16] instead of [PATCH v5 05/16] to fix that the current Generic PHY subsystem is unable to find PHY if the PH

[PATCH v6 02/16] clk: rk3399: Set empty for TCPHY assigned-clocks

2020-05-25 Thread Frank Wang
From: Jagan Teki Due to v5.7-rc1 sync the SD controller nodes in rk3399.dtsi have SCLK_UPHY0_TCPDCORE, SCLK_UPHY1_TCPDCORE assigned-clocks which are usually required for Linux and don't require to handle them in U-Boot. assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>; assigned-clocks = <&cru SC

[PATCH v6 01/16] clk: rk3399: Enable/Disable the USB2PHY clk

2020-05-25 Thread Frank Wang
From: Jagan Teki Enable/Disable the USB2PHY clk for rk3399. CLK is clear in enable and set in disable functionality. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk_rk3399.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/clk/rockchip/

[PATCH 3/5] ARM: dts: stm32: Add alternate pinmux for I2C2 pins

2020-05-25 Thread Marek Vasut
Add another mux option for I2C2 pins, this is used on AV96 board. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/stm32mp15-pinctrl.dtsi b/arch/arm/d

[PATCH 5/5] ARM: dts: stm32: Disable SDR104 mode on AV96

2020-05-25 Thread Marek Vasut
Disable SDR104 mode until we know it is really stable. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm/dts/stm32mp15xx-dhcor-avenger96.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/stm32mp15xx-dhcor-avenger96.dts b/arch/arm/dts/stm32mp15x

[PATCH 2/5] ARM: stm32: Hog GPIO PF7 high on DHCOR to unlock SPI NOR nWP

2020-05-25 Thread Marek Vasut
The SPI NOR nWP line is connected to GPIO PF7 on the SoM, pull the GPIO line high by default to clear SPI NOR WP. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm/dts/stm32mp15xx-dhcor-u-boot.dtsi | 9 + configs/stm32mp15_dhcor_basic_defconfig| 1 +

[PATCH 1/5] ARM: stm32: Re-enable KS8851 on DHCOM

2020-05-25 Thread Marek Vasut
Since the KS8851 driver is now in, enable the Kconfig entry on DHCOM to make the second ethernet available. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- configs/stm32mp15_dhcom_basic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp15_dhco

[PATCH 4/5] ARM: dts: stm32: Repair I2C2 operation on AV96

2020-05-25 Thread Marek Vasut
The I2C2 uses different pinmux on AV96, use correct pinmux and also add comments about the I2C being present on the "low-speed" expansion connector X6. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm/dts/stm32mp15xx-dhcor-avenger96.dts | 6 +++--- 1 file change

RE: [PATCH u-boot v2 1/2] eth/r8152: fix assigning the wrong endpoint

2020-05-25 Thread Hayes Wang
Marek Vasut [mailto:ma...@denx.de] > Sent: Monday, May 25, 2020 9:01 PM [...] > > Excuse me. I test v1 only. > > Do I have to resend v1 for patch #1? > > I'll pick V1, no worries. Thanks. Best Regards, Hayes

RE: [PATCH] armv8: cache_v8: fix mmu_set_region_dcache_behaviour

2020-05-25 Thread Peng Fan
> Subject: Re: [PATCH] armv8: cache_v8: fix > mmu_set_region_dcache_behaviour > > On Mon, May 11, 2020 at 04:41:07PM +0800, Peng Fan wrote: > > > enum dcache_option already shift left 2 bits, PMD_ATTRINDX(option), > > will wrongly shift left the attr 4bits, which is wrong. And make the > > region

[ANN] U-Boot v2020.07-rc3 released

2020-05-25 Thread Tom Rini
Hey all, It's release day and I've tagged v2020.07-rc3. We're moving along nicely and should continue with prioritizing stabilization and obviously correct updates / migrations at this time. Once again, for a changelog, git log --merges v2020.07-rc2..v2020.07-rc3 and as always, I ask for more d

Re: [GIT PULL] TI changes for v2020.07-rc3

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 10:37:33PM +0530, Lokesh Vutla wrote: > Hi Tom, > Please find the pull request for v2020.07-rc3 containing TI specific > changes. > > Travis-CI build: > https://travis-ci.org/github/lokeshvutla/u-boot/builds/690912492 > > Thanks and regards, > Lokesh > > The foll

[PATCH 8/8] imx: convert mx53loco board to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin Cc: Jason Liu --- configs/mx53loco_defconfig | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configs/mx53loco

[PATCH 7/8] imx: convert mx51evk board to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin Cc: Stefano Babic --- configs/mx51evk_defconfig | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configs/mx51e

[PATCH 1/8] imx: convert embest boards to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfigs to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin --- configs/marsboard_defconfig | 9 +++-- configs/riotboard_defconfig | 9 +++-- configs/riotboard_spl_defconfig | 9

[PATCH 3/8] imx: convert dms-ba16 boards to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfigs to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin Cc: Akshay Bhat Cc: Ken Lin --- configs/dms-ba16-1g_defconfig| 9 +++-- configs/dms-ba16_defconfig | 9 +++--

[PATCH 2/8] imx: convert pico-imx6 to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin Cc: Fabio Estevam --- configs/pico-imx6_defconfig | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/pico-imx6_defconfig b/configs/pico-imx6_defconfig i

[PATCH 5/8] imx: convert mx6cuboxi board to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin Cc: Baruch Siach Cc: Fabio Estevam --- configs/mx6cuboxi_defconfig | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) dif

[PATCH 6/8] imx: convert gwventana board to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfigs to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin Cc: Tim Harvey --- configs/gwventana_emmc_defconfig | 9 +++-- configs/gwventana_gw5904_defconfig | 9 +++-- configs/gwventana_

[PATCH 4/8] imx: convert cgtqmx6eval board to DM_VIDEO

2020-05-25 Thread Anatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin Cc: Otavio Salvador --- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 5 + configs/cgtqmx6eval_defconfig| 9 +++-- 2 file

Re: [PATCH 2/2] sf: Simplify probe for dm code

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 03:48:22PM -0600, Simon Glass wrote: > Hi Jagan, > > On Mon, 25 May 2020 at 02:14, Jagan Teki wrote: > > > > Hi Simon, > > > > On Fri, May 22, 2020 at 10:20 PM Simon Glass wrote: > > > > > > Hi Jagan, > > > > > > On Fri, 22 May 2020 at 08:41, Jagan Teki > > > wrote: > >

[PATCH] video: make backlight and panel drivers optional

2020-05-25 Thread Anatolij Gustschin
Not all boards use these drivers, so allow to disable them to fix building boards with U-Boot binary image size restrictions. Signed-off-by: Anatolij Gustschin --- drivers/video/Kconfig | 27 +-- drivers/video/Makefile | 5 +++-- 2 files changed, 28 insertions(+), 4 del

[PATCH] video: ipuv3: fix building with disabled panel driver

2020-05-25 Thread Anatolij Gustschin
Panel code might be disabled for some boards, make this driver code optional. Signed-off-by: Anatolij Gustschin --- drivers/video/imx/mxc_ipuv3_fb.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c

Re: [PATCH] video: make vidconsole commands optional

2020-05-25 Thread Simon Glass
Hi Anatolij, On Mon, 25 May 2020 at 15:45, Anatolij Gustschin wrote: > > Hi Simon, > > On Mon, 25 May 2020 15:37:33 -0600 > Simon Glass s...@chromium.org wrote: > ... > > > optional to recude binary size. > > > > reduce > > I'll fix it in v2, thanks! > > > Which board is this? I'd just like to ch

Re: [PATCH 2/2] sf: Simplify probe for dm code

2020-05-25 Thread Simon Glass
Hi Jagan, On Mon, 25 May 2020 at 02:14, Jagan Teki wrote: > > Hi Simon, > > On Fri, May 22, 2020 at 10:20 PM Simon Glass wrote: > > > > Hi Jagan, > > > > On Fri, 22 May 2020 at 08:41, Jagan Teki wrote: > > > > > > Hi Simon, > > > > > > On Fri, May 22, 2020 at 7:55 PM Simon Glass wrote: > > > >

Re: [PATCH v12 01/18] misc: add driver for the SiFive otp controller

2020-05-25 Thread Simon Glass
Hi Pragnesh, On Mon, 25 May 2020 at 01:34, Pragnesh Patel wrote: > > Added a misc driver to handle OTP memory in SiFive SoCs. > > Signed-off-by: Pragnesh Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > Reviewed-by: Jagan Teki > Tested-by: Jagan Teki > --- > drivers/misc/Kconfig |

Re: [PATCH] video: make vidconsole commands optional

2020-05-25 Thread Anatolij Gustschin
Hi Simon, On Mon, 25 May 2020 15:37:33 -0600 Simon Glass s...@chromium.org wrote: ... > > optional to recude binary size. > > reduce I'll fix it in v2, thanks! > Which board is this? I'd just like to check that it is expected. this is tbs2910 board which makes most trouble currently. I'm try

Re: [PATCH] RFC: tiny-dm: Proposal for using driver model in SPL

2020-05-25 Thread Simon Glass
Hi Tom, On Mon, 25 May 2020 at 14:57, Tom Rini wrote: > > On Mon, May 25, 2020 at 02:34:20PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 25 May 2020 at 13:47, Tom Rini wrote: > > > > > > On Mon, May 25, 2020 at 09:35:44AM -0600, Simon Glass wrote: > > > > > > > This patch provides the

Re: [PATCH v4 2/9] usb: xhci: Use only 32-bit accesses in xhci_writeq/xhci_readq

2020-05-25 Thread Simon Glass
Hi Sylwester, On Mon, 25 May 2020 at 11:42, Sylwester Nawrocki wrote: > > Hi Simon, > > On 25.05.2020 19:04, Simon Glass wrote: > > On Mon, 25 May 2020 at 10:57, Sylwester Nawrocki > > wrote: > >> On 25.05.2020 16:57, Simon Glass wrote: > >>> On Mon, 25 May 2020 at 05:40, Sylwester Nawrocki >

Re: [PATCH] video: make vidconsole commands optional

2020-05-25 Thread Simon Glass
Hi Anatolij, On Mon, 25 May 2020 at 13:47, Anatolij Gustschin wrote: > > Converting some boards to DM_VIDEO results in build breakage due > to increased code size. Make video console specific commands > optional to recude binary size. reduce Which board is this? I'd just like to check that it i

Re: [PATCH] RFC: tiny-dm: Proposal for using driver model in SPL

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 02:34:20PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 25 May 2020 at 13:47, Tom Rini wrote: > > > > On Mon, May 25, 2020 at 09:35:44AM -0600, Simon Glass wrote: > > > > > This patch provides the documentation for a proposed enhancement to driver > > > model to reduce

Re: [PATCH v2 2/2] spl: add fixed memory node in target fdt also when loading ATF

2020-05-25 Thread Philipp Tomsich
> On 25.05.2020, at 19:57, Heiko Stuebner wrote: > > From: Heiko Stuebner > > In a loading chain SPL -> ATF (->OP-TEE) -> U-Boot, ATF and a subsequent > OP-TEE will re-use the same fdt as the U-Boot target and may need the > information about usable memory ranges. > > Especially OP-TEE need

altera intel cyclone v / error: enabling full line of zeros but not enabled in Cortex-A9

2020-05-25 Thread Nico Becker
hi, i have an error message booting linux kernel v4.15 with the u-boot v2020.01 on an cylcone v with arm core. the error message is: L2C-310: enabling full line of zeros but not enabled in Cortex-A9, that is not a warning or an message it is an error. before the update to the version v2020.01

Re: [PATCH v5 4/8] lib: rsa: fix allocated size for rr and rrtmp in rsa_gen_key_prop()

2020-05-25 Thread Philipp Tomsich
> On 22.05.2020, at 16:19, Heiko Stuebner wrote: > > From: Heiko Stuebner > > When calculating rrtmp/rr rsa_gen_key_prop() tries to make > (((rlen + 31) >> 5) + 1) steps in the rr uint32_t array and > (((rlen + 7) >> 3) + 1) / 4 steps in uint32_t rrtmp[] > with rlen being num_bits * 2 > > O

Re: [PATCH] RFC: tiny-dm: Proposal for using driver model in SPL

2020-05-25 Thread Simon Glass
Hi Tom, On Mon, 25 May 2020 at 13:47, Tom Rini wrote: > > On Mon, May 25, 2020 at 09:35:44AM -0600, Simon Glass wrote: > > > This patch provides the documentation for a proposed enhancement to driver > > model to reduce overhead in SPL. > > > > The actual patches are not included here because the

[RFC PATCH] imx: skip unused compatible strings in drivers

2020-05-25 Thread Anatolij Gustschin
Converting to DM increases binary size and breaks building some boards (i.e. tbs2910, gcc 9.2). The approach to address this issue via cutting off unused properties/nodes in device tree via custom u-boot.dtsi was not welcome, even if the affected boards do not pass the built-in device tree to the k

[PATCH 2/4] x86: apl: Add hex offsets for registers in FSP-M

2020-05-25 Thread Simon Glass
When comparing hex dumps it is useful to see the offsets of the registers. Add them in where they correspond to a multiple of 16. Possibly it would be useful to have a a command to output the FSP values in human-readable form, making use of the fsp_bindings implementation. Signed-off-by: Simon Gl

[PATCH 1/4] x86: coral: Correct some FSP-M settings

2020-05-25 Thread Simon Glass
Some settings were modified slightly in the device-tree conversion. Return these to their original values. Signed-off-by: Simon Glass --- arch/x86/dts/chromebook_coral.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/dts/chromebook_coral.dts b/arch/x86/dts/chromebook_coral

[PATCH 3/4] x86: coral: Correct some FSP-S settings

2020-05-25 Thread Simon Glass
Some settings were modified slightly in the device-tree conversion. Return these to their original values. This makes WiFi work again. Signed-off-by: Simon Glass --- arch/x86/dts/chromebook_coral.dts | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/x86/dts/chr

[PATCH 4/4] x86: apl: Add hex offsets for registers in FSP-S

2020-05-25 Thread Simon Glass
When comparing hex dumps it is useful to see the offsets of the registers. Add them in where they correspond to a multiple of 16. Possibly it would be useful to have a a command to output the FSP values in human-readable form, making use of the fsp_bindings implementation. Signed-off-by: Simon Gl

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 09:59:32PM +0200, Marek Vasut wrote: > On 5/25/20 9:55 PM, Tom Rini wrote: > > On Mon, May 25, 2020 at 09:48:29PM +0200, Marek Vasut wrote: > >> On 5/25/20 9:28 PM, Tom Rini wrote: > >>> On Mon, May 25, 2020 at 09:07:54PM +0200, Marek Vasut wrote: > On 5/25/20 7:32 PM,

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Marek Vasut
On 5/25/20 9:55 PM, Tom Rini wrote: > On Mon, May 25, 2020 at 09:48:29PM +0200, Marek Vasut wrote: >> On 5/25/20 9:28 PM, Tom Rini wrote: >>> On Mon, May 25, 2020 at 09:07:54PM +0200, Marek Vasut wrote: On 5/25/20 7:32 PM, Tom Rini wrote: > On Mon, May 25, 2020 at 10:58:12PM +0530, Jagan T

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 09:48:29PM +0200, Marek Vasut wrote: > On 5/25/20 9:28 PM, Tom Rini wrote: > > On Mon, May 25, 2020 at 09:07:54PM +0200, Marek Vasut wrote: > >> On 5/25/20 7:32 PM, Tom Rini wrote: > >>> On Mon, May 25, 2020 at 10:58:12PM +0530, Jagan Teki wrote: > On Mon, May 25, 2020

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Marek Vasut
On 5/25/20 9:28 PM, Tom Rini wrote: > On Mon, May 25, 2020 at 09:07:54PM +0200, Marek Vasut wrote: >> On 5/25/20 7:32 PM, Tom Rini wrote: >>> On Mon, May 25, 2020 at 10:58:12PM +0530, Jagan Teki wrote: On Mon, May 25, 2020 at 9:06 PM Simon Glass wrote: > > Hi, > > On Mon, 25 M

Re: [PATCH] RFC: tiny-dm: Proposal for using driver model in SPL

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 09:35:44AM -0600, Simon Glass wrote: > This patch provides the documentation for a proposed enhancement to driver > model to reduce overhead in SPL. > > The actual patches are not included here because they are based on some > pending work by Walter Lozano which is not in

[PATCH] video: make vidconsole commands optional

2020-05-25 Thread Anatolij Gustschin
Converting some boards to DM_VIDEO results in build breakage due to increased code size. Make video console specific commands optional to recude binary size. Signed-off-by: Anatolij Gustschin --- drivers/video/Kconfig | 8 drivers/video/vidconsole-uclass.c | 2 ++ 2 files ch

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 09:07:54PM +0200, Marek Vasut wrote: > On 5/25/20 7:32 PM, Tom Rini wrote: > > On Mon, May 25, 2020 at 10:58:12PM +0530, Jagan Teki wrote: > >> On Mon, May 25, 2020 at 9:06 PM Simon Glass wrote: > >>> > >>> Hi, > >>> > >>> On Mon, 25 May 2020 at 04:35, Marek Vasut wrote: >

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Marek Vasut
On 5/25/20 7:32 PM, Tom Rini wrote: > On Mon, May 25, 2020 at 10:58:12PM +0530, Jagan Teki wrote: >> On Mon, May 25, 2020 at 9:06 PM Simon Glass wrote: >>> >>> Hi, >>> >>> On Mon, 25 May 2020 at 04:35, Marek Vasut wrote: On 5/25/20 10:44 AM, Jagan Teki wrote: > SPL has a foot-print

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Marek Vasut
On 5/25/20 6:59 PM, Simon Glass wrote: > Hi Marek, > > On Mon, 25 May 2020 at 09:56, Marek Vasut wrote: >> >> On 5/25/20 5:48 PM, Simon Glass wrote: >>> Hi Marek, >>> >>> On Mon, 25 May 2020 at 09:43, Marek Vasut wrote: On 5/25/20 5:36 PM, Simon Glass wrote: > Hi, > > On Mo

[PATCH] rockchip: enable USB OHCI host for RockPro64

2020-05-25 Thread Marcin Juszkiewicz
U-Boot has video output enabled so time to get keyboard working. => usb reset;usb tree resetting USB... Bus usb@fe38: USB EHCI 1.00 Bus usb@fe3a: USB OHCI 1.0 Bus usb@fe3c: USB EHCI 1.00 Bus usb@fe3e: USB OHCI 1.0 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 St

Re: [PATCH 1/1] doc: dfu: describe more DFU function

2020-05-25 Thread Tom Rini
On Sat, May 23, 2020 at 02:24:40PM +0200, Heinrich Schuchardt wrote: > Add some of the missing DFU function descriptions. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] doc: dfu: add DFU to HTML documentation

2020-05-25 Thread Tom Rini
On Sat, May 23, 2020 at 12:01:08PM +0200, Heinrich Schuchardt wrote: > Add the device firmware update functions to the generated HTML > documentation. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 1/1] doc: dfu: fix typos in README.dfu

2020-05-25 Thread Tom Rini
On Sat, May 23, 2020 at 01:48:07PM +0200, Heinrich Schuchardt wrote: > Fix some typos. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] MAINTAINERS: add dfu.h and dfu.rst to DFU

2020-05-25 Thread Tom Rini
On Sun, May 24, 2020 at 12:02:14PM +0200, Heinrich Schuchardt wrote: > include/dfu.h and doc/api/dfu.rst belong to the device firmware update > sub-system. So let's add them to DFU in MAINTAINERS. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Lukasz Majewski Applied to u-boot/master, than

Re: [PATCH 1/1] doc: dfu: describe eMMC partition number parameter

2020-05-25 Thread Tom Rini
On Sat, May 23, 2020 at 11:36:49AM +0200, Heinrich Schuchardt wrote: > In dfu_alt_info for eMMC the eMMC partition number can be specified. > > The separator in dfu_alt_info is a semicolon not a comma. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Lukasz Majewski Applied to u-boot/master

Re: [PATCH 4/4] sandbox: move compression option to Kconfig

2020-05-25 Thread Tom Rini
On Fri, May 22, 2020 at 02:07:38PM +0200, Michael Walle wrote: > CONFIG_BZIP2 and CONFIG_GZIP_COMPRESSED are Kconfig options. Select them > by CONFIG_SANDBOX instead of setting them in configs/sandbox.h. > > Signed-off-by: Michael Walle > Reviewed-by: Simon Glass Applied to u-boot/master, than

Re: [PATCH 2/4] cmd: zip: automatically pull in gzip()

2020-05-25 Thread Tom Rini
On Fri, May 22, 2020 at 02:07:36PM +0200, Michael Walle wrote: > Move the CONFIG_GZIP_COMPRESSED from a config.h macro to a Kconfig menu > item. It is not selectable by a user because there is no reason to do > so. Instead it will be automatically selected by the stuff which uses > gzip(), like th

Re: [PATCH 3/4] cmd: zip: fix implicit declaration warning

2020-05-25 Thread Tom Rini
On Fri, May 22, 2020 at 02:07:37PM +0200, Michael Walle wrote: > Fix the following warning: > > cmd/zip.c: In function ‘do_zip’: > cmd/zip.c:30:6: warning: implicit declaration of function ‘gzip’; did you > mean ‘do_zip’? [-Wimplicit-function-declaration] > if (gzip((void *) dst, &dst_len, (vo

Re: [PATCH] env: Convert ENV_ACCESS_IGNORE_FORCE to Kconfig

2020-05-25 Thread Tom Rini
On Fri, May 22, 2020 at 01:10:14AM +0200, Marek Vasut wrote: > Convert ENV_ACCESS_IGNORE_FORCE to Kconfig, no functional change. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] tools/env/fw_env.h: remove env.h

2020-05-25 Thread Tom Rini
On Thu, May 21, 2020 at 11:22:06PM +0200, Romain Naour wrote: > As reported by Nicolas Carrier on the Buildroot mailing list [1], > there is a new build issue while building a program which interacts with > the u-boot environment. This program uses the headers of the ubootenv > library provided by

Re: [PATCH] Convert CONFIG_CMD_MMC to Kconfig

2020-05-25 Thread Tom Rini
On Thu, May 21, 2020 at 04:26:03PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_CMD_MMC > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/4] cmd: unzip: automatically select CONFIG_GZIP

2020-05-25 Thread Tom Rini
On Fri, May 22, 2020 at 02:07:35PM +0200, Michael Walle wrote: > unzip calls gzwrite() which is provided in lib/gunzip.c. Make sure it is > automatically pulled in if the user selects CMD_UNZIP. > > Signed-off-by: Michael Walle > Reviewed-by: Heinrich Schuchardt Applied to u-boot/master, thank

Re: [PATCH 1/1] MAINTAINERS: add doc/driver-model/ to DRIVER MODEL

2020-05-25 Thread Tom Rini
On Wed, May 20, 2020 at 11:24:52PM +0200, Heinrich Schuchardt wrote: > The documentation should rest with the same maintainer as the code. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] phy: Fix possible NULL pointer deference

2020-05-25 Thread Tom Rini
On Wed, May 20, 2020 at 10:35:41PM +0530, Vignesh Raghavendra wrote: > It is possible that users of generic_phy_*() APIs may pass a valid > struct phy pointer but phy->dev can be NULL, leading to NULL pointer > deference in phy_dev_ops(). > > So call generic_phy_valid() to verify that phy and phy

Re: [PATCH] armv8: cache_v8: fix mmu_set_region_dcache_behaviour

2020-05-25 Thread Tom Rini
On Mon, May 11, 2020 at 04:41:07PM +0800, Peng Fan wrote: > enum dcache_option already shift left 2 bits, > PMD_ATTRINDX(option), will wrongly shift left the attr 4bits, which > is wrong. And make the region user set not has expected attribute > and might affect the splitted block region. > > Rev

[PATCH v2 2/2] spl: add fixed memory node in target fdt also when loading ATF

2020-05-25 Thread Heiko Stuebner
From: Heiko Stuebner In a loading chain SPL -> ATF (->OP-TEE) -> U-Boot, ATF and a subsequent OP-TEE will re-use the same fdt as the U-Boot target and may need the information about usable memory ranges. Especially OP-TEE needs this to initialize dynamic shared memory (the only type U-Boot imple

[PATCH v2 1/2] rockchip: spl: do full dram_init instead of only probing

2020-05-25 Thread Heiko Stuebner
From: Heiko Stuebner Parts of later SPL may need RAM information as well, so do full dram_init() call, which includes the existing dram probing but also initializes the ram information in gd. dram_init() from sdram.c does the following steps: - uclass_get_device(UCLASS_RAM, ...) like the current

Re: [PATCH v4 2/9] usb: xhci: Use only 32-bit accesses in xhci_writeq/xhci_readq

2020-05-25 Thread Sylwester Nawrocki
Hi Simon, On 25.05.2020 19:04, Simon Glass wrote: > On Mon, 25 May 2020 at 10:57, Sylwester Nawrocki > wrote: >> On 25.05.2020 16:57, Simon Glass wrote: >>> On Mon, 25 May 2020 at 05:40, Sylwester Nawrocki >>> wrote: There might be hardware configurations where 64-bit data accesses >

Re: [RFC PATCH] mtd: spi: Drop redundent SPI flash driver

2020-05-25 Thread Jagan Teki
On Mon, May 25, 2020 at 10:34 PM Simon Glass wrote: > > Hi Jagan, > > On Thu, 14 May 2020 at 07:19, Jagan Teki wrote: > > > > UCLASS_SPI_FLASH driver at driver/mtd/spi is a generic > > spi flash driver to probe jedec,spi-nor flash chips. > > > > Technically a probe call in U_BOOT_DRIVER is local

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Tom Rini
On Mon, May 25, 2020 at 10:58:12PM +0530, Jagan Teki wrote: > On Mon, May 25, 2020 at 9:06 PM Simon Glass wrote: > > > > Hi, > > > > On Mon, 25 May 2020 at 04:35, Marek Vasut wrote: > > > > > > On 5/25/20 10:44 AM, Jagan Teki wrote: > > > > SPL has a foot-print constraint, so fully switching a pa

Re: [U-Boot] is it mandatory for SPL to support DM

2020-05-25 Thread Jagan Teki
On Mon, May 25, 2020 at 9:06 PM Simon Glass wrote: > > Hi, > > On Mon, 25 May 2020 at 04:35, Marek Vasut wrote: > > > > On 5/25/20 10:44 AM, Jagan Teki wrote: > > > SPL has a foot-print constraint, so fully switching a particular > > > subsystem like SPI or SPI Flash to DM would increase the size

Re: [PATCH v5 2/8] lib: rsa: take spl/non-spl into account when building rsa_verify_with_pkey()

2020-05-25 Thread Heiko Stübner
Am Freitag, 22. Mai 2020, 16:19:31 CEST schrieb Heiko Stuebner: > From: Heiko Stuebner > > Right now in multiple places there are only checks for the full > CONFIG_RSA_VERIFY_WITH_PKEY option, not split into main,spl,tpl variants. > > This breaks when the rsa functions get enabled for SPL, for e

Re: [PATCH v5 6/8] lib: rsa: add documentation to padding_pss_verify to document limitations

2020-05-25 Thread Heiko Stübner
Am Freitag, 22. Mai 2020, 16:19:35 CEST schrieb Heiko Stuebner: > From: Heiko Stuebner > > padding_pss_verify only works with the default pss salt setting of -2 > (length to be automatically determined based on the PSS block structure) > not -1 (salt length set to the maximum permissible value),

Re: [PATCH v5 3/8] lib: rsa: bring exp_len in line when generating a key_prop

2020-05-25 Thread Heiko Stübner
Am Freitag, 22. Mai 2020, 16:19:32 CEST schrieb Heiko Stuebner: > From: Heiko Stuebner > > The exponent field of struct key_prop gets allocated an uint64_t, > and the contents are positioned from the back, so an exponent of > "0x01 0x00 0x01" becomes 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1" > > Right no

Re: [PATCH v5 5/8] lib: rsa: free local arrays after use in rsa_gen_key_prop()

2020-05-25 Thread Heiko Stübner
Am Freitag, 22. Mai 2020, 16:19:34 CEST schrieb Heiko Stuebner: > From: Heiko Stuebner > > n, rr and rrtmp are used for internal calculations, but in the end > the results are copied into separately allocated elements of the > actual key_prop, so the n, rr and rrtmp elements are not used anymore

Re: [PATCH v5 4/8] lib: rsa: fix allocated size for rr and rrtmp in rsa_gen_key_prop()

2020-05-25 Thread Heiko Stübner
Am Freitag, 22. Mai 2020, 16:19:33 CEST schrieb Heiko Stuebner: > From: Heiko Stuebner > > When calculating rrtmp/rr rsa_gen_key_prop() tries to make > (((rlen + 31) >> 5) + 1) steps in the rr uint32_t array and > (((rlen + 7) >> 3) + 1) / 4 steps in uint32_t rrtmp[] > with rlen being num_bits *

[GIT PULL] TI changes for v2020.07-rc3

2020-05-25 Thread Lokesh Vutla
Hi Tom, Please find the pull request for v2020.07-rc3 containing TI specific changes. Travis-CI build: https://travis-ci.org/github/lokeshvutla/u-boot/builds/690912492 Thanks and regards, Lokesh The following changes since commit ed9a3aa6452f57af65eb74f73bd2a54c3a2f4b03: Merge tag '

Re: [PATCH v4 2/9] usb: xhci: Use only 32-bit accesses in xhci_writeq/xhci_readq

2020-05-25 Thread Simon Glass
Hi Sylwester, On Mon, 25 May 2020 at 10:57, Sylwester Nawrocki wrote: > > Hi Simon, > > On 25.05.2020 16:57, Simon Glass wrote: > > On Mon, 25 May 2020 at 05:40, Sylwester Nawrocki > > wrote: > >> > >> There might be hardware configurations where 64-bit data accesses > >> to XHCI registers are

Re: [RFC PATCH] mtd: spi: Drop redundent SPI flash driver

2020-05-25 Thread Simon Glass
Hi Jagan, On Thu, 14 May 2020 at 07:19, Jagan Teki wrote: > > UCLASS_SPI_FLASH driver at driver/mtd/spi is a generic > spi flash driver to probe jedec,spi-nor flash chips. > > Technically a probe call in U_BOOT_DRIVER is local to that > driver and not applicable to use it another driver or in > a

  1   2   3   >