Thread (26 messages) flat view 26 messages, 4 authors, 2021-10-09

Re: [PATCH v2 02/16] dt-bindings: i2c: imx: update schema to align with original txt binding

From: Li Yang <hidden>
Date: 2021-10-01 17:38:09
Also in: linux-arm-kernel, lkml

On Fri, Oct 1, 2021 at 8:24 AM Rob Herring [off-list ref] wrote:
On Thu, Sep 30, 2021 at 7:04 PM Li Yang [off-list ref] wrote:
quoted
When the binding was converted from txt to yaml, it actually added more
constrains than the original txt binding which was already used in many
in-tree DTSes.  Some of the newly added constrains are either not valid
or not neccessary.
IMO, both of these should be fixed in the dts files.
quoted
Not all SoCs use ipg as the clock name for i2c.  There is no point in
having SoC integration information defined in i2c binding.  Remove the
clock name requirement in the schema.
Any name you want is not fine. Your choices are remove clock-names,
add all the names used, or change everyone to use 'ipg'.
I understand that the name should be important as clocks are
referenced by name.  But since the i2c controller only has one clock ,
the name is never referenced in the driver.

If we really want to define the name, IMO, it should be from the
perspective of the i2c controller like "clkin" or "i2c" instead of the
"ipg" from the perspective of SoC integration which could be changing
with a different integration.  I can list both "i2c" and "ipg" for now
as a workaround though.
quoted
The original txt binding didn't require the order of tx and rx for
dmas/dma-names.  Many in tree DTSes are already using the other order.
Both orders should just work fine.  Update the schema to allow both.
Doesn't sound like a case where defining the order is challenging.
No, it is not challenging.  But as dma channel is only referenced by
name instead of index.  I don't see too much benefit in enforcing the
order other than easier to create the schema.
Rob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help