]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: imx93: Add USB support.
authorMathieu Othacehe <othacehe@gnu.org>
Tue, 20 Feb 2024 10:35:02 +0000 (11:35 +0100)
committerFabio Estevam <festevam@denx.de>
Sat, 24 Feb 2024 19:22:00 +0000 (16:22 -0300)
Copied from:
https://lore.kernel.org/linux-devicetree/20240131114324.3722428-6-xu.yang_2@nxp.com/

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
arch/arm/dts/imx93.dtsi

index 90de635481f96166d64bb2308296d2d321b9ec97..d6964714ea0a967cb9f84a91a6ce353dfd20e2aa 100644 (file)
                };
        };
 
+       usbphynop1: usbphynop1 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+               clocks = <&clk IMX93_CLK_USB_PHY_BURUNIN>;
+               clock-names = "main_clk";
+       };
+
+       usbphynop2: usbphynop2 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+               clocks = <&clk IMX93_CLK_USB_PHY_BURUNIN>;
+               clock-names = "main_clk";
+       };
+
        soc@0 {
                compatible = "simple-bus";
                #address-cells = <1>;
                        #power-domain-cells = <1>;
                        status = "disabled";
                };
+
+               usbotg1: usb@4c100000 {
+                       compatible = "fsl,imx93-usb", "fsl,imx7d-usb", "fsl,imx27-usb";
+                       reg = <0x4c100000 0x200>;
+                       interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk IMX93_CLK_USB_CONTROLLER_GATE>,
+                                <&clk IMX93_CLK_HSIO_32K_GATE>;
+                       clock-names = "usb_ctrl_root_clk", "usb_wakeup";
+                       assigned-clocks = <&clk IMX93_CLK_HSIO>;
+                       assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>;
+                       assigned-clock-rates = <133000000>;
+                       phys = <&usbphynop1>;
+                       fsl,usbmisc = <&usbmisc1 0>;
+                       status = "disabled";
+               };
+
+               usbmisc1: usbmisc@4c100200 {
+                       compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc",
+                                    "fsl,imx6q-usbmisc";
+                       reg = <0x4c100200 0x200>;
+                       #index-cells = <1>;
+               };
+
+               usbotg2: usb@4c200000 {
+                       compatible = "fsl,imx93-usb", "fsl,imx7d-usb", "fsl,imx27-usb";
+                       reg = <0x4c200000 0x200>;
+                       interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk IMX93_CLK_USB_CONTROLLER_GATE>,
+                                <&clk IMX93_CLK_HSIO_32K_GATE>;
+                       clock-names = "usb_ctrl_root_clk", "usb_wakeup";
+                       assigned-clocks = <&clk IMX93_CLK_HSIO>;
+                       assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>;
+                       assigned-clock-rates = <133000000>;
+                       phys = <&usbphynop2>;
+                       fsl,usbmisc = <&usbmisc2 0>;
+                       status = "disabled";
+               };
+
+               usbmisc2: usbmisc@4c200200 {
+                       compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc",
+                                    "fsl,imx6q-usbmisc";
+                       reg = <0x4c200200 0x200>;
+                       #index-cells = <1>;
+               };
        };
 };