Commit graph

1,381,867 commits

Author SHA1 Message Date
Stephen Boyd
b91217d912
Merge branches 'clk-microchip', 'clk-lookup' and 'clk-st' into clk-next
- Speed up clk_core_lookup() by using a hashtable

* clk-microchip:
  ARM: at91: remove default values for PMC_PLL_ACR
  clk: at91: add ACR in all PLL settings
  clk: at91: sam9x7: Add peripheral clock id for pmecc
  clk: at91: clk-master: Add check for divide by 3
  clk: at91: clk-sam9x60-pll: force write to PLL_UPDT register
  ARM: at91: pm: save and restore ACR during PLL disable/enable

* clk-lookup:
  clk: Use hashtable for global clk lookups
  clk: Sort include statements

* clk-st:
  dt-bindings: stm32: cosmetic fixes for STM32MP25 clock and reset bindings
  clk: stm32: introduce clocks for STM32MP21 platform
  dt-bindings: stm32: add STM32MP21 clocks and reset bindings
2025-10-06 13:00:12 -05:00
Stephen Boyd
f0fd248204
Merge branches 'clk-scmi', 'clk-qcom' and 'clk-broadcom' into clk-next
* clk-scmi:
  clk: scmi: Add duty cycle ops only when duty cycle is supported

* clk-qcom: (27 commits)
  clk: qcom: gcc-sc8280xp: drop obsolete PCIe GDSC comment
  clk: qcom: tcsrcc-x1e80100: Set the bi_tcxo as parent to eDP refclk
  clk: qcom: dispcc-glymur: Constify 'struct qcom_cc_desc'
  clk: qcom: gcc: Add support for Global Clock controller found on MSM8937
  dt-bindings: clock: qcom: Add MSM8937 Global Clock Controller
  clk: qcom: Select the intended config in QCS_DISPCC_615
  clk: qcom: common: Fix NULL vs IS_ERR() check in qcom_cc_icc_register()
  clk: qcom: alpha-pll: convert from round_rate() to determine_rate()
  clk: qcom: milos: Constify 'struct qcom_cc_desc'
  clk: qcom: gcc: Add support for Global Clock Controller
  dt-bindings: clock: qcom: document the Glymur Global Clock Controller
  clk: qcom: clk-alpha-pll: Add support for Taycan EKO_T PLL
  clk: qcom: rpmh: Add support for Glymur rpmh clocks
  clk: qcom: Add TCSR clock driver for Glymur SoC
  dt-bindings: clock: qcom: Document the Glymur SoC TCSR Clock Controller
  dt-bindings: clock: qcom-rpmhcc: Add support for Glymur SoCs
  clk: qcom: dispcc-glymur: Add support for Display Clock Controller
  dt-bindings: clock: Add DISPCC and reset controller for GLYMUR SoC
  clk: qcom: gcc-sdm660: Add missing LPASS/CDSP vote clocks
  dt-bindings: clock: gcc-sdm660: Add LPASS/CDSP vote clocks/GDSCs
  ...

* clk-broadcom:
  clk: bcm: rpi: Maximize V3D clock
  clk: bcm: rpi: Turn firmware clock on/off when preparing/unpreparing
  clk: bcm: rpi: Add missing logs if firmware fails
2025-10-06 12:57:03 -05:00
Stephen Boyd
c1e102f349
Merge branches 'clk-imx', 'clk-allwinner' and 'clk-ti' into clk-next
* clk-imx:
  clk: imx95-blk-ctl: Save/restore registers when RPM routines are called
  clk: imx95-blk-ctl: Save platform data in imx95_blk_ctl structure

* clk-allwinner:
  clk: sunxi-ng: add support for the A523/T527 MCU CCU
  clk: sunxi-ng: div: support power-of-two dividers
  clk: sunxi-ng: sun55i-a523-ccu: Add missing NPU module clock
  dt-bindings: clock: sun55i-a523-ccu: Add A523 MCU CCU clock controller
  dt-bindings: clock: sun55i-a523-ccu: Add missing NPU module clock
  clk: sunxi-ng: sun6i-rtc: Add A523 specifics

* clk-ti:
  clk: keystone: sci-clk: use devm_kmemdup_array()
  clk: ti: am33xx: keep WKUP_DEBUGSS_CLKCTRL enabled
2025-10-06 12:56:54 -05:00
Stephen Boyd
3aae991cc2
Merge branches 'clk-samsung', 'clk-tegra' and 'clk-amlogic' into clk-next
* clk-samsung:
  clk: s2mps11: add support for S2MPG10 PMIC clock
  dt-bindings: clock: samsung,s2mps11: add s2mpg10
  clk: samsung: exynos990: Add PERIC0 and PERIC1 clock support
  dt-bindings: clock: exynos990: Add PERIC0 and PERIC1 clock units
  clk: samsung: exynos990: Add missing USB clock registers to HSI0
  clk: samsung: exynos990: Add LHS_ACEL gate clock for HSI0 and update CLK_NR_TOP
  dt-bindings: clock: exynos990: Add LHS_ACEL clock ID for HSI0 block
  clk: samsung: artpec-8: Add initial clock support for ARTPEC-8 SoC
  clk: samsung: Add clock PLL support for ARTPEC-8 SoC
  dt-bindings: clock: Add ARTPEC-8 clock controller
  clk: samsung: exynos990: Add DPU_BUS and CMUREF mux/div and update CLKS_NR_TOP
  dt-bindings: clock: exynos990: Extend clocks IDs
  clk: samsung: exynos990: Replace bogus divs with fixed-factor clocks
  clk: samsung: exynos990: Fix CMU_TOP mux/div bit widths
  clk: samsung: exynos990: Use PLL_CON0 for PLL parent muxes
  clk: samsung: pll: convert from round_rate() to determine_rate()
  clk: samsung: cpu: convert from round_rate() to determine_rate()
  clk: samsung: fsd: Add clk id for PCLK and PLL in CAM_CSI block
  dt-bindings: clock: Add CAM_CSI clock macro for FSD

* clk-tegra:
  clk: tegra: dfll: Add CVB tables for Tegra114
  clk: tegra: Add DFLL DVCO reset control for Tegra114
  dt-bindings: arm: tegra: Add ASUS TF101G and SL101
  dt-bindings: reset: Add Tegra114 CAR header
  dt-bindings: arm: tegra: Add Xiaomi Mi Pad (A0101)
  dt-bindings: clock: tegra30: Add IDs for CSI pad clocks
  dt-bindings: display: tegra: Move avdd-dsi-csi-supply from VI to CSI
  dt-bindings: i2c: nvidia,tegra20-i2c: Document Tegra264 I2C

* clk-amlogic:
  clk: amlogic: fix recent code refactoring
  clk: amlogic: c3-peripherals: use helper for basic composite clocks
  clk: amlogic: align s4 and c3 pwm clock descriptions
  clk: amlogic: add composite clock helpers
  clk: amlogic: use the common pclk definition
  clk: amlogic: introduce a common pclk definition
  clk: amlogic: pclk explicitly use CLK_IGNORE_UNUSED
  clk: amlogic: drop CLK_SET_RATE_PARENT from peripheral clocks
  clk: amlogic: move PCLK definition to clkc-utils
  clk: amlogic: aoclk: use clkc-utils syscon probe
  clk: amlogic: use probe helper in mmio based controllers
  clk: amlogic: add probe helper for mmio based controllers
  clk: amlogic: drop meson-clkcee
  clk: amlogic: naming consistency alignment
2025-10-06 12:56:46 -05:00
Stephen Boyd
ec7336475d
Merge branches 'clk-bindings', 'clk-cleanup', 'clk-renesas', 'clk-thead' and 'clk-spacemit' into clk-next
* clk-bindings:
  dt-bindings: clock: mediatek: Add power-domains property
  dt-bindings: clock: silabs,si5341: Add missing properties
  dt-bindings: clock: adi,axi-clkgen: add clock-output-names property
  dt-bindings: clock: Remove unused fujitsu,mb86s70-crg11 binding
  dt-bindings: clock: Convert silabs,si570 to DT schema
  dt-bindings: clock: Convert silabs,si5341 to DT schema
  dt-bindings: clock: Convert silabs,si514/544 to DT schema

* clk-cleanup:
  clk: tegra: do not overallocate memory for bpmp clocks
  clk: ep93xx: Use int type to store negative error codes
  dt-bindings: clock: st: flexgen: remove deprecated compatibles
  clk: st: flexgen: remove unused compatible
  clk: clk-axi-clkgen: remove unneeded semicolon
  clk: tegra: Remove redundant semicolons
  clk: npcm: select CONFIG_AUXILIARY_BUS
  clk: remove unneeded 'fast_io' parameter in regmap_config

* clk-renesas: (27 commits)
  clk: renesas: r9a09g05[67]: Reduce differences
  clk: renesas: r9a09g047: Add USB3.0 clocks/resets
  clk: renesas: cpg-mssr: Fix memory leak in cpg_mssr_reserved_init()
  clk: renesas: r9a09g056: Add clock and reset entries for I3C
  clk: renesas: r9a09g057: Add clock and reset entries for I3C
  dt-bindings: clock: renesas,r9a09g047-cpg: Add USB3.0 core clocks
  clk: renesas: r9a09g077: Add Ethernet Subsystem core and module clocks
  clk: renesas: rzv2h: Simplify polling condition in __rzv2h_cpg_assert()
  clk: renesas: rzv2h: Re-assert reset on deassert timeout
  clk: renesas: rzg2l: Re-assert reset on deassert timeout
  clk: renesas: rzg2l: Simplify rzg2l_cpg_assert() and rzg2l_cpg_deassert()
  dt-bindings: clock: renesas,r9a09g077/87: Add Ethernet clock IDs
  clk: renesas: r9a09g047: Add GPT clocks and resets
  clk: renesas: r9a09g077: Add module clocks for SCI1-SCI5
  clk: renesas: rzv2h: remove round_rate() in favor of determine_rate()
  clk: renesas: rzg2l: convert from round_rate() to determine_rate()
  clk: renesas: r9a07g04[34]: Use tabs instead of spaces
  clk: renesas: r9a07g043: Add MSTOP for RZ/G2UL
  clk: renesas: r9a07g044: Add MSTOP for RZ/G2L
  clk: renesas: r9a08g045: Add MSTOP for GPIO
  ...

* clk-thead:
  clk: thead: th1520-ap: set all AXI clocks to CLK_IS_CRITICAL
  clk: thead: support changing DPU pixel clock rate
  clk: thead: add support for enabling/disabling PLLs
  clk: thead: Correct parent for DPU pixel clocks
  clk: thead: th1520-ap: fix parent of padctrl0 clock
  clk: thead: th1520-ap: describe gate clocks with clk_gate

* clk-spacemit:
  clk: spacemit: fix i2s clock
  clk: spacemit: introduce pre-div for ddn clock
  dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock
  clk: spacemit: ccu_pll: convert from round_rate() to determine_rate()
  clk: spacemit: ccu_mix: convert from round_rate() to determine_rate()
  clk: spacemit: ccu_ddn: convert from round_rate() to determine_rate()
  clk: spacemit: fix sspax_clk
  dt-bindings: clock: spacemit: CLK_SSPA_I2S_BCLK for SSPA
2025-10-06 12:56:23 -05:00
Fedor Pchelkin
49ef649110
clk: tegra: do not overallocate memory for bpmp clocks
struct tegra_bpmp::clocks is a pointer to a dynamically allocated array
of pointers to 'struct tegra_bpmp_clk'.

But the size of the allocated area is calculated like it is an array
containing actual 'struct tegra_bpmp_clk' objects - it's not true, there
are just pointers.

Found by Linux Verification Center (linuxtesting.org) with Svace static
analysis tool.

Fixes: 2db12b15c6 ("clk: tegra: Register clocks from root to leaf")
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 13:09:12 -07:00
Qianfeng Rong
41bba99777
clk: ep93xx: Use int type to store negative error codes
Change the 'ret' variable in ep93xx_uart_clock_init() from unsigned int to
int, as it needs to store either negative error codes or zero.

Storing the negative error codes in unsigned type, doesn't cause an issue
at runtime but can be confusing. Additionally, assigning negative error
codes to unsigned type may trigger a GCC warning when the -Wsign-conversion
flag is enabled.

No effect on runtime.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 13:02:18 -07:00
André Draszik
823699ccbf
clk: s2mps11: add support for S2MPG10 PMIC clock
Add support for Samsung's S2MPG10 PMIC clock, which is similar to the
existing PMIC clocks supported by this driver.

S2MPG10 has three clock outputs @ 32kHz: AP, peri1 and peri2.

Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 10:43:18 -07:00
André Draszik
b92ef17f0c
dt-bindings: clock: samsung,s2mps11: add s2mpg10
The Samsung S2MPG10 clock controller is similar to the existing clock
controllers supported by this binding. Register offsets / layout are
slightly different, so it needs its own compatible.

Acked-by: Stephen Boyd <sboyd@kernel.org>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 10:43:16 -07:00
Gabriel Fernandez
099760708a
dt-bindings: stm32: cosmetic fixes for STM32MP25 clock and reset bindings
- drop minItems from access-controllers
- remove rcc label from example
- fixes typos
- remove double '::' from 'See also::'

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 10:31:57 -07:00
Gabriel Fernandez
37ae8501cd
clk: stm32: introduce clocks for STM32MP21 platform
This driver is intended for the STM32MP21 clock family.

Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@foss.st.com>
Reviewed-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 10:31:56 -07:00
Gabriel Fernandez
49f6c8b74d
dt-bindings: stm32: add STM32MP21 clocks and reset bindings
Adds clock and reset binding entries for STM32MP21 SoC family.

Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@foss.st.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 10:31:55 -07:00
Chen-Yu Tsai
4bf2d2744e
clk: Use hashtable for global clk lookups
A clk lookup using clk_core_lookup() is currently somewhat expensive
since it has to walk the whole clk tree to find a match. This is
extremely bad in the clk_core_init() function where it is used to look
for clk name conflicts, which is always the worst case of walking the
whole tree. Moreover, the number of clks checked increases as more
clks are registered, causing each subsequent clk registration becoming
slower.

Add a hashtable for doing clk lookups to replace the tree walk method.
On arm64 this increases kernel memory usage by 4 KB for the hashtable,
and 16 bytes (2 pointers) for |struct hlist_node| in each clk. On a
platform with around 800 clks, this reduces the time spent in
clk_core_lookup() significantly:

          |      PID 0      |     kworker     |
          | before |  after | before |  after |
    -------------------------------------------
    avg   | 203 us | 2.7 us | 123 us | 1.5 us |
    -------------------------------------------
    min   | 4.7 us | 2.3 us | 102 us | 0.9 us |
    -------------------------------------------
    max   | 867 us | 4.8 us | 237 us | 3.5 us |
    -------------------------------------------
    culm  | 109 ms | 1.5 ms |  21 ms | 0.3 ms |

This in turn reduces the time spent in clk_hw_register(), and
ultimately, boot time. On a different system with close to 700 clks,
This reduces boot time by around 110 ms. While this doesn't seem like
a lot, this helps in cases where minimizing boot time is important.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Tested-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 10:15:43 -07:00
Chen-Yu Tsai
904bed3949
clk: Sort include statements
The clk core has its include statements in some random order.

Clean it up before we add more.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 10:15:37 -07:00
Stephen Boyd
1803012a89 Microchip clock updates for v6.18
This update includes:
 - add one clock for sam9x75
 - new meaning for MCR register field in clk-master
 - use force-write to PLL update register to ensure
   reliable programming sequence
 - update Analog Control Register (ACR) management to accommodate
   differences across SoCs.
 - ACR management dependency with one ARM PM patch added beforehand
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQQ5TRCVIBiyi/S+BG4fOrpwrNPNDAUCaMr32QAKCRAfOrpwrNPN
 DBNwAP9pDeNRFsWCPqGxNuNn3gzUhrPiR8AdyGZzNYx0hFSXEQD+M3VJz0N6E+fz
 WMHb8KGiWb6NGw2hVwMOq04fXpcjYgU=
 =WcM1
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjQLjYUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSWdrhAA2mm9Nj5Jn+3olYr+LG0edYT1r235
 ZBFpvbnM2nGoGYda+nDuSx0bAxxK8X7UZBvNR63qUdfXFeAQQuHmj9R/rt2sYl/6
 3pUPNu9oEo+P0Z8TVBR1AhgmhnrNulvS2bZOj6JZL0NwO3w13NpAY7abrLV7PcyD
 DHjMqUadEj+0O1548C+KWFR1mG8TlwcTyILfgSQNqLppbYnUCi3+l6BAHufBtZ9e
 Uzag1PHVdf82c/qW8eO3TrWR/m/N2QkktQbuK08k0SeMILqvS1epwSGJhLin9+e5
 EyNbObxw9bXpgJ/amlRAysPlcMI9pOptMZ7l1bnrZu/ydjCVwAdbBV+Q59SYct6j
 wti4mzkLDy96doM5Uxd78cdPNOKxRkdQvIj4WMMHM+B09r3aGIGCXcHx6oGYgCoP
 N9T1LlKQa8XFW/mKNad15BGnmVj7cWZedj9NS9q3CTx/bGuQGmlY7DnRXAaEJSvh
 gT4tyH7LpFo+llTLlxapwdKiSS8UpmbMzuPwnvIAGUHw8SmTpRuBibBoDN2rxQtr
 /BEtB+T3h5AaOtXfJREfuUNzBH+ug8NU5IIbuN/DLF3lR99Zpm+vVOroeY4Pgcr+
 cWyY1F006aew1Bp+QpZmDl1PyK3rQ/CwDinehabgebi1a+XmaBLAcxipTzX1ej9W
 bF9yWA12nt8AMjU=
 =NIfh
 -----END PGP SIGNATURE-----

Merge tag 'clk-microchip-6.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into clk-microchip

Pull Microchip clk driver updates from Nicolas Ferre:

 - add one clock for sam9x75
 - new meaning for MCR register field in clk-master
 - use force-write to PLL update register to ensure
   reliable programming sequence
 - update Analog Control Register (ACR) management to accommodate
   differences across SoCs.
 - ACR management dependency with one ARM PM patch added beforehand

* tag 'clk-microchip-6.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux:
  ARM: at91: remove default values for PMC_PLL_ACR
  clk: at91: add ACR in all PLL settings
  clk: at91: sam9x7: Add peripheral clock id for pmecc
  clk: at91: clk-master: Add check for divide by 3
  clk: at91: clk-sam9x60-pll: force write to PLL_UPDT register
  ARM: at91: pm: save and restore ACR during PLL disable/enable
