Re: [U-Boot] [PATCH v5 3/3] board: at91sam9x5ek: Enable early debug UART

2017-04-21 Thread sjg
Hi Simon, The patches has been rebased on the master branch of u-boot-dm git tree, and you added Reviewed-by tag before. Could you help take them? Best Regards, Wenyou Yang On 2017/4/18 14:51, Wenyou Yang wrote: > Enable the early debug UART to debug problems when an ICE or other > debug mec

Re: [U-Boot] [PATCH v5 2/3] board: at91sam9260ek: Clean up code

2017-04-21 Thread sjg
Since the introduction of the pinctrl and clk drivers and the device tree files, remove unneeded hard coded related code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/at9

Re: [U-Boot] [PATCH v3 2/6] ARM: dts: at91: Add dts files for at91sam9n12ek

2017-04-21 Thread sjg
The device tree source files of at91sam9n12ek boards are copied from the Linux v4.10, do the changes as below. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC, pioD) nodes as the pinctrl's slibling nodes, instead of the child nodes. - Change the compatible of th

Re: [U-Boot] [PATCH 2/7] ARM: dts: sama5d2_xplained: update for SPL

2017-04-21 Thread sjg
Add the "u-boot,dm-pre-reloc" property to determine which nodes which are needed by SPL and by the board_init_f stage. Signed-off-by: Wenyou Yang --- arch/arm/dts/at91-sama5d2_xplained.dts | 12 arch/arm/dts/sama5d2.dtsi | 20 2 files changed, 32 i

Re: [U-Boot] [PATCH 5/7] board: sama5d2_xplained: remove uart1 init

2017-04-21 Thread sjg
Due to the pin configuration and clock enabling is handling by the driver, remove the unneeded hardcode uart1 init during board_early_init_f stage. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Applied to

Re: [U-Boot] [PATCH 3/7] configs: sama5d2_xplained: enable CONFIG_DM_ETH

2017-04-21 Thread sjg
Enable CONFIG_DM_ETH to make MACB to support driver model. Because the USB Ether doesn't support driver model so far, remove this feature. Signed-off-by: Wenyou Yang --- configs/sama5d2_xplained_mmc_defconfig | 2 ++ configs/sama5d2_xplained_spiflash_defconfig | 2 ++ include/configs/sa

Re: [U-Boot] [PATCH v3 1/2] serial: atmel_usart: Fix early debug not work in SPL

2017-04-21 Thread sjg
Add the uart init function to be used on both probe and the early debug uart init. For the latter, the input clock should be from CONFIG_DEBUG_UART_CLOCK. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/serial/atmel_usart.c | 36

Re: [U-Boot] [PATCH v4 3/3] clk: at91: Align the at91 pmc's compatibles

2017-04-21 Thread sjg
Align the at91 pmc's compatibles with kernel. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass Reviewed-by: Andreas Bießmann --- Changes in v4: - Incorporate [PATCH v2] clk: at91: pmc: align the at91 pmc's compatibles. - Rebase on the master branch (22e10be45) of u-boot-dm git tree. - Ad

Re: [U-Boot] [PATCH v3 3/6] ARM: dts: at91: Add dts files for at91sam9m10g45ek

2017-04-21 Thread sjg
The device tree source files of at91sam9m10g45ek boards are copied from the Linux v4.10, do the changes as below. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC, pioD, pioE) nodes as the pinctrl's slibling nodes, instead of the child nodes. - Add the "u-boot,dm

Re: [U-Boot] [PATCH 1/7] ARM: dts: sama5d2: add clock property for uart1 node

2017-04-21 Thread sjg
Add clock property for uart1 node. Signed-off-by: Wenyou Yang --- arch/arm/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) Applied to u-boot-dm/next, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 4/7] board: sama5d2_xplained: clean up macb init code

2017-04-21 Thread sjg
Because the MACB driver supports the driver model and device tree, the pins configuration and clock enabling are handled by the pinctrl driver and clock driver, remove this hardcoded init code. The USB Ether init code is removed as well. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplai

Re: [U-Boot] [PATCH 3/8] configs: rk3328: config xhci controller

2017-05-23 Thread sjg
On 17 May 2017 at 04:21, Meng Dongyang wrote: > Add config of max root ports and add config to enable xhci > controller. > > Signed-off-by: Meng Dongyang > --- > configs/evb-rk3328_defconfig| 3 +++ > include/configs/rk3328_common.h | 3 +++ > 2 files changed, 6 insertions(+) Reviewed-by: S

