arm64: dts: imx95: add USB2.0 nodes
Subsystems (3)
PATCH v6 1/3 arm64: dts: imx95: add USB2.0 nodes
Add USB2.0 controller and phy nodes.
---
Changes in v6:
- no changes
Changes in v5:
- no changes
Changes in v4:
- add Tb tag
Changes in v3:
- no changes
Changes in v2:
- add Rb tag
--- arch/arm64/boot/dts/freescale/imx95.dtsi | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/freescale/imx95.dtsi +30 -0
@@ -470,6 +470,13 @@ its: msi-controller@48040000 { }; }; + usbphynop: usbphynop { + compatible = "usb-nop-xceiv"; + clocks = <&scmi_clk IMX95_CLK_HSIO>; + clock-names = "main_clk"; + #phy-cells = <0>; + }; + soc { compatible = "simple-bus"; #address-cells = <2>;
@@ -1621,6 +1628,29 @@ usb3_phy: phy@4c1f0040 { status = "disabled"; }; + usb2: usb@4c200000 { + compatible = "fsl,imx95-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; + reg = <0x0 0x4c200000 0x0 0x200>; + interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&scmi_clk IMX95_CLK_HSIO>, + <&scmi_clk IMX95_CLK_32K>; + clock-names = "usb_ctrl_root", "usb_wakeup"; + iommus = <&smmu 0xf>; + phys = <&usbphynop>; + power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>; + fsl,usbmisc = <&usbmisc 0>; + status = "disabled"; + }; + + usbmisc: usbmisc@4c200200 { + compatible = "fsl,imx95-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x0 0x4c200200 0x0 0x200>, + <0x0 0x4c010014 0x0 0x04>; + #index-cells = <1>; + }; + pcie0: pcie@4c300000 { compatible = "fsl,imx95-pcie"; reg = <0 0x4c300000 0 0x10000>,
Signature · 1 line
2.34.1
PATCH v6 2/3 arm64: dts: imx95-19x19-evk: enable USB2.0 node
On this board, USB2.0 is a host-only port, add vbus regulator node and enable USB2.0 node.
---
Changes in v6:
- no changes
Changes in v5:
- no changes
Changes in v4:
- no changes
Changes in v3:
- no changes
Changes in v2:
- reorder regulator node
--- .../arm64/boot/dts/freescale/imx95-19x19-evk.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +16 -0
@@ -145,6 +145,15 @@ reg_usdhc2_vmmc: regulator-usdhc2 { off-on-delay-us = <12000>; }; + reg_usb_vbus: regulator-vbus { + compatible = "regulator-fixed"; + regulator-name = "USB_VBUS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&i2c7_pcal6524 3 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + sound-bt-sco { compatible = "simple-audio-card"; simple-audio-card,name = "bt-sco-audio";
@@ -461,6 +470,13 @@ &sai3 { status = "okay"; }; +&usb2 { + dr_mode = "host"; + disable-over-current; + vbus-supply = <®_usb_vbus>; + status = "okay"; +}; + &usb3 { status = "okay"; };
Signature · 1 line
2.34.1
PATCH v6 3/3 arm64: dts: imx95-15x15-evk: enable USB2.0 node
In reply to Xu YangOn this board, USB2.0 is a host-only port, add vbus regulator node and enable USB2.0 node.
---
Changes in v6:
- new patch
--- .../arm64/boot/dts/freescale/imx95-15x15-evk.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts +16 -0
@@ -136,6 +136,15 @@ reg_usdhc3_vmmc: regulator-usdhc3 { startup-delay-us = <20000>; }; + reg_usb_vbus: regulator-vbus { + compatible = "regulator-fixed"; + regulator-name = "USB_VBUS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&pcal6524 3 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_vcc_12v: regulator-vcc-12v { compatible = "regulator-fixed"; regulator-max-microvolt = <12000000>;
@@ -1023,6 +1032,13 @@ &tpm6 { status = "okay"; }; +&usb2 { + dr_mode = "host"; + vbus-supply = <®_usb_vbus>; + disable-over-current; + status = "okay"; +}; + &usb3 { status = "okay"; };
Signature · 1 line
2.34.1
Rob Herring (Arm)
maintainerQuoted 17 lines · Xu Yang
Add USB2.0 controller and phy nodes.
Reviewed-by Frank Li <[email protected]>Signed-off-by Xu Yang <[email protected]>---
Changes in v6:
- no changes
Changes in v5:
- no changes
Changes in v4:
- add Tb tag
Changes in v3:
- no changes
Changes in v2:
- add Rb tag
Quoted 4 lines
--- arch/arm64/boot/dts/freescale/imx95.dtsi | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20250410 (exact match)
If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/freescale/' for [email protected]:
arch/arm64/boot/dts/freescale/imx95-19x19-evk.dtb: usb@4c200000 (fsl,imx95-usb): compatible: 'oneOf' conditional failed, one must be fixed:
['fsl,imx95-usb', 'fsl,imx7d-usb', 'fsl,imx27-usb'] is too long 'fsl,imx95-usb' is not one of ['fsl,imx27-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx23-usb', 'fsl,imx25-usb', 'fsl,imx28-usb', 'fsl,imx35-usb', 'fsl,imx50-usb', 'fsl,imx51-usb', 'fsl,imx53-usb', 'fsl,imx6q-usb', 'fsl,imx6sl-usb', 'fsl,imx6sx-usb', 'fsl,imx6ul-usb', 'fsl,imx7d-usb', 'fsl,vf610-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx8dxl-usb', 'fsl,imx8ulp-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx8mm-usb', 'fsl,imx8mn-usb', 'fsl,imx93-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx6sll-usb', 'fsl,imx7ulp-usb'] 'fsl,imx27-usb' was expected 'fsl,imx7ulp-usb' was expected 'fsl,imx6ul-usb' was expected from schema $id: http://devicetree.org/schemas/usb/chipidea,usb2-imx.yaml#
arch/arm64/boot/dts/freescale/imx95-19x19-evk.dtb: usb@4c200000 (fsl,imx95-usb): interrupts: [[0, 176, 4], [0, 174, 4]] is too long
from schema $id: http://devicetree.org/schemas/usb/chipidea,usb2-imx.yaml#arch/arm64/boot/dts/freescale/imx95-19x19-evk.dtb: usb@4c200000 (fsl,imx95-usb): Unevaluated properties are not allowed ('compatible', 'iommus' were unexpected)
from schema $id: http://devicetree.org/schemas/usb/chipidea,usb2-imx.yaml#arch/arm64/boot/dts/freescale/imx95-19x19-evk.dtb: /soc/usb@4c200000: failed to match any schema with compatible: ['fsl,imx95-usb', 'fsl,imx7d-usb', 'fsl,imx27-usb'] arch/arm64/boot/dts/freescale/imx95-19x19-evk.dtb: usbmisc@4c200200 (fsl,imx95-usbmisc): compatible: 'oneOf' conditional failed, one must be fixed:
['fsl,imx95-usbmisc', 'fsl,imx7d-usbmisc', 'fsl,imx6q-usbmisc'] is too long
'fsl,imx95-usbmisc' is not one of ['fsl,imx25-usbmisc', 'fsl,imx27-usbmisc', 'fsl,imx35-usbmisc', 'fsl,imx51-usbmisc', 'fsl,imx53-usbmisc', 'fsl,imx6q-usbmisc', 'fsl,vf610-usbmisc'] 'fsl,imx95-usbmisc' is not one of ['fsl,imx6ul-usbmisc', 'fsl,imx6sl-usbmisc', 'fsl,imx6sx-usbmisc', 'fsl,imx7d-usbmisc']
'fsl,imx95-usbmisc' is not one of ['fsl,imx7ulp-usbmisc', 'fsl,imx8mm-usbmisc', 'fsl,imx8mn-usbmisc', 'fsl,imx8ulp-usbmisc']
'fsl,imx6sll-usbmisc' was expected
'fsl,imx6q-usbmisc' was expected
'fsl,imx6ul-usbmisc' was expected
from schema $id: http://devicetree.org/schemas/usb/fsl,usbmisc.yaml#arch/arm64/boot/dts/freescale/imx95-19x19-evk.dtb: usbmisc@4c200200 (fsl,imx95-usbmisc): reg: [[0, 1277166080, 0, 512], [0, 1275133972, 0, 4]] is too long
from schema $id: http://devicetree.org/schemas/usb/fsl,usbmisc.yaml#arch/arm64/boot/dts/freescale/imx95-19x19-evk.dtb: /soc/usbmisc@4c200200: failed to match any schema with compatible: ['fsl,imx95-usbmisc', 'fsl,imx7d-usbmisc', 'fsl,imx6q-usbmisc'] arch/arm64/boot/dts/freescale/imx95-15x15-evk.dtb: usb@4c200000 (fsl,imx95-usb): compatible: 'oneOf' conditional failed, one must be fixed:
['fsl,imx95-usb', 'fsl,imx7d-usb', 'fsl,imx27-usb'] is too long 'fsl,imx95-usb' is not one of ['fsl,imx27-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx23-usb', 'fsl,imx25-usb', 'fsl,imx28-usb', 'fsl,imx35-usb', 'fsl,imx50-usb', 'fsl,imx51-usb', 'fsl,imx53-usb', 'fsl,imx6q-usb', 'fsl,imx6sl-usb', 'fsl,imx6sx-usb', 'fsl,imx6ul-usb', 'fsl,imx7d-usb', 'fsl,vf610-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx8dxl-usb', 'fsl,imx8ulp-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx8mm-usb', 'fsl,imx8mn-usb', 'fsl,imx93-usb'] 'fsl,imx95-usb' is not one of ['fsl,imx6sll-usb', 'fsl,imx7ulp-usb'] 'fsl,imx27-usb' was expected 'fsl,imx7ulp-usb' was expected 'fsl,imx6ul-usb' was expected from schema $id: http://devicetree.org/schemas/usb/chipidea,usb2-imx.yaml#
arch/arm64/boot/dts/freescale/imx95-15x15-evk.dtb: usb@4c200000 (fsl,imx95-usb): interrupts: [[0, 176, 4], [0, 174, 4]] is too long
from schema $id: http://devicetree.org/schemas/usb/chipidea,usb2-imx.yaml#arch/arm64/boot/dts/freescale/imx95-15x15-evk.dtb: usb@4c200000 (fsl,imx95-usb): Unevaluated properties are not allowed ('compatible', 'iommus' were unexpected)
from schema $id: http://devicetree.org/schemas/usb/chipidea,usb2-imx.yaml#arch/arm64/boot/dts/freescale/imx95-15x15-evk.dtb: /soc/usb@4c200000: failed to match any schema with compatible: ['fsl,imx95-usb', 'fsl,imx7d-usb', 'fsl,imx27-usb'] arch/arm64/boot/dts/freescale/imx95-15x15-evk.dtb: usbmisc@4c200200 (fsl,imx95-usbmisc): compatible: 'oneOf' conditional failed, one must be fixed:
['fsl,imx95-usbmisc', 'fsl,imx7d-usbmisc', 'fsl,imx6q-usbmisc'] is too long
'fsl,imx95-usbmisc' is not one of ['fsl,imx25-usbmisc', 'fsl,imx27-usbmisc', 'fsl,imx35-usbmisc', 'fsl,imx51-usbmisc', 'fsl,imx53-usbmisc', 'fsl,imx6q-usbmisc', 'fsl,vf610-usbmisc'] 'fsl,imx95-usbmisc' is not one of ['fsl,imx6ul-usbmisc', 'fsl,imx6sl-usbmisc', 'fsl,imx6sx-usbmisc', 'fsl,imx7d-usbmisc']
'fsl,imx95-usbmisc' is not one of ['fsl,imx7ulp-usbmisc', 'fsl,imx8mm-usbmisc', 'fsl,imx8mn-usbmisc', 'fsl,imx8ulp-usbmisc']
'fsl,imx6sll-usbmisc' was expected
'fsl,imx6q-usbmisc' was expected
'fsl,imx6ul-usbmisc' was expected
from schema $id: http://devicetree.org/schemas/usb/fsl,usbmisc.yaml#arch/arm64/boot/dts/freescale/imx95-15x15-evk.dtb: usbmisc@4c200200 (fsl,imx95-usbmisc): reg: [[0, 1277166080, 0, 512], [0, 1275133972, 0, 4]] is too long
from schema $id: http://devicetree.org/schemas/usb/fsl,usbmisc.yaml#arch/arm64/boot/dts/freescale/imx95-15x15-evk.dtb: /soc/usbmisc@4c200200: failed to match any schema with compatible: ['fsl,imx95-usbmisc', 'fsl,imx7d-usbmisc', 'fsl,imx6q-usbmisc']
Hi Shawn,
Quoted 5 lines · Xu Yang
Add USB2.0 controller and phy nodes.
Reviewed-by Frank Li <[email protected]>Signed-off-by Xu Yang <[email protected]>
Could you pick up these dts patches?
It was originally going to be sent together with the dt-binding patches [1]. With Greg's request, I split dt-binding and dts patch after v5. So Rob's bot report DTB warnings due to his tree lack dt-binding patch. As now Greg has already picked up patchset [1], you can ignore DTB warnings.
[1] https://lore.kernel.org/imx/[email protected]/
Thanks,
Xu Yang
Quoted 67 lines
---
Changes in v6:
- no changes
Changes in v5:
- no changes
Changes in v4:
- add Tb tag
Changes in v3:
- no changes
Changes in v2:
- add Rb tag--- arch/arm64/boot/dts/freescale/imx95.dtsi | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+)arch/arm64/boot/dts/freescale/imx95.dtsi +30
-0@@ -470,6 +470,13 @@ its: msi-controller@48040000 { }; }; + usbphynop: usbphynop { + compatible = "usb-nop-xceiv"; + clocks = <&scmi_clk IMX95_CLK_HSIO>; + clock-names = "main_clk"; + #phy-cells = <0>; + }; + soc { compatible = "simple-bus"; #address-cells = <2>;@@ -1621,6 +1628,29 @@ usb3_phy: phy@4c1f0040 { status = "disabled"; }; + usb2: usb@4c200000 { + compatible = "fsl,imx95-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; + reg = <0x0 0x4c200000 0x0 0x200>; + interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&scmi_clk IMX95_CLK_HSIO>, + <&scmi_clk IMX95_CLK_32K>; + clock-names = "usb_ctrl_root", "usb_wakeup"; + iommus = <&smmu 0xf>; + phys = <&usbphynop>; + power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>; + fsl,usbmisc = <&usbmisc 0>; + status = "disabled"; + }; + + usbmisc: usbmisc@4c200200 { + compatible = "fsl,imx95-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x0 0x4c200200 0x0 0x200>, + <0x0 0x4c010014 0x0 0x04>; + #index-cells = <1>; + }; + pcie0: pcie@4c300000 { compatible = "fsl,imx95-pcie"; reg = <0 0x4c300000 0 0x10000>,Signature · 1 line
2.34.1
Shawn Guo
AppliedQuoted 5 lines · Xu Yang
Add USB2.0 controller and phy nodes.
Reviewed-by Frank Li <[email protected]>Signed-off-by Xu Yang <[email protected]>
Applied all, thanks!