Re: [PATCH] Add CONFIG_OF_SEPARATE in sifive_fu540_defconfig

2020-02-10 Thread Bin Meng
Hi Pragnesh, On Tue, Feb 11, 2020 at 2:53 PM Pragnesh Patel wrote: > > Added CONFIG_OF_SEPARATE again which removed by the following > commit 052170c6a043 ("configs: Resync with savedefconfig") > > Signed-off-by: Pragnesh Patel > --- > configs/sifive_fu540_defconfig | 1 + > 1 file changed, 1

Re: [PATCH 1/1] log: syslog driver

2020-02-10 Thread Heinrich Schuchardt
On 2/11/20 12:13 AM, Simon Glass wrote: Hi Heinrich, On Sat, 8 Feb 2020 at 18:35, Heinrich Schuchardt wrote: Provide a log driver that broadcasts RFC 3164 messages to syslog servers. rsyslog is one implementation of such a server. The messages are sent to the local broadcast address

[PATCH] Add CONFIG_OF_SEPARATE in sifive_fu540_defconfig

2020-02-10 Thread Pragnesh Patel
Added CONFIG_OF_SEPARATE again which removed by the following commit 052170c6a043 ("configs: Resync with savedefconfig") Signed-off-by: Pragnesh Patel --- configs/sifive_fu540_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sifive_fu540_defconfig

[Patch v2 1/3] mtd: spi-nor-ids: Enable SPI_NOR_OCTAL_READ flag for mt35xu*

2020-02-10 Thread Kuldeep Singh
Commit "658df8bd9464"(mtd: spi-nor-core: Add octal mode support) enables octal mode(1-1-8) support in spi-nor framework. mt35xu512aba and mt35xu02g supports SINGLE and OCTAL I/O. Hence, enable SPI_NOR_OCTAL_READ flag for these flashes. Signed-off-by: Kuldeep Singh --- v2: Reword commit message

[Patch v2 3/3] arm: dts: lx2160a: Add RX, TX buswidth in qspi to use octal mode

2020-02-10 Thread Kuldeep Singh
Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1236164/ v2: -Add lx2160qds buswidth -Update dependencies arch/arm/dts/fsl-lx2160a-qds.dts | 4 arch/arm/dts/fsl-lx2160a-rdb.dts | 4 2 files changed, 8 insertions(+) diff --git

[Patch v2 0/3] Enable octal read support for mt35xu* flashes

2020-02-10 Thread Kuldeep Singh
v2 version of series update dependencies of the patches and add lx2160aqds node buswidth in patch3. No dependency on patch1 and patch2. Patch3 has dependency on https://patchwork.ozlabs.org/patch/1236164/. Patch series enable octal read(1-1-8) support for LX2160ARDB and LS1028ARDB which have

[Patch v2 2/3] arm: dts: ls1028a: Add RX, TX buswidth in qspi to use octal mode

2020-02-10 Thread Kuldeep Singh
Signed-off-by: Kuldeep Singh --- v2: No change arch/arm/dts/fsl-ls1028a-qds.dts | 2 ++ arch/arm/dts/fsl-ls1028a-rdb.dts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-ls1028a-qds.dts b/arch/arm/dts/fsl-ls1028a-qds.dts index 3fd37be..029a8e3 100644 ---

Re: net: porting qe driver to DM

2020-02-10 Thread Heiko Schocher
Hello Qiang, Am 10.02.2020 um 03:53 schrieb Qiang Zhao: Hi, I will work on porting driver/qe to DM. Thanks for the info! I already have a first rough DM/DTS based driver for the parallel I/O ports and the uec ethernet working. I clean it up, and post it hopefully this week as an RFC. bye,

[PATCH v4 13/17] riscv: Add K210 clock support

2020-02-10 Thread Sean Anderson
Due to the large number of clocks, I decided to use the CCF. The overall structure is modeled after the imx code. A common pattern is to create a composite clock composed of several component clocks. For these component clocks, the clk_register_* functions are not used, since they will be

[PATCH v4 11/17] riscv: Add K210 pll support

2020-02-10 Thread Sean Anderson
This pll code is primarily based on the code from the kendryte standalone sdk in lib/drivers/sysctl.c. k210_pll_calc_params is roughly analogous to the algorithm used to set the pll frequency, but it has been completely rewritten to be fixed-point based. Signed-off-by: Sean Anderson --- Changes

[PATCH v4 15/17] riscv: Enable cpu clock if it is present

2020-02-10 Thread Sean Anderson
The cpu clock is probably already enabled if we are executing code (though we could be executing from a different core). This patch prevents the cpu clock or its parents from being disabled. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng --- This patch was previously submitted on its own as

[PATCH v4 17/17] riscv: Add Sipeed Maix support

2020-02-10 Thread Sean Anderson
The Sipeed Maix series is a collection of boards built around the RISC-V Kendryte K210 processor. This processor contains several peripherals to accelerate neural network processing and other "ai" tasks. This includes a "KPU" neural network processor, an audio processor supporting beamforming

