Re: [RFC PATCH v1] media: v4l2-common: Add a helper for obtaining the clock producer
From: Mehdi Djait
Date: Thu Feb 27 2025 - 04:36:12 EST
Hi everyone,
On Thu, Feb 27, 2025 at 10:26:43AM +0100, Mehdi Djait wrote:
> Introduce a helper for v4l2 sensor drivers on both DT- and ACPI-based
> platforms to retrieve a reference to the clock producer from firmware.
>
> This helper behaves the same as clk_get_optional() except where there is
> no clock producer like typically in ACPI-based platforms.
> For ACPI-based platforms the function will read the "clock-frequency"
> property (_DSD ACPI property) and register a fixed frequency clock with
> the frequency indicated in the property.
link for relevant discussion I forgot to include:
https://lore.kernel.org/linux-media/20250220154909.152538-1-mehdi.djait@xxxxxxxxxxxxxxx/