aiodev: imx7_adc driver

Christian Eggers ceggers at arri.de
Wed Aug 23 08:05:29 PDT 2023


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 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);
> ...
> }
> 
> What type of regulator do you use? I have declared a
> fixed regulator in my device tree:
> 
> 	reg_adc_vref_3v3: regulator-3v3-adc {
> 		compatible = "regulator-fixed";
> 		regulator-name = "vref-3v3";
> 		regulator-min-microvolt = <3300000>;
> 		regulator-max-microvolt = <3300000>;
> 	};
> 
> 	&adc2 {
> 		pinctrl-names = "default";
> 		pinctrl-0 = <&pinctrl_adc2>;
> 		vref-supply = <&reg_adc_vref_3v3>;
> 	...
> 	};
> 
> But it looks like the fixed regulator driver in Barebox
> doesn't support reading the voltage (the Linux driver
> reports the value from "regulator-min-microvolt")?
> 
> regards,
> Christian
> 
> 







More information about the barebox mailing list