From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH 7/8] usb: ci_udc: Convert driver to DM_USB_GADGET
Date: Tue, 27 Oct 2020 11:22:40 +0100 [thread overview]
Message-ID: <129730.1603794160@gemini.denx.de> (raw)
In-Reply-To: <DB6PR0402MB2760CF94CA69EACD95DE978588160@DB6PR0402MB2760.eurprd04.prod.outlook.com>
Dear Peng Fan,
In message <DB6PR0402MB2760CF94CA69EACD95DE978588160@DB6PR0402MB2760.eurprd04.prod.outlook.com> you wrote:
>
> > > > > > > +static const struct udevice_id ci_udc_otg_ids[] = {
> > > > > > > + { .compatible = "fsl,imx27-usb-gadget" },
> > > > > > > + { }
> > > > > > > +};
...
> > Maybe I'm missing something, but I cannot find imx27-usb-gadget being used
> > anywhere - not in U-Boot nor in Linux mainline ?
> >
> > And if we introduce this completely new - then why imx27 ?
>
> ci udc driver is an driver long exist there.
Agreed. But as far as I can see, no parts of the driver code
contain any references to imx27 (or even imx in general) at all.
> This is just switch to driver module support. Not completely new.
The compatible string "fsl,imx27-usb-gadget" is completely new.
We have all kinds of "fsl,imx27-usb" in U-Boot and Linux, but I
wonder what the rationale is there as well. I cannot find it
documented anywhere.
All I can see is a comment
"fsl,imx23-usbphy" is still a fallback for other strings
in Documentation/devicetree/bindings/phy/mxs-usb-phy.txt, but this
is for the USB PHY.
Yes, "fsl,imx27-usb" is being used a lot, but there are things which
look inconsistent to me; we have for example:
- "fsl,imx6ul-usb" in Linux arch/arm/boot/dts/imx7ulp.dtsi , but
"fsl,imx27-usb" in U-Boot arch/arm/dts/imx7ulp.dtsi
And actually arch/arm/boot/dts/imx6ul.dtsi then uses
compatible = "fsl,imx6ul-usb", "fsl,imx27-usb";
- "fsl,imx7d-usb" in Linux arch/arm64/boot/dts/freescale/imx8mn.dtsi
and the same in U-Boot arch/arm/dts/imx8mn.dtsi
- "fsl,imx7d-usb" in Linux arch/arm64/boot/dts/freescale/imx8mm.dtsi
and the same in U-Boot arch/arm/dts/imx8mm.dtsi
> I could use imx6-usb-gadget, but that means need add one
> more for i.MX5 if need.
If you use "fsl,imx7d-usb" on the imx8mm, then would it not be
logical to use ""fsl,imx7d-usb-gadget"?
I'm trying to make sense from all these compatible strings, but it
looks pretty much random to me, so if we add to this we should at
least not increase the confusion.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
That said, there may be good reasons for what you did beyond obsequi-
ous sycophantic parody. Perhaps you might be so kind as to elucidate.
-- Tom Christiansen in <5ldjbm$jtk$1@csnews.cs.colorado.edu>
next prev parent reply other threads:[~2020-10-27 10:22 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-12 6:23 [PATCH 0/8] i.MX8MM: add host/gadget support Peng Fan
2020-10-12 6:23 ` [PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC) Peng Fan
2020-10-12 8:50 ` Marek Vasut
2020-10-12 9:43 ` Peng Fan
2020-10-12 10:21 ` Marek Vasut
2020-10-13 9:39 ` Peng Fan
2020-10-13 9:45 ` Marek Vasut
2020-10-13 10:05 ` Peng Fan
2020-10-13 10:14 ` Marek Vasut
2020-10-12 6:23 ` [PATCH 2/8] power: regulator: add dummy helper Peng Fan
2020-10-12 6:23 ` [PATCH 3/8] phy: nop-phy: add optional clk Peng Fan
2020-10-12 8:52 ` Marek Vasut
2020-10-12 9:12 ` Peng Fan
2020-10-12 6:23 ` [PATCH 4/8] usb: imx: add i.MX usb ehci driver Peng Fan
2020-10-12 8:55 ` Marek Vasut
2020-10-12 9:15 ` Peng Fan
2020-10-12 6:23 ` [PATCH 5/8] imx8m: enable usb power domain Peng Fan
2020-10-12 9:00 ` Marek Vasut
2020-10-12 9:20 ` Peng Fan
2020-10-12 10:29 ` Marek Vasut
2020-10-12 6:23 ` [PATCH 6/8] imx8mm_evk: add usbotg1 host support Peng Fan
2020-10-12 6:23 ` [PATCH 7/8] usb: ci_udc: Convert driver to DM_USB_GADGET Peng Fan
2020-10-27 7:45 ` Wolfgang Denk
2020-10-27 8:09 ` Peng Fan
2020-10-27 8:15 ` Wolfgang Denk
2020-10-27 8:18 ` Peng Fan
2020-10-27 9:32 ` Wolfgang Denk
2020-10-27 9:39 ` Peng Fan
2020-10-27 10:22 ` Wolfgang Denk [this message]
2020-10-12 6:23 ` [PATCH 8/8] imx8mm_evk: add fastboot support Peng Fan
2020-10-27 7:45 ` Wolfgang Denk
2020-10-27 8:08 ` Peng Fan
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=129730.1603794160@gemini.denx.de \
--to=wd@denx.de \
--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