Re: [U-Boot] [PATCH v3 6/7] armv8: ls1046a: add icid setup for qman portals

2018-07-09 Thread Bharat Bhushan
> -Original Message- > From: Laurentiu Tudor > Sent: Monday, July 9, 2018 7:23 PM > To: Bharat Bhushan ; York Sun > ; Prabhakar Kushwaha > ; u-boot@lists.denx.de > Subject: Re: [PATCH v3 6/7] armv8: ls1046a: add icid setup for qman portals > > Hi Bharat, > > On 09.07.2018 15:21, Bharat

Re: [U-Boot] [PATCH v3 5/7] armv8: ls1046a: initial icid setup support

2018-07-09 Thread Bharat Bhushan
> -Original Message- > From: Laurentiu Tudor > Sent: Monday, July 9, 2018 6:42 PM > To: Bharat Bhushan ; York Sun > ; Prabhakar Kushwaha > ; u-boot@lists.denx.de > Subject: Re: [PATCH v3 5/7] armv8: ls1046a: initial icid setup support > > Hi Bharat, > > On 09.07.2018 15:13, Bharat

Re: [U-Boot] [PATCH 1/3] net: phy: ti: Modify to support livetree

2018-07-09 Thread Siva Durga Prasad Paladugu
Hi, > -Original Message- > From: Siva Durga Prasad Paladugu > Sent: Tuesday, July 10, 2018 9:32 AM > To: Grygorii Strashko ; u-boot@lists.denx.de > Cc: joe.hershber...@ni.com; Michal Simek > Subject: RE: [U-Boot] [PATCH 1/3] net: phy: ti: Modify to support livetree > > Hi, > > >

Re: [U-Boot] [PATCH 1/3] net: phy: ti: Modify to support livetree

2018-07-09 Thread Siva Durga Prasad Paladugu
Hi, > -Original Message- > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > Sent: Monday, July 09, 2018 10:51 PM > To: Siva Durga Prasad Paladugu ; u- > b...@lists.denx.de > Cc: joe.hershber...@ni.com; Michal Simek > Subject: Re: [U-Boot] [PATCH 1/3] net: phy: ti: Modify to

[U-Boot] [PATCH 3/3] arm64: ls1043aqds: enable DM support for sata

2018-07-09 Thread peng . ma
From: Peng Ma Enable related configs to support sata DM feature. Signed-off-by: Peng Ma --- depend on: patchwork.ozlabs.org/patch/941093/ configs/ls1043aqds_defconfig |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configs/ls1043aqds_defconfig

[U-Boot] U-Boot 2018.07 Still Broken for Allwinner H3 SoCs

2018-07-09 Thread Chen-Yu Tsai
This is on a Libre Computer ALL-H3-CC H3 variant. Still running a bisect, but v2018.07-rc1 is a working version. From the EHCI error messages, I'm thinking it might be related to the USB changes lately. Not sure if any other SoCs (ex. A64) are broken or not at the moment. See log: U-Boot SPL

Re: [U-Boot] [RFC] Make U-Boot log great again

2018-07-09 Thread Bin Meng
Hello, On Fri, Mar 23, 2018 at 1:44 PM, Bin Meng wrote: > Hi, > > On Sat, Feb 17, 2018 at 3:49 AM, Robert Nelson > wrote: >> On Fri, Feb 16, 2018 at 1:01 PM, Sam Protsenko >> wrote: >>> Hi guys, >>> >>> TL;DR This is a suggestion about fixing U-Boot log, which has got >>> worse recently. >>>

Re: [U-Boot] ls1021atwr: Convert to use driver model TSEC driver

2018-07-09 Thread Bin Meng
Hi Claudiu, On Mon, Jun 11, 2018 at 10:28 PM, York Sun wrote: > On 06/10/2018 10:37 PM, Bin Meng wrote: >> On Tue, Jun 5, 2018 at 9:28 AM, Bin Meng wrote: >>> Hi Alison, Prabhakar, >>> >>> On Fri, Jun 1, 2018 at 12:06 PM, York Sun wrote: On May 31, 2018, at 20:58, Bin Meng wrote: >

Re: [U-Boot] [PATCH 3/8] phy: sun4i-usb: Call phy_passby even for PHY#0

2018-07-09 Thread Chen-Yu Tsai
On Tue, Jul 10, 2018 at 3:17 AM, Jagan Teki wrote: > phy_passby is not calling for phy id 0 in legacy code, > which has no information on why it restricted. > Since Linux phy driver doesn't restrict like this, > so call it directly with out any condition See

[U-Boot] [PATCH 2/2] ARM: DTS: Resync Logic PD SOM-LV 37xx devkit with Linux 4.18-RC4

2018-07-09 Thread Adam Ford
There have been some significant changes to the DM37 SOM-LV device tree. This patch re-syncs it with Linux. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-som-lv-37xx-devkit.dts b/arch/arm/dts/logicpd-som-lv-37xx-devkit.dts index 1702b9e3db..2428373952 100644 ---

[U-Boot] [PATCH 1/2] ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit with Linux 4.18-RC4

2018-07-09 Thread Adam Ford
There have been some refactoring of the DTS files for the Logic PD DM37 Torpedo. This patch re-sync's the DTS files with Linux Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts index 43e9364083..234afd6d60 100644

[U-Boot] [PATCH] ARM: dts: Resync OMAP3 and omap36xx with Linux 4.18-RC4

2018-07-09 Thread Adam Ford
There have been several minor changes to the OMAP3.dtsi, so this patch re-syncs it with Linux. An addition include/dt-binding was also brought with it. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/omap3.dtsi b/arch/arm/dts/omap3.dtsi index 56c94729bb..4043ecb380 100644 ---

[U-Boot] [PATCH] ARM: DTS: Resync am3517-evm.dts with Linux 4.18-rc4

2018-07-09 Thread Adam Ford
Several changes have been made to the AM3517-evm and the underlying am3517.dtsi file. This patch re-sync's the DTS and DTSI files with Linux. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517-evm.dts b/arch/arm/dts/am3517-evm.dts index 0e4a125f78..98aadb0f81 100644 ---

Re: [U-Boot] [PATCH v4 1/2] dm: mdio: add a uclass for MDIO

2018-07-09 Thread Joe Hershberger
On Thu, Jul 5, 2018 at 2:34 AM, wrote: > From: Ken Ma > > Add a uclass which provides access to MDIO busses and includes > operations required by MDIO. > The implementation is based on the existing mii/phy/mdio data > structures and APIs. > This patch also adds device tree binding for MDIO bus.

Re: [U-Boot] [EXT] Re: [PATCH v3 1/2] dm: mdio: add a uclass for MDIO

2018-07-09 Thread Joe Hershberger
On Thu, Jul 5, 2018 at 2:18 AM, Ken Ma wrote: > Hi Joe > > Please see my comments inline, thanks a lot for your kind and careful review! > > Yours, > Ken > > -Original Message- > From: Joe Hershberger [mailto:joe.hershber...@ni.com] > Sent: 2018年6月20日 4:59 > To: Ken Ma ; Simon Glass >

Re: [U-Boot] [PATCH v4 2/2] mdio: add marvell MDIO driver

2018-07-09 Thread Joe Hershberger
On Thu, Jul 5, 2018 at 2:34 AM, wrote: > From: Ken Ma > > This patch adds a separate driver for the MDIO interface of the > Marvell Ethernet controllers based on driver model. There are two > reasons to have a separate driver rather than including it inside > the MAC driver itself: > *) The

Re: [U-Boot] [PATCH 5/5] arm: dts: socfpga: stratix10: update pdma

2018-07-09 Thread Marek Vasut
On 07/09/2018 08:03 PM, Dinh Nguyen wrote: > > > On 05/31/2018 03:08 AM, tien.fong.c...@intel.com wrote: >> From: Tien Fong Chee >> >> Update pdma properties for Stratix 10 >> >> Signed-off-by: Tien Fong Chee >> --- >> arch/arm/dts/socfpga_stratix10.dtsi | 20 >> 1 file

Re: [U-Boot] [PATCH v2 12/29] dtoc: Update tests to write failures to /tmp

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > When a test fails due to an output mismatch (e.g. due to a new property > being adding to a test file) it is currently hard to update the test to > the new output. In particular the tabs in the file are written as \t in > the Python tests. > > To make

Re: [U-Boot] Please pull u-boot-dm

2018-07-09 Thread Simon Glass
On 9 July 2018 at 13:53, Simon Glass wrote: > Hi Tom. > > Here are some test-coverage and DM core enhancements. Also it adds a > way to access the binman definition from U-Boot. https://travis-ci.org/sglass68/u-boot/builds/401827625 ___ U-Boot mailing

