• Subhajit Paul's avatar
    ARM: dts: dra7xx-clocks: Use DPLL_GPU for GPU clocks · fcd104b5
    Subhajit Paul authored
    The GPU has two functional clocks - GPU_CORE_GCLK and GPU_HYD_GCLK.
    Both of these are mux clocks and are derived from the DPLL_CORE
    H14 output clock CORE_GPU_CLK by default. These clocks can also be
    be derived from DPLL_PER or DPLL_GPU.
    
    The GPU DPLL provides the output clocks primarily for the GPU.
    Configuring the GPU for different OPP clock frequencies is easier
    to achieve when using the DPLL_GPU rather than the other two DPLLs
    due to:
    1. minimal affect on any other output clocks from these DPLLs
    2. may require an impossible post-divider values on existing DPLLs
       without affecting other clocks.
    
    So, switch the GPU functional clocks to be sourced from GPU DPLL by
    default. This is done using the DT standard properties "assigned-clocks"
    and "assigned-clock-parents". Newer u-boots (from 2017.01 onwards) reuse
    and can update these properties to choose an appropriate one-time fixed
    OPP configuration as all the required ABB/AVS setup is performed within
    the bootloader. Note that there is no DVFS supported for any of the
    non-MPU domains. The DPLL will automatically transition into a low-power
    stop mode when the associated output clocks are not utilized or gated
    automatically.
    
    This patch also sets the initial values for the DPLL_GPU outputs.
    These values are chosen based on the OPP_NOM values defined as per
    recommendation from design team. The DPLL locked frequency is kept
    at 1277 MHz, so that the value for the divider clock, dpll_gpu_m2_ck,
    can be set to 425.67 MHz for OPP_NOM.
    Signed-off-by: default avatarSubhajit Paul <subhajit_paul@ti.com>
    [s-anna@ti.com: revise patch description]
    Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
    Acked-by: default avatarTero Kristo <t-kristo@ti.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    fcd104b5
dra7xx-clocks.dtsi 55.5 KB