Skip to main content
Visitor II
April 1, 2024
Solved

disable vrefbuf without losing iio

  • April 1, 2024
  • 1 reply
  • 1312 views

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

    This topic has been closed for replies.
    Best answer by SLetter

    I think I found my answer.  In &adc{

    I added vref-supply = <&vdda>;

    And that seems to have fixed it. 

    1 reply

    SLetterAuthorAnswer
    Visitor II
    April 1, 2024

    I think I found my answer.  In &adc{

    I added vref-supply = <&vdda>;

    And that seems to have fixed it.