Re: [PATCH v2 2/9] watchdog: rzv2h_wdt: Obtain clock-divider ranges from OF match data

Wolfram Sang
2025-08-01T04:03:37Z

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

On Tue, Jul 29, 2025 at 04:59:08PM +0100, Prabhakar wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> Move the clock division ratio values into OF match data instead of
> hardcoding them in the driver. Introduce `rzv2h_of_data` to hold `cks_min`
> and `cks_max`, populated via the device tree match table. In probe, call
> `of_device_get_match_data()` to retrieve these values for setting up the
> watchdog.
>
> This refactoring is transparent for existing RZ/V2H(P) usage and
> facilitates adding RZ/T2H support with different divider ranges.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]