[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230529-unwanted-chewer-b3f6ab8bcb86@wendy>
Date: Mon, 29 May 2023 13:34:02 +0100
From: Conor Dooley <conor.dooley@...rochip.com>
To: Bharat Bhushan <bbhushan2@...vell.com>
CC: Conor Dooley <conor@...nel.org>,
"wim@...ux-watchdog.org" <wim@...ux-watchdog.org>,
"linux@...ck-us.net" <linux@...ck-us.net>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"krzysztof.kozlowski+dt@...aro.org"
<krzysztof.kozlowski+dt@...aro.org>,
"linux-watchdog@...r.kernel.org" <linux-watchdog@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Sunil Kovvuri Goutham <sgoutham@...vell.com>
Subject: Re: [EXT] Re: [PATCH 1/2 v8] dt-bindings: watchdog: marvell GTI
system watchdog driver
Hey Bharat,
On Mon, May 29, 2023 at 06:14:07AM +0000, Bharat Bhushan wrote:
> Fallback you mentioned make code look simple. Is below representation correct for above mentioned fallback?
>
> properties:
> compatible:
> oneOf:
> - const: marvell,cn9670-wdt
> - items:
> - enum:
> - marvell,cn9880-wdt
> - marvell,cnf9535-wdt
> - const: marvell,cn9670-wdt
> - const: marvell,cn10624-wdt
> - items:
> - enum:
> - marvell,cn10308-wdt
> - marvell,cnf10518-wdt
> - const: marvell,cn10624-wdt
Instead of having const: bits for each of the single-compatible ones, if
you are not going to add descriptions, I'd probably do:
properties:
compatible:
oneOf:
- enum:
- marvell,cn9670-wdt
- marvell,cn10624-wdt
- items:
- enum:
- marvell,cn9880-wdt
- marvell,cnf9535-wdt
- const: marvell,cn9670-wdt
- items:
- enum:
- marvell,cn10308-wdt
- marvell,cnf10518-wdt
- const: marvell,cn10624-wdt
> And driver will have
> { .compatible = "marvell,cn9670-wdt", .data = &match_data_octeontx2},
> { .compatible = "marvell,cn10624-wdt", .data = &match_data_cn10k},
Otherwise, looks good to me. You should probably also rename the file to
match one of the compatibles contained in it.
Thanks,
Conor.
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists