Re: using cdns3-imx driver on imx8qm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20-03-26 18:01:09, Oliver Graute wrote:
> Hello,
> 
> What is the right way for using the new cdns3-imx glue usb driver on a
> imx8qm soc with linux-next. I added this snippet in imx8qm.dtsi and
> enabled the driver in the kernel configuration.
> 

Hi Oliver,

I just checked linux-next-0326, there is no imx8qm dtsi. 
When I worked this driver, I use a internal version
based on v5.4, the dts layout is different with internal tree.

Besides, you need a PHY driver for upstream version:
https://patchwork.kernel.org/patch/11454581/

Peter

> usbotg3: usb3@5b110000 {
> 		compatible = "cdns,usb3";
> 		reg = <0x0 0x5B110000 0x0 0x10000>,
> 			<0x0 0x5B130000 0x0 0x10000>,
> 			<0x0 0x5B140000 0x0 0x10000>,
> 			<0x0 0x5B160000 0x0 0x40000>,
> 			<0x0 0x5B120000 0x0 0x10000>;
> 		interrupt-parent = <&gic>;
> 		interrupts = <GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>;
> 		clocks = <&usb3_lpcg 1>,
> 			 <&usb3_lpcg 0>,
> 			 <&usb3_lpcg 5>,
> 			 <&usb3_lpcg 2>,
> 			 <&usb3_lpcg 3>;
> 		clock-names = "usb3_lpm_clk", "usb3_bus_clk", "usb3_aclk",
> 			"usb3_ipg_clk", "usb3_core_pclk";
> 		assigned-clocks = <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_PER>,
> 				  <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_MISC>,
> 				  <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_MST_BUS>;
> 		assigned-clock-rates = <125000000>, <12000000>, <250000000>;
> 		power-domains = <&pd IMX_SC_R_USB_2>;
> 		cdns3,usbphy = <&usb3phynop1>;
> 		status = "disabled";
> 	};
> 
> In board dts I enabled this:
> 
> &usbotg3 {
> 	dr_mode = "host";
> 	status = "okay";
> };
> 
> 
> On probing I got:
> 
> [    2.932089] cdns-usb3 5b110000.usb3: missing host IRQ
> 
> I also tried to enable "fsl,imx8qm-usb3" compatible buts this results
> directly into a crash.
> 
> What do I miss here? some comments would be helpful.
> 
> Best Regards,
> 
> Oliver

-- 

Thanks,
Peter Chen



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux