Tool/software:
Hello,
I'm trying to add the generic-adc-thermal driver for reading a thermistor off the tscadc driver. That way the linux kernel automatically handles the ADC count to mC reading through the lookup table in the device tree. The thermistor is tied to tscadc0 input 6. Here is the device tree portion being added.
board_thermistor: thermal-sensor {
compatible = "generic-adc-thermal";
#thermal-sensor-cells = <0>;
io-channels = <&tscadc0 6>;
io-channel-names = "sensor-channel";
temperature-lookup-table = < (-55000) 4093
(-54000) 4093
...
150000 465>;
};
The error I'm getting
platform thermal-sensor: deferred probe pending: generic-adc-thermal: IIO channel not found
Is there something I'm doing wrong? Is there an example of how to do this with the tscadc driver?
Thanks,
Jason