I am fairly new to Linux development, and I am having some trouble finding answers to the issue I'm having.
I have a PWM-device connected to a Beaglebone (white) running Debian with kernel version 3.8.13. The Beaglebone is connected to a PWM-device, and I am able to control the device from /sys/devices/ocp.3/pwm_test_P8_13.10/. Ultimately I want to control the device using C, and I figure the best way to do this is using ioctl.
This is where my question arises: Don't I need to access the device from /dev, and if so, how would I do that when there's no pwm-entry in /dev at all? I know I can write directly to the files in [...]/pwm_test_P8_13.10/, but I am trying to avoid this if possible.
Is there any other way of approaching this?