1. 03 Aug, 2020 9 commits
    • Stephen Boyd's avatar
      Merge branches 'clk-microchip', 'clk-mmp', 'clk-unused' and 'clk-at91' into clk-next · dd9c697a
      Stephen Boyd authored
       - Add support for SAMA7G5 SoC clks
       - Microchip Sparx5 DPLL clk
      
      * clk-microchip:
        clk: sparx5: Add Sparx5 SoC DPLL clock driver
        dt-bindings: clock: sparx5: Add bindings include file
      
      * clk-mmp:
        clk: mmp: avoid missing prototype warning
      
      * clk-unused:
        clk: drop unused function __clk_get_flags
      
      * clk-at91:
        clk: at91: sama7g5: add clock support for sama7g5
        clk: at91: clk-utmi: add utmi support for sama7g5
        clk: at91: clk-sam9x60-pll: re-factor to support plls with multiple outputs
        clk: at91: add macro for pll ids mask
        clk: at91: clk-programmable: add mux_table option
        clk: at91: clk-peripheral: add support for changeable parent rate
        clk: at91: clk-master: add master clock support for SAMA7G5
        clk: at91: clk-generated: add mux_table option
        clk: at91: clk-generated: pass the id of changeable parent at registration
        clk: at91: replace conditional operator with double logical not
        clk: at91: sckc: register slow_rc with accuracy option
        clk: at91: sam9x60: fix main rc oscillator frequency
        clk: at91: sam9x60-pll: use frac when setting frequency
        clk: at91: sam9x60-pll: check fcore against ranges
        clk: at91: sam9x60-pll: use logical or for range check
        clk: at91: clk-sam9x60-pll: fix mul mask
        clk: at91: clk-generated: check best_rate against ranges
        clk: at91: clk-generated: continue if __clk_determine_rate() returns error
        clk: at91: fix possible dead lock in new drivers
      dd9c697a
    • Stephen Boyd's avatar
      Merge branches 'clk-fallthru', 'clk-ingenic', 'clk-tegra', 'clk-sirf' and 'clk-qoriq' into clk-next · 1a91e318
      Stephen Boyd authored
       - Add RTC related clks on Ingenic SoCs
       - Support USB PHY clks on Ingenic SoCs
      
      * clk-fallthru:
        clk: davinci: Use fallthrough pseudo-keyword
        clk: imx: Use fallthrough pseudo-keyword
      
      * clk-ingenic:
        clk: X1000: Add support for calculat REFCLK of USB PHY.
        clk: JZ4780: Reformat the code to align it.
        clk: JZ4780: Add functions for enable and disable USB PHY.
        clk: Ingenic: Add RTC related clocks for Ingenic SoCs.
        dt-bindings: clock: Add tabs to align code.
        dt-bindings: clock: Add RTC related clocks for Ingenic SoCs.
      
      * clk-tegra:
        clk: tegra: pll: Improve PLLM enable-state detection
      
      * clk-sirf:
        clk: clk-atlas6: fix return value check in atlas6_clk_init()
      
      * clk-qoriq:
        clk: qoriq: add LS1021A core pll mux options
      1a91e318
    • Stephen Boyd's avatar
      Merge branches 'clk-actions', 'clk-rockchip', 'clk-iproc', 'clk-intel' and... · 53e07424
      Stephen Boyd authored
      Merge branches 'clk-actions', 'clk-rockchip', 'clk-iproc', 'clk-intel' and 'clk-debugfs' into clk-next
      
       - RMU and DMAC/GPIO clock support for Actions Semi S500 SoCs
      
      * clk-actions:
        MAINTAINERS: Add reset binding entry for Actions Semi Owl SoCs
        clk: actions: Add Actions S500 SoC Reset Management Unit support
        dt-bindings: reset: Add binding constants for Actions S500 RMU
        clk: actions: Add APB, DMAC, GPIO clock support for Actions S500 SoC
        dt-bindings: clock: Add APB, DMAC, GPIO bindings for Actions S500 SoC
        clk: actions: Fix h_clk for Actions S500 SoC
      
      * clk-rockchip:
        clk: rockchip: add sclk_mac_lbtest to rk3188_critical_clocks
        clk: rockchip: Revert "fix wrong mmc sample phase shift for rk3328"
        clk: rockchip: use separate compatibles for rk3288w-cru
        dt-bindings: clocks: add rk3288w variant compatible
        clk: rockchip: Handle clock tree for rk3288w variant
        clk: rockchip: convert rk3036 pll type to use internal lock status
        clk: rockchip: convert basic pll lock_wait to use regmap_read_poll_timeout
        clk: rockchip: convert rk3399 pll type to use readl_relaxed_poll_timeout
      
      * clk-iproc:
        clk: iproc: round clock rate to the closest
      
      * clk-intel:
        clk: intel: Avoid unnecessary memset by improving code
        clk: intel: Improve locking in the driver
        clk: intel: Use devm_clk_hw_register() instead of clk_hw_register()
      
      * clk-debugfs:
        clk: Add support for enabling/disabling clocks from debugfs
      53e07424
    • Stephen Boyd's avatar
      Merge branches 'clk-https', 'clk-renesas', 'clk-kconfig', 'clk-amlogic' and 'clk-imx' into clk-next · 987106e5
      Stephen Boyd authored
      * clk-https:
        Replace HTTP links with HTTPS ones: Common CLK framework
      
      * clk-renesas:
        clk: renesas: cpg-mssr: Add r8a774e1 support
        dt-bindings: clock: renesas,cpg-mssr: Document r8a774e1
        clk: renesas: Add r8a774e1 CPG Core Clock Definitions
        dt-bindings: power: Add r8a774e1 SYSC power domain definitions
        clk: renesas: rzg2: Mark RWDT clocks as critical
        clk: renesas: rcar-gen3: Mark RWDT clocks as critical
        clk: renesas: cpg-mssr: Mark clocks as critical only if on at boot
        dt-bindings: clock: renesas: cpg: Convert to json-schema
      
      * clk-kconfig:
        clk: hsdk: Fix bad dependency on IOMEM
        clk: Specify IOMEM dependency for HSDK pll driver
        clk: Drop duplicate selection in Kconfig
        clk: AST2600: Add mux for EMMC clock
        clk: mvebu: ARMADA_AP_CPU_CLK needs to select ARMADA_AP_CP_HELPER
      
      * clk-amlogic:
        clk: meson: meson8b: add the vclk2_en gate clock
        clk: meson: meson8b: add the vclk_en gate clock
        clk: meson: meson8b: Drop CLK_IS_CRITICAL from fclk_div2
        clk: meson: g12a: Add support for NNA CLK source clocks
        dt-bindings: clk: g12a-clkc: Add NNA CLK Source clock IDs
      
      * clk-imx:
        clk: imx: vf610: add CAAM clock
        clk: imx8mp: add mu root clk
      987106e5
    • Stephen Boyd's avatar
      Merge branches 'clk-socfpga', 'clk-doc', 'clk-qcom', 'clk-vc5' and 'clk-bcm' into clk-next · c63e2a7a
      Stephen Boyd authored
       - Enable CPU clks on Qualcomm IPQ6018 SoCs
       - Enable CPU clks on Qualcomm MSM8996 SoCs
       - GPU clk support for Qualcomm SM8150 and SM8250 SoCs
       - Audio clks on Qualcomm SC7180 SoCs
       - Make defines for bcm63xx-gate clks to use in DT
       - Support gate clks on BCM6318 SoCs
       - Add HDMI clks for BCM2711 SoCs
       - Support BCM2711 SoC firmware clks
      
      * clk-socfpga:
        clk: socfpga: agilex: mpu_l2ram_clk should be mpu_ccu_clk
        clk: socfpga: agilex: add nand_x_clk and nand_ecc_clk
        dt-bindings: agilex: add NAND_X_CLK and NAND_ECC_CLK
      
      * clk-doc:
        clk: Clean up kernel-doc errors
        clk: <linux/clk-provider.h>: drop a duplicated word
        clk: add function documentation for clk_hw_round_rate()
      
      * clk-qcom: (38 commits)
        dt-bindings: clock: Fix YAML schemas for LPASS clocks on SC7180
        clk: qcom: gcc-sdm660: Fix up gcc_mss_mnoc_bimc_axi_clk
        clk: qcom: gcc-sdm660: Add missing modem reset
        clk: qcom: lpass: Add support for LPASS clock controller for SC7180
        clk: qcom: gcc: Add support for GCC LPASS clock for SC7180
        dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7180
        clk: qcom: gdsc: Add support to enable retention of GSDCR
        clk: qcom: Export gdsc_gx_do_nothing_enable() to modules
        clk: qcom: Add graphics clock controller driver for SM8250
        clk: qcom: Add graphics clock controller driver for SM8150
        clk: qcom: add common gdsc_gx_do_nothing_enable for gpucc drivers
        dt-bindings: clock: add SM8250 QCOM Graphics clock bindings
        dt-bindings: clock: add SM8150 QCOM Graphics clock bindings
        dt-bindings: clock: combine qcom,sdm845-gpucc and qcom,sc7180-gpucc
        clk: qcom: gcc: remove unnecessary vco_table from SM8150
        clk: qcom: clk-alpha-pll: use the right PCAL_DONE value for lucid pll
        clk: qcom: clk-alpha-pll: same regs and ops for trion and lucid
        clk: qcom: clk-alpha-pll: remove unused/incorrect PLL_CAL_VAL
        clk: qcom: gcc: fix sm8150 GPU and NPU clocks
        dt-bindings: clock: Fix qcom,msm8996-apcc yaml syntax
        ...
      
      * clk-vc5:
        clk: vc5: use a dedicated struct to describe the output drivers
        dt-bindings: clk: versaclock5: convert to yaml
        MAINTAINERS: take over IDT VersaClock 5 clock driver
        dt-bindings: clk: versaclock5: fix 'idt' prefix typos
        clk: vc5: Add memory check to prevent oops
        clk: vc5: fix use of memory after it has been kfree'd
        clk: vc5: Enable addition output configurations of the Versaclock
        dt: Add additional option bindings for IDT VersaClock
        clk: vc5: Allow Versaclock driver to support multiple instances
      
      * clk-bcm: (44 commits)
        clk: bcm2835: Do not use prediv with bcm2711's PLLs
        dt-bindings: arm: bcm: Add a select to the RPI Firmware binding
        clk: bcm: dvp: Add missing module informations
        clk: bcm: rpi: Remove the quirks for the CPU clock
        clk: bcm2835: Don't cache the PLLB rate
        clk: bcm2835: Allow custom CCF flags for the PLLs
        Revert "clk: bcm2835: remove pllb"
        clk: bcm: rpi: Give firmware clocks a name
        clk: bcm: rpi: Discover the firmware clocks
        clk: bcm: rpi: Add an enum for the firmware clocks
        clk: bcm: rpi: Add DT provider for the clocks
        clk: bcm: rpi: Make the PLLB registration function return a clk_hw
        clk: bcm: rpi: Split pllb clock hooks
        clk: bcm: rpi: Rename is_prepared function
        clk: bcm: rpi: Pass the clocks data to the firmware function
        clk: bcm: rpi: Add clock id to data
        clk: bcm: rpi: Create a data structure for the clocks
        clk: bcm: rpi: Use CCF boundaries instead of rolling our own
        clk: bcm: rpi: Make sure the clkdev lookup is removed
        clk: bcm: rpi: Switch to clk_hw_register_clkdev
        ...
      c63e2a7a
    • Nicolas Saenz Julienne's avatar
      clk: bcm2835: Do not use prediv with bcm2711's PLLs · f34e4651
      Nicolas Saenz Julienne authored
      Contrary to previous SoCs, bcm2711 doesn't have a prescaler in the PLL
      feedback loop. Bypass it by zeroing fb_prediv_mask when running on
      bcm2711.
      
      Note that, since the prediv configuration bits were re-purposed, this
      was triggering miscalculations on all clocks hanging from the VPU clock,
      notably the aux UART, making its output unintelligible.
      
      Fixes: 42de9ad4 ("clk: bcm2835: Add BCM2711_CLOCK_EMMC2 support")
      Reported-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
      Link: https://lore.kernel.org/r/20200730182619.23246-1-nsaenzjulienne@suse.deTested-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      f34e4651
    • Julia Lawall's avatar
      clk: drop unused function __clk_get_flags · 6cfde884
      Julia Lawall authored
      The function __clk_get_flags has not been used since the April 2019
      commit a348f053 ("ARM: omap2+: hwmod: drop CLK_IS_BASIC
      flag usage").  Other uses were removed in June 2015, eg by
      commit 98d8a60e ("clk: Convert __clk_get_flags() to
      clk_hw_get_flags()"), which shows how clk_hw_get_flags can easily
      be used instead.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      Link: https://lore.kernel.org/r/1596272022-14173-1-git-send-email-Julia.Lawall@inria.frSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      6cfde884
    • Geert Uytterhoeven's avatar
      clk: hsdk: Fix bad dependency on IOMEM · bd8548d0
      Geert Uytterhoeven authored
      CONFIG_IOMEM does not exist.  The correct symbol to depend on is
      CONFIG_HAS_IOMEM.
      
      Fixes: 1e7468bd ("clk: Specify IOMEM dependency for HSDK pll driver")
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Link: https://lore.kernel.org/r/20200803084835.21838-1-geert+renesas@glider.beSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      bd8548d0
    • Stephen Boyd's avatar
      Merge branch 'clk-fixes' into clk-kconfig · ba857b21
      Stephen Boyd authored
      Need to merge this up to get the IOMEM dependency patch on top that is
      broken and fixed in the next commit.
      
      * clk-fixes:
        clk: Specify IOMEM dependency for HSDK pll driver
        clk: AST2600: Add mux for EMMC clock
        clk: mvebu: ARMADA_AP_CPU_CLK needs to select ARMADA_AP_CP_HELPER
      ba857b21
  2. 31 Jul, 2020 1 commit
  3. 29 Jul, 2020 3 commits
  4. 28 Jul, 2020 9 commits
  5. 27 Jul, 2020 4 commits
  6. 24 Jul, 2020 14 commits