/sys/class/typec/port0/power_roleを書き換えればいけそう
https://superuser.com/questions/1189839/usb-type-c-how-is-the-direction-of-power-delivery-controlled