[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<TY2PPF5CB9A1BE6E6E8FA67CDC03A55A439F2F1A@TY2PPF5CB9A1BE6.apcprd06.prod.outlook.com>
Date: Fri, 24 Oct 2025 12:47:24 +0000
From: Ryan Chen <ryan_chen@...eedtech.com>
To: Krzysztof Kozlowski <krzk@...nel.org>, Jeremy Kerr
<jk@...econstruct.com.au>
CC: "benh@...nel.crashing.org" <benh@...nel.crashing.org>, "joel@....id.au"
<joel@....id.au>, "andi.shyti@...nel.org" <andi.shyti@...nel.org>,
"robh@...nel.org" <robh@...nel.org>, "krzk+dt@...nel.org"
<krzk+dt@...nel.org>, "conor+dt@...nel.org" <conor+dt@...nel.org>,
"andrew@...econstruct.com.au" <andrew@...econstruct.com.au>,
"p.zabel@...gutronix.de" <p.zabel@...gutronix.de>,
"andriy.shevchenko@...ux.intel.com" <andriy.shevchenko@...ux.intel.com>,
"naresh.solanki@...ements.com" <naresh.solanki@...ements.com>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
"openbmc@...ts.ozlabs.org" <openbmc@...ts.ozlabs.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>, "linux-aspeed@...ts.ozlabs.org"
<linux-aspeed@...ts.ozlabs.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v20 1/4] dt-bindings: i2c: Split AST2600 binding into a
new YAML
> Subject: Re: [PATCH v20 1/4] dt-bindings: i2c: Split AST2600 binding into a new
> YAML
>
> On 24/10/2025 10:40, Jeremy Kerr wrote:
> > Hi Krzysztof,
> >
> >> On 24/10/2025 09:56, Jeremy Kerr wrote:
> >>> Hi Krzysztof,
> >>>
> >>>> Although now I saw next patch, so clearly this commit is
> >>>> incomplete.
> >>>
> >>> The split that Ryan has done here - by shifting to an identical
> >>> separate binding, then making the changes explicit - allows us to
> >>> review the actual changes without losing them in the move. Sounds
> >>> like a benefit to me?
> >>
> >> Not related. I commented that rationale is incomplete. We do not move
> >> parts of bindings because new device is someway different. There are
> >> hundreds of bindings which cover different devices. We move them
> >> because the binding is different.
> >
> > OK, but in that case I think we're after guidance on the threshold for
> > "difference" here.
> >
> >> Not much different than every other soc. All of them are separate IPs.
> >> Look at any Samsung, NXP or Qualcomm binding. Separate IPs.
> >
> > So, something like this?
> >
> > allOf:
> > - $ref: /schemas/i2c/i2c-controller.yaml#
> > - if:
> > properties:
> > compatible:
> > contains:
> > enum:
> > - aspeed,ast2600-i2c-bus
> > then:
> > required:
> > - aspeed,global-regs
>
>
> else:
> properties:
> ... : false
>
> >
> >
I will modify with following.
if:
properties:
compatible:
contains:
enum:
- aspeed,ast2600-i2c-bus
then:
required:
- aspeed,global-regs
else:
properties:
aspeed,transfer-mode: false
aspeed,global-regs: false
> > I can't see how we could represent aspeed,transfer-mode though, as
> > it's optional on aspeed,ast2600-i2c-bus, but prohibited on others. Any
> > hints on that?
>
>
> It's shown in the example-schema, if we go that way.
>
> Best regards,
> Krzysztof
Powered by blists - more mailing lists