ADC on sama5d27-som-ek1
Posted: Thu Mar 01, 2018 12:08 pm
I am using SAMA5D27-som-ek1 booted with poky based linux4sam demo. ADC does not show up in dmesg. What do i do?
Thank You
punchingkan
Thank You
punchingkan
A quick review of the Device Tree files for that board indicates that the ADC is not enabled.punchingkan wrote:I am using SAMA5D27-som-ek1 booted with poky based linux4sam demo. ADC does not show up in dmesg. What do i do?
Code: Select all
adc: adc@fc030000 {
vddana-supply = <&vdd_3v3_lp_reg>;
vref-supply = <&vdd_3v3_lp_reg>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
status = "okay";
};
Try creating a name using a fixed regulator node.Evolynx wrote: ↑But in sama5d27-som1-ek there is no regulators, so what should we use in place of "vdd_3v3_lp_reg" ?
Code: Select all
/ {
...
ahb {
apb {
adc: adc@fc030000 {
vddana-supply = <&vddin_3v3>;
vref-supply = <&vddin_3v3>;
...
};
};
};
vddin_3v3: fakeregulator@0 {
compatible = "regulator-fixed";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
};
Code: Select all
vddin_3v3: fakeregulator@0 {
compatible = "regulator-fixed";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
status = "okay";
};