Ok so finally I am able to make my gpio working,
Not sure but from google searches /sys/class/gpio seems to be getting removed and descriptor based gpiolib is recommended. Check here and here,
Corresponding userspace commands given in libgpiod, so using below commands just to test,
gpioset gpiochip0 17=1
gpioset gpiochip0 17=0
Took reference from overlay of BB-W1-P9.12-00A0.dts and its respective driver w1-gpio.c
Now LED works as expected,
gpioinfo | grep -i P9_23
line 17: “P9_23” “gpio-learn” output active-high [used open-drain]
I’ll continue doing experiments to learn more about this new gpio library.
This answer is just suggestive,I can’t say sysfs gpio userspace is completely removed or stopped working altogether.
P.S.
Doubts remaining,
Its a little strange to me that I have all the nodes for sysfs userspace and still echo 1 > value is not working, maybe I need to see what happened inside gpio-sysfs.c
Thanks.