Hi Oleksii
At first I downloaed your patches and put it in armbian's build tool, it report errors with fusb302 patch
Then I downloaded your rk3399-nanopc-t4-type-c-modeling.patch only and add two lines
extcon-cables = <1 2 5 6 9 10 12 44>;
typec-altmodes = <0xff01 1 0x001c0000 1>;
based on Helios64 commit on armbian's git (ea5bf1afd56423c069dd3267e9effc2c62d6706c), then I connect type-c monitor to my nanopct4 board and get these dmesg info:
root@nanopct4:~# dmesg |grep dp
[ 5.720996] systemd[1]: Created slice system-modprobe.slice.
[ 5.813967] systemd[1]: Starting Coldplug All udev Devices...
[ 6.497528] systemd[1]: Finished Coldplug All udev Devices.
[ 6.915278] rockchip-drm display-subsystem: bound fec00000.dp (ops cdn_dp_component_ops [rockchipdrm])
[ 6.919926] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work [rockchipdrm]] Not connected. Disabling cdn
[ 7.222288] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work [rockchipdrm]] Not connected. Disabling cdn
root@nanopct4:~# dmesg |grep typec
[ 1.413642] vbus_typec: supplied by vcc5v0_sys
[ 7.797465] typec_displayport port0-partner.0: No compatible pin configuration found:0000 -> 0014, 001c <- 0000
Do you have any ideas on how to fix it?
Thanks a lot!