[U-Boot] [PATCH v5] QE: add QE support on SD boot

2017-05-24 Thread Zhao Qiang
modify u_qe_init to upload QE firmware from SD card when it is SD boot Signed-off-by: Zhao Qiang --- Changes for v2: - fix issue of memory leak Changes for v3: - add CONFIG_SYS_QE_FMAN_FW_IN_NOR to ls1021a Changes for v4: - rebase due to memory-mapping

Re: [U-Boot] [PATCH v3 01/72] dm: core: Set return value first in lists_bind_fdt()

2017-05-24 Thread sjg
Adjust the order to make it clear that *devp is set to NULL by default. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/lists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-dm

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

2017-05-24 Thread Simon Glass
Hi Tom, This is the first two of the livetree series as well as some driver-model adjustments for MMC. It's up to you if you want to take this now, or wait. I will send a new version of the 3rd livetree series later by early next week and am happy to do this all at once if you prefer. On the

Re: [U-Boot] [PATCH v3 43/72] sandbox: pmic: Convert pmic emulator to support livetree

2017-05-24 Thread sjg
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/pmic/i2c_pmic_emul.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 07/72] dm: core: Rename of_device_is_compatible()

2017-05-24 Thread sjg
The of_ prefix conflicts with the livetree version of this function. Rename it to avoid problems when we add livetree support. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/device.c | 2 +- drivers/firmware/psci.c

Re: [U-Boot] [PATCH v3 13/72] dm: core: Add device-based 'read' functions to access DT

2017-05-24 Thread sjg
It is common to read a device-tree property from the node associated with a device. Add convenience functions to do this so that drivers do not need to deal with accessing the ofnode from the device. These functions all start with 'dev_read_' to provide consistent naming for all functions which

Re: [U-Boot] [PATCH v3 08/72] dm: core: Add operations on device tree references

2017-05-24 Thread sjg
Since U-Boot supports both a live tree and a flat tree, we need an easy way to access the tree without worrying about which is currently active. To support this, U-Boot has the concept of an ofnode, which can refer either to a live tree node or a flat tree node. For the live tree, the reference

Re: [U-Boot] [PATCH v3 22/72] dm: core: Update uclass_find_device_by_phandle() for livetree

2017-05-24 Thread sjg
Adjust this function to work with livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/uclass.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Applied to u-boot-dm ___ U-Boot

Re: [U-Boot] [PATCH v3 40/72] dm: i2c: Convert uclass to livetree

2017-05-24 Thread sjg
Update the i2c uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/i2c/i2c-uclass.c | 28 +--- include/i2c.h| 3 +-- 2 files changed, 14 insertions(+), 17 deletions(-)

Re: [U-Boot] [PATCH v3 23/72] sandbox: Add a way to reset sandbox state for tests

2017-05-24 Thread sjg
Running a new test should reset the sandbox state to avoid tests interferring with each other. Move the existing state-reset code into a function so it can be used from tests. Also update the code to reset the SPI devices and adjust the test code to call it. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v3 31/72] dm: gpio: Add live tree support

2017-05-24 Thread sjg
Add support for requesting GPIOs with a live device tree. This involves adjusting the function signature for the legacy function gpio_request_by_name_nodev(), so fix up all callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None

Re: [U-Boot] [PATCH v3 03/72] dm: core: Add livetree definitions

2017-05-24 Thread sjg
Add a Kconfig option to enable a live device tree, built at run time from the flat tree. Also add structure definitions and a root node. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None dts/Kconfig | 11

Re: [U-Boot] [PATCH v3 39/72] string: Add strcspn()

2017-05-24 Thread sjg
Add an implementation of strcspn() which returns the number of initial characters that do not match any in a rejection list. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/linux/string.h | 15 +++ lib/string.c | 24

Re: [U-Boot] [PATCH v3 15/72] dm: core: Allow binding a device from a live tree

2017-05-24 Thread sjg
When a live tree is being used we need to record the node that was used to create the device. Update device_bind_with_driver_data() to support this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/device.c| 18 --

Re: [U-Boot] [PATCH v3 35/72] test: Update 'make test' to run more tests

2017-05-24 Thread sjg
The standard sandbox board cannot run the of-platdata test since it needs SPL. Also, we should test the flat tree version of sandbox. Add these tests to the default test script. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/run | 8 +++- 1

