Skip to contentSkip to conversation

arm64: dts: imx8qm: add smmu information for usb and add hsic usb port

PATCH Applied [email protected] 6 participants 16 messages Jul 20 – Nov 3

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: imx8qm: add smmu information for usb and add hsic usb port

Add smmu information for usb and add hsic usb port.

---
Frank Li (2):
arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information
arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node

 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 38 +++++++++++++++++++++++
 1 file changed, 38 insertions(+)

---
base-commit: 3fe08b9796f36ef437ab9328e7dd1e5ff2d66603
change-id: 20260720-qm_smmu-417e915cb713

Best regards,

Signature · 1 line
Frank Li <[email protected]>
#1 lore raw

PATCH 1/2 arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

From: Frank Li <[email protected]>

Add usbotg3 iommu information.

---
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +4 -0
index ccf9f510e0f88..1370a571153a5 100644
@@ -32,3 +32,7 @@ &usdhc3 {
 	compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
 	iommus = <&smmu 0x11 0x7f80>;
 };
+
+&usbotg3_cdns3 {
+	iommus = <&smmu 0x4 0x7f80>;
+};
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

Hi Frank,

Am Montag, 20. Juli 2026, 23:10:33 CEST schrieb [email protected]:

Quoted 14 lines

From: Frank Li <[email protected]>

Add usbotg3 iommu information.