[PATCH v4 16/17] riscv: Add device tree for K210

2020-02-10 Thread Sean Anderson
The cache-line size is undocumented. Emphirical tests suggest that it is 32 bytes, but I've used 64-bytes to be on the safe side. Where possible, I have tried to find compatible drivers based on the layout of registers. However, I have not tested most of this functionality, and most devices

[PATCH v4 08/17] riscv: Add headers for asm/global_data.h

2020-02-10 Thread Sean Anderson
This header depended on bd_t and ulong, but did not include the appropriate headers. Signed-off-by: Sean Anderson --- Changes in v4: - Include compiler.h not linux/compiler.h arch/riscv/include/asm/global_data.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v4 10/17] riscv: Allow use of reset drivers

2020-02-10 Thread Sean Anderson
Currently, one cannot use a reset driver on RISC-V. Follow the MIPS example, and disable the default reset handler when the sysreset driver is enabled. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng --- Changes in v3: - New arch/riscv/lib/reset.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH v4 09/17] riscv: Add option to support RISC-V privileged spec 1.9.1

2020-02-10 Thread Sean Anderson
Some older processors (notably the Kendryte K210) use an older version of the RISC-V privileged specification. The primary changes between the old and new are in virtual memory, and in the merging of three separate counter enable CSRs. Using the new CSR on an old processor causes an illegal

[PATCH v4 07/17] spi: dw: Add mem_ops

2020-02-10 Thread Sean Anderson
The dw spi devices on the Kendryte K210 must be operated in a specific fasion which cannot be achived through multiple writes to via dw_spi_xfer (as it is currently written). This patch adds an implementation of exec_op, which gives correct behaviour when reading/writing spi flash. I would like

[PATCH v4 14/17] riscv: Try to get cpu frequency from device tree

2020-02-10 Thread Sean Anderson
Instead of always using the "clock-frequency" property to determine cpu frequency, try using a clock in "clocks" if it exists. This patch also fixes a bug where there could be spurious higher frequencies if sizeof(u32) != sizeof(ulong). Signed-off-by: Sean Anderson Reviewed-by: Bin Meng ---

[PATCH v4 12/17] riscv: Add a bypass clock for K210

2020-02-10 Thread Sean Anderson
This is a small driver to do a software bypass of a clock if hardware bypass is not working. I have tried to write this in a generic fashion, so that it could be potentially broken out of the kendryte code at some future date. For the K210, it is used to have aclk bypass pll0 and use in0 instead

[PATCH v4 06/17] spi: dw: Add device tree properties for fields in CTRL1

2020-02-10 Thread Sean Anderson
Some devices have different layouts for the fields in CTRL1 (e.g. the Kendryte K210). Allow this layout to be configurable from the device tree. The documentation has been taken from Linux. Signed-off-by: Sean Anderson --- Changes in v4: - New .../spi/snps,dw-apb-ssi.txt |

[PATCH v4 03/17] clk: Unconditionally recursively en-/dis-able clocks

2020-02-10 Thread Sean Anderson
For clocks not in the CCF, their parents will not have UCLASS_CLK, so we just enable them as normal. The enable count is local to the struct clk, but this will never result in the actual en-/dis-able op being called (unless the same struct clk is enabled twice). For clocks in the CCF, we always

[PATCH v4 05/17] dm: Add support for simple-pm-bus

2020-02-10 Thread Sean Anderson
This type of bus is used in Linux to designate busses which have power domains and/or clocks which need to be enabled before their child devices can be used. Because power domains are automatically enabled before probing in u-boot, we just need to enable any clocks present. Signed-off-by: Sean

[PATCH v4 04/17] reset: Add generic reset driver

2020-02-10 Thread Sean Anderson
This patch adds a generic reset driver. It is designed to be useful when one has a register in a regmap which contains bits that reset other devices. I thought this seemed like a very generic use, so here is a generic driver. The overall structure has been modeled on the syscon-reboot driver.

[PATCH v4 02/17] clk: Check that ops of composite clock components exist before calling

2020-02-10 Thread Sean Anderson
clk_composite_ops was shared between all devices in the composite clock driver. If one clock had a feature (such as supporting set_parent) which another clock did not, it could call a null pointer dereference. This patch does three things 1. It adds null-pointer checks to all composite clock

[PATCH v4 01/17] clk: Always use the supplied struct clk

2020-02-10 Thread Sean Anderson
CCF clocks should always use the struct clock passed to their methods for extracting the driver-specific clock information struct. Previously, many functions would use the clk->dev->priv if the device was bound. This could cause problems with composite clocks. The individual clocks in a composite

[PATCH v4 00/17] riscv: Add Sipeed Maix support

2020-02-10 Thread Sean Anderson
This patch series adds support for Sipeed Maix boards and the Kendryte K210 CPU. Currently, only the Maix Bit V2.0 is supported, however other models are similar. This series depends on (clk: Include missing headers for linux/clk-provider.h). In

[PATCH] arm: dts: lx2160aqds: Enable FSPI node properties

