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é

    Yannick Fertré
     

11 Oct, 2019

3 commits


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

    Simon Glass
     
  • 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

    Simon Glass
     
  • 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

    Simon Glass
     
  • 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

    Simon Glass
     
  • 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

    Simon Glass
     
  • 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

    Simon Glass
     

03 Sep, 2019

1 commit


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

    Peng Fan
     

13 Aug, 2019

3 commits


12 Aug, 2019

1 commit


31 Jul, 2019

1 commit


27 Jul, 2019

1 commit


24 Jul, 2019

1 commit


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: 0

    Signed-off-by: Loic Pallardy
    Signed-off-by: Fabien Dessenne
    Reviewed-by: Lokesh Vutla

    Fabien Dessenne
     
  • 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: 0

    Signed-off-by: Fabien Dessenne

    Fabien Dessenne
     

19 Jul, 2019

3 commits


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

    Alex Marginean
     

13 Jul, 2019

2 commits


12 Jul, 2019

1 commit


11 Jul, 2019

2 commits


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

    Jean-Jacques Hiblot
     

20 May, 2019

1 commit


09 May, 2019

3 commits


05 May, 2019

1 commit


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

    Patrick Delaunay
     

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

    Anup Patel
     

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

    Simon Glass
     
  • 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

    Simon Glass