Thread (50 messages) 50 messages, 6 authors, 2025-10-10

Re: Device tree representation of (hotplug) connectors: discussion at ELCE

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2025-09-16 13:35:08
Also in: lkml

Hi Ayush,

On Tue, 16 Sept 2025 at 14:22, Ayush Singh [off-list ref] wrote:
On 9/16/25 15:44, Geert Uytterhoeven wrote:
quoted
On Tue, 16 Sept 2025 at 08:46, Herve Codina [off-list ref] wrote:
quoted
On Mon, 15 Sep 2025 14:51:41 +1000
David Gibson [off-list ref] wrote:
quoted
On Thu, Sep 11, 2025 at 10:48:28AM +0200, Herve Codina wrote:
quoted
 From the addon board point of view, the only think we can
say is "me, as an addon board, I need a connector of type 'foo' and a
connector of type 'bar'".
Agreed.
quoted
Also, at base board level, statically defined in the DT
connA is described (type 'foo'), connB and connC are
described (type 'bar').

The choice to map connA to the type 'foo' connector expected by the addon
and the choice to map connB or connC to the type 'bar' connector expected by
the addon can only be done at runtime and probably with the help of a driver
that have the knowledge of the 3 connectors.
Agreed.
quoted
I have the feeling that the choice of physical connectors to which the addon
board is connected to is a human choice when the board is connected.
Yes.  Although if the addons have an EEPROM, or some other sort of ID
register, it may be possible for some connector drivers to probe this.
Right, I think we agree that a driver is needed to help in the mapping at
least when multiple connectors are involved.
quoted
I agree you need a driver to read an ID EEPROM.
But why would you need a driver if no ID EEPROM is involved?
If the connector types on base board and add-on match, it should work.
How would a connector be disabled in such a setup? I guess maybe status
property can be used while applying overlay to check if the connector is
enabled. But maybe that goes outside the scope of fdtoverlay?
Why would you want to disable a connector?
Also, I would assume that most such connectors would want to provide
some kind of configfs based API to add/remove addon boards.
Yes, we need some way to configure add-on board add/remove,
and on which connector(s).

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help