Re: [U-Boot] [PATCH v3 48/72] dm: usb: Convert uclass to livetree

2017-05-24 Thread sjg
Update the usb uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/usb/host/usb-uclass.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 52/72] dm: clk: fixed: Update to support livetree

2017-05-24 Thread sjg
Update the fixed-rate clock driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/clk/clk_fixed_rate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 24/72] dm: test: Move test running code into a separate function

2017-05-24 Thread sjg
We want to run the same test on flat and live trees. In preparation for this, create a new function which handles running a test. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-main.c | 56

Re: [U-Boot] [PATCH v3 04/72] dm: core: Add livetree access functions

2017-05-24 Thread sjg
Add a basic assortment of functions to access the live device tree. These come from Linux v4.9 and are modified for U-Boot to the minimum extent possible. While these functions are now very stable in Linux, it will be possible to merge in fixes if needed. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v3 25/72] dm: test: Show the test filename when running

2017-05-24 Thread sjg
Show the filename of the test being run. Skip the path and show just the base name. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/test/test.h | 2 ++ test/dm/test-main.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) Applied to

Re: [U-Boot] [PATCH v3 20/72] dm: regmap: Add support for livetree

2017-05-24 Thread sjg
Modify regmap to support livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/regmap.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 09/72] dm: core: Add livetree address functions

2017-05-24 Thread sjg
Add functions to access addresses in the device tree. These are brought in from Linux 4.10. Also fix up the header guard for fdtaddr.h to avoid confusion. Signed-off-by: Simon Glass --- Changes in v3: - Fix up the fdtaddr.h header guard to avoid conflicts Changes in v2:

Re: [U-Boot] [PATCH v3 26/72] dm: test: Add support for running tests with livetree

2017-05-24 Thread sjg
It is useful to run the driver model tests with both livetree and flat tree in case something is different between the two. Add this feature to the test runner. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-main.c | 23

Re: [U-Boot] [PATCH v3 02/72] Update WARN_ON() to return a value

2017-05-24 Thread sjg
In linux v4.9 this returns a value. This saves checking the warning condition twice in some code. Update the U-Boot version to do this also. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/linux/compat.h | 8 ++-- 1 file changed, 6

Re: [U-Boot] [PATCH v3 30/72] dm: gpio: sandbox: Use dev_read...() functions to access DT

2017-05-24 Thread sjg
Use the new dev_read...() functions to access the device tree, so that a live tree can be used. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/gpio/sandbox.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 16/72] dm: core: Update lists_bind_fdt() to use ofnode

2017-05-24 Thread sjg
Adjust this function to use an ofnode instead of an offset, so it can be used with livetree. This involves updating all callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/lists.c | 12 ++-- drivers/core/root.c

Re: [U-Boot] [PATCH v3 45/72] dm: regulator: Update fixed regulator to support livetree.

2017-05-24 Thread sjg
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/regulator/fixed.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 18/72] dm: core: Scan the live tree when setting up driver model

2017-05-24 Thread sjg
When starting up driver model with a live tree we need to scan the tree for devices. Add code to handle this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/root.c | 58 +

Re: [U-Boot] [PATCH v3 28/72] dm: gpio: Refactor to prepare for live tree support

2017-05-24 Thread sjg
Move the main part of the GPIO request function into a separate function so that it can be used by the live tree function when added. Update the xlate method to use a node reference. Update all GPIO drivers to handle the modified xlate() method. Signed-off-by: Simon Glass ---

Re: [U-Boot] [PATCH v3 19/72] dm: core: Add a way to find a device by ofnode

2017-05-24 Thread sjg
Add a function which looks up a device by its node (either in live tree or flat tree). Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/uclass.c| 37 + include/dm/uclass-internal.h | 18

Re: [U-Boot] [PATCH v3 10/72] fdt: Update fdt_get_base_address() to use const

2017-05-24 Thread sjg
This function does not change the device tree so adjust it to use const for this parameter. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/fdt_support.c | 2 +- include/fdt_support.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

Re: [U-Boot] [PATCH v3 34/72] sandbox: Add a new sandbox_flattree board

2017-05-24 Thread sjg
Add a sandbox board to test the non-livetree build (i.e. with CONFIG_OF_FLAT disabled). This increases our build and test coverage. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None board/sandbox/MAINTAINERS | 7 ++