Re: [U-Boot] [PATCH v2 1/2] ARM64: meson: Add 'usb2_phy0' in P212 DT file

2018-07-09 Thread Loic Devulder
Hi Neil, Sure, I did not see you'd done the change on Linux DTS :) On 07/09/2018 08:14 PM, Neil Armstrong wrote: > Hi Loic, > > On 09/07/2018 17:34, Loic Devulder wrote: >> Enable power supply for USB Amlogic Meson GXL P212 based boards. >> >> Signed-off-by: Loic Devulder > > We like to keep

Re: [U-Boot] [PATCH v2 04/29] binman: Correct operation of ObtainContents()

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > This method is supposed to return the contents of an entry. However at > present there is no check that it actually does. Also some implementations > do not return 'True' to indicate success, as required. > > Add a check for things working as

Re: [U-Boot] [PATCH v2 23/29] test: Enable cover-coverage tests for dtoc and fdt

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Now that we have 100% code coverage we can enable these tests in the test > script also. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to enable cover-coverage tests for dtoc and fdt > > test/run | 4 > 1 file

Re: [U-Boot] [PATCH v2 24/29] dtoc: Avoid unwanted output during tests

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present some warnings are printed to indicate failures which are a > known part of running the tests. Suppress these. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/dtoc/fdt_util.py | 4 ++-- > tools/dtoc/test_dtoc.py |

Re: [U-Boot] [PATCH v2 07/29] libfdt: Bring in proposed pylibfdt changes

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > This provides various patches sent to the devicetree-compiler mailing list > to enhance the Python bindings. A final version of this patch may be > created once upstreaming is complete, but if it takes too long, this can > act as a placeholder. > >

Re: [U-Boot] [PATCH v2 16/29] dtoc: Keep track of property offsets

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present the Fdt class does not keep track of property offsets if they > change due to removal of properties. Update the code to handle this, and > add a test. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/dtoc/fdt.py

Re: [U-Boot] [PATCH v2 20/29] dtoc: Add a test for code coverage

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Add a -T option to run a code-coverage test on dtoc. At present this is > about 96%. Future work will increase it to 100%. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Update coverage to only include dtb_platdata.py > >

Re: [U-Boot] [PATCH v2 22/29] dtoc: Increase code coverage to 100%

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Add more tests to increase dtoc code coverage to 100%. > > Correct a whitespace error in some test .dts files at the same time. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/dtoc/dtoc_test_add_prop.dts| 24 >

Re: [U-Boot] [PATCH v2 29/29] binman: Support updating the device tree with calc'd info

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > It is useful to write the position and size of each entry back to the > device tree so that U-Boot can access this at runtime. Add a feature to > support this, along with associated tests. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > -

Re: [U-Boot] [PATCH v2 26/29] binman: Complete documentation of stages

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present one of the stages is badly numbered and not described. Fix > this. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/README | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > Applied to u-boot-dm.

Re: [U-Boot] [PATCH v2 17/29] dtoc: Fix Fdt.GetNode() to handle a missing node

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present the algortihm is not correct since it will return the root node > if the requested node is not found and there are no slashes in the > requested node name. Fix this and add a test. > > Signed-off-by: Simon Glass > --- > > Changes in v2:

Re: [U-Boot] [PATCH v2 05/29] binman: Tidy up execution of tests

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Move all the test execution into the same mechanism so that we can request > a particular test (from any suite) by passing it as an argument to > 'binman -t'. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/binman.py |

Re: [U-Boot] [PATCH v2 18/29] dtoc: Fix properties with a single zero-arg phandle

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present a property with a single phandle looks like an integer value > to dtoc. Correct this by adjusting it in the phandle-processing code. > > Add a test for this. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Update to cope with

Re: [U-Boot] [PATCH v2 19/29] dtoc: Fix some minor errors

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Fix some comments and a printf string which is incorrect. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/dtoc/dtb_platdata.py | 3 ++- > tools/dtoc/dtoc.py | 4 ++-- > tools/dtoc/fdt.py | 2 +- > 3 files

Re: [U-Boot] [PATCH v2 14/29] dtoc: Drop use of a local dtb buffer

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present the Fdt class has its own copy of the device tree. This is > confusing an unnecessary now that pylibfdt has its own. Drop it and > provide access functions to the buffer. > > This allows us to move the rest of the implementation to use

