10 Apr, 2020

2 commits


03 Mar, 2020

1 commit

  • In various cases a power domain must stay enabled after device
    removal when booting OS (i.e. serial debug console or display).
    Add a flag to selectively skip switching off a power domain.

    Fixes: 52edfed65de9 ("dm: core: device: switch off power domain after device removal")
    Signed-off-by: Anatolij Gustschin
    Acked-by: Neil Armstrong
    Tested-by: Guillaume La Roque
    Reviewed-by: Simon Glass

    Anatolij Gustschin
     

11 Feb, 2020

1 commit


07 Feb, 2020

2 commits


06 Feb, 2020

13 commits


08 Jan, 2020

11 commits


15 Dec, 2019

1 commit

  • Early in boot it is necessary to decode the PCI device/function values for
    particular peripherals in the device tree or of-platdata. This is needed
    in TPL where CONFIG_PCI is not defined.

    To handle this, move pci_get_devfn() into a file that is built even when
    CONFIG_PCI is not defined.

    Also add a function for use by of-platdata, to convert a reg property to
    a pci_dev_t.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     

03 Dec, 2019

2 commits


01 Nov, 2019

1 commit


28 Oct, 2019

3 commits


22 Oct, 2019

1 commit

  • This fixes the case where assigned-clocks is used to define a clock
    defaults inside this same clock's node. This is used sometimes to setup a
    default parents and/or rate for a clock.

    example:
    muxed_clock: muxed_clock {
    clocks = , ;
    #clock-cells = ;
    assigned-clocks = ;
    assigned-clock-parents = ;
    };

    It doesn't work in u-boot because the assigned-clocks are setup *before*
    the clock is probed. (clk_set_parent() will likely crash or fail if called
    before the device probe function)
    Making it work by handling "assigned-clocks" in 2 steps: first before the
    clk device is probed, and then after the clk device is probed.

    Signed-off-by: Jean-Jacques Hiblot

    Jean-Jacques Hiblot
     

15 Oct, 2019

2 commits

  • At present the 'Index' column of 'dm tree' assumes there is
    two digits, this patch increase it to 3 digits.

    It also aligns output of 'dm uclass', assuming the same 3 digits index.

    The boards with CONFIG_PINCTRL_FULL activated have one pinconfig
    by pin configuration, so they can have more than 100 devices
    pinconfig (for example with stm32mp157c-ev1 board we have
    106 pinconfig node).

    Signed-off-by: Patrick Delaunay
    Reviewed-by: Simon Glass

    Patrick Delaunay
     
  • The power domain associated with a device is enabled when probing,
    but currently the domain remains enabled when the device is removed.
    Some boards started to disable power domains for selected devices
    via custom board_quiesce_devices(), but it doesn't work in many
    cases, i. e. because devices still can be accessed later in
    .remove() callback on behalf of dm_remove_devices_flags().

    Utilize the DM core to power off the device power domain, but add a
    device flag to be able to selectively let the power domain enabled
    after device removal. This might be required for devices that must
    remain enabled when booting OS, i. e. serial console for debug
    output, etc.

    Signed-off-by: Anatolij Gustschin
    Signed-off-by: Lokesh Vutla
    Reviewed-by: Simon Glass

    Anatolij Gustschin