[PATCH RFC 2/2] clk: scmi: Add support for two #clock-cells to pass rate rounding mode

Sudeep Holla sudeep.holla at kernel.org
Wed Apr 22 06:14:56 PDT 2026


On Fri, Mar 06, 2026 at 02:20:13PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> SCMI CLOCK_RATE_SET allows the caller to specify the rounding behaviour
> when setting a clock rate. The previously added dt-bindings header
> defines three modes:
> 
>   ROUND_DOWN / ROUND_UP / ROUND_AUTO
> 
> To enable device tree clients to select a rounding mode, extend the
> SCMI clock provider to support "#clock-cells = <2>", where the second
> cell encodes the desired rounding mode. The default remains
> ROUND_DOWN for backwards compatibility with existing device trees.
> 

Where is the binding update documented ? It's not in 1/2.

Also if it can be static in the device tree, why can't it be
autonomously handled in the platform firmware ? I think I know the
answer for this but I want to make sure it is a valid use-case and
gets documented here as part of binding updates.

-- 
Regards,
Sudeep



More information about the linux-arm-kernel mailing list