Skip to contentSkip to conversation

dtbs_check warning clean up against fsl,mxs-usbphy.yaml

PATCH Applied Xu Yang 6 participants 12 messages Sep 26, 2024 – Nov 1, 2024

Subsystems (3)
lore
Share & tools
lore

Xu Yang

author
#0 lore raw

cover dtbs_check warning clean up against fsl,mxs-usbphy.yaml

Some changes to clean up dtbs_check warning against fsl,mxs-usbphy.yaml.

The first 4 patches are used to fix below warning, "nxp,sim" is only needed by i.MX7ULP:
- 'nxp,sim' is a required property

The last patch is used to fix below warning:
- fsl,tx-d-cal: 5 is less than the minimum of 79

Xu Yang (5):
dt-bindings: phy: mxs-usb-phy: add imx8qxp compatible
arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible
arm64: dts: imx8qm: change usbphy1 compatible
arm64: dts: imx8qxp: change usbphy1 compatible
ARM: dts: imx6qdl: convert fsl,tx-d-cal to correct value

 Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml | 1 +
 arch/arm/boot/dts/nxp/imx/imx6qdl-var-som.dtsi            | 4 ++--
 arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi        | 4 ++++
 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi         | 4 ++++
 arch/arm64/boot/dts/freescale/imx8qxp-ss-conn.dtsi        | 4 ++++
 5 files changed, 15 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 1/5 dt-bindings: phy: mxs-usb-phy: add imx8qxp compatible

Add "fsl,imx8qxp-usbphy" compatible.

---
 Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml +1 -0
index ce665a2779b7..d01b7d187040 100644
@@ -32,6 +32,7 @@ properties:
           - enum:
               - fsl,imx8dxl-usbphy
               - fsl,imx8qm-usbphy
+              - fsl,imx8qxp-usbphy
               - fsl,imx8ulp-usbphy
           - const: fsl,imx7ulp-usbphy
 
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH 2/5 arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible

In reply to Xu Yang

Make fsl,imx8dxl-usbphy compatible with fsl,imx7ulp-usbphy to fix below warning:

/home/nxf75279/work/linux-next/arch/arm64/boot/dts/freescale/imx8dxl-evk.dtb: usbphy@5b100000: 'nxp,sim' is a required property
from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

---
 arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi +4 -0
index 1e02b04494e9..9b114bed084b 100644
@@ -138,6 +138,10 @@ &gpmi {
 	interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
 };
 