Re: [U-Boot] [PATCH v2 02/29] binman: Make the operation of Entry__testing explicit

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > This fake entry is used for testing. At present it only has one behaviour > which is to return an invalid set of entry positions, to cause an error. > > The fake entry will need to be used for other things too. Allow the test > .dts file to specify

Re: [U-Boot] [PATCH v2 25/29] dtoc: Add functions to add integer properties

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Add a few simple functions to add a placeholder integer property, and > set its value. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/dtoc/fdt.py | 27 +++ > tools/dtoc/test_fdt.py | 20

Re: [U-Boot] [PATCH v2 13/29] dtoc: Make use of the new pylibfdt methods

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Now that pylibfdt supports a fuller API we don't need to directly call > the libfdt stubs. Update the code to use the Fdt methods instead. > > Some other cases remain which will be tidied up in a later commit, since > they need larger changes. > >

Re: [U-Boot] [PATCH v2 06/29] binman: Tidy up setting of entry contents

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present the contents of an entry are set in subclasses simply by > assigning to the data and content_size properties. Add some methods to do > this, so that we have more control. In particular, add a method to set the > contents without changing

Re: [U-Boot] [PATCH v2 09/29] libfdt: Add get_property() and del_node()

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Add support for these functions in the Python binding. This patch stands > in for a pending upstream change. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > scripts/dtc/pylibfdt/libfdt.i_shipped | 32 +++ > 1

Re: [U-Boot] [PATCH v2 08/29] libfdt: Fix the Python pack() function

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > This currently fails to reduce the device-tree bytearray size. Fix this. > > This stands in for a pending upstream change. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +- > 1 file

Re: [U-Boot] [PATCH v2 28/29] binman: Add a SetCalculatedProperties() method

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Once binman has packed the image, the position and size of each entry is > known. It is then possible for binman to update the device tree with these > positions. Since placeholder values have been added, this does not affect > the size of the device

Re: [U-Boot] [PATCH v2 11/29] dtoc: Add some tests for the fdt module

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present this module is tested via the dtoc tests. This is a bit painful > since the tests are at a higher level and so failures are more difficult > to diagnose. > > Add some tests that exercise the fdt module directly. > > Signed-off-by: Simon

Re: [U-Boot] [PATCH v2 15/29] dtoc: Update fdt tests to increase code coverage

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present only some of the fdt functionality is tested. Add more tests to > cover the rest of it. Also turn on test coverage, which is now 100% with > a small exclusion for a Python 3 feature. > > Signed-off-by: Simon Glass > --- > > Changes in v2:

Re: [U-Boot] [PATCH v2 10/29] binman: Move coverage logic into a new test_util file

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present only binman has the logic for determining Python test coverage > but this is useful for other tools also. Move it out into a separate file > so it can be used by other tools. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > -

Re: [U-Boot] [PATCH v2 01/29] binman: Switch to 'python-coverage'

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > From: Tom Rini > > The most portable way to get access to coverage is to invoke it as > 'python-coverage'. > > Cc: Simon Glass > Signed-off-by: Tom Rini > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Correct logic for detecting python

Re: [U-Boot] [PATCH 09/11] dm: core: Update of_read_fmap_entry() for livetree

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > Update this function to take an ofnode so that it can work with livetree. > > Signed-off-by: Simon Glass > --- > > drivers/core/of_extra.c | 8 > drivers/misc/cros_ec.c | 4 ++-- > include/dm/of_extra.h | 6 ++ > 3 files changed, 8

Re: [U-Boot] [PATCH 08/11] dm: spi: Update sandbox SPI emulation driver to use ofnode

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > Update the parameters sandbox_sf_bind_emul to support livetree. > > Signed-off-by: Simon Glass > --- > > drivers/mtd/spi/sandbox.c | 9 + > include/spi_flash.h | 2 +- > test/dm/spi.c | 8 > 3 files changed, 10

Re: [U-Boot] [PATCH 05/11] dm: core: Add a way to find an ofnode by compatible string

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > Add an ofnode_by_compatible() to allow iterating through ofnodes with a > given compatible string. > > Signed-off-by: Simon Glass > --- > > drivers/core/ofnode.c | 12 > include/dm/ofnode.h | 11 +++ > 2 files changed, 23

Re: [U-Boot] [PATCH 11/11] dm: core: Add logging of some common errors

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > Add additional logging so that common errors when finding a device by > ofnode are easier to debug. > > Signed-off-by: Simon Glass > --- > > drivers/core/uclass.c | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) Applied to

Re: [U-Boot] [PATCH v2 27/29] binman: Add a ProcessFdt() method

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > Some entry types modify the device tree, e.g. to remove microcode or add a > property. So far this just modifies their local copy and does not affect > a 'shared' device tree. > > Rather than doing this modification in the ObtainContents() method, and

Re: [U-Boot] [PATCH v2 21/29] binman: Move capture_sys_output() to test_util

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > This function is useful in various tests. Move it into the common test > utility module. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/elf_test.py | 22 ++ > tools/binman/image_test.py | 2 +- >

[U-Boot] Please pull u-boot-dm

2018-07-09 Thread Simon Glass
Hi Tom. Here are some test-coverage and DM core enhancements. Also it adds a way to access the binman definition from U-Boot. The following changes since commit 8c5d4fd0ec222701598a27b26ab7265d4cee45a3: Prepare v2018.07 (2018-07-09 10:24:14 -0400) are available in the Git repository at:

Re: [U-Boot] [PATCH v2 03/29] binman: Tidy up variables in _RunMicrocodeTest()

2018-07-09 Thread Simon Glass
On 6 July 2018 at 10:27, Simon Glass wrote: > At present we call the three entries first, second and third. Rename them > to reflect their contents instead, for clarity. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/ftest.py | 25 ++--- > 1

Re: [U-Boot] [PATCH 10/11] dm: core: Add a function to decode a memory region

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > Add a way to decode a memory region, including the memory type (sram or > sdram) and its start address and size. > > Signed-off-by: Simon Glass > --- > > drivers/core/of_extra.c | 81 + >

Re: [U-Boot] [PATCH 04/11] dm: core: Add comments to ofnode_read_resource() functoins

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > These functions are missing comments. Add some. > > Signed-off-by: Simon Glass > --- > > include/dm/ofnode.h | 23 +++ > 1 file changed, 23 insertions(+) Applied to u-boot-dm ___

Re: [U-Boot] [PATCH 03/11] dm: core: Fix a few ofnode function comments

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > Tidy up three return-value errors. > > Signed-off-by: Simon Glass > --- > > include/dm/ofnode.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied to u-boot-dm ___ U-Boot mailing list

Re: [U-Boot] [PATCH 07/11] dm: core: Add a way to bind a device by ofnode

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > Add a new device_bind_ofnode() function which can bind a device given its > ofnode. This allows binding devices more easily with livetree nodes. > > Signed-off-by: Simon Glass > --- > > drivers/core/device.c| 8 >

Re: [U-Boot] [PATCH 06/11] log: Add a way to log a return value with a message

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > It is sometimes useful to show a message when logging an error return > value, perhaps to add a few details about the problem. Add a function to > support this. > > Signed-off-by: Simon Glass > --- > > include/log.h | 8 > 1 file changed,

Re: [U-Boot] [PATCH 02/11] dm: core: Add ofnode function to read a 64-bit int

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > We have a 32-bit version of this function. Add a 64-bit version as well so > we can easily read 64-bit ints from the device tree. > > Signed-off-by: Simon Glass > --- > > drivers/core/of_access.c | 19 +++ > drivers/core/ofnode.c

Re: [U-Boot] [PATCH 01/11] fdt: Add device tree memory bindings

2018-07-09 Thread Simon Glass
On 11 June 2018 at 13:07, Simon Glass wrote: > > From: Michael Pratt > > Support a default memory bank, specified in reg, as well as > board-specific memory banks in subtree board-id nodes. > > This allows memory information to be provided in the device tree, > rather than hard-coded in, which

Re: [U-Boot] [PATCH 2/2] sandbox: Don't disable ctrlc() on sandbox if in raw mode

2018-07-09 Thread Joe Hershberger
On Sun, Jul 8, 2018 at 9:39 PM, Simon Glass wrote: > Hi Joe, > > On 2 July 2018 at 18:06, Joe Hershberger wrote: >> In raw mode, handle ctrl-c as normal. This allows normal ctrl-c behavior >> such as aborting a command that is timing out without completely >> terminating the sandbox executable.

[U-Boot] [PATCH RFC 6/8] dm: usb: Add UCLASS_USB_DEV_GENERIC shutdown

