Hi shivani
I have solved it here. Please pay attention to the 8-bit I2C Address 0x3A of the ptn5150 address on my side. You can configure it according to your own.
ptn5150: tcpc@1d {
compatible = "nxp,ptn5150";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_typec>;
reg = <0x1d>;
int-gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
usb_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
power-role = "dual";
data-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_VAR(5000, 20000, 3000)>;
op-sink-microwatt = <15000000>;
self-powered;
};
};
&usb_dwc3_0 {
dr_mode = "otg";
hnp-disable;
srp-disable;
adp-disable;
usb-role-switch;
status = "okay";
};