Hi guys
I've been trying to hook up a LIS2DH to my BBB running ARAGO 3.12.
I finally managed to install the driver that comes from ST and have my device tree all sorted out for the driver to be called by Linux in insmod.
Everything works now and I see the sysfs parameters being populated properly.
My issue is I cannot seem to figure out where the XYZ data come out to. The function lis2dh_acc_get_acceleration is called by _acc_input_work function which I assume is interrupt based. However, when I try to write to /sys/devices/ocp.2/.../int1_conf the system hangs forever and I can't even CTRL+C out of it.
This is my first time working with accelerometers and I am trying hard to learn as much as I can.
Any help on this is greatly appreciated.
here is the driver I am using:
https://github.com/STMemsLinuxDrivers/lis2dh-input
github.com/.../lis2dh-input
Thanks!