2018-07-09 Thread Jagan Teki
Some OTG controllers which operates on Peripheral mode are registered as UCLASS_USB_DEV_GENERIC. So add support to shutdown them as well. shutdown happened during 'usb reset' and U-Boot handoff code for Linux boot. controller restarting in 'usb reset' like probing again is still missing for this

[U-Boot] [PATCH 8/8] usb: musb-new: core: Call musb_platform_exit from musb_stop

2018-07-09 Thread Jagan Teki
musb_stop is shutdown code for musb where it call platform and generic disable. So add platform exit, for proper graceful shutdown. Signed-off-by: Jagan Teki --- drivers/usb/musb-new/musb_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb-new/musb_core.c

[U-Boot] [PATCH 3/8] phy: sun4i-usb: Call phy_passby even for PHY#0

2018-07-09 Thread Jagan Teki
phy_passby is not calling for phy id 0 in legacy code, which has no information on why it restricted. Since Linux phy driver doesn't restrict like this, so call it directly with out any condition Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 3 +-- 1 file changed, 1

[U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5

2018-07-09 Thread Jagan Teki
Only H3 and H5 have 4 PHYS so restrict rst_mask only for them. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index

[U-Boot] [PATCH 7/8] usb: musb-new: sunxi: Add proper musb exit support

2018-07-09 Thread Jagan Teki
musb have platform ops to do proper graceful exit, so add the exit call and move musb platform exit code instead of keeping it in driver remove. This make proper shutdown of musb where .remove will call disable, exit serially via musb_stop. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH 2/8] usb: musb-new: sunxi: Allocate struct phy in private

2018-07-09 Thread Jagan Teki
Allocate struct phy in private structure instead of allocating locally and assign it to a pointer. This eventually fix miss alignment phy which is used in another functions. Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 24 +++- 1 file changed, 11

[U-Boot] [PATCH 4/8] phy: sun4i-usb: Remove usb_clk_cfg set in probe

2018-07-09 Thread Jagan Teki
usb_clk_cfg is setting CTRL_PHYGATE bit value in probe which is BIT 0 for sun4i, 6i and 8 for a83t but all these were handling in phy ops init exit calls. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH 1/8] usb: musb-new: Fix improper musb host pointer

2018-07-09 Thread Jagan Teki
When MUSB is operating in peripheral mode, probe registering musb core using musb_register which intern return int value for validation. so there is no scope to preserve struct musb pointer but the same can be used in .remove musb_stop. So fix this by return musb_register with struct musb pointer.

[U-Boot] [PATCH 0/8] musb: sunxi: Few fixes/improvements

2018-07-09 Thread Jagan Teki
All these changes mostly related to musb/sunxi.c and msub core files with few fixes on sunxi front and some code improvements on musb while handling shutdown code. One patch mark it as 'RFC' about "including UCLASS_USB_DEV_GENERIC into shutdown caller" so expecting some inputs on the same.

[U-Boot] [PATCH 1/2] mips: dbau1x00: Remove this board

2018-07-09 Thread Tom Rini
This platform has been marked as orphan since June of 2016 and should have been removed some time ago. Do so now. Cc: Daniel Schwierzeck Signed-off-by: Tom Rini --- arch/mips/Kconfig | 11 - arch/mips/mach-au1x00/au1x00_eth.c | 5 -

Re: [U-Boot] [PATCH v3 2/2] net: mvgbe: convert to DM

2018-07-09 Thread Michael Walle
Am 2018-07-09 11:34, schrieb Chris Packham: Add driver model support to the mvgbe driver. As a temporary measure both DM and non-DM uses are supported. Once all the users have been converted the non-DM support can be dropped. Signed-off-by: Chris Packham Works for me now, after adding the

Re: [U-Boot] [PATCH] spi: kirkwood: add orion-spi compatible string

2018-07-09 Thread Michael Walle
Am 2018-05-08 00:54, schrieb Chris Packham: This matches the compatible string used by the Linux kernel. This will allow u-boot to use the same device tree files. This patch is still missing to make SPI on kirkwoods work. Is there anything missing which prevents it from being applied?

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

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

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

2018-07-09 Thread Jagan Teki
Now enet clock support available for imx6qdl and imx6ul, via CLK framework, so add enable, set_rate support in drivers. Signed-off-by: Jagan Teki --- drivers/net/fec_mxc.c | 58 +++ drivers/net/fec_mxc.h | 6 + 2 files changed, 64 insertions(+) diff

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

