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: 1767
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: 3
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: 1767
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>;
	};
};
Evolynx
Posts: 3
Joined: Tue Oct 16, 2018 10:15 am

Re: ADC on sama5d27-som-ek1

Mon Oct 22, 2018 3:47 pm

Thank you for your response and it is working with a little change :

Code: Select all

	vddin_3v3: fakeregulator@0 {
	        compatible = "regulator-fixed";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                status = "okay";
	};
moreover the example is now available into linux4sam 6.0 :D
dzakas
Posts: 1
Joined: Mon Nov 05, 2018 3:14 pm

Re: ADC on sama5d27-som-ek1

Mon Nov 05, 2018 3:26 pm

Hello,

I'm a newbie here and trying to enable ADC on the same board.
So I edited .dts file:
buildroot-at91/output/build/linux-linux4sam_6.0/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
and tried:
make linux-rebuild
make

So now I have updated at91-sama5d27_som1_ek.dtb file, but sama5d27_som1_ek.itb file is unchanged (old modified date) in here:
buildroot-at91/output/images
And all the changes aren't moved to sd card image.. :/

Sorry, I understand that this is the wrong topic, but what I'm missing and doing wrong?

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 1 guest