Re: aiodev: imx7_adc driver

2023-08-23 Thread Christian Eggers
Hello Ahmad, I forgot to mention that I still use barebox-2021.10. In this version, regulator_get_voltage() returned an error code. After applying the missing commit, I works find. Maybe I could add the vf610_adc driver (works for i.MX6 series) to the upstream barebox later ... regards, Christi

Re: aiodev: imx7_adc driver

2023-08-23 Thread Ahmad Fatoum
Hello Christian, On 23.08.23 18:30, Christian Eggers wrote: > Hello Ahmad, > > I forgot to mention that I still use barebox-2021.10. In this version, > regulator_get_voltage() returned an error code. After applying the missing > commit, I works find. I see. I need not tell you though that latest

Re: aiodev: imx7_adc driver

2023-08-23 Thread Ahmad Fatoum
Hello Christian, On 23.08.23 17:05, Christian Eggers wrote: > Seems that I found the answer myself: > > https://git.pengutronix.de/cgit/barebox/commit/?id=d353ffd5c6e6d4cee6eee72726125c965a0814f0 (y). Did you run into any problems at runtime? Cheers, Ahmad > > regards, > Christian > > On We

Re: aiodev: imx7_adc driver

2023-08-23 Thread Christian Eggers
Seems that I found the answer myself: https://git.pengutronix.de/cgit/barebox/commit/?id=d353ffd5c6e6d4cee6eee72726125c965a0814f0 regards, Christian On Wednesday, 23 August 2023, 16:53:04 CEST, Christian Eggers wrote: > Hi Ahmad, > > I am currently porting the vf610_adc driver from Linux to Bar

aiodev: imx7_adc driver

2023-08-23 Thread Christian Eggers
Hi Ahmad, I am currently porting the vf610_adc driver from Linux to Barebox. Must thing can be done similar as for the imx7_adc driver. I have one question about the reference voltage: static int imx7d_adc_enable(struct imx7d_adc *info) { ... ret = regulator_get_voltage(info->vref); ...