2025-09-21 09:56:03 -07:00
Raphael Gallais-Pou
b52297f6eb
dt-bindings: clock: st: flexgen: remove deprecated compatibles
st/stih407-clock.dtsi file has been removed in commit 65322c1daf51
("clk: st: flexgen: remove unused compatible").  This file has three
compatibles which are now dangling.  Remove them from documentation.

Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 09:52:31 -07:00
Raphael Gallais-Pou
bbcc60a43c
clk: st: flexgen: remove unused compatible
Following B2120 boards removal in commit dee546e1ad ("ARM: sti: drop
B2120 board support"), several compatibles are left unused.  Remove
them.

Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 09:52:29 -07:00
Maíra Canal
6526402b9b
clk: bcm: rpi: Maximize V3D clock
Although minimizing the clock rate is the best for most scenarios, as
stated in commit 4d85abb0fb ("clk: bcm: rpi: Enable minimize for all
firmware clocks"), when it comes to the GPU, it's ideal to have the
maximum rate allowed.

Add an option to maximize a firmware clock's rate when the clock is
enabled and set this option for V3D.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 09:09:51 -07:00
Maíra Canal
919d6924ae
clk: bcm: rpi: Turn firmware clock on/off when preparing/unpreparing
Currently, when we prepare or unprepare RPi's clocks, we don't actually
enable/disable the firmware clock. This means that
`clk_disable_unprepare()` doesn't actually change the clock state at
all, nor does it lowers the clock rate.

From the Mailbox Property Interface documentation [1], we can see that
we should use `RPI_FIRMWARE_SET_CLOCK_STATE` to set the clock state
off/on. Therefore, use `RPI_FIRMWARE_SET_CLOCK_STATE` to create a
prepare and an unprepare hook for RPi's firmware clock.

As now the clocks are actually turned off, some of them are now marked
CLK_IS_CRITICAL, as those are required to be on during the whole system
operation.

Link: https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface [1]
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 09:09:34 -07:00
Stefan Wahren
072ce917bf
clk: bcm: rpi: Add missing logs if firmware fails
In contrary to raspberrypi_fw_set_rate(), the ops for is_prepared() and
recalc_rate() silently ignore firmware errors by just returning 0.
Since these operations should never fail, add at least error logs
to inform the user.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-21 09:09:21 -07:00
Stephen Boyd
575e9a62b8 Qualcomm clock updates for v6.18
Introduce Glymur global, display, rpmh, and tcsr clock controllers.
 Introduce the IPQ5424 APSS clock controller. Extend the MSM8916 global
 clock controller, to add support for MSM8937.
 
 Convert alpha PLL to determine_rate().
 
 Add missing resets in SC7280 display clock controller.
 -----BEGIN PGP SIGNATURE-----
 
 iQJJBAABCgAzFiEEBd4DzF816k8JZtUlCx85Pw2ZrcUFAmjPYuoVHGFuZGVyc3Nv
 bkBrZXJuZWwub3JnAAoJEAsfOT8Nma3FGNAQALJtMxXzWBUtVI6aUFBREro3cGjW
 e4a51SVIU+gn0fhqTuhW0ICm6OW102yR7rG5mwKoKkf5GCHE13mBB65BSZZxXV+U
 +juudJHXmjEgZwKF8SPtbgVFdxvW9O4j1REjJUqHbiJPo4umjodAWYkiJ3ERXMor
 zWcyFYaZxKXuUe3jKJ3qbLYWmPUogUrrzy5wI0HT7ZH5IiEZyR7GN8XhXGmDYVSy
 r8YcyuxZotxIe5mmwEUrI32AL1KJqla8Vw9mLNbeOzg0h9Ba5khA9/Lq9qFAzWxE
 s6FX+uBlKpg0WeKbSppQV/qZLzk7JrPm4FS3a2YEeTS4d9ePktiL2FA4EQUQok7d
 L3u29Wfw9sj9lvcmbYk5s3BGEap1FdY9qabXw2u/Z6FMlH8VcTHxEYkXCjR755vg
 egn8WnIiPkfzBMq1+wj4enRe188UPbf+IcsP7toBsCU7g8Fz6+ec0H6oY3JQyu93
 4JLC6tIs26q/Z3a32Zafl0Y1lWDjMWuxNFt6xw8ElFU1sMeEAvJrfG4KLGmCQjfM
 DI+kaYbc5keJRuOC3Ubmf5G7aPljoLzgduuMqHeAA5eB7aoMnYXUiQjSzI66P1VD
 82wPBF3MBur1A1TwhalqR/d/gMWZ/Hk/zTGZHqcsT5WfpicuA3kLYerAfy6Mptf9
 bOwWlNHlFYYkQkWm
 =V9i2
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjQHqAUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSWUFA/+PNrayDbE3w/6xvRH4oP/yoH6C6yA
 +4PuKyX0T9r/45cM2APxYNiraUGl5EwjKHBFnObN5fyCo+xKQNgUSmR+2+WK0f2q
 CVYpsOWQe1cNPTmWVKtlwcKh5JUmjijspogbprHF7RN94zk7xJq/1671KmYuYUgO
 vGWfD/MXgAbtFzl3SMbq4raaD9BIn0qYbTDj6Q/sswZQY2MMsCqPD0wb3tSAgjYr
 cvC6lTbkBxaxsS3Je6Sm27YMAMdR63wvuB+k8hFSkw8ptuCsJEgkR8ZGKVsx1G+f
 m0t9SX03UvOdAq56OKUgjvUa/DIy5TWhm9cH0zHgWM89WUy/+g6WFm1F/GpP8gFs
 zZj56qRYes3ODBbNTYsAlvm2Mr+LZe6u/c3YFj+TVZ6Ih0Z94jFA2CaoT0B0VXn/
 qbVRiRd0ISFkesuPAr1DT3VUvtr3SMuCc7/4odNq+JisrjqVT9xXoJD1dyNleerA
 f+UGsA5Gja1ce6Q0tufUDwktli5mmFY5bYdYg+oo1ux78fTvtVHRb9rRHULC63Cz
 tdgJ2kTiOlfj8xGYxVdSb/XoM8TE87166L8/2Hsmk7A1kkuRhCLRtvYMUNNXMzxJ
 g0y6J7qfzWyvYmb89BLkIP+dH1fXRJd3ELIWyjn8la3Al/UCTm/dwA5itOnKthZH
 +R9nzLcqCtH7ips=
 =Y0ks
 -----END PGP SIGNATURE-----

Merge tag 'qcom-clk-for-6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into clk-qcom

Pull Qualcomm clk driver updates from Bjorn Andersson:

 - Introduce Qualcomm Glymur global, display, rpmh, and tcsr clock controllers
 - Introduce Qualcomm IPQ5424 APSS clock controller
 - Extend the Qualcomm MSM8916 global clock controller to add support for MSM8937
 - Convert QUalcomm alpha PLL to determine_rate() clk_ops
 - Add missing resets in Qualcomm SC7280 display clock controller

* tag 'qcom-clk-for-6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: (27 commits)
  clk: qcom: gcc-sc8280xp: drop obsolete PCIe GDSC comment
  clk: qcom: tcsrcc-x1e80100: Set the bi_tcxo as parent to eDP refclk
  clk: qcom: dispcc-glymur: Constify 'struct qcom_cc_desc'
  clk: qcom: gcc: Add support for Global Clock controller found on MSM8937
  dt-bindings: clock: qcom: Add MSM8937 Global Clock Controller
  clk: qcom: Select the intended config in QCS_DISPCC_615
  clk: qcom: common: Fix NULL vs IS_ERR() check in qcom_cc_icc_register()
  clk: qcom: alpha-pll: convert from round_rate() to determine_rate()
  clk: qcom: milos: Constify 'struct qcom_cc_desc'
  clk: qcom: gcc: Add support for Global Clock Controller
  dt-bindings: clock: qcom: document the Glymur Global Clock Controller
  clk: qcom: clk-alpha-pll: Add support for Taycan EKO_T PLL
  clk: qcom: rpmh: Add support for Glymur rpmh clocks
  clk: qcom: Add TCSR clock driver for Glymur SoC
  dt-bindings: clock: qcom: Document the Glymur SoC TCSR Clock Controller
  dt-bindings: clock: qcom-rpmhcc: Add support for Glymur SoCs
  clk: qcom: dispcc-glymur: Add support for Display Clock Controller
  dt-bindings: clock: Add DISPCC and reset controller for GLYMUR SoC
  clk: qcom: gcc-sdm660: Add missing LPASS/CDSP vote clocks
  dt-bindings: clock: gcc-sdm660: Add LPASS/CDSP vote clocks/GDSCs
  ...
2025-09-21 08:48:49 -07:00
Troy Mitchell
519cff1d85
clk: spacemit: fix i2s clock
Defining i2s_bclk and i2s_sysclk as fixed-rate clocks is insufficient
for real I2S use cases.

Moreover, the current I2S clock configuration does not work as expected
due to missing parent clocks.

This patch adds the missing parent clocks, defines i2s_sysclk as
a DDN clock, and i2s_bclk as a DIV clock.

A special note for i2s_bclk:

From the register definition, the i2s_bclk divider always implies
an additional 1/2 factor.

The following table shows the correspondence between index
and frequency division coefficients:

| index |  div  |
|-------|-------|
|   0   |   2   |
|   1   |   4   |
|   2   |   6   |
|   3   |   8   |

From a software perspective, introducing i2s_bclk_factor as the
parent of i2s_bclk is sufficient to address the issue.

The I2S-related clock registers can be found here [1].

Link:
https://developer.spacemit.com/documentation?token=LCrKwWDasiJuROkVNusc2pWTnEb
[1]

Fixes: 1b72c59db0 ("clk: spacemit: Add clock support for SpacemiT K1 SoC")
Co-developer: Jinmei Wei <weijinmei@linux.spacemit.com>
Suggested-by: Haylen Chu <heylenay@4d2.org>
Signed-off-by: Jinmei Wei <weijinmei@linux.spacemit.com>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 22:54:46 -07:00
Troy Mitchell
74246a820c
clk: spacemit: introduce pre-div for ddn clock
The original DDN operations applied an implicit divide-by-2, which should
not be a default behavior.

This patch removes that assumption, letting each clock define its
actual behavior explicitly.

Reviewed-by: Haylen Chu <heylenay@4d2.org>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 22:54:44 -07:00
Troy Mitchell
8be1f29904
dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock
Previously, the K1 clock driver did not include the parent clocks of
the I2S sysclk.

Introduce pre-clock to fix I2S clock.

Otherwise, the I2S clock may not work as expected.

This patch adds their definitions to allow proper registration
in the driver and usage in the device tree.

Fixes: 1b72c59db0 ("clk: spacemit: Add clock support for SpacemiT K1 SoC")
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 22:54:40 -07:00
Jacky Bai
18db1ff2de
clk: scmi: Add duty cycle ops only when duty cycle is supported
For some of the SCMI based platforms, the oem extended config may be
supported, but not for duty cycle purpose. Skip the duty cycle ops if
err return when trying to get duty cycle info.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 22:50:20 -07:00
Julien Massot
ac28c75986
dt-bindings: clock: mediatek: Add power-domains property
The mt8183-mfgcfg node uses a power domain in its device tree node.
To prevent schema validation warnings, add the optional `power-domains`
property to the binding schema for mediatek syscon clocks.

Fixes: 1781f2c461 ("arm64: dts: mediatek: mt8183: Add power-domains properity to mfgcfg")
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Julien Massot <julien.massot@collabora.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 22:45:07 -07:00
Raag Jadav
0485469313
clk: keystone: sci-clk: use devm_kmemdup_array()
Convert to use devm_kmemdup_array() which is more robust.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 22:30:01 -07:00
Matthias Schiffer
1e0d75258b
clk: ti: am33xx: keep WKUP_DEBUGSS_CLKCTRL enabled
As described in AM335x Errata Advisory 1.0.42, WKUP_DEBUGSS_CLKCTRL
can't be disabled - the clock module will just be stuck in transitioning
state forever, resulting in the following warning message after the wait
loop times out:

    l3-aon-clkctrl:0000:0: failed to disable

Just add the clock to enable_init_clks, so no attempt is made to disable
it.

Signed-off-by: Matthias Schiffer <matthias.schiffer@tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 22:27:48 -07:00
Marek Szyprowski
7e2e4e32cd
clk: amlogic: fix recent code refactoring
Commit 4c4e17f270 ("clk: amlogic: naming consistency alignment")
refactored some internals in the g12a meson clock driver. Unfortunately
it introduced a bug in the clock init data, which results in the
following kernel panic:

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
Mem abort info:
...
Data abort info:
...
[0000000000000000] user address but active_mm is swapper
Internal error: Oops: 0000000096000004 [#1]  SMP
Modules linked in:
CPU: 4 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc1+ #11158 PREEMPT
Hardware name: Hardkernel ODROID-N2 (DT)
pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __clk_register+0x60/0x92c
lr : __clk_register+0x48/0x92c
...
Call trace:
 __clk_register+0x60/0x92c (P)
 devm_clk_hw_register+0x5c/0xd8
 meson_eeclkc_probe+0x74/0x110
 g12a_clkc_probe+0x2c/0x58
 platform_probe+0x5c/0xac
 really_probe+0xbc/0x298
 __driver_probe_device+0x78/0x12c
 driver_probe_device+0xdc/0x164
 __driver_attach+0x9c/0x1ac
 bus_for_each_dev+0x74/0xd0
 driver_attach+0x24/0x30
 bus_add_driver+0xe4/0x208
 driver_register+0x60/0x128
 __platform_driver_register+0x24/0x30
 g12a_clkc_driver_init+0x1c/0x28
 do_one_initcall+0x64/0x308
 kernel_init_freeable+0x27c/0x4f8
 kernel_init+0x20/0x1d8
 ret_from_fork+0x10/0x20
Code: 52800038 aa0003fc b9010018 52819801 (f9400260)
---[ end trace 0000000000000000 ]---

Fix this by correcting the clock init data.

Fixes: 4c4e17f270 ("clk: amlogic: naming consistency alignment")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on BananPi M2S
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-19 21:58:50 -07:00
Stephen Boyd
597fe80ba3 Allwinner Clock changes for 6.18
This tag contains two commits that are shared with the soc tree.
 
 In this cycle support for power-of-two single divider clocks was added.
 This covers some of the clocks found in the A523 MCU PRCM clock and
 reset controller, for which support was added as well.
 
 Besides the new controller, a missing clock was added for the A523's
 main clock controller. The RTC clock driver gained specifics for the
 A523's RTC block for tweaking the clock rate of the internal oscillator
 to get it closer to what the RTC needs.
 -----BEGIN PGP SIGNATURE-----
 
 iQJCBAABCgAsFiEE2nN1m/hhnkhOWjtHOJpUIZwPJDAFAmjLjEYOHHdlbnNAY3Np
 ZS5vcmcACgkQOJpUIZwPJDAxog//Z/Ns3ETo5O900ZwLJmgx39sVERJgBxnPGPfa
 FHY/26gOrHYWKhm6rsnwWGJze4Kd5F+xigOT+6yNwHOvmrBThlzdyDhWqJsqZ4Gd
 m5AEeZeOPODIjKHhGgOLW8XNuZSfXUl6UxHHmscf3mUow1urLfbXNAg5tSk3fgps
 NkA77uiKF1YRZJJU/MD3itkHl2YyiQu4pSdJ3maQG1iMAxEnVZ+vjOms3UUKQ2Hn
 jIuCJfJlRgwnmcbdulgfayZeeX1BJtB74q8UAszYGru30RjiO1ETVIegf70JMBuf
 iPBwihWGQZ891lMYBzloUSZ1OCQDm9rlooJqO8pDWn1yMjIgQb4r5C0aaj1rXdXM
 XFtiNKnpvvCVBRYVdu1AM1ivIbwuvoGj9vfFZDyh6EOgWu/Nhex4Vm/GKZiApydn
 h5vxqU2uMgryQkTNRYF9s4RxE+OWVeytRBaHo2eEW5/S6Is+j5OL4+NRg5fMS3tE
 2qfIXsY0l4uicsB2LQChmgoUPZcArxDLKdQDYThJIkhlauZlPGyUbd5ZDX7dqLTj
 2ysvBb/WawDY9/GUYKLVRQXABmPVGZ+YkgifJb46flTty9IeQFiqVI/hyWzp59en
 Arc/HKqOOLfUcEqF4NWP3KQqnvQEerFMHpyIm47OXbA6BI7mtyASeaDbxjFLsPQ+
 i0BfHdg=
 =+HRM
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjOMrgUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSUMHRAAieWl31oNhrS67WP0Nf5BpUzWPCs6
 pfRG7sQ986BA/NLCp9BVCFDYT7J6YD3W5mQwbvGvm0ZelIEYwFWV9tz8RghLE6x0
 FMvwfHM5JvPzoo+eaEqaUNQTkb0V4dETyezQFHe8LxYSG0Mm1jj7c3F6RXbQRaWJ
 +fpVT5Z4GDZ3j5owS1tPN5BdPHqODIs1nENbYU01Is+cC92R/5OVRnad4E9nCmVX
 jEoN/2kyHYEQ2rkZR5sdET18iaCfp6MpQYg7NYMMwS3LTFbynKdZzsDG9JxeLgMr
 UnAZIC99ZhMid/mM26wFYXvIwN/RWgTQRPSA84VPT/f269QMGVaqTju0XAg9jscS
 PED2Ry91QjiIr/hnKsY8UG3IcW0vWeLvdY9i3LkWMnYlk8idOTxG/6ZTgslhNRWV
 crOvV3RW0uC1G+nw1MfvOqiKjIUM48KLVgrD1jaZwIwlotfPudhmBYp8cV8L3ip1
 +kG0AMAQaMcwSlCuLkKUGs6/zSKxGQMzw9/0it3gM+uisbIpfsDc9aaP9tMHjht8
 O4IQoxFy6GMpYUbolOHPr8oOnyQgX19RuFUHSOdSmeOAEgZJoDvksUMJGKYdA0/F
 9T4qoRDyTommcnGnZxAUSj3y4swGQWAoz9CfgH/tiNeU0gQxjPhKtLmZCGdb0Sl2
 FmRAOVZNHao9+Rg=
 =xN6V
 -----END PGP SIGNATURE-----

Merge tag 'sunxi-clk-for-6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-allwinner

Pull Allwinner clk driver updates from Chen-Yu Tsai:

In this cycle support for power-of-two single divider clocks was added.
This covers some of the clocks found in the A523 MCU PRCM clock and
reset controller, for which support was added as well.

Besides the new controller, a missing clock was added for the A523's
main clock controller. The RTC clock driver gained specifics for the
A523's RTC block for tweaking the clock rate of the internal oscillator
to get it closer to what the RTC needs.

* tag 'sunxi-clk-for-6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
  clk: sunxi-ng: add support for the A523/T527 MCU CCU
  clk: sunxi-ng: div: support power-of-two dividers
  clk: sunxi-ng: sun55i-a523-ccu: Add missing NPU module clock
  dt-bindings: clock: sun55i-a523-ccu: Add A523 MCU CCU clock controller
  dt-bindings: clock: sun55i-a523-ccu: Add missing NPU module clock
  clk: sunxi-ng: sun6i-rtc: Add A523 specifics
2025-09-19 21:50:38 -07:00
Cristian Birsan
652b08afba ARM: at91: remove default values for PMC_PLL_ACR
Remove default values for PMC PLL Analog Control Register(ACR) as the
values are specific for each SoC and PLL and load them from PLL
characteristics structure

Co-developed-by: Andrei Simion <andrei.simion@microchip.com>
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
[nicolas.ferre@microchip.com: fix pll acr write sequence, preserve val]
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
2025-09-17 19:15:32 +02:00
Cristian Birsan
bfa2bddf6f clk: at91: add ACR in all PLL settings
Add the ACR register to all PLL settings and provide the correct
ACR value for each PLL used in different SoCs.

Suggested-by: Mihai Sain <mihai.sain@microchip.com>
Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
[nicolas.ferre@microchip.com: add sama7d65 and review commit message]
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
2025-09-17 19:15:32 +02:00
Balamanikandan Gunasundar
94a1274100 clk: at91: sam9x7: Add peripheral clock id for pmecc
Add pmecc instance id in peripheral clock description.

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
Link: https://lore.kernel.org/r/20250909103817.49334-1-balamanikandan.gunasundar@microchip.com
[claudiu.beznea@tuxon.dev: use tabs instead of spaces]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
2025-09-17 19:15:32 +02:00
Ryan Wanner
e0237f5635 clk: at91: clk-master: Add check for divide by 3
A potential divider for the master clock is div/3. The register
configuration for div/3 is MASTER_PRES_MAX. The current bit shifting
method does not work for this case. Checking for MASTER_PRES_MAX will
ensure the correct decimal value is stored in the system.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
2025-09-17 19:15:32 +02:00
Nicolas Ferre
af98caeaa7 clk: at91: clk-sam9x60-pll: force write to PLL_UPDT register
This register is important for sequencing the commands to PLLs, so
actually write the update bits with regmap_write_bits() instead of
relying on a read/modify/write regmap command that could skip the actual
hardware write if the value is identical to the one read.

It's changed when modification is needed to the PLL, when
read-only operation is done, we could keep the call to
regmap_update_bits().

Add a comment to the sam9x60_div_pll_set_div() function that uses this
PLL_UPDT register so that it's used consistently, according to the
product's datasheet.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Ryan Wanner <ryan.wanner@microchip.com> # on sama7d65 and sam9x75
Link: https://lore.kernel.org/r/20250827150811.82496-1-nicolas.ferre@microchip.com
[claudiu.beznea: fix "Alignment should match open parenthesis"
 checkpatch.pl check]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
2025-09-17 19:15:32 +02:00
Nicolas Ferre
0c01fe4965 ARM: at91: pm: save and restore ACR during PLL disable/enable
Add a new word in assembly to store ACR value during the calls
to at91_plla_disable/at91_plla_enable macros and use it.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
[cristian.birsan@microchip.com: remove ACR_DEFAULT_PLLA loading]
Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
Link: https://lore.kernel.org/r/20250827145427.46819-4-nicolas.ferre@microchip.com
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
2025-09-17 19:15:32 +02:00
Stephen Boyd
acf800c8fc i.MX clock changes for 6.18
- Rework the i.MX95 BLK CTL driver to add the platform data to the
   state container.
 - Retain the state of the i.MS95 BLK CTL registers through both
 runtime and system suspend.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEETvPuEU56jyrKp9G4G19EyQCVFVYFAmjJD+4ACgkQG19EyQCV
 FVYnAg/+Nt7Usda/vRJlQv5207GoelDE7QjsNt1I+HRNn+2PBkV7Px+ltttwzuAH
 w04mvjWoreoKfH18QHzFtDuJ7dTzNWhCPplO31OKEL2r+z/efDtpcd52NSD3/j7B
 Rfi5edLjAvF4SnyXDn2lIJmMplmZLfhK5JzzUsYkhm70sa27K3JSSWu9PKrr5fZq
 IqnXJ60AtIiLeICUuQJWFmOam9TukiWeTtUZ2Co1QVtb4WhYvLPJiN7CVyDFFRRS
 SppIN3xw6ZHgK5pZJ+gEKXYBOLwCgBKjiKgigQMCbDokiKD0Y+KAx2sGhwoeWsTq
 gax5HxfRjNQTF6SoOTUy1C+ZsjXdASB+G3+QKIBZEHnl8XLdwlBB+R2w+S1E3qIW
 t0ksu2lQT/+PmIT8dRBFhA8DmMszIWw4W0RbMAXcvH6ElL+sEK7RmqY+xw4jdFGw
 F101r9jIpGkMYu0XIpFlBQAdnwj6KAMslcWErgtoMKdK2s2WbsH/swWxpfunI/vG
 KA8dy+8zXwqqbpR/EtfDUcqR4SnOmdNLxvfWZd7UW8j64Z3v0vE9iyW9uZOCYAPV
 x108BHIhPM980xC9frvWHDwSp7rEkdoPHAniAAtnMQWwYvpkkATEjeRb+wVjWR4C
 M4Ts2FHp79jrvgOlOX3YMTIawJ4XVNqFPqsp6aA1TOzSQW6447c=
 =DAZu
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjKO/EUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSU53hAA3CddU1ZG5uMs/G34eo2FnxQ00XVI
 wUVKKbOyA1JfrnpyUmRjaJb2T+b2uJWV30BsUIAvG2/N07QLZlkoel6t57JdWH69
 bLk0A2sUL+Jkcz0FuwH7u6YV05/lrqLgxx2m+F8h1wyealIdYlgG16e/0rZOXoNq
 UzDfDVioYc82C4HLgufR7Y71foI7drHT67gJHxvX80StLqbbypupwhOtFyY9LTUM
 uzNVr3vDRadobnE33MdbK6z5l5Oa/RjKgsCQSkMjy66UY7oC6C3QpNM9EBlyk9Ph
 TkoI2VGxKrDp8izUSt64oRMEaD6qyjmwBOM1ioc4Pq2CttMnICX1XOoU4JXb/a2E
 BcSVjxFPJluliExRXg0RyaP/7xiKKHvpjbq1PDYVT3yL77z2QkCA+nL4DWUgD7IH
 yH4MTp6tD3H/16IZtyUOwibKY12STWSC+I2PuCZooJvu0r+g+DKqYEEsXWZkzxPu
 rLVlhQKlGZ4q3sUZTwMSHJ6RW7zB8cGS1pJfYFbRJJKU6L+CZ5XwZIJ31puzsiEA
 M+MIPy2Y1x9fJ3hcwvu3dPVauNX+DDNFUXFLvWTs9lZGByEsWQxQ7hx37ia1As2+
 u//mu/X/osE8laiGt4fi+rRJua0OcMridok6VEeawuSAfUcGJ2ENxWigWkUCmlkh
 PyTwV+/FhspPme8=
 =hydE
 -----END PGP SIGNATURE-----

Merge tag 'clk-imx-6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/abelvesa/linux into clk-imx

Pull i.MX clk driver updates from Abel Vesa:

 - Rework the i.MX95 BLK CTL driver to add the platform data to
   the state container
 - Retain the state of the i.MS95 BLK CTL registers through both
   runtime and system suspend

* tag 'clk-imx-6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/abelvesa/linux:
  clk: imx95-blk-ctl: Save/restore registers when RPM routines are called
  clk: imx95-blk-ctl: Save platform data in imx95_blk_ctl structure
2025-09-16 21:40:54 -07:00
Rob Herring (Arm)
7c85e4da8c
dt-bindings: clock: silabs,si5341: Add missing properties
Add "clock-output-names" which is a standard property for clock
providers.

Add the "always-on" boolean property which was undocumented, but
already in use for some time. The flag prevents a clock output from
being disabled.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Tested-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-09-16 17:47:12 -07:00
Stephen Boyd
a75ca9ae47 Amlogic clock changes for v6.18
* Factorize clock controller probe functions
 * Clean up peripheral clocks definitions
 * Clean redundant composite clock definitions
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE9OFZrhjz9W1fG7cb5vwPHDfy2oUFAmjH07wACgkQ5vwPHDfy
 2oXMvA//WDNm+jV1Ntedj+q4TZwyUl83H6fQSAgNHxaW65rAFrlDJr202R1UyOvZ
 0pWvmTaBghqYxhZnuwqVvn2gNJmnQAOUDxTjE9/vwDrQfxW1nmM/jrPs81nVRZWY
 xUwmOPpZg51pRuVzAF1YcOwzMAcXeEykYaUULet7z5SR79mvxVdnahYtl8WnM0VC
 rrGYw5+Sh7ghWbuq9ixJwE83y7zSkcSsgJCBBoe2YwBoLbSDd1DQU0MEnKV9cunZ
 anME/SMlyc6790EAbS9Dh2qhLfCivo2cPn3oufQmh//738/1TBcqdTaSj+YCoOoW
 4kOiBpyNE95dK/I+t164vzxH4VscWbRhAivBFyt7fsJN7xKl4xlhzlXYQSSRVClh
 ZHJVR79iVXF8cmVjM6gAt+Fp2XTYjaSctlFigyFMa+CmESW1CT+dM38JKl9I/IEt
 Ms8UCG3pzQ8Cg0whdAe5clVzYYsuC1SNB7/e5AsSl+LXknOYkDPKPxz1JCog8230
 kP0Mn9noAKMxXAH6Alk0nMmeDvJYHq6wDHZoDCa5U4swNwss/qcYhs5EgyUufiEp
 +XvQUI8MTZZ8brMopMkb+GiA4bQqQbJ0w5qMRtQqPvQVOwLKEy7fKyqcuvc9cN5P
 YROeGb8evNOsQ6E8k/4L/1spizegACTAi8pMFAJ7c6TOF78pr5c=
 =HyoG
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjIvu0UHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSWkxxAAwBgk86Y6A5e6Qew8PH+owtEwC3cn
 thaG8hltjoGQlxwkxCIam4veQJLJvxUw9MI0k87mIaNo3gs0SR+XYiyAQRxJY9qx
 Ihh4nCfdWD70g0BNVB238T2NMUc+beMO7W3BOQ6bxIWbypR3qrI7PLQtpywIRpjl
 5lJG88WzXFW0DhhhCaNtYxj+CRPdsB1w1ndeofx3ly0+qtkEbYoVtg3JfyH5VcmT
 1b+mppHbr1L23ZZmpIvtI/fvP2U23vAUhs87iZK50Ww0N4YLfs7v2KCgOTb+Wzvq
 aYZTiwcvQ9baXq1Rmz91q3V0hVkIjMmDE5llhotLzt9Y+k487a1lSabDosB2rR7k
 nqqfMQ/OW8T5SvGfp5SD4OK3dRQGerXRd4mEsXAajrY0morcnF5vAyUaKLYyqEQE
 xNS+TkLqD8Fr7atYd+Ktjhwl1SYJE5ZM9FJ6z0zlnAZy5Qz42G6gHzfvHDPJWXJf
 cbA9eNOd715GttSQzzt9n0ERq1VKeCIrpUZO+nh7LZ2fnqKy87hGjy8+7IJ+/uKo
 JDJFnbs/S+02OoG7RClFvy02a8v3q4uHSdzoM9i+8aZutxsceKkoZdY4YrVMSPTK
 WNx5umkLyJWluMCjPEZ+eN5NDsVdai1Z2JDvU0KUiI5Tt4hAEp+0bM7QPmjja4ek
 lvC5lBQIgMugFMs=
 =NUmX
 -----END PGP SIGNATURE-----

Merge tag 'clk-meson-v6.18-1' of https://github.com/BayLibre/clk-meson into clk-amlogic

Pull Amlogic clk driver updates from Jerome Brunet:

 - Factorize Amlogic clock controller probe functions
 - Clean up Amlogic peripheral clocks definitions
 - Clean redundant Amlogic composite clock definitions

* tag 'clk-meson-v6.18-1' of https://github.com/BayLibre/clk-meson:
  clk: amlogic: c3-peripherals: use helper for basic composite clocks
  clk: amlogic: align s4 and c3 pwm clock descriptions
  clk: amlogic: add composite clock helpers
  clk: amlogic: use the common pclk definition
  clk: amlogic: introduce a common pclk definition
  clk: amlogic: pclk explicitly use CLK_IGNORE_UNUSED
  clk: amlogic: drop CLK_SET_RATE_PARENT from peripheral clocks
  clk: amlogic: move PCLK definition to clkc-utils
  clk: amlogic: aoclk: use clkc-utils syscon probe
  clk: amlogic: use probe helper in mmio based controllers
  clk: amlogic: add probe helper for mmio based controllers
  clk: amlogic: drop meson-clkcee
  clk: amlogic: naming consistency alignment
2025-09-15 18:34:57 -07:00
Stephen Boyd
ccd74beccd clk: tegra: Changes for v6.18-rc1
Add DFLL support on Tegra114. This is quite similar to the existing
 Tegra124 support and most of the code can be reused, except for the
 CVB frequency tables.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmjGYlkACgkQ3SOs138+
 s6HbIBAAsOOYjJgmKk3KWCfAe7LX0slYKug2bPgMvacMPV9dXPkx4o/H+SnvpggP
 cRr7JbU0bRy/QbC9CpTn3y+r0Eq/mB2zUZgJfZaWyN39LTHZAfKvt6TVrI7kERhO
 lTYKQa912lNmAXvHvR7sr+21LU2ngsxP98RLYT4KtLdCTeEGl15HHcmogqiEp0Jo
 NhLV2GL7gkbxZoeEcyZF3qB5ber5BR0Cb87kqgmronwfDwgUKgcohrNywedZEx5Q
 CmPWRTzCSMuLXB6GS+PFqjvfvclUz3KiRSWfjAHnY2SVsgpgIy063Q6JDMRLyeNp
 GG5HTkf5qwcr23pA6254eMzzrDMM7iRLd+LltCe0dp7GKflx3PRRgJC/ze4xg5yG
 68jjJPluF7Raa/ihD3l6ktB+KCNAeqeZRoGucsIQQtiWlLAACR0/qbbRFY/1KIXh
 9u8leQsdOY7nmE7ruU4hHzbnjiOPPyP0Jyn5FdK7EAp1qFYtWEZfvpij2PlfESEN
 sBbf8Bj0jkKUUSUieOAvuHUzWmuz4yekLyCoSLEdj8EzUj3QtYaB93VVAq6WOVMy
 qBm0ZJRLSrHy/h4w7jfhaYqbRMYAn/LWtQO99E7420O2NtRa5MzsA8wZ+K98ZsHh
 XqY0pUuS5G1lsHKhr02d3BP9dNHNcdfDVOVOF4qdEvI6LYxrb6A=
 =Tlrh
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjIuVIUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSVDZhAAtlKMsCOfyELsq+3oos6eGSEfmBvO
 tLIWyAk0KpOSlzrBuj7qSbLr340UjFbtMeR6zmTmJhKlM0V/uxMQYMwuMNYI1HX+
 4n0IgZtnQ18xI7Y9oBgIfdqWTKB6LmWTsO1/0fdoBKRFNvoZkVIgL7rMp9QXcLIB
 2WjfhBP+LYcp2fYtkrEJubqjkof3iulqvPPMwP0b4cACAE65p82DxOghf8fWjDdd
 ZBsahOo9J013AJP8muUN2O4wg81ljyuEQf+WeBDUIay4k0DleNWXKNUCjYESAmx9
 h+EEzD3xRvazeBO6bkyV0OTgkUr5nQj9r7DlA1l0N8lhchBqxCmE8/7qqLs05cH4
 Sr2GwbTr3HzS3if/L3QwSUApwImJ5ww5uG08NtkWds9ZpN3v1Cm9inyN2RsNuaWZ
 Mvcchr3GA2eOpdXdK6/D/Mp+cvqb70ZvTuLUSKe1eFrATAibUuMR4YR3NVWdYY4E
 6FFCpSw2LfAdBB6pu2CR2ynpvM1ZU7wc+J5oC5/JaaFzMPGurGEeI/2G58PgRD3j
 ETnZdzoeuADcJZ1LsX6KSSjb5kBBpSZU3ZTM2lwEnHndf2C0xHq3j1e8vPf8UexG
 7pFbgthn+uC/BMOeCktfcoQLvMCn5AxBxm2YPQO1j6G1G5AoIg7keqju066/aaPz
 KeHMuH2PEzA9Yno=
 =PzHP
 -----END PGP SIGNATURE-----

Merge tag 'for-6.18-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into clk-tegra

Pull Tegra clk driver updates from Thierry Reding:

 - Add DFLL support on Tegra114

 This is quite similar to the existing Tegra124 support and most
 of the code can be reused, except for the CVB frequency tables.

* tag 'for-6.18-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
  clk: tegra: dfll: Add CVB tables for Tegra114
  clk: tegra: Add DFLL DVCO reset control for Tegra114
  dt-bindings: arm: tegra: Add ASUS TF101G and SL101
  dt-bindings: reset: Add Tegra114 CAR header
  dt-bindings: arm: tegra: Add Xiaomi Mi Pad (A0101)
  dt-bindings: clock: tegra30: Add IDs for CSI pad clocks
  dt-bindings: display: tegra: Move avdd-dsi-csi-supply from VI to CSI
  dt-bindings: i2c: nvidia,tegra20-i2c: Document Tegra264 I2C
2025-09-15 18:11:00 -07:00
Svyatoslav Ryhel
5aba939e80 clk: tegra: dfll: Add CVB tables for Tegra114
Extend the Tegra124 DFLL driver to include configuration settings
required for Tegra114 compatibility.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
[treding@nvidia.com: Use TEGRA210 instead of T210]
Signed-off-by: Thierry Reding <treding@nvidia.com>
2025-09-14 08:23:28 +02:00
Stephen Boyd
3153d7b8f1 Samsung SoC clock drivers changes for 6.18
1. Tesla FSD: Expose CSI clocks to consumers (DTS).
 
 2. Exynos990:
    - Few fixes for fixed factor clocks, register widths and proper PLL
      parents.
    - Add four more clocks for the DPU and HSI0 clock for USB.
    - Add PERIC0 and PERIC1 clock controllers (CMU), responsible for
      providing clocks to serial engines.
 
 3. Add seven clock controllers for the new Axis ARTPEC-8 SoC.  The SoC
    shares all main blocks, including the clock controllers, with Samsung
    SoC, so same drivers and bindings are used.
 
 4. Cleanups: switch to determine_rate().
 -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCgAuFiEE3dJiKD0RGyM7briowTdm5oaLg9cFAmjAcxsQHGtyemtAa2Vy
 bmVsLm9yZwAKCRDBN2bmhouD15ROEACGgATdmA+RvS+gk3RfiIgpKcpIqYlgQdCQ
 4xnmzv4zrgqhuGE+mhGOaDBURSV/TBshdHTDyWtIwIQoepvkUJZWT8ahj6Ha1yJw
 4lJrJbr7yBGtGGVZSwQoAaSBX5uGubY96p/mpZPqiIp/HTWb+3ykam3qnVGa4sJC
 qAorHe+wi3s8/OTqooJ1TJtH6KvLRCAH0EsZRCJySG97Vkpp8HFRxTK4BhPjePVJ
 dvDSLoMudHOoApiHPueeQ7YAaqMNrqQvVkOElpTGhyARPZ4eVpEYHrUUyPwwanZj
 2/US484yIcTwNdaCyUVk9GVYqWbuJfFViKNavCciPil9J0wyJspCq990nxY550TC
 K44rGZXpR7eyu/tB6uxkfP9XIcZUNSGLeg8LtNLz3nRUHVaSC3pLA1RkBHRtxWly
 HNGn2+4DB+x8wqd24WYFtu+WjtPT1iVxlSE1izsKzLhVpbzJVofSgr7iOxgp5h3n
 tc/Qi47kJGNcGsNqVVWXQ7KUqwDp/HNRQbEVdnKJlxk7pLwiSYFZzPmPNAaE7qbo
 f9KmyX4h2XINttsrrOjY6sdketVAHg/HKWtm+0OcyoehR+DlfRn3TowYnyjPRqxu
 u0PFwyVQ8JruPpgLDmx5Z1cSX6zlEBY+edhfdtF8zBWOHR34erk1g6c33vxdABFD
 JMpEzkjKog==
 =xwPz
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjF6wcUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSWiCg/+MS2zsEq+hD1dIaiNp/t7lvBDwDr/
 8bCEwdCiVhgMwsnwJkMoBKHMaKHiDfWJBpYQRRgUGCA9YvXJRP7sskcYlcZkaGSi
 svbncfu1OGvItU3zWkYQ/nee7HJkfHd0owovR5iixzSxjX/5hg7wtaEBiQpMBWOU
 ALEFrfc3ZYucFtoKhqUlsgAOEF3qrCYQWu5vzwqpT+mCM778grzm7cOPaGrxiOnV
 VIeOkHGZNSKpILvIq9hSgzxAdKc01B72ySIhYMvP07Nu9lTcOtyVDJHn/NDI63n8
 tA/ALwzARD+dRyy7VatkogaMaPgspzZ5U3O7IDiuD9gRyVHqsZkmm8+Ucz4QdT+K
 nJ7EZdKBO85R98SUvQuMoxtKtNV3AufnY3r6OqyR95K83muQbDZj5PzANvAMJcGl
 uo3zSGsOzF3yFX/Aw7H7Ee8uYUAgWt+Z0oZOuOmgoVsst075J3BVB9M7Xxjzd8TM
 GR4QtDaRU51PGlWlC5Q5X9OU0Esg91xQ31q43mJbJEFZn9mN7L32j1E+l9ms2mGt
 YSv77YyRPaJfkwk4z6OzSqWGb2nrw4ekiVXh0veIwvxYiBTCiQ/LS7pNV7OPIEcw
 5ZaW2Uf4qoJOmLhTkyVT9qj9N6YUez5qM8oGKsxiFwujmamtXNWwC5Zo+MQ9GH+K
 iKPjFjYdipBthhM=
 =/ryf
 -----END PGP SIGNATURE-----

Merge tag 'samsung-clk-6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into clk-samsung

Pull Samsung SoC clk driver updates from Krzysztof Kozlowski:

 - Tesla FSD: Expose CSI clocks to consumers (DTS)
 - Exynos990:
   - Few fixes for fixed factor clocks, register widths and proper PLL
     parents
   - Add four more clocks for the DPU and HSI0 clock for USB
   - Add PERIC0 and PERIC1 clock controllers (CMU), responsible for
     providing clocks to serial engines
 - Add seven clock controllers for the new Axis ARTPEC-8 SoC.  The SoC
   shares all main blocks, including the clock controllers, with Samsung
   SoC, so same drivers and bindings are used.
 - Cleanups: switch to clk_ops::determine_rate()

* tag 'samsung-clk-6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  clk: samsung: exynos990: Add PERIC0 and PERIC1 clock support
  dt-bindings: clock: exynos990: Add PERIC0 and PERIC1 clock units
  clk: samsung: exynos990: Add missing USB clock registers to HSI0
  clk: samsung: exynos990: Add LHS_ACEL gate clock for HSI0 and update CLK_NR_TOP
  dt-bindings: clock: exynos990: Add LHS_ACEL clock ID for HSI0 block
  clk: samsung: artpec-8: Add initial clock support for ARTPEC-8 SoC
  clk: samsung: Add clock PLL support for ARTPEC-8 SoC
  dt-bindings: clock: Add ARTPEC-8 clock controller
  clk: samsung: exynos990: Add DPU_BUS and CMUREF mux/div and update CLKS_NR_TOP
  dt-bindings: clock: exynos990: Extend clocks IDs
  clk: samsung: exynos990: Replace bogus divs with fixed-factor clocks
  clk: samsung: exynos990: Fix CMU_TOP mux/div bit widths
  clk: samsung: exynos990: Use PLL_CON0 for PLL parent muxes
  clk: samsung: pll: convert from round_rate() to determine_rate()
  clk: samsung: cpu: convert from round_rate() to determine_rate()
  clk: samsung: fsd: Add clk id for PCLK and PLL in CAM_CSI block
  dt-bindings: clock: Add CAM_CSI clock macro for FSD
2025-09-13 15:06:14 -07:00
Stephen Boyd
8de790a3d4 RISC-V SpacemiT clock changes for 6.18
- Convert to use determine_rate()
 - Fix clocks of SSPA
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQKTBAABCgB9FiEEtbq4ycMbcRVnAiPcMarqR1lNu+0FAmi/6spfFIAAAAAALgAo
 aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEI1
 QkFCOEM5QzMxQjcxMTU2NzAyMjNEQzMxQUFFQTQ3NTk0REJCRUQACgkQMarqR1lN
 u+3P0xAAlnL5715RfU3JuSNtNWiH9DweP3pAfTShCyEGHy2V1cLUI9L1SEJ1522b
 qygfFV74LH0zuxZ4mc+0U8ji2CxveMG9Qixa87phRnD6cGemO94tlskq15jR20EJ
 DhX4ctou35/OOm0/AtzvbgITDHfKQHyp2zhz+cFSrHwXfNrgZXS+YqpDOnrf1QxV
 0dsMZQ6wNwc8h8Q+ZK1VStmiOet+yEVJpWRwPks+oTnOaxWrRMDWR5kC2MuF8RRy
 NVKqXfcdRk/Ygq9TDfAWBRz9atWwnmSi1LN/6xL4fAln5efNEICjNJFgoELC3DfO
 ISMA36WC0ayWtXq5/T2CtOhhENOPwqmODYXrzByiqhQ84ufI+UB+Yr39vO2u5mh9
 k5UTHNu4GFGFX9vBONm9jUssr+wVQXxSmrNYM8lFzifMTlAHxYlv2eZHK7NaRmjx
 H+0FOETbC2dUazaaQYy6Eo2kEne+JuXzVll7ennh5w99tmva5y5jk/HbXEg6FZNg
 MIpdZ9s4cHq+HxRZoS6GIdArccoUGXUw2pp9z8QpZpjljexg9eQClYjJEiZMzxpD
 wwypDnpcvf4W7LYot4BXQ7N1AQKVVUBbHsqQsTXd+ujIJWKqJ/My8VQ6ITY8aak5
 wydX4jXzhiD+7bp+vBvRygJjoskCT37po4KjBvaoQO+5LKOSQFo=
 =Q42J
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjF6roUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSWA3A/9GGUviqaeoMkk+l/cI/uxWy8Hps8D
 dRshjoitYIzwNjLGd3/EhmNe1WvVR5c3VBzEThkQxCqNhCFnmw4QOfNqYpgNcKeW
 E7N8xrN+nevt6D4VSaKHmGKqYknOoWtlAyAdx1wC9IiosL1NeZ/WGf9r5p+cNKft
 XaGbVwqttTw93yo5OFQys16WMT+8GTBnmb/SEhnknR7FqH02s/98rIqGiChO47jr
 wXYgl+jB2PX8yMbrFiJJzveOMBuzNo/Xj44ZJ7R0EUQDtFho53nM+WNtDyVzJdc8
 5NgfGyc0f1cKxSX80NYAkoJlt2hUQY0rB3/jeYLE5iR1obV/qbSAMvPxV5USij1N
 QxFJ/aNt21qUtHLaa2JL6tBIZxujBS9rB7yZ/xEge1h9YpgBMxkc9L6TZ7nQq3fg
 lpb88Qw+pwKjpR3S5dSRcWi4UeiBGnoPReH79bUpktK+PSiChb5gbGFtVo5rzGcu
 dk3vTsW4MztTyrfPV9qu8JyhH3oOVIvud3nBzq6jpZOyfS6G9UhpkXrtFtK4IZfS
 Zz/x1BCLEV329FiyoCXlXZIOG3Ra9xU83GGoG8thtj68EXSYy/E4aqAdpuS0Ln2F
 pT2N9a/zb0y2KunB2iBlDrWbiWe0zBLsIDwwcxsNrA2Vl7iDkYSdrAVVygSJQDhP
 +aTIk8QbaUSX6Js=
 =vtqZ
 -----END PGP SIGNATURE-----

Merge tag 'spacemit-clk-for-6.18-1' of https://github.com/spacemit-com/linux into clk-spacemit

Pull RISC-V SpacemiT clk driver updates from Yixun Lan:

 - Convert to use clk_ops::determine_rate()
 - Fix parent clocks of SSPA in SpacemiT driver

* tag 'spacemit-clk-for-6.18-1' of https://github.com/spacemit-com/linux:
  clk: spacemit: ccu_pll: convert from round_rate() to determine_rate()
  clk: spacemit: ccu_mix: convert from round_rate() to determine_rate()
  clk: spacemit: ccu_ddn: convert from round_rate() to determine_rate()
  clk: spacemit: fix sspax_clk
  dt-bindings: clock: spacemit: CLK_SSPA_I2S_BCLK for SSPA
2025-09-13 15:04:11 -07:00
Stephen Boyd
73e6f3ae80 T-HEAD clock changes for v6.18
Updates for the T-HEAD TH1520 clock controller:
 
  - Describe gate clocks with clk_gate so that clock gates can be clock
    parents. This is similar to the mux clock refactor in 54edba916e
    ("clk: thead: th1520-ap: Describe mux clocks with clk_mux").
 
  - Add support for enabling/disabling PLLs. Some PLLs are put into a
    disabled state by the bootloader, and clock driver now has the
    ability to enable them.
 
  - Set all AXI clocks to CLK_IS_CRITICAL. The AXI crossbar of TH1520 has
    no proper timeout handling, which means gating AXI clocks can easily
    lead to bus timeout and hang the system. All these clock gates are
    ungated by default on system reset.
 
  - Convert all current CLK_IGNORE_UNUSED usage to CLK_IS_CRITICAL to
    prevent unwanted clock gating.
 
  - Fix parent of padctrl0 clock, fix parent of DPU pixel clocks and
    support changing DPU pixel clock rate.
 
 All changes have been tested in linux-next.
 
 Signed-off-by: Drew Fustini <fustini@kernel.org>
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQSy8G7QpEpV9aCf6Lbb7CzD2SixDAUCaLyCaAAKCRDb7CzD2Six
 DOqYAQD0Dgfa/m5U/Yl9Is0JfCya0HXh1XybdB+onzmP5+08MwD/c2obQc/GvvTg
 L1PiERh+ggUI70WCVuDq1/roqnFpcg4=
 =QZvM
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjF6MMUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSW6VA/+NAg1P1W+ruo/RHcfNjK7BcyX4BOl
 LKPGyZavqWPiJ5ubvDsxremMAENp6Z3mJ3z/DXtLhaePTwojm646+cfkB9uwntKv
 gczweYxaPSmS0uEtGIGnCEyzYokw37V37ECiOS8zNwoSDyKhoMLLePM1t6CWCHos
 Xinud9ErYiOVkjY1/tYc4b6m7MTZ7Q9hgOWxJsIAmtjqqwwPrhd+cc4k/nK4sjN9
 3oAWaP9r4eKno4go0ClFLyvdpClvUIjZcWJqGh4UhpGfkEn8mbw04AMeF9CAVyke
 z71d2YRsQcLhsfBzdDWl+WmmnyudIWD2XS6zSL4r8Z0O/LAZRBplW0O+3gMmZS8T
 3QLz1vk1JFmEd7UYkwVAPh8I119MIytAqhSj3EYlbtZyC1JGOb/4+JEnanAgyi3h
 f1c7JvDtHlajq0VaIn5vVLHlnHWjDifDO8HZiDyGPC50IAPg3eKLt6Ld9MrIqw/d
 NzijEatKj36HLBpy6IOQChWct4ypk/+MeX/ksv+A807I3eYrn6AAbwn+imijwVjj
 Dj1hOUsekvLfsq1J4KqKYQkg98eNv/C8V5QGfkATaLoaquLfp8TAjYDBTBkRedJC
 IVu84rmKREXJwCKj2PC5N1PQo0zt8HWwywgvYt0QVilStSh5gCXxTJ4HJcc4xMQL
 Y3Fl9CPVy8wTPsc=
 =GJwW
 -----END PGP SIGNATURE-----

Merge tag 'thead-clk-for-v6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux into clk-thead

Pull T-HEAD clock driver updates from Drew Fustini:

 - Describe gate clocks with clk_gate so that clock gates can be clock
   parents. This is similar to the mux clock refactor in 54edba916e
   ("clk: thead: th1520-ap: Describe mux clocks with clk_mux").
 - Add support for enabling/disabling PLLs. Some PLLs are put into a
   disabled state by the bootloader, and clock driver now has the
   ability to enable them.
 - Set all AXI clocks to CLK_IS_CRITICAL. The AXI crossbar of TH1520 has
   no proper timeout handling, which means gating AXI clocks can easily
   lead to bus timeout and hang the system. All these clock gates are
   ungated by default on system reset.
 - Convert all current CLK_IGNORE_UNUSED usage to CLK_IS_CRITICAL to
   prevent unwanted clock gating.
 - Fix parent of padctrl0 clock, fix parent of DPU pixel clocks and
   support changing DPU pixel clock rate.

* tag 'thead-clk-for-v6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux:
  clk: thead: th1520-ap: set all AXI clocks to CLK_IS_CRITICAL
  clk: thead: support changing DPU pixel clock rate
  clk: thead: add support for enabling/disabling PLLs
  clk: thead: Correct parent for DPU pixel clocks
  clk: thead: th1520-ap: fix parent of padctrl0 clock
  clk: thead: th1520-ap: describe gate clocks with clk_gate
2025-09-13 14:56:54 -07:00
Stephen Boyd
1ef1b8b966 clk: renesas: Updates for v6.18 (take two)
- Add Ethernet clocks on RZ/T2H and RZ/N2H,
   - Add USB3.0 clocks and resets on RZ/G3E,
   - Add I3C clocks and resets on RZ/V2H and RZ/V2N,
   - Miscellaneous fixes and improvements.
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQQ9qaHoIs/1I4cXmEiKwlD9ZEnxcAUCaMPp/gAKCRCKwlD9ZEnx
 cAGPAQD89bTckHLbSnhw2BGKAOFc+rjEEGwA7ee6NKCLR3HhAwD+LtGbe3scGNI2
 x6k+HLq4u1Ux5G0+Ad+WbvjjgmF4zQs=
 =0TxU
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmjF43IUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSW12w//TpYiWD4bqON/SbDeFOqERmqyDOV8
 4Z+aWxTLEMuOLSJTgYNVi1PLbln9zDFUpaNr8DjA3u91M8HL3i2mcMY3Vd4dcEz+
 zCYuDYqy3ds3qBl8zsFDeFwNMjkODRT6qJcbs6d1r/XMmOkFSDsSc103601QOlBt
 XKQlnyW4bpG9cWl70W9Aw85DKAqualZT9DqJ9D8r6s2GQUtfQnit/bVYqLRnmbRq
 UmID3IvYLkEKX79Ka7AyX9e7+tTOsx2jzVBMNXC9FZCFG8akpORiKMnuTT/EXgQw
 zj3udbaM9bilhRykNRShwg3BieLg0jHFIIH6DPUnr5vCkLHLyj1wRsdVd8QhG4uB
 vUqtTkMd4jyv/wmA7WyaD3OpqFrqLM0OXRT8G+IJChZY+bqrsAL8T0X43GEqgu1o
 /zLe9zt8X0U+NMoH5J9sce3a5LwHOqRV8IcemTG+SOcMuTiLRSQfJiEcDxpwm6Ea
 r71XthQQcZTJXO+NE1XrEqocI5/InPYkZ+vtE8MwigW+H9k9K+p842sbP0NHZ6xh
 KzcWjCmq4pa8FjSlktwZwkoA1duR7q7VIv1bDzrcbBPAlP/T5/5vdFHhvnCsKa3C
 09B2X16CsJnA8/aqDt/FXeJVL/H1x+hcnByei4sM6TdkkM+4iVCRAGXaWQQtoSuv
 EfzDBoe3AUHASOY=
 =t0RP
 -----END PGP SIGNATURE-----

Merge tag 'renesas-clk-for-v6.18-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into clk-renesas

Pull Renesas clk driver updates from Geert Uytterhoeven:

 - Add Ethernet clocks on Renesas RZ/T2H and RZ/N2H
 - Add USB3.0 clocks and resets on Renesas RZ/G3E
 - Add I3C clocks and resets on Renesas RZ/V2H and RZ/V2N
 - Add USB and remaining serial (SCI) clocks and resets on Renesas
   RZ/T2H and RZ/N2H
 - Add I3C and PCIe clocks and resets on Renesas RZ/G3S
 - Add DMAC and PWM (GPT) clocks and resets on Renesas RZ/G3E
 - Add Module Stop (MSTOP) support on RZ/G2L and Renesas RZ/G2UL
 - Convert from clk_ops::round_rate() to clk_ops::determine_rate()

* tag 'renesas-clk-for-v6.18-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers: (27 commits)
  clk: renesas: r9a09g05[67]: Reduce differences
  clk: renesas: r9a09g047: Add USB3.0 clocks/resets
  clk: renesas: cpg-mssr: Fix memory leak in cpg_mssr_reserved_init()
  clk: renesas: r9a09g056: Add clock and reset entries for I3C
  clk: renesas: r9a09g057: Add clock and reset entries for I3C
  dt-bindings: clock: renesas,r9a09g047-cpg: Add USB3.0 core clocks
  clk: renesas: r9a09g077: Add Ethernet Subsystem core and module clocks
  clk: renesas: rzv2h: Simplify polling condition in __rzv2h_cpg_assert()
  clk: renesas: rzv2h: Re-assert reset on deassert timeout
  clk: renesas: rzg2l: Re-assert reset on deassert timeout
  clk: renesas: rzg2l: Simplify rzg2l_cpg_assert() and rzg2l_cpg_deassert()
  dt-bindings: clock: renesas,r9a09g077/87: Add Ethernet clock IDs
  clk: renesas: r9a09g047: Add GPT clocks and resets
  clk: renesas: r9a09g077: Add module clocks for SCI1-SCI5
  clk: renesas: rzv2h: remove round_rate() in favor of determine_rate()
  clk: renesas: rzg2l: convert from round_rate() to determine_rate()
  clk: renesas: r9a07g04[34]: Use tabs instead of spaces
  clk: renesas: r9a07g043: Add MSTOP for RZ/G2UL
  clk: renesas: r9a07g044: Add MSTOP for RZ/G2L
  clk: renesas: r9a08g045: Add MSTOP for GPIO
  ...
2025-09-13 14:33:10 -07:00
Chen-Yu Tsai
598e4b6713 clk: sunxi-ng: add support for the A523/T527 MCU CCU
The A523/T527 SoCs have a new MCU PRCM, which has more clocks and reset
controls for the RISC-V MCU and other peripherals. There is a second
audio PLL, but no bus clock dividers. The BSP driver uses the 24MHz main
oscillator as the parent for all the bus clocks. But the diagram
suggests busses from the other PRCM are used in this block as well.

Add a driver to support this part. Unlike the BSP driver, the SoC's main
MBUS clock is chosen as the parent for the MCU MBUS clock, and the
latter then serves as the parent of the MCU DMA controller's MBUS clock.
The bus gate clocks also use their respective bus clocks as parents
according to the system bus tree diagram. In cases where a block does
not appear in that diagram, an educated guess is made.

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250911174710.3149589-6-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2025-09-13 13:50:52 +08:00
Chen-Yu Tsai
44293edd01 clk: sunxi-ng: div: support power-of-two dividers
Some clocks (for timers) on the A523 are mux-divider-gate types
with the divider being values of power-of-two.

Add a macro for these types of clocks so that we can use the divider
types instead of the M-P types without an M divider.

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250911174710.3149589-5-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2025-09-13 13:50:52 +08:00
Chen-Yu Tsai
828dea3896 clk: sunxi-ng: sun55i-a523-ccu: Add missing NPU module clock
The main clock controller on the A523/T527 has the NPU's module clock.
It was missing from the original submission, likely because that was
based on the A523 user manual; the A523 is marketed without the NPU.

Also, merge the private header back into the driver code itself. The
header only contains a macro containing the total number of clocks.
This has to be updated every time a missing clock gets added. Having
it in a separate file doesn't help the process. Instead just drop the
macro, and thus the header no longer has any reason to exist.

Also move the .num value to after the list of clks to make it obvious
that it should be updated when new clks are added.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250911174710.3149589-4-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2025-09-13 13:50:52 +08:00
Chen-Yu Tsai
391aa264ce Merge branch 'sunxi/shared-dt-headers-for-6.18' into sunxi/clk-for-6.18 2025-09-13 13:50:11 +08:00
Chen-Yu Tsai
0f610e650d dt-bindings: clock: sun55i-a523-ccu: Add A523 MCU CCU clock controller
There are four clock controllers in the A523 SoC. The existing binding
already covers two of them that are critical for basic operation. The
remaining ones are the MCU clock controller and CPU PLL clock
controller.

Add a description for the MCU CCU. This unit controls and provides
clocks to the MCU (RISC-V) subsystem and peripherals meant to operate
under low power conditions.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20250911174710.3149589-3-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2025-09-13 13:49:09 +08:00