Re: [U-Boot] [PATCH v3 12/72] dm: core: Add a place to put extra device-tree reading functions

2017-05-24 Thread sjg
Some functions deal with structured data rather than simple data types. It makes sense to have these in their own file. For now this just has a function to read a flashmap entry. Move the data types also. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None

Re: [U-Boot] [PATCH v3 05/72] dm: Add a function to create a 'live' device tree

2017-05-24 Thread sjg
This function converts the flat device tree into a hierarchical one with C structures and pointers. This is easier to access. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/of_live.h | 24 lib/Makefile | 1 + lib/of_live.c |

[U-Boot] Please pull u-boot-fdt, take 2

2017-05-24 Thread Simon Glass
Hi Tom, This incorporates the v2 patch for 'fdt: Build the new python libfdt module' which should fix the problem with the original pull request. The following changes since commit be62fbf376261ab3a4ed5db3bf54d5df9e216d9f: Merge branch 'rmobile' of git://git.denx.de/u-boot-sh (2017-05-23

Re: [U-Boot] [PATCH v3 63/72] cros_ec: Update the cros_ec keyboard driver to livetree

2017-05-24 Thread sjg
Update this driver and key_matrix to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/input/cros_ec_keyb.c | 24 drivers/input/key_matrix.c | 19 +--

Re: [U-Boot] [PATCH v3 37/72] dm: Add more livetree helpers and definitions

2017-05-24 Thread sjg
Add some definitions and helpers for livetree in the main of.h header file. These include: - reading multi-cell integers - default number of address/size cells - functions for comparing names Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None

Re: [U-Boot] [PATCH v3 32/72] cros_ec: Fix debug() statement in ec_command_inptr()

2017-05-24 Thread sjg
This prints out the wrong pointers. Fix it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/cros_ec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Applied to u-boot-dm ___ U-Boot

Re: [U-Boot] [PATCH v3 42/72] dm: pmic: Convert uclass to livetree

2017-05-24 Thread sjg
Update the pmic uclass and all pmics to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/pmic/act8846.c | 8 +++- drivers/power/pmic/lp873x.c | 12 +--- drivers/power/pmic/max77686.c|

Re: [U-Boot] [PATCH v3 59/72] dm: power-domain: Update uclass to support livetree

2017-05-24 Thread sjg
Update the power domain uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/domain/power-domain-uclass.c | 19 --- include/power-domain-uclass.h

Re: [U-Boot] [PATCH v3 06/72] dm: Build a live tree after relocation

2017-05-24 Thread sjg
If enabled, build a live device tree after relocation. This can then be used by driver model. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/board_r.c | 12 1 file changed, 12 insertions(+) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 36/72] fdt: Rename a few functions in fdt_support

2017-05-24 Thread sjg
These two functions have an of_ prefix which conflicts with naming used in of_addr. Rename them: fdt_read_number fdt_support_bus_default_count_cells Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/fdt.c| 4

Re: [U-Boot] [PATCH v3 61/72] dm: pci: Update uclass to support livetree

2017-05-24 Thread sjg
Update the PCI uclass to support livetree. This mostly involves fixing the address decoding from the device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/pci/pci-uclass.c | 26 -- 1 file changed, 12

Re: [U-Boot] [PATCH v3 33/72] cros_ec: Convert to support live tree

2017-05-24 Thread sjg
Convert this driver to support the live device tree and remove the old fdtdec support. The keyboard is not yet converted. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/cros_ec.c | 33 ++---

Re: [U-Boot] [PATCH v3 21/72] dm: simple-bus: Add support for livetree

2017-05-24 Thread sjg
Modify simple-bus to support livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/simple-bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Applied to u-boot-dm ___ U-Boot

Re: [U-Boot] [PATCH v3 11/72] dm: core: Add address operations on device tree references

2017-05-24 Thread sjg
Add functions to add addresses in the device tree using ofnode references. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/ofnode.c | 27 +++ include/dm/ofnode.h | 23 ++- 2 files changed, 49

Re: [U-Boot] [PATCH v3 27/72] dm: core: Run tests with both livetree and flat tree

2017-05-24 Thread sjg
Some tests require either livetree or flat tree. Add flags to allow the tests to specify this. Adjust the test runner to run with livetree (if supported) and then flat tree. Some video tests are quite slow and running on flat tree adds little extra test value, so run these on livetree only.

Re: [U-Boot] [PATCH v3 62/72] dm: Update the I2C eeprom driver for livetree

2017-05-24 Thread sjg
Update this driver so that it works with livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/i2c_eeprom_emul.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 55/72] dm: phy: Update tests to use ut_asserteq()

2017-05-24 Thread sjg
Use ut_asserteq() to test equality since this gives a better error message on failure. Also make a few of the tests more specific. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/phy.c | 15 +-- 1 file changed, 9 insertions(+), 6

Re: [U-Boot] [PATCH v3 29/72] dm: gpio: Drop blank line in gpio_xlate_offs_flags() comment

2017-05-24 Thread sjg
This is not needed. Drop it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/asm-generic/gpio.h | 1 - 1 file changed, 1 deletion(-) Applied to u-boot-dm ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v3 44/72] dm: regulator: Convert regulator uclass to support livetree

2017-05-24 Thread sjg
Update the regulator uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/regulator/regulator-uclass.c | 39 -- 1 file changed, 16 insertions(+), 23 deletions(-) Applied to

Re: [U-Boot] [PATCH v3 38/72] string: Add strchrnul()

2017-05-24 Thread sjg
This functions works like strchr() but returns the end of the string if the character is not found. Add an implementation of this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/linux/string.h | 13 + lib/string.c | 8

Re: [U-Boot] [PATCH v3 17/72] dm: core: Update device_bind_driver_to_node() to use ofnode

2017-05-24 Thread sjg
Adjust this function to us an ofnode instead of an offset, so it can be used with livetree. This involves updating all callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/clk/at91/pmc.c | 2 +- drivers/core/lists.c

Re: [U-Boot] [PATCH v3 58/72] sandbox: phy: Update driver for livetree

2017-05-24 Thread sjg
Update the sandbox phy driver to support livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/phy/sandbox-phy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Applied to u-boot-dm ___

Re: [U-Boot] [PATCH v3 14/72] dm: core: Implement live tree 'read' functions

2017-05-24 Thread sjg
When the live tree is supported some functions need to change a little. Add an implementation which is used when not inlining these functions. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/Makefile | 3 + drivers/core/read.c | 140

Re: [U-Boot] [PATCH V6 4/4] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-05-24 Thread Simon Glass
Hi Eddie, On 23 May 2017 at 19:43, Eddie Cai wrote: > 2017-05-24 8:44 GMT+08:00 Simon Glass : >> Hi Eddie, >> >> On 22 May 2017 at 00:43, Eddie Cai wrote: >>> this patch enable rockusb support on rk3288 based device. >>>

Re: [U-Boot] [PATCH v3 49/72] sandbox: usb: Convert emulators to livetree

2017-05-24 Thread sjg
Update the sandbox flash and hub USB emulators to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/usb/emul/sandbox_flash.c | 4 +--- drivers/usb/emul/sandbox_hub.c | 3 +-- 2 files changed, 2 insertions(+), 5

Re: [U-Boot] [PATCH v3 41/72] samsung: Move pmic header out of config file

2017-05-24 Thread sjg
We should not be including a PMIC header file in the board config. Move it to a C file. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to move pmic header out of config file Changes in v2: None board/samsung/common/misc.c | 1 + include/configs/trats2.h|

Re: [U-Boot] [PATCH v3 56/72] dm: mailbox: Update uclass to support livetree

2017-05-24 Thread sjg
Update the mailbox uclass to support livetree. Fix the xlate() method in all callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mailbox/mailbox-uclass.c | 20 drivers/mailbox/tegra-hsp.c | 2 +-

Re: [U-Boot] [PATCH v3 47/72] dm: adc: Convert uclass to livetree

2017-05-24 Thread sjg
Update the adc uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/adc/adc-uclass.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 51/72] dm: clk: Update uclass to support livetree

2017-05-24 Thread sjg
Update the clk uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/clk/clk-uclass.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 50/72] clk: Modify xlate() method for livetree

2017-05-24 Thread sjg
Update the xlate() method to use ofnode_phandle_args instead of the fdtdec variant. This will allow drivers to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/clk/at91/pmc.c| 2 +- drivers/clk/at91/pmc.h| 2

Re: [U-Boot] [PATCH v3 60/72] dm: reset: Update uclass to support livetree

2017-05-24 Thread sjg
Update the reset domain uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/reset/reset-uclass.c | 21 ++--- include/reset-uclass.h | 4 ++-- 2 files

Re: [U-Boot] [PATCH v3 46/72] dm: mmc: Convert uclass to livetree

2017-05-24 Thread sjg
Update the mmc uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mmc/mmc-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Applied to u-boot-dm ___

Re: [U-Boot] [PATCH v3 57/72] dm: phy: Update uclass to support livetree

2017-05-24 Thread sjg
Update the phy uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/phy/phy-uclass.c | 21 + include/generic-phy.h| 3 +-- 2 files changed, 10

Re: [U-Boot] [PATCH v3 53/72] dm: test: Separate out the bus DT offset test

2017-05-24 Thread sjg
We cannot access the device tree via an offset when running in livetree mode. Separate out that part of the bus' children tests and mark it as for the flat tree only. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/bus.c | 16 +++-

Re: [U-Boot] [PATCH v3 54/72] dm: test: Disable the fdt_offset test with livetree

2017-05-24 Thread sjg
We cannot run this test with livetree since it uses device tree offsets. Mark it as flat tree only. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 65/72] dm: sandbox: i2c: Drop fdtdec.h header

2017-05-24 Thread sjg
This is not needed in this driver. Drop it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/i2c/sandbox_i2c.c | 1 - 1 file changed, 1 deletion(-) Applied to u-boot-dm ___ U-Boot mailing list

Re: [U-Boot] [PATCH v3 68/72] dm: sandbox: spi: Convert driver to support livetree

2017-05-24 Thread sjg
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mtd/spi/sandbox.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 66/72] dm: sandbox: i2c_rtc: Drop fdtdec.h header

2017-05-24 Thread sjg
This is not needed in this driver. Drop it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/rtc/i2c_rtc_emul.c | 1 - 1 file changed, 1 deletion(-) Applied to u-boot-dm ___ U-Boot mailing list

Re: [U-Boot] [PATCH v3 64/72] dm: spi: Convert uclass to livetree

2017-05-24 Thread sjg
Update the SPI uclass to support a live device tree. Also adjust spi_slave_ofdata_to_platdata() to accept a device instead of a blob and offset. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/spi/spi-uclass.c | 31

Re: [U-Boot] [PATCH v3 67/72] dm: spi-flash: Convert uclass to livetree

2017-05-24 Thread sjg
Update the SPI flash uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mtd/spi/spi_flash.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 69/72] dm: sandbox: sysreset: Convert driver to livetree

2017-05-24 Thread sjg
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/sysreset/sysreset_sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 70/72] dm: test: Fix nit with position of backslash

2017-05-24 Thread sjg
Line up this backslash with all the others. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/test/ut.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm ___ U-Boot mailing

Re: [U-Boot] [PATCH v3 72/72] sandbox: Move to use live tree

2017-05-24 Thread sjg
This updates sandbox to use a live device tree. This means that after relocation (from board_init_r() onwards) it no-longer uses flat device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Rewrite based on testing and refining the v1 series - Convert

Re: [U-Boot] gcc-6 cross toolchain

2017-05-24 Thread Tom Rini
On Wed, May 24, 2017 at 09:39:04PM +, york sun wrote: > Tom, > > I am trying up update my test servers. You have been changing code to > make gcc-6 happy. Can you share where to get prebuilt (prefer > maintained) toolchain packages? Yes. For travis-ci, I have the Linaro 2017.02 gcc-6.3.1

[U-Boot] gcc-6 cross toolchain

2017-05-24 Thread york sun
Tom, I am trying up update my test servers. You have been changing code to make gcc-6 happy. Can you share where to get prebuilt (prefer maintained) toolchain packages? York ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] i.Mx6q u-boot stuck

2017-05-24 Thread Fabio Estevam
On Wed, May 24, 2017 at 5:56 PM, Fabio Estevam wrote: > Then pass 'earyprintk' in the kernel command line as well. I meant "earlyprintk". ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] i.Mx6q u-boot stuck

