I want to control LED5 (GPIO2_IO01 for green, GPIO2_IO02 for red) of Ixora carrier board with Apalis IMX6. I try with the terminal with the following command :
But this doesn’t work. If I change the pin description to GPIO with the “Toradex GPIO Config”, it works but this settings is discarded on next boot. How can I reconfigure theses pins ?
You will have to take care of the pin muxing as well as explained here. For Ixora you may just use the following device tree. From within U-Boot this can easily be achieved by changing the fdt_board environment variable.