2020-02-10 Thread Kuldeep Singh
Align flexspi node properties with linux device-tree properties. Signed-off-by: Kuldeep Singh --- arch/arm/dts/fsl-lx2160a-qds.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a-qds.dts b/arch/arm/dts/fsl-lx2160a-qds.dts index

[PATCH 1/1] test: log functions with CONFIG_LOG=n

2020-02-10 Thread Heinrich Schuchardt
If CONFIG_LOG=n, we still expect output for log_err(), log_warning(), log_notice(), log_info() and in case of DEBUG=1 also for log_debug(). Provide unit tests verifying this. The tests depend on: CONFIG_CONSOLE_RECORD=y CONFIG_LOG=n It may be necessary to increase the value of

Re: [PATCH 1/2] mmc: update guard for legacy part_init() call

2020-02-10 Thread Tom Hebb
On Mon, Feb 10, 2020, 19:13 Tom Rini wrote: > On Sat, Feb 01, 2020 at 11:35:37AM -0800, Thomas Hebb wrote: > > > commit eef05fd3ba68 ("mmc: bring back partition init for non-DM MMC > > drivers") added this call to support drivers not yet migrated to driver > > model. Slightly previously,

Re: [PATCH 1/1] log: output for CONFIG_LOG=n

2020-02-10 Thread Heinrich Schuchardt
On 2/11/20 12:13 AM, Simon Glass wrote: Hi Heinrich, On Sun, 9 Feb 2020 at 15:33, Heinrich Schuchardt wrote: On 2/9/20 11:21 PM, Sean Anderson wrote: On 2/9/20 4:59 PM, Heinrich Schuchardt wrote: If CONFIG_LOG=n, we should still output errors, warnings, notices, infos, and for DEBUG=1

[PATCH] ARM: keystone2: enable initrd fixup for LPAE addressing

2020-02-10 Thread Lokesh Vutla
From: Tero Kristo Keystone2 u-boot loads the initrd image into non-LPAE addressed memory but linux kernel is running in LPAE. This causes a conflict as kernel detects that non-memory address is passed and kernel ignores initrd. There is an existing fixup logic to modify the address in the proper

Re: [PATCH 1/2] mmc: update guard for legacy part_init() call

