From 37bdd12015a7d26d86c029b850afefda1af6ecbb Mon Sep 17 00:00:00 2001 From: Frank Li Date: Tue, 18 Feb 2020 13:23:16 -0600 Subject: MLK-23346-2 DXL: enable second USB controller basic host and peripheral work Reviewed-by: Peter Chen Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi | 50 +++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) (limited to 'arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi') diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi index 9e3256d65b7d..d1ca25c835e2 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi @@ -35,7 +35,7 @@ /* * usbotg1 and usbotg2 share one clcok * scfw disable clock access and keep it always on - * incase other core (M4) use one of these. + * in case other core (M4) use one of these. */ clocks = <&clk_dummy>; }; @@ -45,6 +45,18 @@ }; &conn_subsys { + + usb2_2_lpcg: clock-controller@5b280000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5b280000 0x10000>; + #clock-cells = <1>; + + bit-offset = <28>; + clocks = <&conn_ipg_clk>; + clock-output-names = "usboh3_2_ahb_clk"; + power-domains = <&pd IMX_SC_R_USB_1_PHY>; + }; + conn_enet0_root_clk: clock-conn-enet0-root { compatible = "fixed-clock"; #clock-cells = <0>; @@ -89,4 +101,40 @@ clk_csr = <0>; status = "disabled"; }; + + usbphy2: usbphy@0x5b110000 { + compatible = "fsl,imx8qm-usbphy", "fsl,imx7ulp-usbphy", "fsl,imx6ul-usbphy", "fsl,imx23-usbphy"; + reg = <0x5b110000 0x1000>; + clocks = <&usb2_2_lpcg 0>; + power-domains = <&pd IMX_SC_R_USB_1_PHY>; + status = "disabled"; + }; + + usbotg2: usb@5b0e0000 { + compatible = "fsl,imx8qm-usb", "fsl,imx27-usb"; + reg = <0x5b0e0000 0x200>; + interrupt-parent = <&gic>; + interrupts = ; + fsl,usbphy = <&usbphy2>; + fsl,usbmisc = <&usbmisc2 0>; + /* + * usbotg1 and usbotg2 share one clcok + * scfw disable clock access and keep it always on + * in case other core (M4) use one of these. + */ + clocks = <&clk_dummy>; + ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; + #stream-id-cells = <1>; + power-domains = <&pd IMX_SC_R_USB_1>; + status = "disabled"; + }; + + usbmisc2: usbmisc@5b0e0200 { + #index-cells = <1>; + compatible = "fsl,imx7ulp-usbmisc", "fsl,imx6q-usbmisc"; + reg = <0x5b0e0200 0x200>; + }; + }; -- cgit v1.2.3