+&usbphy1 {
+	compatible = "fsl,imx8dxl-usbphy", "fsl,imx7ulp-usbphy";
+};
+
 &usdhc1 {
 	compatible = "fsl,imx8dxl-usdhc", "fsl,imx8qxp-usdhc";
 	interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.34.1
#4 lore raw

Re: [PATCH 2/5] arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible

Quoted 4 lines · Xu Yang

Make fsl,imx8dxl-usbphy compatible with fsl,imx7ulp-usbphy to fix below warning:

/home/nxf75279/work/linux-next/arch/arm64/boot/dts/freescale/imx8dxl-evk.dtb: usbphy@5b100000: 'nxp,sim' is a required property

A relative path might be a better fit:

arch/arm64/boot/dts/freescale/imx8dxl-evk.dtb: usbphy@5b100000: 'nxp,sim' is a required property

I applied all 4 DTS patches with this fix-up.

Shawn

Quoted 25 lines

from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

---
 arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi +4 -0
index 1e02b04494e9..9b114bed084b 100644
@@ -138,6 +138,10 @@ &gpmi {
 	interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
 };
 
+&usbphy1 {
+	compatible = "fsl,imx8dxl-usbphy", "fsl,imx7ulp-usbphy";
+};
+
 &usdhc1 {
 	compatible = "fsl,imx8dxl-usdhc", "fsl,imx8qxp-usdhc";
 	interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.34.1
author
#5 lore raw

PATCH 3/5 arm64: dts: imx8qm: change usbphy1 compatible

In reply to Xu Yang

Make fsl,imx8qm-usbphy compatible with fsl,imx7ulp-usbphy to fix below warning:

/home/nxf75279/work/linux-next/arch/arm64/boot/dts/freescale/imx8qm-apalis-eval.dtb: usbphy@5b100000: 'nxp,sim' is a required property
from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

---
 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 545e175c88b3..ccf9f510e0f8 100644
@@ -4,6 +4,10 @@
  *	Dong Aisheng <[email protected]>
  */
 
+&usbphy1 {
+	compatible = "fsl,imx8qm-usbphy", "fsl,imx7ulp-usbphy";
+};
+
 &fec1 {
 	compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
 	iommus = <&smmu 0x12 0x7f80>;
Signature · 1 line
2.34.1
author
#6 lore raw

PATCH 4/5 arm64: dts: imx8qxp: change usbphy1 compatible

In reply to Xu Yang

Make fsl,imx8qxp-usbphy compatible with fsl,imx7ulp-usbphy to fix below warning:

/home/nxf75279/work/linux-next/arch/arm64/boot/dts/freescale/imx8qxp-colibri-aster.dtb: usbphy@5b100000: 'nxp,sim' is a required property
from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

---
 arch/arm64/boot/dts/freescale/imx8qxp-ss-conn.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qxp-ss-conn.dtsi +4 -0
index 46da21af3702..4eb48ad48745 100644
@@ -4,6 +4,10 @@
  *	Dong Aisheng <[email protected]>
  */
 
+&usbphy1 {
+	compatible = "fsl,imx8qxp-usbphy", "fsl,imx7ulp-usbphy";
+};
+
 &usdhc1 {
 	compatible = "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
 };
Signature · 1 line
2.34.1
author
#7 lore raw

PATCH 5/5 ARM: dts: imx6qdl: convert fsl,tx-d-cal to correct value

In reply to Xu Yang

make dtbs_check has below warning:

/home/nxf75279/work/usb/arch/arm/boot/dts/nxp/imx/imx6q-var-mx6customboard.dtb: usbphy@20c9000: fsl,tx-d-cal: 5 is less than the minimum of 79
from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

According to schema, valid value of fsl,tx-d-cal is from 79 to 119. This will convert register raw value <0x5> to corresponding <106>.

---
 arch/arm/boot/dts/nxp/imx/imx6qdl-var-som.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/nxp/imx/imx6qdl-var-som.dtsi +2 -2
index a1ea33c4eeb7..d3396cb81912 100644
@@ -529,11 +529,11 @@ &usbotg {
 };
 
 &usbphy1 {
-	fsl,tx-d-cal = <0x5>;
+	fsl,tx-d-cal = <106>;
 };
 
 &usbphy2 {
-	fsl,tx-d-cal = <0x5>;
+	fsl,tx-d-cal = <106>;
 };
 
 &usdhc1 {
Signature · 1 line
2.34.1
maintainer Applied
#8 lore raw
In reply to Xu Yang
Quoted 10 lines · Xu Yang

Some changes to clean up dtbs_check warning against fsl,mxs-usbphy.yaml.

The first 4 patches are used to fix below warning, "nxp,sim" is only needed by i.MX7ULP:
- 'nxp,sim' is a required property

The last patch is used to fix below warning:
- fsl,tx-d-cal: 5 is less than the minimum of 79

[...]

Applied, thanks!

[1/5] dt-bindings: phy: mxs-usb-phy: add imx8qxp compatible

      commit: 76b4f2a5cec59e842de4b5989eb990a2ee8cedf3

[2/5] arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible
(no commit info)
[3/5] arm64: dts: imx8qm: change usbphy1 compatible
(no commit info)
[4/5] arm64: dts: imx8qxp: change usbphy1 compatible
(no commit info)
[5/5] ARM: dts: imx6qdl: convert fsl,tx-d-cal to correct value
(no commit info)

Best regards,

Signature · 1 line
~Vinod
#9 lore raw

Hi Vinod,

Am Donnerstag, 17. Oktober 2024, 17:36:12 CET schrieb Vinod Koul:

Quoted 17 lines · Xu Yang
Quoted 10 lines

Some changes to clean up dtbs_check warning against fsl,mxs-usbphy.yaml.

The first 4 patches are used to fix below warning, "nxp,sim" is only needed by i.MX7ULP:
- 'nxp,sim' is a required property

The last patch is used to fix below warning:
- fsl,tx-d-cal: 5 is less than the minimum of 79

[...]

Applied, thanks!

[1/5] dt-bindings: phy: mxs-usb-phy: add imx8qxp compatible

      commit: 76b4f2a5cec59e842de4b5989eb990a2ee8cedf3
Quoted 8 lines

[2/5] arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible
(no commit info)
[3/5] arm64: dts: imx8qm: change usbphy1 compatible
(no commit info)
[4/5] arm64: dts: imx8qxp: change usbphy1 compatible
(no commit info)
[5/5] ARM: dts: imx6qdl: convert fsl,tx-d-cal to correct value
(no commit info)

Did maybe something go wrong while merging? Only patch 1 has a commit SHA1 in this mail.
Also only patch 1 is available in linux-next

Thanks and best regards,
Alexander

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/
maintainer
#10 lore raw
Quoted 29 lines · Alexander Stein

Hi Vinod,

Am Donnerstag, 17. Oktober 2024, 17:36:12 CET schrieb Vinod Koul:

Quoted 17 lines · Xu Yang
Quoted 10 lines

Some changes to clean up dtbs_check warning against fsl,mxs-usbphy.yaml.

The first 4 patches are used to fix below warning, "nxp,sim" is only needed by i.MX7ULP:
- 'nxp,sim' is a required property

The last patch is used to fix below warning:
- fsl,tx-d-cal: 5 is less than the minimum of 79

[...]

Applied, thanks!

[1/5] dt-bindings: phy: mxs-usb-phy: add imx8qxp compatible

      commit: 76b4f2a5cec59e842de4b5989eb990a2ee8cedf3
Quoted 8 lines

[2/5] arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible
(no commit info)
[3/5] arm64: dts: imx8qm: change usbphy1 compatible
(no commit info)
[4/5] arm64: dts: imx8qxp: change usbphy1 compatible
(no commit info)
[5/5] ARM: dts: imx6qdl: convert fsl,tx-d-cal to correct value
(no commit info)

Quoted 3 lines

Did maybe something go wrong while merging? Only patch 1 has a commit SHA1 in this mail.
Also only patch 1 is available in linux-next

Supposed script report issue. Only dt-bindings go to through DMA tree. Other dts should go through shawn's tree.

Still wait for shawn pick dts patches.

Frank

Quoted 10 lines

Thanks and best regards,
Alexander
--
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/

#11 lore raw

Re: [PATCH 0/5] dtbs_check warning clean up against fsl, mxs-usbphy.yaml

Hi Frank,

Am Dienstag, 29. Oktober 2024, 16:29:07 CET schrieb Frank Li:

Quoted 30 lines · Alexander Stein
Quoted 29 lines

Hi Vinod,

Am Donnerstag, 17. Oktober 2024, 17:36:12 CET schrieb Vinod Koul:

Quoted 25 lines · Xu Yang
Quoted 10 lines

Some changes to clean up dtbs_check warning against fsl,mxs-usbphy.yaml.

The first 4 patches are used to fix below warning, "nxp,sim" is only needed by i.MX7ULP:
- 'nxp,sim' is a required property

The last patch is used to fix below warning:
- fsl,tx-d-cal: 5 is less than the minimum of 79

[...]

Applied, thanks!

[1/5] dt-bindings: phy: mxs-usb-phy: add imx8qxp compatible

      commit: 76b4f2a5cec59e842de4b5989eb990a2ee8cedf3

[2/5] arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible
(no commit info)
[3/5] arm64: dts: imx8qm: change usbphy1 compatible
(no commit info)
[4/5] arm64: dts: imx8qxp: change usbphy1 compatible
(no commit info)
[5/5] ARM: dts: imx6qdl: convert fsl,tx-d-cal to correct value
(no commit info)

Quoted 8 lines
Quoted 3 lines

Did maybe something go wrong while merging? Only patch 1 has a commit SHA1 in this mail.
Also only patch 1 is available in linux-next

Supposed script report issue. Only dt-bindings go to through DMA tree. Other dts should go through shawn's tree.

Still wait for shawn pick dts patches.

Aah, thanks for clearing up.

Best regards,
Alexander

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/