Skip to content

clk: add support for Airoha AN7583 clock

Christian Marangi linux-clk linux-devicetree lkml 15 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v15 Latest5 patches 0 repliesNew
  2. v145 patches 0 repliesSuperseded
  3. v135 patches 5 repliesSuperseded
Earlier versions · 12
VersionPostedPatchesRepliesStatus
v125 patches1 replySuperseded
v115 patches0 repliesSuperseded
v105 patches1 replySuperseded
v93 patches2 repliesSuperseded
v83 patches0 repliesSuperseded
v73 patches3 repliesSuperseded
v63 patches5 repliesSuperseded
v53 patches1 replySuperseded
v45 patches0 repliesSuperseded
v35 patches11 repliesSuperseded
v210 patches5 repliesSuperseded
v15 patches8 repliesSuperseded

Changes in v15 from the cover letter

- Fix num_clocks with new implementation for AN7583

Patches in v15 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: clock: airoha: Document support for AN7583 clockDocumentation/devicetree/bindings/clock/airoha,en7523-scu.yaml include/dt-bindings/clock/en7523-clk.h include/dt-bindings/reset/airoha,an7583-reset.h+94 -00 replies
2/5clk: en7523: use devm variant for clk_hw_register and fixed clockdrivers/clk/clk-en7523.c+4 -40 replies
3/5clk: en7523: protect concurrent access to reset and PCI registerdrivers/clk/clk-en7523.c+82 -220 replies
4/5clk: en7523: generalize register clocks functiondrivers/clk/clk-en7523.c+19 -100 replies
5/5clk: en7523: add support for Airoha AN7583 clockdrivers/clk/clk-en7523.c+248 -00 replies

Reviews trailers per patch

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

PatchConor Dooley
1/5A-b
2/5
3/5
4/5
5/5

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

Read the v15 thread

Cover letter [PATCH v15 0/5] clk: add support for Airoha AN7583 clock

This small series introduce some cleanup and support for clock and reset of Airoha AN7583.

The implementation is similar to EN7581 but AN7583 introduce new reset and more clock divisor support.

Changes v15:
- Fix num_clocks with new implementation for AN7583

Changes v14:
- Fix wrong definition for chip-scu
- Use scoped guard and guard API in reset
- Rework for better num_clocks handling
- Address some forma impovement suggested by Brian

Changes v13:
- Use guard API
- Drop spinlock on read operation
- Use enabled/disabled now that they don't sleep anymore
- Rebase on top of linux-next

Changes v12:
- Fix dereference on pcie early unprepare

Changes v11:
- Move to global spinlock
- Move pci ops to sleepable prepare/unprepare

Changes v10:
- Fix whitespace in include patch
- Add reset and phy cell as required
- Add additional patch for devm variant
- Add additional patch for lock for clock and reset access

Changes v9:
- Fix compilation error for priv (again) (this time fixed)

Changes v8:
- Add ACK tag by Connor
- Fix missing priv->base assign

Changes v7:
- Add further info for DT patch
- Add serdes selection support
- Rebase on top of linux-next

Changes v6:
- Address bot suggestion for DT patch
- Add further information on chip-scu phandle
- Add dedicated PERSTOUT reset and PCIE_HB reset

Changes v5:
- Rebase on top of linux-next
- Drop even more patch to reduce patch delta
- Make chip-scu specific to AN7583

Changes v4:
- Add review tag for DT patch
- Fix clock patch to use en7581-chip-scu compatible
- Drop PCIE SCU SSR write

Changes v3:
- Drop .set_rate patch (will be proposed later)
- Drop chip-scu binding and related patch

Changes v2:
- Add .set_rate support
- Rework DT to EN7581 implementation (clock driver is parent)
- Add additional cleanup patch
- Merge binding with schema patch
- Add chip_scu phandle

Christian Marangi (5):
dt-bindings: clock: airoha: Document support for AN7583 clock
clk: en7523: use devm variant for clk_hw_register and fixed clock
clk: en7523: protect concurrent access to reset and PCI register
clk: en7523: generalize register clocks function
clk: en7523: add support for Airoha AN7583 clock

 .../bindings/clock/airoha,en7523-scu.yaml     |  26 ++
 drivers/clk/clk-en7523.c                      | 389 ++++++++++++++++--
 include/dt-bindings/clock/en7523-clk.h        |   3 +
 .../dt-bindings/reset/airoha,an7583-reset.h   |  65 +++
 4 files changed, 447 insertions(+), 36 deletions(-)
 create mode 100644 include/dt-bindings/reset/airoha,an7583-reset.h
Signature · 1 line
2.55.0