27 Apr, 2020

8 commits


23 Apr, 2020

1 commit

  • Update imx8 clock driver to support LPCG and full clocks tree for some
    modules aligned with kernel.

    We classify the clock into serveral types: slice, fixed, lpcg, gpr and mux.
    Generally slice and fixed clocks are the sources. lpcg, gpr and mux are
    the downstream of those sources and are used for gating, muxing or dividing
    functions.

    This patch replaces the functions defined in imx8qm and imx8qxp with the clock
    tables of different clock types. clk-imx8 use unified functions to process these
    clock tables.

    Note: since the clock depends on the power domain of its resource, must power
    on the resource firstly, then we can get the clock. Otherwise, we can't access lpcg.
    Thus, the clock dump only works for the slice clock.

    Signed-off-by: Ye Li

    Ye Li
     

06 Apr, 2020

1 commit

  • This commit (82de42fa14682d408da935adfb0f935354c5008f) calls child's
    ofdata_to_platdata() method before the parent is probed in dm core.
    This has caused the driver no longer able to get the correct parent
    clock's register base in the ofdata_to_platdata() method because the
    parent clocks will only be probed after the child's ofdata_to_platdata().
    To resolve this, the clock parent's register base will only be retrieved
    by the child in probe() method instead of ofdata_to_platdata().

    Signed-off-by: Chee Hong Ang
    Reviewed-by: Ley Foon Tan

    Chee Hong Ang
     

02 Apr, 2020

1 commit

  • During vidconsole probe, the device probe will try to
    check whether the assigned clocks on that video console
    node is initialized or not? and return an error if not.

    But, unlike Linux U-Boot won't require to handle these
    vopl assigned-clocks since core clocks are enough to
    handle the video out to process.

    So, mark them as empty in set_rate to satisfy clk_set_defaults
    so-that probe happened properly.

    Signed-off-by: Jagan Teki
    Reviewed-by: Kever Yang
    Tested-by: Peter Robinson

    Jagan Teki
     

30 Mar, 2020

1 commit

  • The fdtdec_get_addr() does not take into account values set in #address-cells
    and #size-cells , but assumes them to be 1 for 32bit systems and 2 for 64bit
    systems. This is true for most DTs, however there are exceptions. Switch to
    fdtdec_get_addr_size_auto_noparent(), which takes the #address/size-cells
    values into consideration, otherwise the reset controller node register
    offset is incorrectly parsed.

    Signed-off-by: Marek Vasut
    Cc: Nobuhiro Iwamatsu

    Marek Vasut
     

05 Mar, 2020

1 commit


28 Feb, 2020

1 commit

  • The clock driver makes EEMI call to get the name of invalid clk
    when executing versal_get_clock_info() function. This results in
    error messages.
    Added check for validating clock before saving clock attribute and
    calling versal_pm_clock_get_name() in versal_get_clock_info() function.

    Signed-off-by: Rajan Vaja
    Signed-off-by: Michal Simek

    Rajan Vaja
     

14 Feb, 2020

2 commits

  • - add DH Electronics DHCOM SoM and PDK2 board
    - DT alignment with kernel v5.5-rc7 for stm32mp1 boards
    - fix STM32 image format for big endian hosts in mkimage
    - solve warnings in device tree and code for stm32mp1 boards
    - remove fdt_high and initrd_high for stm32 and stih boards
    - add support of STM32MP15x Rev.Z
    - update stm32mp1 readme

    Tom Rini
     
  • Solve type issue in stm32mp1_lse_enable and stm32mp1_clktree.

    This patch solves the warnings when compiling with W=1
    on stm32mp1 board:

    clk_stm32mp1.c: In function ‘stm32mp1_lse_enable’:
    clk_stm32mp1.c:1238:15: warning: comparison of integer expressions
    of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’
    [-Wsign-compare]
    clk_stm32mp1.c:1239:13: warning: comparison of integer expressions
    of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’
    [-Wsign-compare]

    clk_stm32mp1.c: In function ‘stm32mp1_clktree’:
    clk_stm32mp1.c:1814:17: warning: comparison of integer expressions
    of different signedness: ‘int’ and ‘unsigned int’
    [-Wsign-compare]

    Signed-off-by: Patrick Delaunay
    Reviewed-by: Patrice Chotard

    Patrick Delaunay
     

13 Feb, 2020

2 commits


11 Feb, 2020

1 commit


07 Feb, 2020

1 commit

  • So far we have avoided adding a clock driver for Intel devices. But the
    Designware I2C driver needs a different clock (133MHz) on Intel devices
    than on others (166MHz). Add a simple driver that provides this
    information.

    This driver can be expanded later as needed.

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

    Simon Glass
     

06 Feb, 2020

3 commits

  • At present dm/device.h includes the linux-compatible features. This
    requires including linux/compat.h which in turn includes a lot of headers.
    One of these is malloc.h which we thus end up including in every file in
    U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
    which needs to use the system malloc() in some files.

    Move the compatibility features into a separate header file.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present devres.h is included in all files that include dm.h but few
    make use of it. Also this pulls in linux/compat which adds several more
    headers. Drop the automatic inclusion and require files to include devres
    themselves. This provides a good indication of which files use devres.

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

    Simon Glass
     
  • This function name conflicts with our desire to #define free() to
    something else on sandbox. Since it deals with resources, rename it to
    rfree().

    Signed-off-by: Simon Glass

    Simon Glass
     

30 Jan, 2020

1 commit

  • Few of the rockchip family SoC atleast rk3288,
    rk3399 are sharing some cru register bits so
    adding common code between these SoC families
    would require to include both cru include files
    that indeed resulting function declarations error.

    So, create a common cru include as cru.h then
    include the rk3399 arch cru include file and move
    the common cru register bit definitions into it.

    The rest of rockchip cru files will add it in future.

    Reviewed-by: Kever Yang
    Signed-off-by: Jagan Teki

    Jagan Teki
     

27 Jan, 2020

3 commits


26 Jan, 2020

4 commits


21 Jan, 2020

1 commit


20 Jan, 2020

1 commit

  • Add slack to the clock frequency parameters passed to firmware within
    clk_set_rate. min-freq is changed to 0 and max-rate is changed to
    ULONG_MAX. This fixes certain issues with pll clock rounding when the
    firmware is not able to set the frequency exactly to the target, the
    current implementation fails if the available frequency is even 1Hz off
    the target. With the change, the firmware still tries its best to set
    the frequency as close as possible to the target.

    Reported-by: Vishal Mahaveer
    Signed-off-by: Lokesh Vutla
    Signed-off-by: Tero Kristo
    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     

18 Jan, 2020

2 commits


16 Jan, 2020

5 commits