I am using imx6q-apalis-ixora.dtb file , where LED4 and LED5 configured by default low. So while power on it will be off. If i change the .dtb files “led{” structure i can able to see the difference.
But for some reason my sysfs no not allowing me to change the LED4 and LED5 value from low to high.
Because the led driver did already reserve the gpio your effort to export one of the gpio’s used for the LEDs fails.
If you want the pins to be exportable as gpios you would have to change the device tree so that the pins are muxed to be gpios but not used by any kernel driver.