This patchset does the following: - Introduce support for bus clocks. These are fairly similar to peripheral clocks, but only implement policy, gate and hyst. - Add matching bus clocks for BCM21664 and BCM281xx peripheral clocks and update device tree bindings to match. The previous (RFC) version of this patchset also introduced a prerequisite clock mechanism to enable bus clocks before their corresponding peripheral clocks. It seems that this is unnecessary - the way these clocks are initialized leaves them enabled by default. Thus, the prerequisite mechanism has been dropped from this version. This is fine for now, and more accurate to hardware (bus clocks are a prerequisite for the bus, not the peripheral clock). I had an idea to connect bus clocks to buses using "simple-pm-bus" in DT, but this is a task for another patchset. Signed-off-by: Artur Weber <aweber.kernel@xxxxxxxxx> --- Changes in v2: - Drop prerequisite clock patch - Move clock/bcm21664.h dt-bindings header change to dt-bindings patch - Add BCM281xx bus clocks - Link to v1: https://lore.kernel.org/r/20250216-kona-bus-clock-v1-0-e8779d77a6f2@xxxxxxxxx --- Artur Weber (7): dt-bindings: clock: brcm,kona-ccu: Add BCM21664 bus clocks dt-bindings: clock: brcm,kona-ccu: Add BCM281xx bus clocks clk: bcm: kona: Add support for bus clocks clk: bcm21664: Add matching bus clocks for peripheral clocks clk: bcm281xx: Add corresponding bus clocks for peripheral clocks ARM: dts: bcm2166x-common: Add matching bus clocks for peripheral clocks ARM: dts: bcm11351: Add corresponding bus clocks for peripheral clocks .../devicetree/bindings/clock/brcm,kona-ccu.yaml | 37 ++++++- arch/arm/boot/dts/broadcom/bcm11351.dtsi | 33 ++++-- arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi | 28 +++-- drivers/clk/bcm/clk-bcm21664.c | 83 ++++++++++++++ drivers/clk/bcm/clk-bcm281xx.c | 121 +++++++++++++++++++++ drivers/clk/bcm/clk-kona-setup.c | 116 ++++++++++++++++++++ drivers/clk/bcm/clk-kona.c | 62 ++++++++++- drivers/clk/bcm/clk-kona.h | 10 ++ include/dt-bindings/clock/bcm21664.h | 19 +++- include/dt-bindings/clock/bcm281xx.h | 25 ++++- 10 files changed, 505 insertions(+), 29 deletions(-) --- base-commit: ffd294d346d185b70e28b1a28abe367bbfe53c04 change-id: 20250212-kona-bus-clock-4297eefae940 Best regards, -- Artur Weber <aweber.kernel@xxxxxxxxx>