Skip to contentSkip to conversation

dt-bindings: phy: mxs-usb-phy: add nxp,sim property

PATCH In review Xu Yang 2 participants 5 messages Sep 3, 2024 – Sep 4, 2024

Subsystems (4)
lore
Share & tools
lore

Xu Yang

author
#0 lore raw

PATCH v3 1/2 dt-bindings: phy: mxs-usb-phy: add nxp,sim property

i.MX7ULP need properly set System Integration Module(SIM) module to make usb wakeup work well. This will add a "nxp,sim" property.

---
Changes in v2:
- add else branch suggested by Rob
Changes in v3:
- add Rb tag

---
 .../devicetree/bindings/phy/fsl,mxs-usbphy.yaml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml +17 -0
index f4b1ca2fb562..ce665a2779b7 100644
@@ -87,6 +87,12 @@ properties:
     maximum: 119
     default: 100
 
+  nxp,sim:
+    description:
+      The system integration module (SIM) provides system control and chip
+      configuration registers.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
 required:
   - compatible
   - reg
@@ -110,6 +116,17 @@ allOf:
       required:
         - fsl,anatop
 
+  - if:
+      properties:
+        compatible:
+          const: fsl,imx7ulp-usbphy
+    then:
+      required:
+        - nxp,sim
+    else:
+      properties:
+        nxp,sim: false
+
 additionalProperties: false
 
 examples:
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v3 2/2 ARM: dts: imx7ulp: add "nxp,sim" property for usbphy1

i.MX7ULP need properly set System Integration Module(SIM) module to make usb wakeup work well. This will add a "nxp,sim" property for usbphy1.

---
Changes in v2:
- no changes
Changes in v3:
- no changes

---
 arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi +1 -0
index ac338320ac1d..b093f2a447ae 100644
@@ -214,6 +214,7 @@ usbphy1: usb-phy@40350000 {
 			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&pcc2 IMX7ULP_CLK_USB_PHY>;
 			#phy-cells = <0>;
+			nxp,sim = <&sim>;
 		};
 
 		usdhc0: mmc@40370000 {
Signature · 1 line
2.34.1
author
#2 lore raw

Re: [PATCH v3 2/2] ARM: dts: imx7ulp: add "nxp,sim" property for usbphy1

Hi Shawn,

Quoted 19 lines · Xu Yang

i.MX7ULP need properly set System Integration Module(SIM) module to make usb wakeup work well. This will add a "nxp,sim" property for usbphy1.

---
Changes in v2:
- no changes
Changes in v3:
- no changes

---
 arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi +0 -0
index ac338320ac1d..b093f2a447ae 100644

arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi usbphy1: usb-phy@40350000 { · line 218

Quoted 5 lines
arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi +1 -0
@@ -214,6 +214,7 @@ usbphy1: usb-phy@40350000 {
 			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&pcc2 IMX7ULP_CLK_USB_PHY>;
 			#phy-cells = <0>;
+			nxp,sim = <&sim>;
 		};

The dtschema patch #1 has been picked by Greg. You can pick up patch #2 when you see this ping.

Thanks,
Xu Yang

Quoted 5 lines
arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi +0 -0
 		usdhc0: mmc@40370000 {
Signature · 1 line
2.34.1
maintainer
#3 lore raw

Re: [PATCH v3 2/2] ARM: dts: imx7ulp: add "nxp,sim" property for usbphy1

Quoted 17 lines · Xu Yang

Hi Shawn,

Quoted 14 lines · Xu Yang

i.MX7ULP need properly set System Integration Module(SIM) module to make usb wakeup work well. This will add a "nxp,sim" property for usbphy1.

---
Changes in v2:
- no changes
Changes in v3:
- no changes

---
 arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi usbphy1: usb-phy@40350000 { · line 218

Quoted 10 lines
arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi +1 -0
index ac338320ac1d..b093f2a447ae 100644
@@ -214,6 +214,7 @@ usbphy1: usb-phy@40350000 {
 			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&pcc2 IMX7ULP_CLK_USB_PHY>;
 			#phy-cells = <0>;
+			nxp,sim = <&sim>;
 		};

The dtschema patch #1 has been picked by Greg. You can pick up patch #2 when you see this ping.

Because our tools like to suck in entire patch series at once, you should really just resend this so that Shawn doesn't accidentally take patch 1/2 as well.

thanks,

greg k-h

author
#4 lore raw

Re: [PATCH v3 2/2] ARM: dts: imx7ulp: add "nxp,sim" property for usbphy1

Quoted 32 lines · Greg KH
Quoted 17 lines · Xu Yang

Hi Shawn,

Quoted 14 lines · Xu Yang

i.MX7ULP need properly set System Integration Module(SIM) module to make usb wakeup work well. This will add a "nxp,sim" property for usbphy1.

---
Changes in v2:
- no changes
Changes in v3:
- no changes

---
 arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi usbphy1: usb-phy@40350000 { · line 218

Quoted 10 lines
arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi +1 -0
index ac338320ac1d..b093f2a447ae 100644
@@ -214,6 +214,7 @@ usbphy1: usb-phy@40350000 {
 			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&pcc2 IMX7ULP_CLK_USB_PHY>;
 			#phy-cells = <0>;
+			nxp,sim = <&sim>;
 		};

The dtschema patch #1 has been picked by Greg. You can pick up patch #2 when you see this ping.

Quoted 3 lines

Because our tools like to suck in entire patch series at once, you should really just resend this so that Shawn doesn't accidentally take patch 1/2 as well.

Well, thanks for reminding me again. I'm going to do that.

Best Regards,
Xu Yang