2018-07-09 Thread Jagan Teki
Add support for ENET clock on i.MX6UL platform. Signed-off-by: Jagan Teki --- drivers/clk/imx/Kconfig | 7 +++ drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk_imx6ul.c | 95 3 files changed, 103 insertions(+) create mode 100644

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

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

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

2018-07-09 Thread Jagan Teki
Add support for ENET clock on i.MX6QDL platform. Signed-off-by: Jagan Teki --- drivers/clk/imx/clk_imx6q.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/clk/imx/clk_imx6q.c b/drivers/clk/imx/clk_imx6q.c index 3019218411..f0cb7ece1f 100644

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

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

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

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

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

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

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

2018-07-09 Thread Jagan Teki
One of the blocking area where fec_mxc is unlikely to move dm can be CLK support, this series trying to add support for it and concentrated on ENET clocking for i.MX6QDL and i.MX6UL. I've verified this on i.MX6QDL, but the reason for sending this is an 'RFC' is there are some quite few issues

Re: [U-Boot] [PATCH v2 2/2] configs: Update Meson GX configs

2018-07-09 Thread Neil Armstrong
On 09/07/2018 17:34, Loic Devulder wrote: > Enable ADC support on the Khadas VIM board. > > Signed-off-by: Loic Devulder > --- > configs/khadas-vim_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/configs/khadas-vim_defconfig b/configs/khadas-vim_defconfig > index

Re: [U-Boot] [PATCH v2 1/2] ARM64: meson: Add 'usb2_phy0' in P212 DT file

2018-07-09 Thread Neil Armstrong
Hi Loic, On 09/07/2018 17:34, Loic Devulder wrote: > Enable power supply for USB Amlogic Meson GXL P212 based boards. > > Signed-off-by: Loic Devulder We like to keep the u-boot and linux DTS synced, this changed was backported on Linux v4.17.5, can you instead precise you backported the last

Re: [U-Boot] [PATCH 5/5] arm: dts: socfpga: stratix10: update pdma

2018-07-09 Thread Dinh Nguyen
On 05/31/2018 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Update pdma properties for Stratix 10 > > Signed-off-by: Tien Fong Chee > --- > arch/arm/dts/socfpga_stratix10.dtsi | 20 > 1 file changed, 20 insertions(+) > > diff --git

Re: [U-Boot] [PATCH] tegra: p2771: Add CONFIG_EFI_LOADER_BOUNCE_BUFFER

2018-07-09 Thread Peter Robinson
On Mon, Jul 9, 2018 at 6:41 PM, Stephen Warren wrote: > On 07/06/2018 04:12 AM, Peter Robinson wrote: >> >> The Jetson TX2 needs EFI loader bounce buffer enabled otherwise grub >> doesn't see >> the storage when it loads. > > > I suspect the need for this option is imposed by the SoC HW not the

Re: [U-Boot] [PATCH] ARM: dts: socfpga: Adjust NAND register layout on Arria10

2018-07-09 Thread Dinh Nguyen
On 05/29/2018 11:36 AM, Marek Vasut wrote: > Adjust the NAND register size on Arria10 to reflect reality. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > --- > arch/arm/dts/socfpga_arria10.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

Re: [U-Boot] [PATCH] tegra: p2771: Add CONFIG_EFI_LOADER_BOUNCE_BUFFER

2018-07-09 Thread Stephen Warren
On 07/06/2018 04:12 AM, Peter Robinson wrote: The Jetson TX2 needs EFI loader bounce buffer enabled otherwise grub doesn't see the storage when it loads. I suspect the need for this option is imposed by the SoC HW not the board design? If so, shouldn't the SoC Kconfig symbol select this EFI

Re: [U-Boot] [PATCH 2/3] net: phy: xilinx_phy: Add suuport for livetree

2018-07-09 Thread Grygorii Strashko
On 07/06/2018 05:10 AM, Siva Durga Prasad Paladugu wrote: This patch adds support for livetree by using dev_.. calls instead of fdtdec_.. . Signed-off-by: Siva Durga Prasad Paladugu --- drivers/net/phy/xilinx_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/3] net: phy: ti: Modify to support livetree

2018-07-09 Thread Grygorii Strashko
On 07/06/2018 05:10 AM, Siva Durga Prasad Paladugu wrote: This patch adds support for livetree by using dev_.. calls instead of fdtdec_.. Signed-off-by: Siva Durga Prasad Paladugu --- drivers/net/phy/ti.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

Re: [U-Boot] [PATCH v6 1/6] env: add the same prefix to error messages to make it detectable by tests

2018-07-09 Thread Quentin Schulz
Hi all, This series was tested with Travis: https://travis-ci.org/QSchulz/u-boot/builds/401644733 I can't explain why 45, 46 and 49 are failing but they have the following error message: The command "sudo apt-get install libisl15 -y" failed and exited with 100 during . It's unrelated to this

[U-Boot] [PATCH v6 5/6] cmd: nvedit: env import can now import only variables passed as parameters

2018-07-09 Thread Quentin Schulz
While the `env export` can take as parameters variables to be exported, `env import` does not have such a mechanism of variable selection. Let's add the ability to add parameters at the end of the command for variables to be imported. Every env variable from the env to be imported passed by

[U-Boot] [PATCH v6 3/6] test/py: remove hacks for non-zero RAM base address in tests

2018-07-09 Thread Quentin Schulz
Some functions have different behaviour when the given address is 0 (assumed to be NULL by the function). find_ram_base() does not return 0 anymore so it's safe to remove those offsets. Suggested-by: Stephen Warren Signed-off-by: Quentin Schulz Reviewed-by: Stephen Warren Tested-by: Stephen

[U-Boot] [PATCH v6 6/6] test/py: add test for whitelist of variables while importing environment

2018-07-09 Thread Quentin Schulz
This tests that the importing of an environment with a specified whitelist works as intended. If there are variables passed as parameter to the env import command, those only should be imported in the current environment. For each variable passed as parameter, if - foo is bar in current env and

[U-Boot] [PATCH v6 4/6] hashtable: do not recreate whole hash table if vars are passed to himport_r

2018-07-09 Thread Quentin Schulz
When vars are passed to the himport_r function with H_NOCLEAR flag, those vars will be overridden in the current environment and if one of those vars is not in the imported environment, it'll be deleted in the current environment whatever the flag passed to himport_r. The H_NOCLEAR flag is used

[U-Boot] [PATCH v6 2/6] test/py: return a RAM address different from 0 as it can be interpreted as NULL

2018-07-09 Thread Quentin Schulz
Some functions test that the given address is not NULL (0) and fail or have a different behaviour if that's the case (e.g. hexport_r). Let's make the RAM base address to be not zero by setting it to 2MiB if that's the case. 2MiB is chosen because it represents the size of an ARM LPAE/v8 section.

[U-Boot] [PATCH v6 1/6] env: add the same prefix to error messages to make it detectable by tests

2018-07-09 Thread Quentin Schulz
The error message should start with `## Error: ` so that it's easily detectable by tests without needing to have a complex regexp for matching all possible error message patterns. Let's add the `## Error: ` prefix to the error messages since it's the one already in use. Suggested-by: Stephen

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-07-09 Thread Joe Hershberger
On Mon, Jul 9, 2018 at 9:43 AM, Tom Rini wrote: > On Mon, Jul 09, 2018 at 08:19:44AM +0200, Michal Simek wrote: >> On 30.6.2018 06:19, Simon Glass wrote: >> > On 27 June 2018 at 07:13, Michal Simek wrote: >> >> On 22.6.2018 14:25, Jean-Jacques Hiblot wrote: >> >>> In some cases it can be useful

Re: [U-Boot] [PATCH v2 1/1] net: Store waiting packet in a different buffer when making ARP requests

2018-07-09 Thread Joe Hershberger
On Wed, Jul 4, 2018 at 9:13 PM, Tran Tien Dat wrote: > U-Boot has 1 common buffer to send Ethernet frames, pointed to by > net_tx_packet. When sending to an IP address without knowing the MAC > address, U-Boot makes an ARP request (using the arp_tx_packet buffer) to > find out the MAC address of

Re: [U-Boot] [PATCH 1/1] avb2.0: add get_size_of_partition()

2018-07-09 Thread Igor Opaniuk
Hi Eugeniu, Thanks for reporting this issue, LIBAVB should depend on CONFIG_FASTBOOT, as fastboot buffer is re-used (which initially is used in the fastboot protocol for downloads) for mmc read/write AvbOps (and buffer size is configured by setting CONFIG_FASTBOOT_BUF_ADDR and

  1   2   >