Usually sysfs is used for GPIO using under Linux.
NXP LTIB Linux BSP does not support sysfs.
Use mmap for GPIO using. See attached file. It is simple program example for the MPC5121 board. Use similar code for the MPC8323 GPIO.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Is it not required to change .dts file for gpio.?
If I change .dts, will it reflect.? then how can I add gpio in MPC832x_rdb.dts file.?