18 Jul, 2019

1 commit

  • Pull clk updates from Stephen Boyd:
    "This round of clk driver and framework updates is heavy on the driver
    update side. The two main highlights in the core framework are the
    addition of an bulk clk_get API that handles optional clks and an
    extra debugfs file that tells the developer about the current parent
    of a clk.

    The driver updates are dominated by i.MX in the diffstat, but that is
    mostly because that SoC has started converting to the clk_hw style of
    clk registration. The next big update is in the Amlogic meson clk
    driver that gained some support for audio, cpu, and temperature clks
    while fixing some PLL issues. Finally, the biggest thing that stands
    out is the conversion of a large part of the Allwinner sunxi-ng driver
    to the new clk parent scheme that uses less strings and more pointer
    comparisons to match clk parents and children up.

    In general, it looks like we have a lot of little fixes and tweaks
    here and there to clk data along with the normal addition of a handful
    of new drivers and a couple new core framework features.

    Core:
    - Add a 'clk_parent' file in clk debugfs
    - Add a clk_bulk_get_optional() API (with devm too)

    New Drivers:
    - Support gated clk controller on MIPS based BCM63XX SoCs
    - Support SiLabs Si5341 and Si5340 chips
    - Support for CPU clks on Raspberry Pi devices
    - Audsys clock driver for MediaTek MT8516 SoCs

    Updates:
    - Convert a large portion of the Allwinner sunxi-ng driver to new clk parent scheme
    - Small frequency support for SiLabs Si544 chips
    - Slow clk support for AT91 SAM9X60 SoCs
    - Remove dead code in various clk drivers (-Wunused)
    - Support for Marvell 98DX1135 SoCs
    - Get duty cycle of generic pwm clks
    - Improvement in mmc phase calculation and cleanup of some rate defintions
    - Switch i.MX6 and i.MX7 clock drivers to clk_hw based APIs
    - Add GPIO, SNVS and GIC clocks for i.MX8 drivers
    - Mark imx6sx/ul/ull/sll MMDC_P1_IPG and imx8mm DRAM_APB as critical clock
    - Correct imx7ulp nic1_bus_clk and imx8mm audio_pll2_clk clock setting
    - Add clks for new Exynos5422 Dynamic Memory Controller driver
    - Clock definition for Exynos4412 Mali
    - Add CMM (Color Management Module) clocks on Renesas R-Car H3, M3-N, E3, and D3
    - Add TPU (Timer Pulse Unit / PWM) clocks on Renesas RZ/G2M
    - Support for 32 bit clock IDs in TI's sci-clks for J721e SoCs
    - TI clock probing done from DT by default instead of firmware
    - Fix Amlogic Meson mpll fractional part and spread sprectrum issues
    - Add Amlogic meson8 audio clocks
    - Add Amlogic g12a temperature sensors clocks
    - Add Amlogic g12a and g12b cpu clocks
    - Add TPU (Timer Pulse Unit / PWM) clocks on Renesas R-Car H3, M3-W, and M3-N
    - Add CMM (Color Management Module) clocks on Renesas R-Car M3-W
    - Add Clock Domain support on Renesas RZ/N1"

    * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (190 commits)
    clk: consoldiate the __clk_get_hw() declarations
    clk: sprd: Add check for return value of sprd_clk_regmap_init()
    clk: lochnagar: Update DT binding doc to include the primary SPDIF MCLK
    clk: Add Si5341/Si5340 driver
    dt-bindings: clock: Add silabs,si5341
    clk: clk-si544: Implement small frequency change support
    clk: add BCM63XX gated clock controller driver
    devicetree: document the BCM63XX gated clock bindings
    clk: at91: sckc: use dedicated functions to unregister clock
    clk: at91: sckc: improve error path for sama5d4 sck registration
    clk: at91: sckc: remove unnecessary line
    clk: at91: sckc: improve error path for sam9x5 sck register
    clk: at91: sckc: add support to free slow clock osclillator
    clk: at91: sckc: add support to free slow rc oscillator
    clk: at91: sckc: add support to free slow oscillator
    clk: rockchip: export HDMIPHY clock on rk3228
    clk: rockchip: add watchdog pclk on rk3328
    clk: rockchip: add clock id for hdmi_phy special clock on rk3228
    clk: rockchip: add clock id for watchdog pclk on rk3328
    clk: at91: sckc: add support for SAM9X60
    ...

    Linus Torvalds
     

19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

07 Jun, 2019

1 commit

  • Commit 9fba738a53dda2 ("clk: add duty cycle support") added support for
    getting and setting the duty cycle of a clock. This implements the
    get_duty_cycle callback for PWM based clocks so the duty cycle is shown
    in the debugfs output (/sys/kernel/debug/clk/clk_summary).

    Signed-off-by: Martin Blumenstingl
    Signed-off-by: Stephen Boyd

    Martin Blumenstingl
     

27 Apr, 2019

1 commit

  • This flag was historically used to indicate that a clk is a "basic" type
    of clk like a mux, divider, gate, etc. This never turned out to be very
    useful though because it was hard to cleanly split "basic" clks from
    other clks in a system. This one flag was a way for type introspection
    and it just didn't scale. If anything, it was used by the TI clk driver
    to indicate that a clk_hw wasn't contained in the SoC specific clk
    structure. We can get rid of this define now that TI is finding those
    clks a different way.

    Cc: Tero Kristo
    Cc: Ralf Baechle
    Cc: Paul Burton
    Cc: James Hogan
    Cc:
    Cc: Thierry Reding
    Cc: Kevin Hilman
    Cc:
    Cc:
    Acked-by: Thierry Reding
    Signed-off-by: Stephen Boyd

    Stephen Boyd
     

25 Aug, 2016

1 commit


17 May, 2016

1 commit

  • The PWM framework has clarified the concept of reference PWM config (the
    platform dependent config retrieved from the DT or the PWM lookup table)
    and real PWM state.

    Use pwm_get_args() when the PWM user wants to retrieve this reference
    config and not the current state.

    This is part of the rework allowing the PWM framework to support
    hardware readout and expose real PWM state even when the PWM has just
    been requested (before the user calls pwm_config/enable/disable()).

    Signed-off-by: Boris Brezillon
    Acked-by: Stephen Boyd
    Signed-off-by: Thierry Reding

    Boris Brezillon
     

03 Mar, 2016

1 commit


11 Apr, 2015

1 commit

  • Some board designers, when running out of clock output pads, decide to
    (mis)use PWM output pads to provide a clock to external components.
    This driver supports this practice by providing an adapter between the
    PWM and clock bindings in the device tree. As the PWM bindings specify
    the period in the device tree, this is a fixed clock.

    Tested-by: Janusz Uzycki
    Signed-off-by: Philipp Zabel
    Signed-off-by: Michael Turquette

    Philipp Zabel