From: Jean-Jacques Hiblot Date: Tue, 27 Aug 2019 15:27:29 +0200 Subject: [U-Boot] [PATCH v4 2/4] USB: host: Add the USB3 host driver In-Reply-To: <6a7675ad-2aad-c7e9-82cd-821abbcf36d6@denx.de> References: <6a7675ad-2aad-c7e9-82cd-821abbcf36d6@denx.de> Message-ID: <890a2d26-82cb-db46-beca-7654300a9342@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, Sherry, >>>> we keep the cdns3 node for usb gadget driver, then add a usb host node >>>> for >>>> xhci-imx8 driver in *-uboot.dtsi. so here is no need to change the host driver >>> compatible. >>>> But the compatible in gadget driver should be changed later. >>> We should try avoiding ABI breaks in DT. >> But the cdns3 usb gaget driver and host driver in different uclass need two dt nodes to bind with. >> And the compatible of the two node cannot be same. >> So for gadget driver, the compatible may use "cdns,usb3-1.0.0", for host driver, the compatible will use "cdns,usb3-1.0.0-host". >> What do you think about it? > CCing Jean, since I think he did solve similar topic for his platform. I've been OOO for a few weeks and didn't look at the whole series. For this particular issue, the solution I used is to let the wrapper do the binding job. The name of the driver to use is hard-coded in the wrapper diver. This is done in dwc3_glue_bind(). JJ > >>>>>> + { } >>>>>> +}; >