2020-02-10 Thread Tom Rini
On Sat, Feb 01, 2020 at 11:35:37AM -0800, Thomas Hebb wrote: > commit eef05fd3ba68 ("mmc: bring back partition init for non-DM MMC > drivers") added this call to support drivers not yet migrated to driver > model. Slightly previously, however, commit 91ff6865629c ("blk: Rework > guard around

Re: [PATCH v2 3/7] cmd: env: check real location for env info command

2020-02-10 Thread Simon Glass
On Mon, 10 Feb 2020 at 10:01, Patrick Delaunay wrote: > > Check the current ENV location, dynamically provided by the weak > function env_get_location to be sure that the environment can be > persistent. > > The compilation flag ENV_IS_IN_DEVICE is not enough when the board > dynamically select

Re: [PATCH v2 06/10] mmc: am654_sdhci: Implement workaround for card detect

2020-02-10 Thread Simon Glass
Hi, On Mon, 10 Feb 2020 at 04:26, Simon Goldschmidt wrote: > > +Simon Glass for the xxx_get_ops() functions in DM > > On Mon, Feb 10, 2020 at 10:46 AM Faiz Abbas wrote: > > > > Simon, > > > > On 29/01/20 7:48 pm, Simon Goldschmidt wrote: > > > On Fri, Jan 24, 2020 at 12:52 PM Faiz Abbas wrote:

Re: [PATCH 11/11] fdt: video: omap: add framebuffer and panel bindings

2020-02-10 Thread Simon Glass
On Sun, 9 Feb 2020 at 11:48, Dario Binacchi wrote: > > Add device-tree binding documentation for ti framebuffer and generic > panel output driver. > > Signed-off-by: Dario Binacchi > --- > > .../video/tilcdc/panel.txt| 66 +++ > .../video/tilcdc/tilcdc.txt

Re: [PATCH 1/1] log: output for CONFIG_LOG=n

2020-02-10 Thread Simon Glass
Hi Heinrich, On Sun, 9 Feb 2020 at 15:33, Heinrich Schuchardt wrote: > > On 2/9/20 11:21 PM, Sean Anderson wrote: > > On 2/9/20 4:59 PM, Heinrich Schuchardt wrote: > >> If CONFIG_LOG=n, we should still output errors, warnings, notices, infos, > >> and for DEBUG=1 also debug messages. > >> > >>

Re: [PATCH 1/1] log: syslog driver

2020-02-10 Thread Simon Glass
Hi Heinrich, On Sat, 8 Feb 2020 at 18:35, Heinrich Schuchardt wrote: > > Provide a log driver that broadcasts RFC 3164 messages to syslog servers. > rsyslog is one implementation of such a server. > > The messages are sent to the local broadcast address 255.255.255.255 on > port 514. > > The

Re: [PATCH v2 6/7] configs: sandbox: Enable sub command 'env info'

2020-02-10 Thread Simon Glass
On Mon, 10 Feb 2020 at 10:01, Patrick Delaunay wrote: > > Enable support for sub command 'env info' in sandbox > with CONFIG_CMD_NVEDIT_INFO. This is aimed primarily > at adding unit test. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - activate env info command in sandbox (new)

PCI / PCIe related dts issues

2020-02-10 Thread Tom Rini
Hey all, I'm sending this message to folks that are listed as maintainer for a platform that has some PCI / PCIe related DTS problems. These problems can be seen if you apply the following patch: diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index

Re: [PATCH] serial_lpuart: make clock failure less verbose

2020-02-10 Thread Giulio Benetti
+Cc Stefano On 2/1/20 1:48 PM, Lukasz Majewski wrote: Hi Giulio, Hi Lukasz, On 1/31/20 7:14 PM, Simon Glass wrote: On Fri, 31 Jan 2020 at 06:39, Giulio Benetti wrote: Some device may enable CONFIG_CLK but not still support this clock in CC, so better use debug() in place of dev_warn()

Re: [PATCH v3 00/20] Refactor the architecture parts of mt7628

2020-02-10 Thread Daniel Schwierzeck
Hi Mauro, Am 10.02.20 um 21:20 schrieb Mauro Condarelli: > FYI > I've been using this patchset for over a week without any adverse effect. > It allowed me to port to VoCore2 board. > Should I add a "Tested-by" flag? > If so: how should I do it? > > Regards > Mauro Codarelli > sorry that I

Re: [PATCH v2 7/7] test: env: add test for env info sub-command

2020-02-10 Thread Stephen Warren
On 2/10/20 10: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_info_test: test the result of the sub-commandi with quiet option, Nit: Remove "i" from the end of "sub-commandi". diff --git

Re: [PATCH v3 00/20] Refactor the architecture parts of mt7628

2020-02-10 Thread Mauro Condarelli
FYI I've been using this patchset for over a week without any adverse effect. It allowed me to port to VoCore2 board. Should I add a "Tested-by" flag? If so: how should I do it? Regards Mauro Codarelli On 2/10/20 6:20 PM, Daniel Schwierzeck wrote: > Hi Weije, > > Am 21.01.20 um 09:17 schrieb

Re: Please pull u-boot-video

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 06:07:56PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > please pull a few fixes for v2020.04-rc1. > > Travis-CI build logs with additional (already merged) patch: > https://travis-ci.org/vdsao/u-boot-video/builds/646159863 > > Thanks, > Anatolij > > The following

[PATCH] eth: Fixed-phy support in r-car

2020-02-10 Thread Mikle Lappo
>From 87bdd605d79f3c492cfc2634a51b17de161b87b5 Mon Sep 17 00:00:00 2001 From: Mikhail Lappo Date: Fri, 7 Feb 2020 12:37:53 +0100 Subject: [PATCH] eth: Fixed-phy support in r-car Calling old Uboot API doesn't allow to use fixed phy. Searching by mask is the part of new function, after scanning

[PATCH] eth: Fix crash while enabling fixed-phy

2020-02-10 Thread Mikle Lappo
>From db35a238c5ae530e82d6de4cab180d570a3d8fc9 Mon Sep 17 00:00:00 2001 From: Mikhail Lappo Date: Fri, 7 Feb 2020 14:13:25 +0100 Subject: [PATCH] eth: Fix crash while enabling fixed-phy Fixed phy is always enabled and doesn't implement writeext function Signed-off-by: Mikhail Lappo CC: Marek

Re: [PATCH] sandbox: p2sb: Silence compiler warning

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 12:03:26PM -0700, Simon Glass wrote: > Hi Stephen. > > On Mon, 10 Feb 2020 at 11:28, Stephen Warren wrote: > > > > On 2/8/20 8:21 AM, Bin Meng wrote: > > > On Sat, Feb 8, 2020 at 10:53 PM Simon Glass wrote: > > >> > > >> Some compilers produce a warning about 'child'

Re: [PATCH] sandbox: p2sb: Silence compiler warning

2020-02-10 Thread Simon Glass
Hi Stephen. On Mon, 10 Feb 2020 at 11:28, Stephen Warren wrote: > > On 2/8/20 8:21 AM, Bin Meng wrote: > > On Sat, Feb 8, 2020 at 10:53 PM Simon Glass wrote: > >> > >> Some compilers produce a warning about 'child' being used before init. > >> Silence this by setting to NULL at the start. > > >

Re: [PATCH] sandbox: p2sb: Silence compiler warning

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 11:27:58AM -0700, Stephen Warren wrote: > On 2/8/20 8:21 AM, Bin Meng wrote: > > On Sat, Feb 8, 2020 at 10:53 PM Simon Glass wrote: > > > > > > Some compilers produce a warning about 'child' being used before init. > > > Silence this by setting to NULL at the start. > >

Re: [PATCH] sandbox: p2sb: Silence compiler warning

2020-02-10 Thread Stephen Warren
On 2/8/20 8:21 AM, Bin Meng wrote: On Sat, Feb 8, 2020 at 10:53 PM Simon Glass wrote: Some compilers produce a warning about 'child' being used before init. Silence this by setting to NULL at the start. Should be a compiler bug I think. Which compiler has such issue? gcc 7.2.1 (Linaro

Re: Please pull u-boot-x86

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 06:20:54PM +0100, Anatolij Gustschin wrote: > On Mon, 10 Feb 2020 08:39:45 -0500 > Tom Rini tr...@konsulko.com wrote: > ... > > > The following changes since commit > > > 8a6ffeda97dfda5263ef40e1a4efb25b032ce04c: > > > > > > video: enable VIDEO_ANSI and all VIDEO_BBP

Re: Please pull u-boot-x86

2020-02-10 Thread Anatolij Gustschin
On Mon, 10 Feb 2020 08:39:45 -0500 Tom Rini tr...@konsulko.com wrote: ... > > The following changes since commit 8a6ffeda97dfda5263ef40e1a4efb25b032ce04c: > > > > video: enable VIDEO_ANSI and all VIDEO_BBP options (2020-02-06 16:11:47 > > -0500) > > > > are available in the git repository at:

Re: [PATCH v3 00/20] Refactor the architecture parts of mt7628

2020-02-10 Thread Daniel Schwierzeck
Hi Weije, Am 21.01.20 um 09:17 schrieb Weijie Gao: > This patch series are divided into two parts: > > The main part is to rewrite the whole architecture code of mt7628: > * Lock parts of the d-cache for initial stack so the rest of the code can > be reimplemented in C. > * Memory controller &

Re: [PATCH v3 10/20] mips: mtmips: rewrite lowlevel codes of mt7628

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:19 schrieb Weijie Gao: > This patch rewrites the mtmips architecture with the following changes: > > 1. Move MT7628 soc parts into a subfolder. > 2. Lock parts of D-Cache as temporary stack. > 3. Reimplement DDR initialization in C language. > 4. Reimplement DDR calibration

Re: [PATCH v3 12/20] mips: enable support for appending dtb to spl binary

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:19 schrieb Weijie Gao: > If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also > enabled, the dtb will be appended to the u-boot-spl.bin. > > When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate > dtb at the end of u-boot-spl.bin, by

Re: [PATCH v3 11/20] dts: mtmips: add alternative pinmux node for uart2

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:19 schrieb Weijie Gao: > This patch adds a new pinmux for UART2, which shares the pins with SPIS. > > Signed-off-by: Weijie Gao > --- > Changes since v2: new patch > --- > arch/mips/dts/mt7628a.dtsi | 5 + > 1 file changed, 5 insertions(+) > applied to u-boot-mips,

Re: [PATCH v3 13/20] mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:19 schrieb Weijie Gao: > u_boot_list is not only used by DM, but also by some SPL image load methods > such as spl_nor.c. > > This patch adds an option CONFIG_SPL_LOADER_SUPPORT in conjunction with > CONFIG_SPL_DM surrounding the u_boot_list section to make sure SPL image >

Please pull u-boot-video

2020-02-10 Thread Anatolij Gustschin
Hi Tom, please pull a few fixes for v2020.04-rc1. Travis-CI build logs with additional (already merged) patch: https://travis-ci.org/vdsao/u-boot-video/builds/646159863 Thanks, Anatolij The following changes since commit d861183dc531b74479f92bf4c8de8ad60a0a0d56: Merge tag 'ti-v2020.04-rc2'

[PATCH v2 0/7] cmd: env: add option for quiet output on env info

2020-02-10 Thread Patrick Delaunay
Hi, It is a V2 after Wolfgang and Simon remarks for "cmd: env: add option for quiet output on env info" http://patchwork.ozlabs.org/project/uboot/list/?series=155122 I also add pytest for command env info. Test for ENV_IS_IN_DEVICE will be include in future serie (I will activate

[PATCH v2 3/7] cmd: env: check real location for env info command

2020-02-10 Thread Patrick Delaunay
Check the current ENV location, dynamically provided by the weak function env_get_location to be sure that the environment can be persistent. The compilation flag ENV_IS_IN_DEVICE is not enough when the board dynamically select the available storage location (according boot device for example).

[PATCH v2 7/7] test: env: add test for env info sub-command

2020-02-10 Thread Patrick Delaunay
Add a pytest for testing the env info sub-command: test_env_info: test command with several option test_env_info_test: test the result of the sub-commandi with quiet option, '-q' as used for support in shell test; for example: if env info -p -d -q; then env save; fi Signed-off-by: Patrick

[PATCH v2 5/7] stm32mp1: configs: activate CMD_ERASEENV

2020-02-10 Thread Patrick Delaunay
Activate the command env erase to reset the environment with the command: > env erase it is simpler than: > env default -a > env save Signed-off-by: Patrick Delaunay --- Changes in v2: None configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1 +

[PATCH v2 1/7] cmd: env: add option for quiet output on env info

2020-02-10 Thread Patrick Delaunay
The "env info" can be use for test with -d and -p parameter, in scripting case the output of the command is not needed. This patch allows to deactivate this output with a new option "-q". For example, we can save the environment if default environment is used and persistent storage is managed

[PATCH v2 2/7] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-02-10 Thread Patrick Delaunay
Use the define ENV_IS_IN_DEVICE to test if one the CONFIG_ENV_IS_IN_... is defined and correct the detection of persistent storage support in the command "env info" if CONFIG_ENV_IS_NOWHERE is activated. Since commit 60d5ed2593c9 ("env: allow ENV_IS_NOWHERE with other storage target") test

[PATCH v2 4/7] stm32mp1: use the command env info in env_check

2020-02-10 Thread Patrick Delaunay
Activate CMD_NVEDIT_INFO and use the new command "env info -d -p -q" to automatically save the environment on first boot. This patch allows to remove the env_default variable. Signed-off-by: Patrick Delaunay --- Changes in v2: - activate CMD_NVEDIT_INFO in sandbox (new patch)

[PATCH v2 6/7] configs: sandbox: Enable sub command 'env info'

2020-02-10 Thread Patrick Delaunay
Enable support for sub command 'env info' in sandbox with CONFIG_CMD_NVEDIT_INFO. This is aimed primarily at adding unit test. Signed-off-by: Patrick Delaunay --- Changes in v2: - activate env info command in sandbox (new) configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig

Re: [PATCH v3 10/20] mips: mtmips: rewrite lowlevel codes of mt7628

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:19 schrieb Weijie Gao: > This patch rewrites the mtmips architecture with the following changes: > > 1. Move MT7628 soc parts into a subfolder. > 2. Lock parts of D-Cache as temporary stack. > 3. Reimplement DDR initialization in C language. > 4. Reimplement DDR calibration

Re: [GIT PULL] Pull request: u-boot-imx u-boot-imx-20200210

2020-02-10 Thread Tom Rini
0) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20200210 > > for you to fetch changes up to a19d73708fc017475e5635b4809b6b07c6a61afd: > > board: ge: bx50v3, imx53ppd: configure CONFIG_SYS_BOO

Re: [PATCH v1] dfu: Reset timeout in case of DFU request

2020-02-10 Thread Andy Shevchenko
On Thu, Jan 30, 2020 at 10:27:20AM +0100, Ferry Toth wrote: > Op 29-01-2020 om 16:23 schreef Andy Shevchenko: > > In case dfu command is being executed with timeout option, > > the timer may expire in the middle of DFU operation. If there > > is DFU request coming, we may simple reset timeout

Re: [PATCH v3 09/20] mips: add a option to support not reserving malloc space on initial stack

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > The initial stack on some platforms is too small to hold a large malloc > space. This patch adds a option to allow these platforms not reserving the > malloc space on initial stack. These platforms should set the malloc base > after DRAM is usable. >

Re: [PATCH v3 08/20] mips: add a mtmips-specific field to architecture-specific global data

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > SoCs of mtmips can use different CPU frequencies depending on the HW/SW > configurations. For example mt7628 uses 580MHz clock if the input xtal > frequency is 40MHz, and 575MHz clock if the xtal is 25MHz. Upon cold boot > the CPU uses the xtal

Re: [PATCH v3 07/20] configs: enable CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips boards

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > This patch enables CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips > boards. > > Reviewed-by: Daniel Schwierzeck > Signed-off-by: Weijie Gao > --- > Changes since v2: none > --- > configs/gardena-smart-gateway-mt7688-ram_defconfig | 1 + >

Re: [PATCH v2] mx6sabresd: Convert ethernet to driver model

2020-02-10 Thread Fabio Estevam
On Mon, Feb 10, 2020 at 11:28 AM Alifer Moraes wrote: > > Convert imx6sabresd ethernet to driver model to fix the following warning: > > = WARNING == > This board does not use CONFIG_DM_ETH (Driver Model > for Ethernet drivers). Please update the board to

Re: [PATCH 10/11] arm: fdt: omap: update dts panel node

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 10:15:27AM -0500, Tom Rini wrote: > On Mon, Feb 10, 2020 at 09:52:59AM +0530, Lokesh Vutla wrote: > > > > > > On 10/02/20 12:17 AM, Dario Binacchi wrote: > > > Add the "u-boot,dm-pre-reloc" property to the "ti,tilcdc,panel" > > > compatible node. In this way the

Re: [PATCH v3 05/20] sysreset: add reset controller based reboot driver

2020-02-10 Thread Bin Meng
Hi, On Mon, Feb 10, 2020 at 11:40 PM Daniel Schwierzeck wrote: > > > > Am 21.01.20 um 09:18 schrieb Weijie Gao: > > Some chips provide their sysreset function in reset controller, which is > > normally a bit written to 1 to perform the sysreset. > > > > This patch adds a new sysreset driver to

Re: [PATCH v3 06/20] mips: mtmips: make use of sysreset-resetctrl for mt7628 soc

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > This patch replaces sysreset-syscon with sysreset-resetctrl for mt7628 soc. > > Reviewed-by: Daniel Schwierzeck > Signed-off-by: Weijie Gao > --- > Changes since v2: none > --- > arch/mips/dts/mt7628a.dtsi | 10 +- >

Re: [PATCH v3 05/20] sysreset: add reset controller based reboot driver

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > Some chips provide their sysreset function in reset controller, which is > normally a bit written to 1 to perform the sysreset. > > This patch adds a new sysreset driver to take advantage of it. > > Reviewed-by: Daniel Schwierzeck > Reviewed-by:

Re: [PATCH v3 04/20] mips: start.S: avoid overwriting outside gd when clearing global data in stack

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > When setting up initial stack, global data will also be put in the stack, > and being cleared. > > The assembler instructions for clearing gd is as follows: > > movet0, k0 > 1: > PTR_S zero, 0(t0) > blt t0, t1, 1b >

Re: [PATCH 020/108] acpi: Add a method to write tables for a device

2020-02-10 Thread Bin Meng
Hi Simon, On Mon, Jan 27, 2020 at 1:08 PM Simon Glass wrote: > > A device may want to write out ACPI tables to describe itself to Linux. > Add a method to permit this. > > Signed-off-by: Simon Glass > --- > > arch/sandbox/dts/test.dts | 4 > drivers/core/acpi.c | 33

Re: [PATCH 016/108] acpi: Add an __ACPI__ preprocessor symbol

2020-02-10 Thread Bin Meng
On Mon, Jan 27, 2020 at 1:08 PM Simon Glass wrote: > > The ASL compiler cannot handle C structures and the like so needs some > sort of header guard around these. > > We already have an __ASSEMBLY__ #define but it seems best to create a new > one for ACPI since the rules may be different. > > Add

Re: [PATCH 019/108] acpi: Move acpi_fill_header() to generic code

2020-02-10 Thread Bin Meng
On Mon, Jan 27, 2020 at 1:08 PM Simon Glass wrote: > > This function needs to be used by sandbox for tests. Move it into the > generic directory. > > Signed-off-by: Simon Glass > --- > > include/acpi_table.h | 10 ++ > lib/acpi/acpi_table.c | 10 ++ > test/dm/acpi.c| 28

Re: [PATCH 017/108] acpi: Add a central location for table version numbers

2020-02-10 Thread Bin Meng
Hi Simon, On Mon, Jan 27, 2020 at 1:08 PM Simon Glass wrote: > > Each ACPI table has its own version number. Add the version numbers in a > single function so we can keep them consistent and easily see what > versions are supported. > > Start a new acpi_table file in a generic directory to house

Re: [PATCH 018/108] acpi: Add support for DMAR

2020-02-10 Thread Bin Meng
Hi Simon, On Mon, Jan 27, 2020 at 1:08 PM Simon Glass wrote: > > The DMA Remapping Reporting (DMAR) table contains information about DMA > remapping. > > Add a version simple version of this table with only the minimum fields > filled out. i.e. no entries. > > Signed-off-by: Simon Glass > --- >

Re: [PATCH v3 03/20] mips: add an option to support initialize SRAM for initial stack

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > Currently CONFIG_MIPS_INIT_STACK_IN_SRAM assumes the memory space for the > initial stack can be used directly. However on some platform the SRAM needs > initialization, e.g. lock cache. > > This patch adds an option to allow a new function

Re: [PATCH v3 02/20] mips: mtmips: add predefined i-cache/d-cache size and linesize

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > Both mt7620 and mt7628 has the same cache configuration. There is no need > to use CONFIG_SYS_CACHE_SIZE_AUTO to probe it at runtime. > > Add them into Kconfig to reduce some code size. > > Reviewed-by: Stefan Roese > Signed-off-by: Weijie Gao >

Re: [PATCH 10/11] arm: fdt: omap: update dts panel node

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 09:52:59AM +0530, Lokesh Vutla wrote: > > > On 10/02/20 12:17 AM, Dario Binacchi wrote: > > Add the "u-boot,dm-pre-reloc" property to the "ti,tilcdc,panel" > > compatible node. In this way the video-uclass module can allocate the > > amount of memory needed to be assigned

Re: [PATCH v3 01/20] mips: add support to restore exception vector base before booting linux

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > In U-Boot the exception vector base will be moved to top of memory, to be > used to display register dump when exception occurs. > > But some old linux kernel does not honor the base set in CP0_EBASE. A > modified exception vector base will cause

Re: [PATCH v3 01/20] mips: add support to restore exception vector base before booting linux

2020-02-10 Thread Daniel Schwierzeck
Am 21.01.20 um 09:18 schrieb Weijie Gao: > In U-Boot the exception vector base will be moved to top of memory, to be > used to display register dump when exception occurs. > > But some old linux kernel does not honor the base set in CP0_EBASE. A > modified exception vector base will cause

Re: [PATCH] stm32mp1: remove fdt_high and initrd_high in environment

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 11:54:11AM +0100, Patrick Delaunay wrote: > Remove fdt_high and initrd_high (set to 0x) in stm32mp1 board > enviromnent, and U-Boot always relocate FDT and initrd in bootm command. > > This relocation is limited by CONFIG_SYS_BOOTMAPSZ which indicates > the size

Re: [PATCH] mips: vcoreiii: Fix cache coherency issues

2020-02-10 Thread Daniel Schwierzeck
Am 06.02.20 um 10:45 schrieb Lars Povlsen: > This patch fixes an stability issue seen on some vcoreiii targets, > which was root caused to a cache inconsistency situation. > > The inconsistency was caused by having kuseg pointing to NOR area but > used as a stack/gd/heap area during

Re: [PATCH] mips: vcoreiii: Ajust CONFIG_SYS_MEMTEST_END

2020-02-10 Thread Daniel Schwierzeck
Am 06.02.20 um 10:43 schrieb Lars Povlsen: > This patch ajust CONFIG_SYS_MEMTEST_END for vcoreiii-based systems to > avoid overwriting the relocated u-boot. The former setting was too > agressive with networking etc. enabled on some platforms. > > Reviewed-by: Alexandre Belloni > Reviewed-by:

Re: [PATCH v3][ 4/6] board: tbs2910: enable CONFIG_DISTRO_DEFAULTS

2020-02-10 Thread Tom Rini
On Sat, Feb 08, 2020 at 04:47:08PM +0100, Soeren Moch wrote: > On 08.02.20 06:38, Denis 'GNUtoo' Carikli wrote: > > The side effect is that it increase the size of the > > resultimg image, which is already very close to the > > size limit. > > > > With arm-linux-gnueabi-gcc 9.2.0-1 from the

[PATCH v2] mx6sabresd: Convert ethernet to driver model

2020-02-10 Thread Alifer Moraes
Convert imx6sabresd ethernet to driver model to fix the following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by

Re: [PATCH v2 02/10] mmc: Add init() API

2020-02-10 Thread Tom Rini
On Sun, Feb 09, 2020 at 02:38:15PM +0100, Wolfgang Denk wrote: > Dear Faiz, > > In message <04e0144c-cad3-d242-0393-ba33afa3d...@ti.com> you wrote: > > > > > I am in the cc list of your first mail, but not from Simon's reply mail. > > > > So Peng got the email but the list is dropping CCs after

Re: [PATCH] configs: imxrt1050-evk: enable D/I cache

2020-02-10 Thread Giulio Benetti
+Cc Stefano On 2/1/20 3:29 PM, Giulio Benetti wrote: Soc supports cache so let's enable it. Signed-off-by: Giulio Benetti --- configs/imxrt1050-evk_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/configs/imxrt1050-evk_defconfig b/configs/imxrt1050-evk_defconfig index

[GIT PULL] Pull request: u-boot-imx u-boot-imx-20200210

2020-02-10 Thread Stefano Babic
tags/u-boot-imx-20200210 for you to fetch changes up to a19d73708fc017475e5635b4809b6b07c6a61afd: board: ge: bx50v3, imx53ppd: configure CONFIG_SYS_BOOTMAPSZ (2020-02-09 21:47:20 +0100) - Convert to DM: - bx50v3, mx53ppd

Re: Please pull u-boot-x86

2020-02-10 Thread Tom Rini
On Sat, Feb 08, 2020 at 09:54:37AM +0800, Bin Meng wrote: > Hi Tom, > > This PR includes the following changes for v2020.04: > > - Move P2SB from Apollo Lake to a more generic location > - Add a function to find a device by drvdata in DM core > - Enhancement of DM IRQ uclass driver > - Add a

Re: [U-Boot] Pull request: u-boot-riscv/master

2020-02-10 Thread Tom Rini
On Mon, Feb 10, 2020 at 03:29:56PM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull some riscv updates: > > - Fix ax25-ae350.rst document. > - Refine RISC-V linker script and start.S. > - Add option to print more information on exception. > >

RE: [PATCH 2/5] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-02-10 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Glass > Sent: jeudi 30 janvier 2020 03:18 > > On Fri, 24 Jan 2020 at 05:34, Patrick Delaunay > wrote: > > > > Use the define ENV_IS_IN_DEVICE to test if one the > > CONFIG_ENV_IS_IN_... is defined and correct the detection of > > persistent storage support in the

RE: [PATCH v3 01/10] misc: add driver for the Sifive otp controller

2020-02-10 Thread Pragnesh Patel
Hi Jagan, >-Original Message- >From: Pragnesh Patel >Sent: 27 January 2020 15:48 >To: Jagan Teki >Cc: U-Boot-Denx ; Atish Patra >; palmerdabb...@google.com; Bin Meng >; Paul Walmsley ( Sifive) >; Troy Benjegerdes ( Sifive) >; Anup Patel ; Sagar >Kadam ; Rick Chen ; Simon >Glass ; Heiko

  1   2   >