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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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 +++
>
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
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
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
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
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
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
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!
___
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/
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!
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
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
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
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
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
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
> --
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
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
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
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
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
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
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
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
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
__
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
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
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
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
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-
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-
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
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 |
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
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
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 +
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
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 ++-
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
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
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
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.
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
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
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
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
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.
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(-)
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
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
__
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
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
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
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 ++-
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
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
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
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 +
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
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
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
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
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
___
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
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
___
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
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
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
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-
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
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
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
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
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
___
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
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
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
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
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
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
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
__
501 - 600 of 1121 matches
Mail list logo