[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2baebbe6-0080-4cff-86de-a00f23aea95e@www.fastmail.com>
Date: Sun, 21 Nov 2021 21:22:47 +0100
From: "Sven Peter" <sven@...npeter.dev>
To: "Janne Grunau" <j@...nau.net>, "Hector Martin" <marcan@...can.st>,
"Alyssa Rosenzweig" <alyssa@...enzweig.io>,
"Rob Herring" <robh+dt@...nel.org>,
"Wolfram Sang" <wsa@...nel.org>, "Olof Johansson" <olof@...om.net>,
"Arnd Bergmann" <arnd@...db.de>
Cc: "Mark Kettenis" <kettenis@...nbsd.org>,
"Rob Herring" <robh@...nel.org>,
linux-arm-kernel@...ts.infradead.org, linux-i2c@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: i2c: apple,i2c: allow multiple compatibles
Hi,
On Sun, Nov 21, 2021, at 18:15, Janne Grunau wrote:
> The intention was to have a SoC-specific and base compatible string
> to allow forward compatibility and SoC specific quirks,
>
> Fixes: df7c4a8c1b47 ("dt-bindings: i2c: Add Apple I2C controller bindings")
> Signed-off-by: Janne Grunau <j@...nau.net>
> Cc: Mark Kettenis <kettenis@...nbsd.org>
> ---
Yeah, this should've been "apple,t8103-i2c", "apple,i2c" all along :/
Given that we have no i2c nodes in the dts yet and that this binding was
only added for -rc1 I think it's fine to just drop "apple,t8103-i2c"
here instead of marking it as deprecated and keeping it around forever
if Mark Kettenis also agrees.
> Documentation/devicetree/bindings/i2c/apple,i2c.yaml | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/i2c/apple,i2c.yaml
> b/Documentation/devicetree/bindings/i2c/apple,i2c.yaml
> index 22fc8483256f..f1cb96c08212 100644
> --- a/Documentation/devicetree/bindings/i2c/apple,i2c.yaml
> +++ b/Documentation/devicetree/bindings/i2c/apple,i2c.yaml
> @@ -20,9 +20,10 @@ allOf:
>
> properties:
> compatible:
> - enum:
> - - apple,t8103-i2c
> - - apple,i2c
> + items:
> + - enum:
> + - apple,t8103-i2c
> + - const: apple,i2c
Nit: the enum makes sense once we add t6000-i2c but right now
properties:
compatible:
items:
- const: apple,t8103-i2c
- const: apple,i2c
also works and look a bit less weird.
Either way,
Reviewed-by: Sven Peter <sven@...npeter.dev>
Sven
Powered by blists - more mailing lists