cancel
Showing results for 
Search instead for 
Did you mean: 

disable vrefbuf without losing iio

SLetter
Associate III

Processor stm32mp157f, our board design similar to dk2.

In my STM32CubeMX generated device tree (dunfell) I have added the following:

/* USER CODE BEGIN root */
soc {
vrefbuf@50025000 {
status = "disabled";
};
};
/* USER CODE END root */

I have my vref pin connected to vdda (for 3.3 reference voltage).  However, trying to use the libiio interface to read my ADC's libiio is disabled.  If I disconnect my vref pin from vdda and remove the disable of vrefbuf, I have libiio back.

I think there must be something else in my device tree I need to set up to tell the kernel that I am using an external vref to get iio back but I don't quite know what.

ADC used in the kernel, not in m4

1 ACCEPTED SOLUTION

Accepted Solutions
SLetter
Associate III

I think I found my answer.  In &adc{

I added vref-supply = <&vdda>;

And that seems to have fixed it. 

View solution in original post

1 REPLY 1
SLetter
Associate III

I think I found my answer.  In &adc{

I added vref-supply = <&vdda>;

And that seems to have fixed it.