This message was posted on behalf of Intel Corporation
Thank you for your interest in our Intel products.
Please be advised that you should avoid using any triggered pins that you found. If D4 is working fine when the Yocto Linux image is rebooted, then continue using that port. The reason behind this issue is that some pins have muxing and are being set when there is a reboot.