Re: [U-Boot] [PATCH] rockchip; rk3399: disable SRAM security region

2017-05-23 Thread sjg
On 4 May 2017 at 21:01, Kever Yang wrote: > Some host like SD and eMMC may use DMA to transter data to SRAM, > set memory to non-secure to make sure the address can be accessed. > > The security of SRAM in OS suppose to initialized in ATF bl31, and > the SPL is before the bl31. > > Signed-off-by:

Re: [U-Boot] [PATCH v2 4/7] rockchip: rk3368: Add sysreset driver

2017-05-23 Thread sjg
Add sysreset driver to reset rk3368 SOC. Signed-off-by: Andy Yan Reviewed-by: Simon Glass --- Changes in v2: - slect soft reset source before reset drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset_rk3368.c | 62 ++ 2 files changed, 63 i

Re: [U-Boot] [PATCH v2 3/3] rockchip: rk3036: clean mask definition for grf reg

2017-05-23 Thread sjg
On 15 May 2017 at 06:52, Kever Yang wrote: > U-Boot prefer to use MASKs with SHIFT embeded, clean the Macro > definition in grf header file and pinctrl driver. > > Signed-off-by: Kever Yang > --- > > Changes in v2: > - add grf code clean > > arch/arm/include/asm/arch-rockchip/grf_rk3036.h | 133

Re: [U-Boot] [PATCH] defconfig: firefly-rk3399: fix pinctrl config option

2017-05-23 Thread sjg
On 3 May 2017 at 17:29, Heiko Stuebner wrote: > > The option is named PINCTRL_ROCKCHIP_RK3399 not ROCKCHIP_RK3399_PINCTRL. > Set the correct option. > > Signed-off-by: Heiko Stuebner > --- > configs/firefly-rk3399_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Sim

Re: [U-Boot] [PATCH v2 2/3] rockchip: clock: rk3036: some fix according TRM

2017-05-23 Thread sjg
On 15 May 2017 at 06:52, Kever Yang wrote: > - hclk/pclk_div range should use '<=' instead of '<' > - use GPLL for pd_bus clock source > - pd_bus HCLK/PCLK clock rate should not bigger than ACLK > > Signed-off-by: Kever Yang > --- > > Changes in v2: None > > arch/arm/include/asm/arch-rockchip/cr

Re: [U-Boot] [PATCH v3 1/4] rockchip: efuse: add (misc) driver for RK3399 non-secure efuse block

2017-05-23 Thread sjg
This adds a simple driver for reading the efuse block of the RK3399. It should be easy enough to add drivers for other devices (e.g. the RK3328, RK3368, etc.) by passing the device details via driver_data. Unlike the kernel driver (using the nvmem subsystem), we don't expose the efuse as multiple

Re: [U-Boot] [PATCH v3 3/4] rockchip: board: puma_rk3399: derive ethaddr from cpuid

2017-05-23 Thread sjg
From: Klaus Goger Generate a MAC address based on the cpuid available in the efuse block: Use the first 6 byte of the cpuid's SHA256 hash and set the locally administered bits. Also ensure that the multicast bit is cleared. The MAC address is only generated and set if there is no ethaddr present

Re: [U-Boot] [PATCH 1/8] configs: rk3328: add support for usb and config ehci and ohci driver

2017-05-23 Thread sjg
On 17 May 2017 at 04:21, Meng Dongyang wrote: > Add defconfig for usb and ehci and ohci controller, config maximal > number of ports of the root hub for ohci driver. > > Signed-off-by: Meng Dongyang > --- > configs/evb-rk3328_defconfig| 8 > include/configs/rk3328_common.h | 3 +++ >

Re: [U-Boot] [PATCH] rockchip: board: puma_rk3399: build FIT image via u-boot.itb

2017-05-23 Thread sjg
On 5 May 2017 at 11:22, Philipp Tomsich wrote: Commit message? > Signed-off-by: Philipp Tomsich > --- > > board/theobroma-systems/puma_rk3399/README | 5 ++--- > configs/puma-rk3399_defconfig | 1 + > 2 files changed, 3 insertions(+), 3 deletions(-) > Acked-by: Simon Glass Appl

