ADC on sama5d27-som-ek1

Moderator: nferre

punchingkan
Posts: 12
Joined: Thu Mar 01, 2018 11:59 am

ADC on sama5d27-som-ek1

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
blue_z
Location: USA
Posts: 1743
Joined: Thu Apr 19, 2007 10:15 pm

Re: ADC on sama5d27-som-ek1

Thu Mar 01, 2018 9:38 pm

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?
A quick review of the Device Tree files for that board indicates that the ADC is not enabled.
You would have to update your copy of at91-sama5d27_som1_ek.dts, and compile a new dtb.
You could use the nodes in at91-sama5d2_xplained_common.dtsi as an example.

Regards
Evolynx
Posts: 1
Joined: Tue Oct 16, 2018 10:15 am

Re: ADC on sama5d27-som-ek1

Tue Oct 16, 2018 10:23 am

We can find this node in at91-sama5d2_xplained_common.dtsi :

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";
};
But in sama5d27-som1-ek there is no regulators, so what should we use in place of "vdd_3v3_lp_reg" ?

Thank you
blue_z
Location: USA
Posts: 1743
Joined: Thu Apr 19, 2007 10:15 pm

Re: ADC on sama5d27-som-ek1

Fri Oct 19, 2018 1:22 am

Evolynx wrote: But in sama5d27-som1-ek there is no regulators, so what should we use in place of "vdd_3v3_lp_reg" ?
Try creating a name using a fixed regulator node.

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>;
	};
};

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 1 guest