2017-05-24 Thread Fabio Estevam
Hi Fausto, Please do not top post in mailing lists. On Wed, May 24, 2017 at 1:29 PM, Fausto Sessego wrote > > > I tried many procedures but i did'nt found any solution. > Try to do: make menuconfig Kernel hacking ---> [*] Kernel low-level debugging functions (read

Re: [U-Boot] [PATCH] scripts/Makefile.lib: Only apply u-boot.dtsi files in the target directory

2017-05-24 Thread Pantelis Antoniou
Hi Tom, On Wed, 2017-05-24 at 11:04 -0400, Tom Rini wrote: > We only want to apply files such as 'omap5-u-boot.dtsi', which resides > in arch/arm/dts/ to other files in arch/arm/dts/ and not say > test/overlay/. Rework the make logic to check for -u-boot.dtsi files in > the same directory as

Re: [U-Boot] [PATCH] armv7m: Fix larger builds

2017-05-24 Thread Vikas MANOCHA
Hi Phil, > -Original Message- > From: Phil Edworthy [mailto:phil.edwor...@renesas.com] > Sent: Wednesday, May 24, 2017 7:34 AM > To: Albert Aribaud > Cc: Tom Rini ; Vikas MANOCHA ; > Kamil Lulko

[U-Boot] [PATCH v3 2/2] drivers: net: fsl-mc: Include MAC addr fixup to DPL

2017-05-24 Thread Bogdan Purcareata
Previous to MC v10.x, port mac address was specified via DPL. Since newer MC versions are compatible with old style DPLs, make the u-boot env mac addresses visible there. This applies only to DPLs that have an older version. DPLs use 32 bit values for specifying MAC addresses. U-boot environment

[U-Boot] [PATCH v3 1/2] drivers: net: fsl-mc: Link MC boot to PHY_RESET_R

2017-05-24 Thread Bogdan Purcareata
DPAA2 platforms boot the Management Complex based on the u-boot env variable "mcinitcmd". Instead of doing this step on each platform individually, define a single mc_env_boot function in the MC driver, since it's semantically tied to it. Call the function in a per-board reset_phy hook, as it

Re: [U-Boot] i.Mx6q u-boot stuck

2017-05-24 Thread Fausto Sessego
Ok. The Kernel doesn't start. U-Boot 2016.07 (May 24 2017 - 17:11:18 +0200) CPU: Freescale i.MX6Q rev1.2 at 792MHz CPU: Industrial temperature grade (-40C to 105C) at 20C Reset cause: POR Board: i.MX6Q TIBIDABO Support: http://www.infomob.it/ I2C: ready DRAM: gd->ram_size: 2147483648

Re: [U-Boot] [PATCH] mmc: sdhci-cadence: set timing mode register depending on frequency

2017-05-24 Thread Masahiro Yamada
2017-05-19 21:24 GMT+09:00 Masahiro Yamada : > The MMC framework in U-Boot does not support a systematic API for > timing switch like mmc_set_timing() in Linux. > > U-Boot just provides a hook to change the clock frequency via > mmc_set_clock(). It is up to drivers

[U-Boot] [PATCH v3 25/30] ARM: dts: keystone-k2g: Remove skeleton.dtsi

