Thread (14 messages) 14 messages, 5 authors, 2022-11-10

Re: [PATCH 1/2] dt-bindings: pinctrl: add schema for NXP S32 SoCs

From: Linus Walleij <hidden>
Date: 2022-11-10 10:00:36
Also in: linux-arm-kernel, linux-gpio, lkml

On Wed, Nov 9, 2022 at 5:45 PM Chester Lin [off-list ref] wrote:
quoted
If you have the compatible, surely you know these indexes from
that compatible string?
The nxp,pins property is more like a common language that both kernel and
u-boot can share with. Of course hardcoding indexes can be achieved as well
but that also means the index matrices in both kernel driver and u-boot driver
must be revised and synchronized if new boards may have different reg and
nxp,pins.
Is it new *BOARDS* that need a new table really or new *SOC:s*?

I was under the impression that this is per-soc and then it can be derived
from the compatible string and should be in the driver.

If it is something that vary from board to board then it should be in the
device tree because it can not be derived from the version of the hardware
i.e the compatible string.

So which one is it?

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help