Kernel 4.1 ( no cap ) & ADC

Hi I would like to use the 8 Analogue input .

tscadc {
compatible = “ti,ti-tscadc”;
reg = <0x44e0d000 0x1000>;

interrupt-parent = <&intc>;
interrupts = <16>;
ti,hwmods = “adc_tsc”;
status = “okay”;

adc {
ti,adc-channels = <0 1 2 3 4 5 6 7>;
status = “okay”;
};
};

test_helper {
compatible = “bone-iio-helper”;
vsense-name = “AIN0”, “AIN1”, “AIN2”, “AIN3”, “AIN4”, “AIN5”, “AIN6”, “AIN7”;
vsense-scale = <100 100 100 100 100 100 100 100>;
status = “okay”;
};

But with this, I can’t find the /sys/bus/iio folder !

any idea what’s wrong ?

drop the "test_helper"...

Regards,

doesn’t work :frowning:

This overlay works:

https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-ADC-00A0.dts

Regards,

Ok, i got it correctly :

&tscadc {
status = “okay”;

adc {
ti,adc-channels = <0 1 2 3 4 5 6 7>;
};
};

Thx,

No, I’m having issue to understand why I Can’t sample data in continous mode.

I can’t find the folder /sys/bus/iio/iio_sysfs_trigger/add_trigger

I have => /sys/bus/iio# ls

devices drivers drivers_autoprobe drivers_probe uevent

And I checked :
Enable triggered sampling support = y
IIO callback buffer used for push in-kernel interfaces = n

Any idea ?

Thx to this post, I managed to make the continuous mode working.

https://groups.google.com/forum/#!topic/beagleboard/A3ThWPW-NcY

Robert: the correct overlay should be :

tscadc@44e0d000 {
compatible = “ti,am3359-tscadc”;
reg = <0x44e0d000 0x1000>;
interrupt-parent = <0x1>;
interrupts = <0x10>;
ti,hwmods = “adc_tsc”;
status = “okay”;
linux,phandle = <0xc5>;
phandle = <0xc5>;

tsc {
compatible = “ti,am3359-tsc”;
};

adc {
#io-channel-cells = <0x1>;
compatible = “ti,am3359-adc”;
linux,phandle = <0xc6>;
phandle = <0xc6>;
ti,adc-channels = <0 1 2 3 4 5 6 7>;
};
};