2017-05-24 Thread Franklin S Cooper Jr
Adding the unit address to the memory node was causing the below error: Warning (reg_format): "reg" property in /memory has invalid length (8 bytes) (#address-cells == 2, #size-cells == 2) Further debugging showed that this was due to the memory node added by default to skeleton.dtsi which was

[U-Boot] [PATCH v3 28/30] ARM: dts: k2g: Add DT support for K2G Industrial Communication Engine evm

2017-05-24 Thread Franklin S Cooper Jr
Add basic DT support for K2G ICE evm. Only minimal peripherals are supported to allow console output and MMC boot. Signed-off-by: Franklin S Cooper Jr --- Version 2 changes: Updated the dts to mimic version accepted into the Linux kernel. arch/arm/dts/Makefile

[U-Boot] [PATCH v3 13/30] ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards

2017-05-24 Thread Franklin S Cooper Jr
Now with support for U-boot runtime dtb selection each board needs to define board_fit_config_name_match so U-boot can determine what the correct dtb is within the FIT blob. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini ---

[U-Boot] [PATCH v3 11/30] ARM: keystone2: Allow to build with all image formats

2017-05-24 Thread Franklin S Cooper Jr
u-boot.bin is a copy of: u-boot-fit-dtb.bin if CONFIG_FIT_EMBED is enabled, u-boot-dtb.bin if CONFIG_OF_SEPARATE is enabled, u-boot-nodtb.bin if DT is not enabled. So, use u-boot.bin to to generate keystone images instead of u-boot-dtb.bin Signed-off-by: Franklin S Cooper Jr

[U-Boot] [PATCH v3 22/30] board: ks2: Use board detection to wrap code not specific to K2G ICE evm

2017-05-24 Thread Franklin S Cooper Jr
Some code doesn't apply to K2G ICE evm. Therefore, use board detection to wrap these calls. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff

[U-Boot] [PATCH v3 18/30] ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables

2017-05-24 Thread Franklin S Cooper Jr
Different K2G evms may need to program the various KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use the mask and val registers for each KS2_DDRPHY_DATAX_X_OFFSET to properly program the register. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini

[U-Boot] [PATCH v3 19/30] ks2_evm: Add EEPROM based board detection helper functions

2017-05-24 Thread Franklin S Cooper Jr
Add a function that can be used to determine if the board being ran on is a K2G Industrial Communication Engine EVM or K2G General Purpose EVM based on values programmed on the EEPROM. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini ---

[U-Boot] [PATCH v3 21/30] ARM: k2g: Add DDR3 configuration for K2G ICE evm

2017-05-24 Thread Franklin S Cooper Jr
Add configuration settings used by the K2G ICE evm. Also use board detection to determine which DDR3 configuration to use. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/ddr3_k2g.c | 62

[U-Boot] [PATCH v3 12/30] ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot

2017-05-24 Thread Franklin S Cooper Jr
For K2G, runtime DTB selection utilizes the embedded_dtb_select function. Therefore, define the function which will perform a EEPROM read and then retries selecting the correct dtb now that it can detect which board its on. For other Keystone devices use an empty function since they will still use

[U-Boot] [PATCH v3 23/30] ARM: k2g: Use board detection to wrap K2G GP specific calls

2017-05-24 Thread Franklin S Cooper Jr
Certain peripherals used by K2G GP aren't used on K2G ICE evm. Or configuration is slightly different. Therefore, use board detection to deal with these variations. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c |

[U-Boot] [PATCH v3 05/30] ti: common: board_detect: Add function to determine if EEPROM was read

2017-05-24 Thread Franklin S Cooper Jr
When the EEPROM is first read its contents are stored in memory as a cache to avoid further I2C operations. To determine if the EEPROM was previously read the easiest way is to check the memory to see if the EEPROM's magic header value is set. Create a new function that can determine if the EEPROM

[U-Boot] [PATCH v3 30/30] defconfig: k2g_evm_defconfig: Add K2G ICE to OF_LIST

2017-05-24 Thread Franklin S Cooper Jr
Include K2G ICE to OF_LIST so it can be used for runtime board detection. Signed-off-by: Franklin S Cooper Jr --- configs/k2g_evm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig index

[U-Boot] [PATCH v3 24/30] ARM: k2g: Update board_name u-boot env variable at runtime

2017-05-24 Thread Franklin S Cooper Jr
Enable CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to allow "board_name" to be set depending on the board it is being ran on. Update findfdt to use this new dynamic board_name value to determine which dtb should be used. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini

[U-Boot] [PATCH v3 15/30] defconfig: keystone2: Enable U-boot runtime DTB detection

2017-05-24 Thread Franklin S Cooper Jr
Enable various config options to allow U-boot at runtime to select the proper dtb to use from the list of dtb's within the FIT image. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- configs/k2e_evm_defconfig | 3 +++ configs/k2g_evm_defconfig

[U-Boot] [PATCH v3 27/30] ARM: dts: k2g: Disable netcp by default

2017-05-24 Thread Franklin S Cooper Jr
Disable netcp by default like all other peripherals in the dtsi file. Enable the peripheral explicitly in the board specific dts file. Signed-off-by: Franklin S Cooper Jr --- arch/arm/dts/keystone-k2g-evm.dts| 4 arch/arm/dts/keystone-k2g-netcp.dtsi | 1 + 2 files

  1   2   >