1. 27 Jan, 2018 6 commits
    • Stephen Boyd's avatar
      Merge branches 'clk-remove-asm-clkdev', 'clk-debugfs-fixes', 'clk-renesas' and... · 4d1d13a5
      Stephen Boyd authored
      Merge branches 'clk-remove-asm-clkdev', 'clk-debugfs-fixes', 'clk-renesas' and 'clk-meson' into clk-next
      
      * clk-remove-asm-clkdev:
        clk: Move __clk_{get,put}() into private clk.h API
        clk: sunxi: Use CLK_IS_CRITICAL flag for critical clks
        arch: Remove clkdev.h asm-generic from Kbuild
        clk: Prepare to remove asm-generic/clkdev.h
        blackfin: Use generic clkdev.h header
      
      * clk-debugfs-fixes:
        clk: Simplify debugfs registration
        clk: Fix debugfs_create_*() usage
        clk: Show symbolic clock flags in debugfs
        clk: Improve flags doc for of_clk_detect_critical()
      
      * clk-renesas:
        clk: renesas: r8a7796: Add FDP clock
        clk: renesas: cpg-mssr: Keep wakeup sources active during system suspend
        clk: renesas: mstp: Keep wakeup sources active during system suspend
        clk: renesas: r8a77970: Add LVDS clock
      
      * clk-meson:
        clk: meson-axg: fix potential NULL dereference in axg_clkc_probe()
        clk: meson-axg: make local symbol axg_gp0_params_table static
        clk: meson-axg: fix return value check in axg_clkc_probe()
        clk: meson: mpll: use 64-bit maths in params_from_rate
        clk: meson-axg: add clock controller drivers
        clk: meson-axg: add clocks dt-bindings required header
        dt-bindings: clock: add compatible variant for the Meson-AXG
        clk: meson: make the spinlock naming more specific
        clk: meson: gxbb: remove IGNORE_UNUSED from mmc clocks
        clk: meson: gxbb: fix wrong clock for SARADC/SANA
      4d1d13a5
    • Stephen Boyd's avatar
      Merge branch 'clk-divider-container' into clk-next · 716d9b1d
      Stephen Boyd authored
      * clk-divider-container:
        clk: divider: fix incorrect usage of container_of
      
      Plus fixup sprd/div.c to pass the width too.
      716d9b1d
    • Stephen Boyd's avatar
      Merge branches 'clk-iproc', 'clk-mvebu' and 'clk-qcom-a53' into clk-next · 00030464
      Stephen Boyd authored
      * clk-iproc:
        clk: iproc: Minor tidy up of iproc pll data structures
        clk: iproc: Allow plls to do minor rate changes without reset
        clk: iproc: Fix error in the pll post divider rate calculation
        clk: iproc: Allow iproc pll to runtime calculate vco parameters
      
      * clk-mvebu:
        clk: mvebu: armada-37xx-periph: Use PTR_ERR_OR_ZERO()
      
      * clk-qcom-a53:
        clk: qcom: Add APCS clock controller support
        clk: qcom: Add regmap mux-div clocks support
        clk: qcom: Add A53 PLL support
      00030464
    • Stephen Boyd's avatar
      Merge branches 'clk-at91', 'clk-imx7ulp', 'clk-axigen', 'clk-si5351' and 'clk-pxa' into clk-next · a2c09c12
      Stephen Boyd authored
      * clk-at91:
        clk: at91: pmc: Support backup for programmable clocks
        clk: at91: pmc: Save SCSR during suspend
        clk: at91: pmc: Wait for clocks when resuming
      
      * clk-imx7ulp:
        clk: Don't touch hardware when reparenting during registration
      
      * clk-axigen:
        clk: axi-clkgen: Round closest in round_rate() and recalc_rate()
        clk: axi-clkgen: Correctly handle nocount bit in recalc_rate()
      
      * clk-si5351:
        clk: si5351: _si5351_clkout_reset_pll() can be static
        clk: si5351: Do not enable parent clocks on probe
        clk: si5351: Rename internal plls to avoid name collisions
        clk: si5351: Apply PLL soft reset before enabling the outputs
        clk: si5351: Add DT property to enable PLL reset
        clk: si5351: implement remove handler
      
      * clk-pxa:
        clk: pxa: unbreak lookup of CLK_POUT
      a2c09c12
    • Stephen Boyd's avatar
      Merge branches 'clk-spreadtrum', 'clk-mvebu-dvfs', 'clk-qoriq', 'clk-imx' and... · 21170e3b
      Stephen Boyd authored
      Merge branches 'clk-spreadtrum', 'clk-mvebu-dvfs', 'clk-qoriq', 'clk-imx' and 'clk-qcom-ipq8074' into clk-next
      
      * clk-spreadtrum:
        clk: sprd: add clocks support for SC9860
        clk: sprd: Add dt-bindings include file for SC9860
        dt-bindings: Add Spreadtrum clock binding documentation
        clk: sprd: add adjustable pll support
        clk: sprd: add composite clock support
        clk: sprd: add divider clock support
        clk: sprd: add mux clock support
        clk: sprd: add gate clock support
        clk: sprd: Add common infrastructure
        clk: move clock common macros out from vendor directories
      
      * clk-mvebu-dvfs:
        clk: mvebu: armada-37xx-periph: add DVFS support for cpu clocks
        clk: mvebu: armada-37xx-periph: prepare cpu clk to be used with DVFS
        clk: mvebu: armada-37xx-periph: cosmetic changes
      
      * clk-qoriq:
        clk: qoriq: add more divider clocks support
      
      * clk-imx:
        clk: imx51: uart4, uart5 gates only exist on imx50, imx53
      
      * clk-qcom-ipq8074:
        clk: qcom: ipq8074: add misc resets for PCIE and NSS
        dt-bindings: clock: qcom: add misc resets for PCIE and NSS
        clk: qcom: ipq8074: add GP and Crypto clocks
        clk: qcom: ipq8074: add NSS ethernet port clocks
        clk: qcom: ipq8074: add NSS clocks
        clk: qcom: ipq8074: add PCIE, USB and SDCC clocks
        clk: qcom: ipq8074: add remaining PLL’s
        dt-bindings: clock: qcom: add remaining clocks for IPQ8074
        clk: qcom: ipq8074: fix missing GPLL0 divider width
        clk: qcom: add parent map for regmap mux
        clk: qcom: add read-only divider operations
      21170e3b
    • Stephen Boyd's avatar
      Merge branches 'clk-qcom-alpha-pll', 'clk-check-ops-ptr', 'clk-protect-rate'... · 74b48999
      Stephen Boyd authored
      Merge branches 'clk-qcom-alpha-pll', 'clk-check-ops-ptr', 'clk-protect-rate' and 'clk-omap' into clk-next
      
      * clk-qcom-alpha-pll:
        clk: qcom: add read-only alpha pll post divider operations
        clk: qcom: support for 2 bit PLL post divider
        clk: qcom: support Brammo type Alpha PLL
        clk: qcom: support Huayra type Alpha PLL
        clk: qcom: support for dynamic updating the PLL
        clk: qcom: support for alpha mode configuration
        clk: qcom: flag for 64 bit CONFIG_CTL
        clk: qcom: fix 16 bit alpha support calculation
        clk: qcom: support for alpha pll properties
      
      * clk-check-ops-ptr:
        clk: check ops pointer on clock register
      
      * clk-protect-rate:
        clk: fix set_rate_range when current rate is out of range
        clk: add clk_rate_exclusive api
        clk: cosmetic changes to clk_summary debugfs entry
        clk: add clock protection mechanism to clk core
        clk: use round rate to bail out early in set_rate
        clk: rework calls to round and determine rate callbacks
        clk: add clk_core_set_phase_nolock function
        clk: take the prepare lock out of clk_core_set_parent
        clk: fix incorrect usage of ENOSYS
      
      * clk-omap:
        clk: ti: Drop legacy clk-3xxx-legacy code
      74b48999
  2. 10 Jan, 2018 5 commits
  3. 05 Jan, 2018 1 commit
  4. 04 Jan, 2018 3 commits
  5. 03 Jan, 2018 3 commits
  6. 02 Jan, 2018 4 commits
  7. 28 Dec, 2017 10 commits
  8. 23 Dec, 2017 1 commit
    • Martin Blumenstingl's avatar
      clk: meson: mpll: use 64-bit maths in params_from_rate · 86aacdca
      Martin Blumenstingl authored
      "rem * SDM_DEN" can easily overflow on the 32-bit Meson8 and Meson8b
      SoCs if the "remainder" (after the division operation) is greater than
      262143Hz. This is likely to happen since the input clock for the MPLLs
      on Meson8 and Meson8b is "fixed_pll", which is running at a rate of
      2550MHz.
      
      One example where this was observed to be problematic was the Ethernet
      clock calculation (which takes MPLL2 as input). When requesting a rate
      of 125MHz there is a remainder of 2500000Hz.
      The resulting MPLL2 rate before this patch was 127488329Hz.
      The resulting MPLL2 rate after this patch is 124999103Hz.
      
      Commit b609338b ("clk: meson: mpll: use 64bit math in
      rate_from_params") already fixed a similar issue in rate_from_params.
      
      Fixes: 007e6e5c ("clk: meson: mpll: add rw operation")
      Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
      86aacdca
  9. 22 Dec, 2017 7 commits