arm64: dts: imx8ulp-evk: enable usb nodes and add ptn5150 nodes
authorXu Yang <xu.yang_2@nxp.com>
Wed, 3 Apr 2024 09:04:34 +0000 (17:04 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 22 Apr 2024 03:49:52 +0000 (11:49 +0800)
Enable 2 USB nodes and add 2 PTN5150 nodes on i.MX8ULP evk board.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8ulp-evk.dts

index 24bb253b938de54d658cba31918a468e8a5ee155..e937e5f8fa8b280ba58e1280b05051809ac3e99b 100644 (file)
        pinctrl-1 = <&pinctrl_lpi2c7>;
        status = "okay";
 
+       ptn5150_1: typec@1d {
+               compatible = "nxp,ptn5150";
+               reg = <0x1d>;
+               int-gpios = <&gpiof 3 IRQ_TYPE_EDGE_FALLING>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_typec1>;
+               status = "disabled";
+       };
+
        pcal6408: gpio@21 {
                compatible = "nxp,pcal9554b";
                reg = <0x21>;
                gpio-controller;
                #gpio-cells = <2>;
        };
+
+       ptn5150_2: typec@3d {
+               compatible = "nxp,ptn5150";
+               reg = <0x3d>;
+               int-gpios = <&gpiof 5 IRQ_TYPE_EDGE_FALLING>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_typec2>;
+               status = "disabled";
+       };
+};
+
+&usbotg1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usb1>;
+       dr_mode = "otg";
+       hnp-disable;
+       srp-disable;
+       adp-disable;
+       over-current-active-low;
+       status = "okay";
+};
+
+&usbphy1 {
+       fsl,tx-d-cal = <110>;
+       status = "okay";
+};
+
+&usbmisc1 {
+       status = "okay";
+};
+
+&usbotg2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usb2>;
+       dr_mode = "otg";
+       hnp-disable;
+       srp-disable;
+       adp-disable;
+       over-current-active-low;
+       status = "okay";
+};
+
+&usbphy2 {
+       fsl,tx-d-cal = <110>;
+       status = "okay";
+};
+
+&usbmisc2 {
+       status = "okay";
 };
 
 &usdhc0 {
                >;
        };
 
+       pinctrl_typec1: typec1grp {
+               fsl,pins = <
+                       MX8ULP_PAD_PTF3__PTF3           0x3
+               >;
+       };
+
+       pinctrl_typec2: typec2grp {
+               fsl,pins = <
+                       MX8ULP_PAD_PTF5__PTF5           0x3
+               >;
+       };
+
+       pinctrl_usb1: usb1grp {
+               fsl,pins = <
+                       MX8ULP_PAD_PTF2__USB0_ID        0x10003
+                       MX8ULP_PAD_PTF4__USB0_OC        0x10003
+               >;
+       };
+
+       pinctrl_usb2: usb2grp {
+               fsl,pins = <
+                       MX8ULP_PAD_PTD23__USB1_ID       0x10003
+                       MX8ULP_PAD_PTF6__USB1_OC        0x10003
+               >;
+       };
+
        pinctrl_usdhc0: usdhc0grp {
                fsl,pins = <
                        MX8ULP_PAD_PTD1__SDHC0_CMD      0x3