1. 27 Jan, 2018 14 commits
    • Stephen Boyd's avatar
      Merge branches 'clk-aspeed', 'clk-lock-UP', 'clk-mediatek' and 'clk-allwinner' into clk-next · c43a52cf
      Stephen Boyd authored
      * clk-aspeed:
        clk: aspeed: Handle inverse polarity of USB port 1 clock gate
        clk: aspeed: Fix return value check in aspeed_cc_init()
        clk: aspeed: Add reset controller
        clk: aspeed: Register gated clocks
        clk: aspeed: Add platform driver and register PLLs
        clk: aspeed: Register core clocks
        clk: Add clock driver for ASPEED BMC SoCs
        dt-bindings: clock: Add ASPEED constants
      
      * clk-lock-UP:
        clk: fix reentrancy of clk_enable() on UP systems
      
      * clk-mediatek:
        clk: mediatek: adjust dependency of reset.c to avoid unexpectedly being built
        clk: mediatek: Fix all warnings for missing struct clk_onecell_data
        clk: mediatek: fixup test-building of MediaTek clock drivers
        clk: mediatek: group drivers under indpendent menu
      
      * clk-allwinner:
        clk: sunxi-ng: a83t: Add M divider to TCON1 clock
        clk: sunxi-ng: fix the A64/H5 clock description of DE2 CCU
        clk: sunxi-ng: add support for Allwinner H3 DE2 CCU
        dt-bindings: fix the binding of Allwinner DE2 CCU of A83T and H3
        clk: sunxi-ng: sun8i: a83t: Use sigma-delta modulation for audio PLL
        clk: sunxi-ng: sun8i: a83t: Add /2 fixed post divider to audio PLL
        clk: sunxi-ng: Support fixed post-dividers on NM style clocks
        clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks
        clk: sunxi-ng: Support fixed post-dividers on MP style clocks
        clk: sunxi: Use PTR_ERR_OR_ZERO()
      c43a52cf
    • 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
    • Benjamin Herrenschmidt's avatar
      clk: aspeed: Handle inverse polarity of USB port 1 clock gate · 6671507f
      Benjamin Herrenschmidt authored
      The USB port 1 clock gate control has an inversed polarity
      from all the other clock gates in the chip. This makes the
      aspeed_clk_{enable,disable} functions honor the flag
      CLK_GATE_SET_TO_DISABLE and set that flag appropriately
      so it's set for all clocks except USB port 1.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      6671507f
    • Wei Yongjun's avatar
      clk: aspeed: Fix return value check in aspeed_cc_init() · accf475a
      Wei Yongjun authored
      In case of error, the function of_iomap() returns NULL pointer not
      ERR_PTR(). The IS_ERR() test in the return value check should be
      replaced with NULL test.
      
      Fixes: a2e230c7b2ea ("clk: Add clock driver for ASPEED BMC SoCs")
      Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      accf475a
    • Joel Stanley's avatar
      clk: aspeed: Add reset controller · f7989839
      Joel Stanley authored
      There are some resets that are not associated with gates. These are
      represented by a reset controller.
      Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      Reviewed-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      f7989839
    • Joel Stanley's avatar
      clk: aspeed: Register gated clocks · 15ed8ce5
      Joel Stanley authored
      The majority of the clocks in the system are gates paired with a reset
      controller that holds the IP in reset.
      
      This borrows from clk_hw_register_gate, but registers two 'gates', one
      to control the clock enable register and the other to control the reset
      IP. This allows us to enforce the ordering:
      
       1. Place IP in reset
       2. Enable clock
       3. Delay
       4. Release reset
      
      There are some gates that do not have an associated reset; these are
      handled by using -1 as the index for the reset.
      Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      Reviewed-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      15ed8ce5
    • Joel Stanley's avatar
      clk: aspeed: Add platform driver and register PLLs · 98f3118d
      Joel Stanley authored
      This registers a platform driver to set up all of the non-core clocks.
      
      The clocks that have configurable rates are now registered.
      Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      Reviewed-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      98f3118d
    • Joel Stanley's avatar
      clk: aspeed: Register core clocks · 99d01e0e
      Joel Stanley authored
      This registers the core clocks; those which are required to calculate
      the rate of the timer peripheral so the system can load a clocksource
      driver.
      Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      Reviewed-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      99d01e0e
    • Joel Stanley's avatar
      clk: Add clock driver for ASPEED BMC SoCs · 5eda5d79
      Joel Stanley authored
      This adds the stub of a driver for the ASPEED SoCs. The clocks are
      defined and the static registration is set up.
      Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      Reviewed-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      5eda5d79
  2. 10 Jan, 2018 8 commits
  3. 05 Jan, 2018 1 commit
  4. 04 Jan, 2018 3 commits
  5. 03 Jan, 2018 5 commits
  6. 02 Jan, 2018 4 commits
  7. 29 Dec, 2017 3 commits
  8. 28 Dec, 2017 2 commits