---
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +0 -0
index ccf9f510e0f88..1370a571153a5 100644

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi &usdhc3 { · line 37

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +3 -0
@@ -32,3 +32,7 @@ &usdhc3 {
 	compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
 	iommus = <&smmu 0x11 0x7f80>;
 };
+
+&usbotg3_cdns3 {
+	iommus = <&smmu 0x4 0x7f80>;

Where in the RM can you get these values?

Thanks and best regards,
Alexander

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +1 -0
+};
Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
author
#3 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

Quoted 12 lines · Alexander Stein

Hi Frank,

Am Montag, 20. Juli 2026, 23:10:33 CEST schrieb [email protected]:

Quoted 9 lines

From: Frank Li <[email protected]>

Add usbotg3 iommu information.

---
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
Quoted 13 lines

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi &usdhc3 { · line 37

Quoted 11 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +3 -0
index ccf9f510e0f88..1370a571153a5 100644
@@ -32,3 +32,7 @@ &usdhc3 {
 	compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
 	iommus = <&smmu 0x11 0x7f80>;
 };
+
+&usbotg3_cdns3 {
+	iommus = <&smmu 0x4 0x7f80>;

Where in the RM can you get these values?

0x4 is stream ID, any value between 0-31, uboot will use this value to config stream ID for bus master by scfw API

0x7f80 means tire some bit to high before pass to smmu by hardware. I don't think signal defination can be found at public documents.

static int arm_smmu_of_xlate(struct device *dev,
const struct of_phandle_args *args)

{
        u32 mask, fwid = 0;

        if (args->args_count > 0)
                fwid |= FIELD_PREP(ARM_SMMU_SMR_ID, args->args[0]);

        if (args->args_count > 1)
                fwid |= FIELD_PREP(ARM_SMMU_SMR_MASK, args->args[1]);
}

Frank

Quoted 16 lines

Thanks and best regards,
Alexander

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi &usdhc3 { · line 38

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +1 -0
+};

--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/

#4 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

In reply to [email protected]
Quoted 15 lines · On 7/20/26 23:10, [email protected] wrote:

From: Frank Li <[email protected]>

Add usbotg3 iommu information.

---
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +0 -0
index ccf9f510e0f88..1370a571153a5 100644

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi &usdhc3 { · line 38

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +4 -0
@@ -32,3 +32,7 @@ &usdhc3 {
 	compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
 	iommus = <&smmu 0x11 0x7f80>;
 };
+
+&usbotg3_cdns3 {
+	iommus = <&smmu 0x4 0x7f80>;
+};

Hello Frank,

this patch, now in mainline as 73c3b40e536d, breaks USB 3.0 on Apalis iMX8QM (both on Ixora and on the Apalis Evaluation Board). Right after xHCI starts:

xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed xhci-hcd xhci-hcd.1.auto: WARNING: Host System Error
...
xhci-hcd xhci-hcd.1.auto: xHCI host controller not responding, assume dead xhci-hcd xhci-hcd.1.auto: HC died; cleaning up

SuperSpeed devices no longer enumerate, and no SMMU fault is reported. Reverting only this commit on top of current master fixes it. The other commit seems fine.

Adding the same property to the parent as well, like the NXP downstream tree does, also fixes it:

&usbotg3 {
	iommus = <&smmu 0x4 0x7f80>;
};

With that, SuperSpeed devices enumerate again.

Could you please take care of a fix? Otherwise I think we should revert this patch.

#regzbot introduced: 73c3b40e536d

Thanks,
Emanuele

author
#5 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

Quoted 37 lines · Emanuele Ghidoli
Quoted 15 lines · On 7/20/26 23:10, [email protected] wrote:

From: Frank Li <[email protected]>

Add usbotg3 iommu information.

---
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +0 -0
index ccf9f510e0f88..1370a571153a5 100644

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi &usdhc3 { · line 38

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +4 -0
@@ -32,3 +32,7 @@ &usdhc3 {
 	compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
 	iommus = <&smmu 0x11 0x7f80>;
 };
+
+&usbotg3_cdns3 {
+	iommus = <&smmu 0x4 0x7f80>;
+};

Hello Frank,

this patch, now in mainline as 73c3b40e536d, breaks USB 3.0 on Apalis iMX8QM (both on Ixora and on the Apalis Evaluation Board). Right after xHCI starts:

xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed xhci-hcd xhci-hcd.1.auto: WARNING: Host System Error
...
xhci-hcd xhci-hcd.1.auto: xHCI host controller not responding, assume dead xhci-hcd xhci-hcd.1.auto: HC died; cleaning up

Quoted 3 lines

SuperSpeed devices no longer enumerate, and no SMMU fault is reported. Reverting only this commit on top of current master fixes it. The other commit seems fine.

Does it only impact superspeed? High speed work?

Frank

Quoted 17 lines

Adding the same property to the parent as well, like the NXP downstream tree does, also fixes it:

&usbotg3 {
	iommus = <&smmu 0x4 0x7f80>;
};

With that, SuperSpeed devices enumerate again.

Could you please take care of a fix? Otherwise I think we should revert this patch.

#regzbot introduced: 73c3b40e536d

Thanks,
Emanuele

author
#6 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

Quoted 38 lines · Frank Li
Quoted 37 lines · Emanuele Ghidoli
Quoted 15 lines · On 7/20/26 23:10, [email protected] wrote:

From: Frank Li <[email protected]>

Add usbotg3 iommu information.

---
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +0 -0
index ccf9f510e0f88..1370a571153a5 100644

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi &usdhc3 { · line 38

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +4 -0
@@ -32,3 +32,7 @@ &usdhc3 {
 	compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
 	iommus = <&smmu 0x11 0x7f80>;
 };
+
+&usbotg3_cdns3 {
+	iommus = <&smmu 0x4 0x7f80>;
+};

Hello Frank,

this patch, now in mainline as 73c3b40e536d, breaks USB 3.0 on Apalis iMX8QM (both on Ixora and on the Apalis Evaluation Board). Right after xHCI starts:

xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed xhci-hcd xhci-hcd.1.auto: WARNING: Host System Error
...
xhci-hcd xhci-hcd.1.auto: xHCI host controller not responding, assume dead xhci-hcd xhci-hcd.1.auto: HC died; cleaning up

Quoted 5 lines
Quoted 3 lines

SuperSpeed devices no longer enumerate, and no SMMU fault is reported. Reverting only this commit on top of current master fixes it. The other commit seems fine.

Does it only impact superspeed? High speed work?

Thank you report this problem. Suppose below patch should fix this problem.

I have not time to test it today.

drivers/iommu/of_iommu.c +22 -0
index a18bb60f6f3df..7d485f5494ed8 100644
@@ -117,6 +117,28 @@ int of_iommu_configure(struct device *dev, struct device_node *master_np,
        bool dev_iommu_present;
        int err;
 
+       /*
+        * If the device has no of_node (e.g. a synthetic platform device
+        * created by platform_device_alloc() such as xhci-hcd), walk up
+        * the parent device chain to find the nearest ancestor that has an
+        * of_node with an "iommus" property and use that node to configure
+        * the IOMMU for this device.  This allows child devices that share
+        * the same IOMMU stream ID as their parent to be configured correctly
+        * even when they have no DT node of their own.
+        */
+       if (!master_np) {
+               struct device *parent = dev->parent;
+
+               while (parent) {
+                       if (parent->of_node &&
+                           of_property_present(parent->of_node, "iommus")) {
+                               master_np = parent->of_node;
+                               break;
+                       }
+                       parent = parent->parent;
+               }
+       }
+
        if (!master_np)
                return -ENODEV;
 

Frank

Quoted 19 lines

Frank

Quoted 17 lines

Adding the same property to the parent as well, like the NXP downstream tree does, also fixes it:

&usbotg3 {
	iommus = <&smmu 0x4 0x7f80>;
};

With that, SuperSpeed devices enumerate again.

Could you please take care of a fix? Otherwise I think we should revert this patch.

#regzbot introduced: 73c3b40e536d

Thanks,
Emanuele

#7 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

Quoted 1 line · Frank Li

Does it only impact superspeed? High speed work?

No, it's not even enumerated, on the Dev board.

Quoted 7 lines

Thank you report this problem. Suppose below patch should fix this problem.

I have not time to test it today.

Frank

Tested, it doesn't help.

xhci-hcd.1.auto has no fwnode, so platform_dma_configure() never calls of_dma_configure() and the new code in of_iommu_configure() is never reached.

Emanuele

author
#8 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

Quoted 13 lines · Emanuele Ghidoli
Quoted 1 line · Frank Li

Does it only impact superspeed? High speed work?

No, it's not even enumerated, on the Dev board.

Quoted 6 lines

Thank you report this problem. Suppose below patch should fix this problem.

I have not time to test it today.

Quoted 7 lines
Quoted 1 line

Frank

Tested, it doesn't help.

xhci-hcd.1.auto has no fwnode, so platform_dma_configure() never calls of_dma_configure() and the new code in of_iommu_configure() is never reached.

Finially, it is hack at uboot.

592: static int config_smmu_fdt_device_sid(void *blob, int device_offset, int sid)
601: prop = fdt_getprop(blob, device_offset, "fsl,sc_rsrc_id", &proplen);
618: ret = fdtdec_parse_phandle_with_args(blob, device_offset,
620: "power-domains", ...

578:     err = sc_rm_set_master_sid(-1, rsrc, sid);
681:     prop = fdt_getprop(blob, offset, "iommus", &proplen);
848:     if (is_imx8qm()) { ret = config_smmu_fdt(blob);

Need combine power-domains with iommus.

arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi +1 -0
index 176e2e332f87c..cc2b9a212780f 100644
@@ -189,6 +189,7 @@ usbotg3_cdns3: usb@5b120000 {
                        phys = <&usb3_phy>;
                        phy-names = "cdns3,usb3-phy";
                        cdns,on-chip-buff-size = /bits/ 16 <18>;
+                       power-domains = <&pd IMX_SC_R_USB_2>;
                        status = "disabled";
                };
        };

Frank

Quoted 2 lines

Emanuele

#9 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

Quoted 48 lines · Frank Li
Quoted 13 lines · Emanuele Ghidoli
Quoted 1 line · Frank Li

Does it only impact superspeed? High speed work?

No, it's not even enumerated, on the Dev board.

Quoted 6 lines

Thank you report this problem. Suppose below patch should fix this problem.

I have not time to test it today.

Quoted 7 lines
Quoted 1 line

Frank

Tested, it doesn't help.

xhci-hcd.1.auto has no fwnode, so platform_dma_configure() never calls of_dma_configure() and the new code in of_iommu_configure() is never reached.

Finially, it is hack at uboot.

592: static int config_smmu_fdt_device_sid(void *blob, int device_offset, int sid)
601: prop = fdt_getprop(blob, device_offset, "fsl,sc_rsrc_id", &proplen);
618: ret = fdtdec_parse_phandle_with_args(blob, device_offset,
620: "power-domains", ...

578:     err = sc_rm_set_master_sid(-1, rsrc, sid);
681:     prop = fdt_getprop(blob, offset, "iommus", &proplen);
848:     if (is_imx8qm()) { ret = config_smmu_fdt(blob);

Need combine power-domains with iommus.

arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi +1 -0
index 176e2e332f87c..cc2b9a212780f 100644
@@ -189,6 +189,7 @@ usbotg3_cdns3: usb@5b120000 {
                        phys = <&usb3_phy>;
                        phy-names = "cdns3,usb3-phy";
                        cdns,on-chip-buff-size = /bits/ 16 <18>;
+                       power-domains = <&pd IMX_SC_R_USB_2>;
                        status = "disabled";
                };
        };
Quoted 4 lines

Frank

Quoted 2 lines

Emanuele

Hi Frank,

this works. xHCI comes up fine and SuperSpeed devices enumerate again, with no Host System Error and no SMMU faults. Tested on Apalis iMX8QM and iMX8QP on Ixora carrier board.

A comment: imx8-ss-conn.dtsi is also included by i.MX8QXP and i.MX8DXL, which have no SMMU. I get if we should put the property in imx8qm-ss-conn.dtsi, next to the iommus property it goes with.

Thanks,
Emanuele

#10 lore raw

Re: [PATCH 1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

In reply to Frank Li
Quoted 28 lines · Frank Li
Quoted 13 lines · Emanuele Ghidoli
Quoted 1 line · Frank Li

Does it only impact superspeed? High speed work?

No, it's not even enumerated, on the Dev board.

Quoted 6 lines

Thank you report this problem. Suppose below patch should fix this problem.

I have not time to test it today.

Quoted 7 lines
Quoted 1 line

Frank

Tested, it doesn't help.

xhci-hcd.1.auto has no fwnode, so platform_dma_configure() never calls of_dma_configure() and the new code in of_iommu_configure() is never reached.

Finially, it is hack at uboot.

592: static int config_smmu_fdt_device_sid(void *blob, int device_offset, int sid)
601: prop = fdt_getprop(blob, device_offset, "fsl,sc_rsrc_id", &proplen);
618: ret = fdtdec_parse_phandle_with_args(blob, device_offset,
620: "power-domains", ...

Quoted 6 lines
578:     err = sc_rm_set_master_sid(-1, rsrc, sid);
681:     prop = fdt_getprop(blob, offset, "iommus", &proplen);
848:     if (is_imx8qm()) { ret = config_smmu_fdt(blob);

Need combine power-domains with iommus.

StreamID is not default programmed, so we did that in U-Boot. If not do that in U-Boot, we may need to find a place to configure streamID in kernel.

Regards
Peng

Quoted 18 lines
arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi +1 -0
index 176e2e332f87c..cc2b9a212780f 100644
@@ -189,6 +189,7 @@ usbotg3_cdns3: usb@5b120000 {
                       phys = <&usb3_phy>;
                       phy-names = "cdns3,usb3-phy";
                       cdns,on-chip-buff-size = /bits/ 16 <18>;
+                       power-domains = <&pd IMX_SC_R_USB_2>;
                       status = "disabled";
               };
       };

Frank

Quoted 2 lines

Emanuele

#11 lore raw

PATCH 2/2 arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node

In reply to [email protected]

From: Frank Li <[email protected]>

Add usb@5b0e0000 and related node for i.MX8QM.

---
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi | 34 +++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +34 -0
index 1370a571153a5..c7063aaac4a34 100644
@@ -4,6 +4,40 @@
  *	Dong Aisheng <[email protected]>
  */
 
+&{/} {
+	usbphynop2: usbphynop2 {
+		compatible = "usb-nop-xceiv";
+		clocks = <&usb2_lpcg IMX_LPCG_CLK_7>;
+		clock-names = "main_clk";
+		power-domains = <&pd IMX_SC_R_USB_0_PHY>;
+		status = "disabled";
+	};
+};
+
+&conn_subsys {
+	usbh1: usb@5b0e0000 {
+		compatible = "fsl,imx7ulp-usb", "fsl,imx6ul-usb", "fsl,imx27-usb";
+		reg = <0x5b0e0000 0x200>;
+		interrupt-parent = <&gic>;
+		interrupts = <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>;
+		phy_type = "hsic";
+		dr_mode = "host";
+		clocks = <&usb2_lpcg IMX_LPCG_CLK_6>;
+		ahb-burst-config = <0x0>;
+		tx-burst-size-dword = <0x10>;
+		rx-burst-size-dword = <0x10>;
+		power-domains = <&pd IMX_SC_R_USB_1>;
+		fsl,usbphy = <&usbphynop2>;
+		fsl,usbmisc = <&usbmisc2 0>;
+	};
+
+	usbmisc2: usbmisc@5b0e0200 {
+		compatible = "fsl,imx7ulp-usbmisc", "fsl,imx7d-usbmisc", "fsl,imx6q-usbmisc";
+		#index-cells = <1>;
+		reg = <0x5b0e0200 0x200>;
+	};
+};
+
 &usbphy1 {
 	compatible = "fsl,imx8qm-usbphy", "fsl,imx7ulp-usbphy";
 };
Signature · 1 line
2.43.0
#12 lore raw

Re: [PATCH 2/2] arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [High] The `usbphynop2` node requests the wrong power domain (`IMX_SC_R_USB_0_PHY` instead of…

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] The usbphynop2 node requests the wrong power domain (IMX_SC_R_USB_0_PHY instead of IMX_SC_R_USB_1_PHY).
- [Medium] The usbh1 node is enabled by default (missing status = "disabled";), violating SoC .dtsi practices and causing unconditional probing.
- [Low] Missing required #phy-cells property in the usbphynop2 node.
--

--- Patch [2]: [PATCH 2/2] arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node --- commit 9497d73ee79f69a11e0a9347cd596ca4c9842914
Author: Frank Li <[email protected]>

arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node

Add usb@5b0e0000 and related node for i.MX8QM.

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi line 9

Quoted 11 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +3 -0
index 1370a571153a5..c7063aaac4a34 100644
@@ -4,6 +4,40 @@
  *	Dong Aisheng <[email protected]>
  */
 
+&{/} {
+	usbphynop2: usbphynop2 {
+		compatible = "usb-nop-xceiv";

[Severity: Low]
Does this node need a #phy-cells = <0>; property? The usb-nop-xceiv.yaml binding schema typically requires this property to be present, and omitting it might cause dtbs_check validation failures during the build.

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi line 12

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +3 -0
+		clocks = <&usb2_lpcg IMX_LPCG_CLK_7>;
+		clock-names = "main_clk";
+		power-domains = <&pd IMX_SC_R_USB_0_PHY>;

[Severity: High]
Is IMX_SC_R_USB_0_PHY the correct power domain for usbphynop2? Since this is for the USB_1 controller (usbh1), should this be IMX_SC_R_USB_1_PHY instead?

If it requests the USB_0 PHY domain, the USB_1 PHY hardware might remain unpowered, causing the HSIC port to fail.

arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi line 20

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +8 -0
+		status = "disabled";
+	};
+};
+
+&conn_subsys {
+	usbh1: usb@5b0e0000 {
+		compatible = "fsl,imx7ulp-usb", "fsl,imx6ul-usb", "fsl,imx27-usb";
+		reg = <0x5b0e0000 0x200>;

[Severity: Medium]
Should this node include a status = "disabled"; property? Without it, the usbh1 node is enabled by default and will probe unconditionally on all i.MX8QM boards, even if the hardware interface isn't wired up.

Since the required usbphynop2 PHY is disabled, the controller might fail to initialize, leading to boot delays and unnecessary resource allocation.

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi +2 -0
+		interrupt-parent = <&gic>;
+		interrupts = <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>;

[ ... ]

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
maintainer
#13 lore raw

Re: [PATCH 2/2] arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node

Quoted 5 lines · On Mon, Jul 20, 2026 at 4:24 PM <[email protected]> wrote:

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] The usbphynop2 node requests the wrong power domain (IMX_SC_R_USB_0_PHY instead of IMX_SC_R_USB_1_PHY).
- [Medium] The usbh1 node is enabled by default (missing status = "disabled";), violating SoC .dtsi practices and causing unconditional probing.
- [Low] Missing required #phy-cells property in the usbphynop2 node.

This reported issue is now a warning in linux-next. Maybe the other 2 issues are valid too?

Rob

author
#14 lore raw

Re: [PATCH 2/2] arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node

Quoted 9 lines · Rob Herring
Quoted 5 lines · On Mon, Jul 20, 2026 at 4:24 PM <[email protected]> wrote:

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] The usbphynop2 node requests the wrong power domain (IMX_SC_R_USB_0_PHY instead of IMX_SC_R_USB_1_PHY).
- [Medium] The usbh1 node is enabled by default (missing status = "disabled";), violating SoC .dtsi practices and causing unconditional probing.
- [Low] Missing required #phy-cells property in the usbphynop2 node.

This reported issue is now a warning in linux-next. Maybe the other 2 issues are valid too?

Post fix patch https://lore.kernel.org/imx/[email protected]/T/#t

Frank

Quoted 2 lines

Rob

author Applied
#15 lore raw
In reply to [email protected]

From: Frank Li <[email protected]>

Quoted 1 line · On Mon, 20 Jul 2026 17:10:32 -0400, [email protected] wrote:

Add smmu information for usb and add hsic usb port.

Applied to imx/dt64-intend, thanks!

[1/2] arm64: dts: imx8qm-ss-conn: add usbotg3 iommu information

      commit: 239bf457d81dda8a71d7cae04bcb745e4efba1ee
[2/2] arm64: dts: imx8qm-ss-conn: Add HSIC usb@5b0e0000 node
      commit: 372a7e2aa11037d02a39323f2c3273c9557f148a

Best regards,
--
Frank Li <[email protected]>