Re: [U-Boot] [PATCH v2 7/7] rockchip: rk3368: Add PX5 Evaluation board

2017-05-23 Thread sjg
PX5 EVB is designed by Rockchip for automotive field with integrated CVBS (TP2825) / MIPI DSI / CSI / LVDS HDMI video input/output interface, audio codec ES8396, WIFI / BT (on RTL8723BS), Gsensor BMA250E and light&proximity sensor STK3410. Signed-off-by: Andy Yan Reviewed-by: Simon Glass --- Ch

Re: [U-Boot] [PATCH v2 6/7] rockchip: rk3368: Add initial support for RK3368 based GeekBox

2017-05-23 Thread sjg
On 15 May 2017 at 03:54, Andy Yan wrote: > From: Andreas Färber > > The GeekBox is a TV box from GeekBuying, based on an MXM3 module. > The module can be used with base boards such as the GeekBox Landingship. > This adds basic support to chain-load U-Boot from Rockchip's miniloader. > > Signed-of

Re: [U-Boot] [PATCH v2 1/3] rockchip: rk3036: clean mask definition for cru reg

2017-05-23 Thread sjg
On 15 May 2017 at 06:52, Kever Yang wrote: > Embeded the shift in mask MACRO definition in cru header file > and clock driver. > > Signed-off-by: Kever Yang > --- > > Changes in v2: > - split into two patches > > arch/arm/include/asm/arch-rockchip/cru_rk3036.h | 70 +++--- > driv

Re: [U-Boot] [PATCH] power: rk808: fix ldo register offset

2017-05-23 Thread sjg
On 6 May 2017 at 13:21, Heiko Stuebner wrote: > Till now get_ldo_reg did a return &rk808_ldo[num - 1]; to return > the ldo register offset but didn't take into account that its > calling functions already created the ldo as ldo = dev->driver_data - 1. > > This resulted in the setting for ldo8 writ

Re: [U-Boot] [PATCH v2 5/7] rockchip: rk3368: add Sheep board

2017-05-23 Thread sjg
Hi Simon: On 2017年05月17日 09:38, Simon Glass wrote: > On 15 May 2017 at 03:53, Andy Yan wrote: >> Sheep board is designed by Rockchip as a EVB for rk3368. >> Currently it is able to boot a linux kernel and system >> to console with the miniloader run as fist level loader. >> >> Reviewed-by: Simon

Re: [U-Boot] [PATCH 5/8] rockchip: dts: rk3328: support and enable xhci

2017-05-23 Thread sjg
On 17 May 2017 at 04:25, Meng Dongyang wrote: Commit message? > Signed-off-by: Meng Dongyang > --- > arch/arm/dts/rk3328-evb.dts | 5 + > arch/arm/dts/rk3328.dtsi| 11 +++ > 2 files changed, 16 insertions(+) > Reviewed-by: Simon Glass Applied to u-boot-rockchip, thanks! ___

Re: [U-Boot] [PATCH v2 2/7] rockchip: rk3368: Add pinctrl driver

2017-05-23 Thread sjg
On 15 May 2017 at 03:50, Andy Yan wrote: > Add driver to support iomux setup for the most commonly > used peripherals on rk3368. > > Signed-off-by: Andy Yan > --- > > Changes in v2: > - remove GRF base definition in cru head file > - remove unused function > > arch/arm/include/asm/arch-rockchip/

Re: [U-Boot] [PATCH 2/8] rockchip: dts: rk3328: add ehci and ohci node and enable host0 port

2017-05-23 Thread sjg
On 17 May 2017 at 04:21, Meng Dongyang wrote: Commit message? > Signed-off-by: Meng Dongyang > --- > arch/arm/dts/rk3328-evb.dts | 8 > arch/arm/dts/rk3328.dtsi| 14 ++ > 2 files changed, 22 insertions(+) Reviewed-by: Simon Glass Applied to u-boot-rockchip, thanks!

Re: [U-Boot] [PATCH v3 2/4] rockchip: board: puma_rk3399: add support for serial# and cpuid# via efuses

2017-05-23 Thread sjg
On 5 May 2017 at 11:21, Philipp Tomsich wrote: > With our efuse driver for the RK3399 ready, we can add the > board-specific code that consumes the cpuid from the efuse block and > postprocesses it into the system serial (using the same CRC32 based > derivation as in Linux). > > We expose the cpui

