public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Markus Schneider-Pargmann" <msp@baylibre.com>
To: "Maniyam, Dinesh" <dinesh.maniyam@altera.com>,
	"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
	"Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com>,
	<u-boot@lists.denx.de>
Cc: "Simon Glass" <sjg@chromium.org>, "Tom Rini" <trini@konsulko.com>,
	"Marek Vasut" <marex@denx.de>,
	"Andrew Goodbody" <andrew.goodbody@linaro.org>,
	"Kory Maincent" <kory.maincent@bootlin.com>,
	"Svyatoslav Ryhel" <clamor95@gmail.com>,
	"Christian Marangi" <ansuelsmth@gmail.com>,
	"Heiko Schocher" <hs@nabladev.com>,
	"Simon Glass" <simon.glass@canonical.com>
Subject: Re: [PATCH v3 3/6] dm: core: Support multiple drivers with same compatibles
Date: Wed, 21 Jan 2026 18:00:01 +0100	[thread overview]
Message-ID: <DFUFESMXOFM3.2HOK8WAVWWSLD@baylibre.com> (raw)
In-Reply-To: <0d50377b-22dc-41f9-b74f-de1cb97959c0@altera.com>

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

Hi Dinesh,

On Wed Jan 21, 2026 at 5:45 PM CET, Dinesh Maniyam wrote:
[...]
>>
>> Previously, we were using glue/wrapper driver to support multiple drivers
>> with same compatibility.
>>
>> For example:
>>
>> In this file,
>> https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/usb/dwc3/dwc3-generic.c
>>
>> look for|dwc3_glue_bind_common, why not use the similar implementation? |Why does/core DM /need to know about USB role selection?
>>
>> |lists_bind_fdt()| must remain simple and predictable

I can see dwc3 seems to use the parent devicetree node to bind the glue
driver, right?

Upstream am33xx.dtsi does not have a devicetree parent node that we
could bind to. The parent is of type ti,sysc which is not USB specific.
The uboot am33xx.dtsi did have a devicetree parent that was USB specific
and it was used before to bind the USB glue. But with OF_UPSTREAM I
can't use that anymore.

This is why I developed this patch, to be able let bind() return
-ENODEV. lists_bind_fdt() will remain predictable. Most drivers do not
return -ENODEV and will not be influenced by this change.

Best
Markus

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 289 bytes --]

  reply	other threads:[~2026-01-21 17:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-14  8:33 [PATCH v3 0/6] dm: core: Support same compatible in host/gadget musb drivers Markus Schneider-Pargmann (TI.com)
2026-01-14  8:33 ` [PATCH v3 1/6] dm: core: lists_bind_fdt: Remove unused variable Markus Schneider-Pargmann (TI.com)
2026-01-16  8:22   ` Mattijs Korpershoek
2026-01-14  8:33 ` [PATCH v3 2/6] dm: core: lists_bind_fdt: Replace found variable Markus Schneider-Pargmann (TI.com)
2026-01-16  8:23   ` Mattijs Korpershoek
2026-01-14  8:33 ` [PATCH v3 3/6] dm: core: Support multiple drivers with same compatibles Markus Schneider-Pargmann (TI.com)
2026-01-16 10:50   ` Mattijs Korpershoek
2026-01-21 16:45     ` Maniyam, Dinesh
2026-01-21 17:00       ` Markus Schneider-Pargmann [this message]
2026-01-23 11:24         ` Maniyam, Dinesh
2026-01-14  8:33 ` [PATCH v3 4/6] test: dm: Add compatible multimatch test Markus Schneider-Pargmann (TI.com)
2026-01-16  8:35   ` Mattijs Korpershoek
2026-01-14  8:33 ` [PATCH v3 5/6] usb: musb-new: Relative ctrl_mod address parsing Markus Schneider-Pargmann (TI.com)
2026-01-16  8:41   ` Mattijs Korpershoek
2026-01-16 10:14     ` Markus Schneider-Pargmann
2026-01-14  8:33 ` [PATCH v3 6/6] usb: musb-new: Add compatibles for ti,musb-am33xx Markus Schneider-Pargmann (TI.com)
2026-01-16  8:44   ` Mattijs Korpershoek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DFUFESMXOFM3.2HOK8WAVWWSLD@baylibre.com \
    --to=msp@baylibre.com \
    --cc=andrew.goodbody@linaro.org \
    --cc=ansuelsmth@gmail.com \
    --cc=clamor95@gmail.com \
    --cc=dinesh.maniyam@altera.com \
    --cc=hs@nabladev.com \
    --cc=kory.maincent@bootlin.com \
    --cc=marex@denx.de \
    --cc=mkorpershoek@kernel.org \
    --cc=simon.glass@canonical.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox