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
ADC on sama5d27-som-ek1
Moderator: nferre
- blue_z
- Location: USA
Post
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
Re: ADC on sama5d27-som-ek1
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?
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
Post
Re: ADC on sama5d27-som-ek1
We can find this node in at91-sama5d2_xplained_common.dtsi :
But in sama5d27-som1-ek there is no regulators, so what should we use in place of "vdd_3v3_lp_reg" ?
Thank you
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";
};
Thank you
- blue_z
- Location: USA
Post
Re: ADC on sama5d27-som-ek1
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>;
};
};
Post
Re: ADC on sama5d27-som-ek1
Thank you for your response and it is working with a little change :
moreover the example is now available into linux4sam 6.0 
Code: Select all
vddin_3v3: fakeregulator@0 {
compatible = "regulator-fixed";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
status = "okay";
};

Post
Re: ADC on sama5d27-som-ek1
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?
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?
Who is online
Users browsing this forum: Baidu [Spider] and 1 guest