Re: [U-Boot] [PATCH v3 4/4] rockchip: defconfig: puma-rk3399: enable RK3399 efuse driver

2017-05-23 Thread sjg
On 5 May 2017 at 11:21, Philipp Tomsich wrote: > With everything in place (i.e. the new efuse driver, the clk-support > for the non-secure efuse block, and the board-specific functions to > derive 'serial#' from the cpu-id within the efuses), enable this in > the RK3399-Q7 defconfig. > > Signed-of

Re: [U-Boot] [PATCH v2 3/7] rockchip: rk3368: Add core start-up code for RK3368

2017-05-23 Thread sjg
From: Andreas Färber The RK3368 is an octa-core Cortex-A53 SoC from Rockchip. This adds basic support to chain-load U-Boot from Rockchip's miniloader. Signed-off-by: Andreas Färber Signed-off-by: Andy Yan Reviewed-by: Simon Glass --- Changes in v2: - remove directly reference of GRF and CRU

Re: [U-Boot] [PATCH v2 1/7] rockchip: rk3368: Add clock driver

2017-05-23 Thread sjg
On 15 May 2017 at 03:49, Andy Yan wrote: > Add driver to setup the various PLLs and peripheral > clocks on the RK3368. > > Signed-off-by: Andy Yan > --- > > Changes in v2: > - fix typo in subject > - remove CRU base definition in cru head file > - Drop extra blank lines > > arch/arm/include/a

Re: [U-Boot] [PATCH] regulator: pwm: Fix handling of missing init voltage

2017-05-23 Thread sjg
Since priv->init_voltage is an unsigned integer it can never be negative. So the current code fails to detect a missing 'regulator-init-microvolt' property and instead misconfigures the PWM device. Fix this by making the relevant members of 'struct pwm_regulator_info' signed integers. Signed-off

Re: [U-Boot] [PATCH] rockchip: rk8xx: allocate priv structure for driver

2017-05-23 Thread sjg
On 5 May 2017 at 00:50, Kever Yang wrote: > The rk8xx_priv structure need to allocate for driver, or else > it will cause data abort when CPU access it. > > This is a bug fix for below patch set: > https://www.mail-archive.com/u-boot@lists.denx.de/msg247345.html > > Signed-off-by: Kever Yang > --

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 various subsystems

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 list U-Boot@lists.denx

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 ___ U-Boot mailin

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 ___ U-Boo

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 U-Boot@lists.denx.de http

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 ++- include/spi.h

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 ___ U-Boot mailing li

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 U-Boot@lists.denx.de https

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 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 +++- 1 file changed, 15

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 insertions(+), 14 deletions

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 ___ U-Boot mailing list

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 changed, 12 insertion

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 +- drivers/clk/clk-

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 ___ U-

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 ___ U-Boot

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 +- include/mailbox-uclass.h |

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| 1 - 2 files change

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 deletions(-) Applied to

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 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 ___ U-Boot mailing list

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 | 15 ++-

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 2 files cha

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 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 deletions(-) Applied

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 https://lists.denx.

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 ___ U-Boot mai

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 insertions(+), 1 del

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. Signe

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 mailing list U-Boot@lists

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 ++--- drivers/misc/cros_ec_sandbox.

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 insertions(+), 14 deletions(-)

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 ++-- arch/arm/mach

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 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 | 2 +- 2 fil

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| 8 +++- drivers

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 mailing list U-Boot@lis

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 drivers/core/ofnode.c | 4 ++-

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 +-- drivers/input/tegra-kbc.c| 3 +-- incl

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 | 333

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 drivers/core/Makef

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 ++ configs/sandbox_flattree_defconfig | 179 +

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(-) Applied to u-boot-dm

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 ++ include/d

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 --- Changes in v3: Non

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 + include/dm/root.h | 3 ++- tes

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 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| 2 +- driv

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 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 --- 1 file chang

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 insertions(+), 2 deletions

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: None drivers/core/Mak

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 ___ U-

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 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 ++--- 1 file change

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 --- Changes i

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 ___ U-Boot m

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 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 file changed, 7 ins

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 -- drivers/core/lists.c

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 include/asm-generic/global_data.h | 3

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 board/qualcomm/dragonboard410c/dragonboa

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 --- Chang

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(-) Applied to u-boot-dm __

<    1   2   3   4   5   6   7   8   9   10   >