Re: Reading ADC that comes from a multiplexer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter,

On Wed, Sep 22, 2021 at 10:41 AM Fabio Estevam <festevam@xxxxxxxxx> wrote:

> but still the parent channel cannot be found.
>
> So I don't have the DT properly describing the ADC to the mux relationship yet.

It works fine now :-)

The trick was to change it like this:

-               stmpe_adc {
+               adc0: stmpe_adc {
                        compatible = "st,stmpe-adc";
                        /* forbid to use ADC channels 3-0 (touch) */
                        st,norequest-mask = <0x0F>;
+                       #io-channel-cells = <1>;
                };
        };

Thanks a lot!



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux