Hi guypld
Maybe you should test the pin to know if your board is working fine, or is just a problem of the code of even something else. I’d try it by using reading an analog input in Linux. Take a look at this link in the section analog input http://www.malinov.com/Home/sergey-s-blog. I think In the example you were using A0. So you would have to export pin 37 and select vin0 to use the analog input. The commands would look like this:
echo –n 37 > /sys/class/gpio/export
echo –n out > /sys/class/gpio/gpio37/direction
echo –n 0 > /sys/class/gpio/gpio37/value
Once you have set the mux you can read the analog pin.
cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
Remember if you connect 5V to the Pin you are using you should get 4095. Then if you are still getting 0 for every input, I recommend you to try with another pin.
Regards
JPMontero_Intel