More PolarFire SoC Fixes for 5.18
Status from this message: Applied to clk-fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest9 patches 18 repliesApplied
- v29 patches 12 repliesSuperseded
- v13 patches 0 repliesSuperseded
Changes in v3 from the cover letter
- Wrapped text in dt-binding changes at 80 cols
- Ordered the clock defines numerically in the binding header
- Fixed the Fixes tag on the last patch and added the second tag
[0] https://lore.kernel.org/linux-riscv/[email protected]
[1] https://lore.kernel.org/linux-riscv/[email protected]
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | clk: microchip: mpfs: fix parents for FIC clocksdrivers/ | +5 | 2 replies | |
| 2/9 | clk: microchip: mpfs: mark CLK_ATHENA as criticaldrivers/ | +5 | 1 reply | |
| 3/9 | riscv: dts: microchip: fix usage of fic clocks on mpfsarch/ arch/ | +15 | 1 reply | |
| 4/9 | dt-bindings: clk: mpfs document msspll dri registersDocumentation/ | +11 | 1 reply | |
| 5/9 | dt-bindings: clk: mpfs: add defines for two new clocksinclude/ | +4 | 2 replies | |
| 6/9 | dt-bindings: rtc: add refclk to mpfs-rtcDocumentation/ | +12 | 1 reply | |
| 7/9 | clk: microchip: mpfs: re-parent the configurable clocksdrivers/ | +132 | 1 reply | |
| 8/9 | clk: microchip: mpfs: add RTCREF clock controldrivers/ | +23 | 1 reply | |
| 9/9 | riscv: dts: microchip: reparent mpfs clocksarch/ arch/ | +5 | 1 reply |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Daire McNamara | Krzysztof Kozlowski | Palmer Dabbelt |
|---|---|---|---|
| Series | A-b | ||
| 1/9 | R-b | ||
| 2/9 | R-b | ||
| 3/9 | R-b | ||
| 4/9 | R-b | A-b | |
| 5/9 | R-b | A-b | |
| 6/9 | R-b | A-b | |
| 7/9 | R-b | ||
| 8/9 | R-b | ||
| 9/9 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 0/9] More PolarFire SoC Fixes for 5.18
Hey all,
After the clock driver for the PolarFire SoC was accepted I started work on the onboard RTC & found out that the reference clock for the rtc was actually missing from the clock driver.
While restructuring the clock driver to add support for the rtc reference, I also noticed that there were some problems with how the FIC clocks were being used. The FIC clocks are the cpu side inputs to the AXI fabric interconnections & are not the clocks for any peripherals.
This first three patches in this series fixes the problems with the FICs:
- the fic clocks incorrectly had the AHB clock as their parents
- the last fic, named differently to the others, had not been set as a critical clock
- some peripherals on the fabric side were incorrectly using the cpu side fic clocks, resulting in incorrect rates.
The second part of the series fixes the missing rtc reference clock. There are three main changes:
- Changing the reference clock in the dt to the external 125 MHz oscillator rather than using the output of an internal pll. This has the added benefit of not requiring changes to the device tree if this part of the bitstream changes.
- Adding a new clock into the driver that sits above the existing configurable clocks & has the external reference as a parent. The new clock provides the parent for the AHB/AXI clocks which formerly came from the device tree.
- Adding the rtc reference clock to the dt bindings, device tree and clock driver at the configurable clock level, alongside AXI and AHB.
I kept series separate from [0] since that's tied to the CONFIG_PM stuff & fixes a specific problem.
Changes since v1:
After speaking with Krzysztof, I have merged the rtc reference changes
[1] with these fixes for 5.18. This was done since the relevant drivers and bindings only arrived in v5.18 & there'll now be no issue with breaking the ABI.
Backwards compatiblity with the device tree from before 5.18 will be broken by these changes, but the board did not boot then anyway... If that is not okay, please lmk.
The patch renaming sys_base was dropped since that's not a fix.
Version 1 would not apply without [0] & that should be fixed too.
Thanks,
Conor.
Changes since v2:
- Wrapped text in dt-binding changes at 80 cols
- Ordered the clock defines numerically in the binding header
- Fixed the Fixes tag on the last patch and added the second tag
[0] https://lore.kernel.org/linux-riscv/[email protected]
[1] https://lore.kernel.org/linux-riscv/[email protected]
Conor Dooley (9):
clk: microchip: mpfs: fix parents for FIC clocks
clk: microchip: mpfs: mark CLK_ATHENA as critical
riscv: dts: microchip: fix usage of fic clocks on mpfs
dt-bindings: clk: mpfs document msspll dri registers
dt-bindings: clk: mpfs: add defines for two new clocks
dt-bindings: rtc: add refclk to mpfs-rtc
clk: microchip: mpfs: re-parent the configurable clocks
clk: microchip: mpfs: add RTCREF clock control
riscv: dts: microchip: reparent mpfs clocks
.../bindings/clock/microchip,mpfs.yaml | 13 +- .../bindings/rtc/microchip,mfps-rtc.yaml | 15 +- .../dts/microchip/microchip-mpfs-fabric.dtsi | 16 +- .../microchip/microchip-mpfs-icicle-kit.dts | 2 +- .../boot/dts/microchip/microchip-mpfs.dtsi | 10 +- drivers/clk/microchip/clk-mpfs.c | 191 +++++++++++++++--- .../dt-bindings/clock/microchip,mpfs-clock.h | 5 +- 7 files changed, 211 insertions(+), 41 deletions(-)
Signature · 1 line
2.35.1