1. 02 Nov, 2021 13 commits
    • Kunihiko Hayashi's avatar
      clk: uniphier: Add SoC-glue clock source selector support for Pro4 · c64daf36
      Kunihiko Hayashi authored
      Add SoC-glue clock source selector for ahci controller on UniPhier SoCs.
      Currently this supports Pro4 only.
      Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
      Link: https://lore.kernel.org/r/1634000035-3114-6-git-send-email-hayashi.kunihiko@socionext.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      c64daf36
    • Kunihiko Hayashi's avatar
    • Kunihiko Hayashi's avatar
      clk: uniphier: Add NX1 clock support · bed51629
      Kunihiko Hayashi authored
      Add basic clock data for UniPhier NX1 SoC.
      This includes PLL and clock division data for cpufreq support.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
      Link: https://lore.kernel.org/r/1634000035-3114-4-git-send-email-hayashi.kunihiko@socionext.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      bed51629
    • Kunihiko Hayashi's avatar
    • Kunihiko Hayashi's avatar
      clk: uniphier: Add audio system and video input clock control for PXs3 · 4c4065c7
      Kunihiko Hayashi authored
      Add clocks for audio subsystem (AIO) and video input subsystem (EXIV) on
      UniPhier PXs3 SoC.
      Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
      Link: https://lore.kernel.org/r/1634000035-3114-2-git-send-email-hayashi.kunihiko@socionext.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      4c4065c7
    • Jens Renner's avatar
      clk: si5351: Update datasheet references · dd5e1280
      Jens Renner authored
      Silicon Labs is now part of Skyworks Inc. so update the URLs to the
      datasheet and application note.
      Signed-off-by: default avatarJens Renner <renner@efe-gmbh.de>
      Link: https://lore.kernel.org/r/20210913074823.115212-1-renner@efe-gmbh.deAcked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      dd5e1280
    • Luca Ceresoli's avatar
      clk: vc5: Use i2c .probe_new · 5bba6d37
      Luca Ceresoli authored
      The old .probe is "soon to be deprecated". Use the new, simpler form.
      Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
      Link: https://lore.kernel.org/r/20210928095041.17116-1-luca@lucaceresoli.netSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      5bba6d37
    • Mianhan Liu's avatar
      clk/actions/owl-factor.c: remove superfluous headers · de5169ac
      Mianhan Liu authored
      owl-factor.c hasn't use any macro or function declared in linux/slab.h.
      Thus, these files can be removed from owl-factor.c safely without
      affecting the compilation of the ./drivers/clk module
      Signed-off-by: default avatarMianhan Liu <liumh1@shanghaitech.edu.cn>
      Link: https://lore.kernel.org/r/20210929065824.23691-1-liumh1@shanghaitech.edu.cnReviewed-by: default avatarManivannan Sadhasivam <mani@kernel.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      de5169ac
    • Paul Cercueil's avatar
      clk: ingenic: Fix bugs with divided dividers · ed84ef1c
      Paul Cercueil authored
      Two fixes in one:
      
      - In the "impose hardware constraints" block, the "logical" divider
        value (aka. not translated to the hardware) was clamped to fit in the
        register area, but this totally ignored the fact that the divider
        value can itself have a fixed divider.
      
      - The code that made sure that the divider value returned by the
        function was a multiple of its own fixed divider could result in a
        wrong value being calculated, because it was rounded down instead of
        rounded up.
      
      Fixes: 4afe2d1a ("clk: ingenic: Allow divider value to be divided")
      Co-developed-by: default avatarArtur Rojek <contact@artur-rojek.eu>
      Signed-off-by: default avatarArtur Rojek <contact@artur-rojek.eu>
      Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
      Link: https://lore.kernel.org/r/20211001172033.122329-1-paul@crapouillou.netSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      ed84ef1c
    • Stephen Boyd's avatar
      Merge branches 'clk-composite-determine-fix', 'clk-allwinner', 'clk-amlogic'... · e2ceaa86
      Stephen Boyd authored
      Merge branches 'clk-composite-determine-fix', 'clk-allwinner', 'clk-amlogic' and 'clk-samsung' into clk-next
      
      * clk-composite-determine-fix:
        clk: composite: Use rate_ops.determine_rate when also a mux is available
        clk: composite: Also consider .determine_rate for rate + mux composites
      
      * clk-allwinner:
        clk: sunxi: sun8i-apb0: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: sun6i-ar100: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: sun6i-apb0-gates: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: sun6i-apb0: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun9i-a80-usb: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun9i-a80-de: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun9i-a80: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun8i-r40: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun8i-de2: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun8i-a83t: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun50i-h6: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun50i-a64: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: clk-mod0: Make use of the helper function devm_platform_ioremap_resource()
        dt-bindings: clocks: Fix typo in the H6 compatible
        clk: sunxi-ng: Use a separate lock for each CCU instance
        clk: sunxi-ng: Prevent unbinding CCUs via sysfs
        clk: sunxi-ng: Unregister clocks/resets when unbinding
        clk: sunxi-ng: Add machine dependency to A83T CCU
        clk: sunxi-ng: mux: Remove unused 'reg' field
      
      * clk-amlogic:
        clk: meson: meson8b: Make the video clock trees mutable
        clk: meson: meson8b: Initialize the HDMI PLL registers
        clk: meson: meson8b: Add the HDMI PLL M/N parameters
        clk: meson: meson8b: Add the vid_pll_lvds_en gate clock
        clk: meson: meson8b: Use CLK_SET_RATE_NO_REPARENT for vclk{,2}_in_sel
        clk: meson: meson8b: Export the video clocks
      
      * clk-samsung:
        clk: samsung: describe drivers in Kconfig
        clk: samsung: exynos5433: update apollo and atlas clock probing
        clk: samsung: add support for CPU clocks
        clk: samsung: Introduce Exynos850 clock driver
        dt-bindings: clock: Document Exynos850 CMU bindings
        dt-bindings: clock: Add bindings definitions for Exynos850 CMU
        clk: samsung: clk-pll: Implement pll0831x PLL type
        clk: samsung: clk-pll: Implement pll0822x PLL type
        clk: samsung: s5pv210-audss: Make use of devm_platform_ioremap_resource()
        clk: samsung: exynos5433: Make use of devm_platform_ioremap_resource()
        clk: samsung: exynos4412-isp: Make use of devm_platform_ioremap_resource()
        clk: samsung: exynos-audss: Make use of devm_platform_ioremap_resource()
      e2ceaa86
    • Stephen Boyd's avatar
      Merge branches 'clk-imx', 'clk-ux500' and 'clk-debugfs' into clk-next · 8d741ecd
      Stephen Boyd authored
      * clk-imx: (21 commits)
        clk: imx: Make CLK_IMX8ULP select MXC_CLK
        clk: imx: imx6ul: Fix csi clk gate register
        clk: imx: imx6ul: Move csi_sel mux to correct base register
        clk: imx: Fix the build break when clk-imx8ulp build as module
        clk: imx: Add the pcc reset controller support on imx8ulp
        clk: imx: Add clock driver for imx8ulp
        clk: imx: Update the pfdv2 for 8ulp specific support
        clk: imx: disable the pfd when set pfdv2 clock rate
        clk: imx: Add 'CLK_SET_RATE_NO_REPARENT' for composite-7ulp
        clk: imx: disable i.mx7ulp composite clock during initialization
        clk: imx: Update the compsite driver to support imx8ulp
        clk: imx: Update the pllv4 to support imx8ulp
        dt-bindings: clock: Add imx8ulp clock support
        clk: imx: Rework imx_clk_hw_pll14xx wrapper
        clk: imx: Rework all imx_clk_hw_composite wrappers
        clk: imx: Rework all clk_hw_register_divider wrappers
        clk: imx: Rework all clk_hw_register_mux wrappers
        clk: imx: Rework all clk_hw_register_gate2 wrappers
        clk: imx: Rework all clk_hw_register_gate wrappers
        clk: imx: Make mux/mux2 clk based helpers use clk_hw based ones
        ...
      
      * clk-ux500:
        clk: ux500: Add driver for the reset portions of PRCC
        dt-bindings: clock: u8500: Rewrite in YAML and extend
      
      * clk-debugfs:
        clk: use clk_core_get_rate_recalc() in clk_rate_get()
      8d741ecd
    • Stephen Boyd's avatar
      Merge branches 'clk-leak', 'clk-rockchip', 'clk-renesas' and 'clk-at91' into clk-next · b43e2d55
      Stephen Boyd authored
       - Clock power management for new SAMA7G5 SoC
       - Updates to the master clock driver and sam9x60-pll to be able to use
         cpufreq-dt driver and avoid overclocking of CPU and MCK0 domains while
         changing the frequency via DVFS
       - Power management refinement with the use of save_context()/restore_context()
         on each clock driver to specify their use in case of Backup mode only
      
      * clk-leak:
        clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths
      
      * clk-rockchip:
        clk: rockchip: use module_platform_driver_probe
        clk: rockchip: rk3399: expose PCLK_COREDBG_{B,L}
        clk: rockchip: rk3399: make CPU clocks critical
      
      * clk-renesas:
        clk: renesas: r8a779[56]x: Add MLP clocks
        clk: renesas: r9a07g044: Add SDHI clock and reset entries
        clk: renesas: rzg2l: Add SDHI clk mux support
        clk: renesas: r8a779a0: Add RPC support
        clk: renesas: cpg-lib: Move RPC clock registration to the library
        clk: renesas: r9a07g044: Add clock and reset entries for SPI Multi I/O Bus Controller
        clk: renesas: r8a779a0: Add Z0 and Z1 clock support
        clk: renesas: r9a07g044: Add GbEthernet clock/reset
        clk: renesas: rzg2l: Add support to handle coupled clocks
        clk: renesas: r9a07g044: Add ethernet clock sources
        clk: renesas: rzg2l: Add support to handle MUX clocks
        clk: renesas: r8a779a0: Add TPU clock
        clk: renesas: rzg2l: Fix clk status function
        clk: renesas: r9a07g044: Mark IA55_CLK and DMAC_ACLK critical
      
      * clk-at91:
        clk: at91: sama7g5: set low limit for mck0 at 32KHz
        clk: at91: sama7g5: remove prescaler part of master clock
        clk: at91: clk-master: add notifier for divider
        clk: at91: clk-sam9x60-pll: add notifier for div part of PLL
        clk: at91: clk-master: fix prescaler logic
        clk: at91: clk-master: mask mckr against layout->mask
        clk: at91: clk-master: check if div or pres is zero
        clk: at91: sam9x60-pll: use DIV_ROUND_CLOSEST_ULL
        clk: at91: pmc: add sama7g5 to the list of available pmcs
        clk: at91: clk-master: improve readability by using local variables
        clk: at91: clk-master: add register definition for sama7g5's master clock
        clk: at91: sama7g5: add securam's peripheral clock
        clk: at91: pmc: execute suspend/resume only for backup mode
        clk: at91: re-factor clocks suspend/resume
        clk: at91: check pmc node status before registering syscore ops
      b43e2d55
    • Stephen Boyd's avatar
      Merge branches 'clk-qcom', 'clk-mtk', 'clk-versatile' and 'clk-doc' into clk-next · a379e16a
      Stephen Boyd authored
       - Use ARRAY_SIZE in qcom clk drivers
       - Remove some impractical fallback parent names in qcom clk drivers
       - GCC and RPMcc support for Qualcomm QCM2290 SoCs
       - GCC support for Qualcomm MSM8994/MSM8992 SoCs
       - LPASSCC and CAMCC support for Qualcomm SC7280 SoCs
       - Support for Mediatek MT8195 SoCs
       - Make Mediatek clk drivers tristate
      
      * clk-qcom: (44 commits)
        clk: qcom: gdsc: enable optional power domain support
        clk: qcom: videocc-sm8250: use runtime PM for the clock controller
        clk: qcom: dispcc-sm8250: use runtime PM for the clock controller
        dt-bindings: clock: qcom,videocc: add mmcx power domain
        dt-bindings: clock: qcom,dispcc-sm8x50: add mmcx power domain
        clk: qcom: gcc-sc7280: Drop unused array
        clk: qcom: camcc: Add camera clock controller driver for SC7280
        dt-bindings: clock: Add YAML schemas for CAMCC clocks on SC7280
        clk: qcom: Add lpass clock controller driver for SC7280
        dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280
        clk: qcom: Kconfig: Sort the symbol for SC_LPASS_CORECC_7180
        clk: qcom: mmcc-sdm660: Add hw_ctrl flag to venus_core0_gdsc
        clk: qcom: mmcc-sdm660: Add necessary CXCs to venus_gdsc
        clk: qcom: gcc-msm8994: Use ARRAY_SIZE() for num_parents
        clk: qcom: gcc-msm8994: Add proper msm8992 support
        clk: qcom: gcc-msm8994: Add modem reset
        clk: qcom: gcc-msm8994: Remove the inexistent GDSC_PCIE
        clk: qcom: gcc-msm8994: Add missing clocks
        clk: qcom: gcc-msm8994: Add missing NoC clocks
        clk: qcom: gcc-msm8994: Fix up SPI QUP clocks
        ...
      
      * clk-mtk: (28 commits)
        clk: mediatek: Export clk_ops structures to modules
        clk: mediatek: support COMMON_CLK_MT6779 module build
        clk: mediatek: support COMMON_CLK_MEDIATEK module build
        clk: composite: export clk_register_composite
        clk: mediatek: Add MT8195 apusys clock support
        clk: mediatek: Add MT8195 imp i2c wrapper clock support
        clk: mediatek: Add MT8195 wpesys clock support
        clk: mediatek: Add MT8195 vppsys1 clock support
        clk: mediatek: Add MT8195 vppsys0 clock support
        clk: mediatek: Add MT8195 vencsys clock support
        clk: mediatek: Add MT8195 vdosys1 clock support
        clk: mediatek: Add MT8195 vdosys0 clock support
        clk: mediatek: Add MT8195 vdecsys clock support
        clk: mediatek: Add MT8195 scp adsp clock support
        clk: mediatek: Add MT8195 mfgcfg clock support
        clk: mediatek: Add MT8195 ipesys clock support
        clk: mediatek: Add MT8195 imgsys clock support
        clk: mediatek: Add MT8195 ccusys clock support
        clk: mediatek: Add MT8195 camsys clock support
        clk: mediatek: Add MT8195 infrastructure clock support
        ...
      
      * clk-versatile:
        clk: versatile: hide clock drivers from non-ARM users
        clk: versatile: Rename ICST to CLK_ICST
        clk: versatile: clk-icst: Support 'reg' in addition to 'vco-offset' for register address
        dt-bindings: clock: arm,syscon-icst: Use 'reg' instead of 'vco-offset' for VCO register address
      
      * clk-doc:
        dt-bindings: clk: fixed-mmio-clock: Convert to YAML
      a379e16a
  2. 27 Oct, 2021 17 commits
  3. 26 Oct, 2021 3 commits
    • Stephen Boyd's avatar
      Merge tag 'clk-v5.16-samsung' of... · 4e44a0ba
      Stephen Boyd authored
      Merge tag 'clk-v5.16-samsung' of https://git.kernel.org/pub/scm/linux/kernel/git/snawrocki/clk into clk-samsung
      
      Pull Samsung clk driver updates from Sylwester Nawrocki:
      
       - Initial clock driver for the Exynos850 SoC
       - Refactoring of the CPU clock code and conversion of Exynos5433
         CPU clock driver to the platform driver
       - A few conversions to devm_platform_ioremap_resource()
       - Updates of the Samsung Kconfig help text
      
      * tag 'clk-v5.16-samsung' of https://git.kernel.org/pub/scm/linux/kernel/git/snawrocki/clk:
        clk: samsung: describe drivers in Kconfig
        clk: samsung: exynos5433: update apollo and atlas clock probing
        clk: samsung: add support for CPU clocks
        clk: samsung: Introduce Exynos850 clock driver
        dt-bindings: clock: Document Exynos850 CMU bindings
        dt-bindings: clock: Add bindings definitions for Exynos850 CMU
        clk: samsung: clk-pll: Implement pll0831x PLL type
        clk: samsung: clk-pll: Implement pll0822x PLL type
        clk: samsung: s5pv210-audss: Make use of devm_platform_ioremap_resource()
        clk: samsung: exynos5433: Make use of devm_platform_ioremap_resource()
        clk: samsung: exynos4412-isp: Make use of devm_platform_ioremap_resource()
        clk: samsung: exynos-audss: Make use of devm_platform_ioremap_resource()
      4e44a0ba
    • Stephen Boyd's avatar
      Merge tag 'clk-meson-v5.16-1' of https://github.com/BayLibre/clk-meson into clk-amlogic · 151a994f
      Stephen Boyd authored
      Pull Amlogic clock driver updates from Jerome Brunet:
      
       - Update video path realted clocks for meson8
      
      * tag 'clk-meson-v5.16-1' of https://github.com/BayLibre/clk-meson:
        clk: meson: meson8b: Make the video clock trees mutable
        clk: meson: meson8b: Initialize the HDMI PLL registers
        clk: meson: meson8b: Add the HDMI PLL M/N parameters
        clk: meson: meson8b: Add the vid_pll_lvds_en gate clock
        clk: meson: meson8b: Use CLK_SET_RATE_NO_REPARENT for vclk{,2}_in_sel
        clk: meson: meson8b: Export the video clocks
      151a994f
    • Stephen Boyd's avatar
      Merge tag 'sunxi-clk-for-5.16-1' of... · a69cd911
      Stephen Boyd authored
      Merge tag 'sunxi-clk-for-5.16-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-allwinner
      
      Pull Allwinner clk driver updates from Maxime Ripard:
      
      Our usual PR for the Allwinner SoCs, this time improving the module
      support and converting to more helpers.
      
      * tag 'sunxi-clk-for-5.16-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        clk: sunxi: sun8i-apb0: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: sun6i-ar100: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: sun6i-apb0-gates: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: sun6i-apb0: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun9i-a80-usb: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun9i-a80-de: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun9i-a80: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun8i-r40: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun8i-de2: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun8i-a83t: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun50i-h6: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi-ng: ccu-sun50i-a64: Make use of the helper function devm_platform_ioremap_resource()
        clk: sunxi: clk-mod0: Make use of the helper function devm_platform_ioremap_resource()
        dt-bindings: clocks: Fix typo in the H6 compatible
        clk: sunxi-ng: Use a separate lock for each CCU instance
        clk: sunxi-ng: Prevent unbinding CCUs via sysfs
        clk: sunxi-ng: Unregister clocks/resets when unbinding
        clk: sunxi-ng: Add machine dependency to A83T CCU
        clk: sunxi-ng: mux: Remove unused 'reg' field
      a69cd911
  4. 18 Oct, 2021 3 commits
  5. 15 Oct, 2021 4 commits