Skip to content

clk: ti: dpll: switch spread spectrum to the generic framework

Dario Binacchi linux-clk linux-devicetree linux-omap lkml 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyApplied
  2. v33 patches 4 repliesSuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches1 replySuperseded

Changes in v4 from the cover letter

- Add Reviewed-by tag of Krzysztof Kozlowski
- Keep the reverse Christmas tree order for the variables list
- Check the range of the deprecated ti,ssc-deltam property
- Drop the checks already done by the clock framework
- Split the already applied check into the disabled and enabled cases
- Keep the reverse Christmas tree order for the variables list

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: clock: ti: dpll: deprecate the ti,ssc-* propertiesDocumentation/devicetree/bindings/clock/ti/dpll.txt+6 -30 replies
2/3clk: ti: dpll: use the generic spread spectrum configurationdrivers/clk/ti/clock.h drivers/clk/ti/dpll.c drivers/clk/ti/dpll3xxx.c +1 more+62 -220 replies
3/3clk: ti: dpll: apply the spread spectrum configuration right awaydrivers/clk/ti/dpll3xxx.c+50 -60 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] clk: ti: dpll: switch spread spectrum to the generic framework

The am33xx/am43xx DPLL spread spectrum clocking (SSC) is configured through vendor specific DT properties. Since 7.3 the clock framework provides a generic API and the assigned-clock-sscs DT property for it, so the series moves the TI DPLL to the generic configuration and deprecates the vendor specific properties.

The last patch applies the configuration right away, as the clock core skips set_rate() when the requested rate is already the current one, e.g. when the bootloader has set it up.

Tested on a BeagleBone Black with equivalent parameters, set through the deprecated properties, assigned-clock-sscs or both. The dpll_disp_ck SSC registers are programmed with the same values as before the series.

Changes in v4:
- Add Reviewed-by tag of Krzysztof Kozlowski
- Keep the reverse Christmas tree order for the variables list
- Check the range of the deprecated ti,ssc-deltam property
- Drop the checks already done by the clock framework
- Split the already applied check into the disabled and enabled cases
- Keep the reverse Christmas tree order for the variables list

Changes in v3:
- Deprecate the properties instead of dropping them
- Keep parsing the deprecated vendor specific properties
- Skip reprogramming only if the configuration is already applied to the hardware

Changes in v2:
- Check the DPLL lock state instead of its parent, as the reference and bypass clocks can be the same clock

Dario Binacchi (3):
dt-bindings: clock: ti: dpll: deprecate the ti,ssc-* properties
clk: ti: dpll: use the generic spread spectrum configuration
clk: ti: dpll: apply the spread spectrum configuration right away

 .../devicetree/bindings/clock/ti/dpll.txt     |  9 +-
 drivers/clk/ti/clock.h                        |  2 +
 drivers/clk/ti/dpll.c                         | 21 +++-
 drivers/clk/ti/dpll3xxx.c                     | 96 +++++++++++++++++--
 include/linux/clk/ti.h                        |  9 +-
 5 files changed, 112 insertions(+), 25 deletions(-)

---
base-commit: 05441d697f7f9a927264f4058cbbc6a03dfcac9d
branch: am33xx-assigned-clock-sscs

Signature · 1 line
2.43.0