14 Oct, 2019
1 commit
-
Display Serial Interface (DSI) host can usefully be modelled
as their own uclass.
DSI defines a serial bus and a communication protocol
between the host and the device (panel, bridge).Signed-off-by: Yannick Fertré
11 Oct, 2019
3 commits
-
Introduce rproc_elf_get_boot_addr() that returns the entry point of
the elf file. This api auto detects the 64/32 bit elf file and returns
the boot addr accordingly.Signed-off-by: Lokesh Vutla
-
rproc_elf32_load_image() rely on user to send a valid address for elf loading.
Instead do a sanity check on the address passed by user. This will help
all rproc elf users to not call sanity_check explicitly before calling
elf_loading.Signed-off-by: Lokesh Vutla
Reviewed-by: Fabien Dessenne -
Add a function to count the available children of a device.
Signed-off-by: Lokesh Vutla
08 Oct, 2019
6 commits
-
At present PCI address transaction is not supported so drivers must
manually read the correct BAR after reading the device tree info. The
ns16550 has a suitable implementation, so move this code into the core
DM support.Note that there is no live-tree equivalent at present.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
[bmeng: correct the unclear comments in test.dts]
Signed-off-by: Bin Meng -
Rename this ID to SANDBOX_PCI_SWAP_CASE_EMUL_ID since it is more
descriptive and allows us to add new PCI emulators without any conflict or
confusion.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
This should perhaps be a period.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
[bmeng: add the ending period and reword the commit message]
Signed-off-by: Bin Meng -
This function returns -ENODEV when there is no device. This is
inconsistent with other functions, such as uclass_find_next_device(),
which returns 0.Update it and tidy up the incorrect '-1' values in the comments.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng -
At present tests that are marked as only for livetree fail when executed
on sandbox_flattree. They cannot actually be executed, but we should not
resport them as 'not found', since this causes errors. Instead, they
should be silently skipped.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
At present when multiple 'ut dm' commands are executed, all but the first
is run with a flat tree, even if live tree is enabled. This is because the
live tree node pointer is set to NULL and never restored.This does not affect normal test running, which just runs all the test in
one go, but can be confusing when several individual tests are run during
the same U-Boot run.Correct this by restoring the pointer.
Fixes: c166c47ba3 (dm: test: Add support for running tests with livetree)
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
03 Sep, 2019
1 commit
-
Add cache enable and disable ops for test coverage.
Signed-off-by: Rick Chen
Cc: KC Lin
Reviewed-by: Bin Meng
22 Aug, 2019
1 commit
-
Since we added clk enable_count and prograte clk child enabling
operation to clk parent, so add a new function sandbox_clk_enable_count
to get enable_count for test usage.And add test code to get the enable_count after we enable/disable
the device clk.Signed-off-by: Peng Fan
13 Aug, 2019
3 commits
-
- More DaVinci updates and fixes
- PCIe support on am65x
- Watchdog converted to DM
- Assorted other bugfixes -
Current dev_read_*() API lacks support to get address and size
of a "reg" property by name or index. Add support for the same.Livetree support has been added but not tested on real hardware.
The existing unit tests testing reading address from device-tree
have been updated to test address as well as size.Reviewed-by: Lokesh Vutla
Signed-off-by: Sekhar Nori -
Add support for clk_is_match() which is required to
know if two clock pointers point to the same exact
physical clock.Also add a unit test for the new API.
Reviewed-by: Lokesh Vutla
Signed-off-by: Sekhar Nori
12 Aug, 2019
1 commit
-
Move env_set() over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass
31 Jul, 2019
1 commit
-
Test composite clk with dm ccf
Signed-off-by: Peng Fan
27 Jul, 2019
1 commit
-
u-boot-imx-20190719
- CCF for i.MX6
- nandbcb command to write SPL into NAND
- Switch to DM (i.MX28)
- Boards: Toradex, engicam, DH
- Fixes for i.MX8
- Fixes for i.MX7ULPTravis: https://travis-ci.org/sbabic/u-boot-imx/builds/561147504
24 Jul, 2019
1 commit
-
- add rtc driver for stm32mp1
- add remoteproc driver for stm32mp1
- use kernel qspi compatible string for stm32
22 Jul, 2019
2 commits
-
The current implementation supports only binary file load.
Add helpers to support ELF32 format (sanity check, and load).
Note that since an ELF32 image is built for the remote processor, the
load function uses the device_to_virt ops to translate the addresses.
Implement a basic translation for sandbox_testproc.Add related tests. Test result:
=> ut dm remoteproc_elf
Test: dm_test_remoteproc_elf: remoteproc.c
Test: dm_test_remoteproc_elf: remoteproc.c (flat tree)
Failures: 0Signed-off-by: Loic Pallardy
Signed-off-by: Fabien Dessenne
Reviewed-by: Lokesh Vutla -
Add the following functions to translate DMA address to CPU address:
- dev_translate_dma_address()
- ofnode_translate_dma_address()
- of_translate_dma_address()
- fdt_translate_dma_address()
These functions work the same way as xxx_translate_address(), with the
difference that the translation relies on the "dma-ranges" property
instead of the "ranges" property.Add related test. Test report:
=> ut dm fdt_translation
Test: dm_test_fdt_translation: test-fdt.c
Test: dm_test_fdt_translation: test-fdt.c (flat tree)
Failures: 0Signed-off-by: Fabien Dessenne
19 Jul, 2019
3 commits
-
This patch provides code to implement the CCF clock tree in sandbox. It
uses all the introduced primitives; some generic ones are reused, some
sandbox specific were developed.In that way (after introducing the real CCF tree in sandbox) the recently
added to clk-uclass.c: clk_get_by_id() and clk_get_parent_rate() are tested
in their natural work environment.Usage (sandbox_defconfig and sandbox_flattree_defconfig):
./u-boot --fdt arch/sandbox/dts/test.dtb --command "ut dm clk_ccf"Signed-off-by: Lukasz Majewski
-
Adds a test using a makeshift MDIO MUX. The test is based on the existing
MDIO test. It uses the last emulated PHY register to verify MUX selection.Signed-off-by: Alex Marginean
Acked-by: Joe Hershberger
Reviewed-by: Bin Meng -
This 2nd register is used by the follow-up MDIO MUX test.
Signed-off-by: Alex Marginean
Reviewed-by: Bin Meng
Acked-by: Joe Hershberger
16 Jul, 2019
1 commit
-
A very simple test for DM_MDIO, mimicks a register write/read through the
sandbox bus to a dummy PHY.Signed-off-by: Alex Marginean
Reviewed-by: Bin Meng
Tested-by: Bin Meng
Acked-by: Joe Hershberger
13 Jul, 2019
2 commits
-
"keyb" is not the real device name, "keyb@3" is.
Signed-off-by: Peng Fan
Reviewed-by: Bin Meng -
"adc" is not the real device name, "adc@0" is.
Signed-off-by: Peng Fan
Reviewed-by: Bin Meng
12 Jul, 2019
1 commit
-
- Sandbox improvements including .dts refactor
- Minor tracing and PCI improvements
- Various other minor fixes
- Conversion of patman, dtoc and binman to support Python 3
11 Jul, 2019
2 commits
-
Add basic PCI endpoint sandbox testing.
Signed-off-by: Ramon Fried
Reviewed-by: Simon Glass -
This test is built on top of the existing swap_case driver. It adds EA
capability structure support to swap_case and uses that to map BARs.
BAR1 works as it used to, swapping upper/lower case. BARs 2,4 map to a
couple of magic values.Signed-off-by: Alex Marginean
Reviewed-by: Bin Meng
Tested-by: Bin Meng
05 Jul, 2019
1 commit
-
This uclass is intended for devices that do not need any features from the
uclass, including binding children.
This will typically be used by devices that are used to bind child devices
but do not use dm_scan_fdt_dev() to do it. That is for example the case of
several USB wrappers that have 2 child devices (1 for device and 1 for
host) but bind only one at a any given time.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
20 May, 2019
1 commit
-
Pull the vidconsole_put_string() function from DM tests, make it
available to e.g. boards that want to display information on the
LCD on boot.Signed-off-by: Marek Vasut
Cc: Anatolij Gustschin
Reviewed-by: Anatolij Gustschin
09 May, 2019
3 commits
-
- H6 Beelink GS1 board (Clément)
- Olimex A64-Teres-I board (Jonas)
- sunxi build fix for CONFIG_CMD_PXE|DHCP (Ondrej)
- Change include order (Jagan)
- EPHY clock changes (Jagan)
- EMAC enablement on Cubietruck Plus, BPI-M3 (Chen-Yu Tsai) -
Add sample dm reset test for reset_get_by_index and
reset_get_by_index_nodev functionality code.Cc: Stephen Warren
Signed-off-by: Jagan Teki
Reviewed-by: Simon Glass -
Add sample dm clk test for clk_get_by_index and
clk_get_by_index_nodev functionality code.Cc: Stephen Warren
Signed-off-by: Jagan Teki
Reviewed-by: Simon Glass
05 May, 2019
1 commit
-
The cache UCLASS will be used for configure settings that can be found
in a CPU's L2 cache controller.Add a uclass and a test for cache.
Reviewed-by: Simon Glass
Signed-off-by: Dinh Nguyen
12 Apr, 2019
1 commit
-
Change the function syscon_regmap_lookup_by_phandle()
introduced by commit 6c3af1f24e4b ("syscon: dm: Add a
new method to get a regmap from DTS") to have
Linux-compatible syscon API.Same modification than commit e151a1c288bd ("syscon: add
Linux-compatible syscon API") solves issue when the node
identified by the phandle has several compatibles and is
already bound to a dedicated driver.See Linux commit bdb0066df96e ("mfd: syscon: Decouple syscon
interface from platform devices").Signed-off-by: Patrick Delaunay
Reviewed-by: Simon Glass
27 Feb, 2019
1 commit
-
This patch adds fixed-factor clock driver which derives clock
rate by dividing (div) and multiplying (mult) fixed factors
to a parent clock.Signed-off-by: Atish Patra
Signed-off-by: Anup Patel
Reviewed-by: Simon Glass
20 Feb, 2019
2 commits
-
Some audio codecs such as Intel HDA do not need to use digital data to
play sounds, but instead have a way to emit beeps. Add this interface as
an option. If the beep interface is not supported, then the sound uclass
falls back to the I2S interface.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
At present the PCH has 4 operations and these are reasonably widely used
in the drivers. But sometimes we want to add rarely used operations, and
each of these currently adds to the size of the PCH operations table.Add an ioctl() method which can be easily expanded without any more impact
on the operations table.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng