Jump to content

Recommended Posts

Posted

Hi,

 

I just bought an RTC module for my Banana Pi M2, but when scanning for i2c devices I noticed that there are no i2c device nodes in /dev using the latest Armbian version (5.15).

Is there any way to get it working? Modprobing i2c-dev or any other modules I've found didn't help :(

 

Thanks in advance!

Posted

There are no definitions for I2C among arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts device tree. Try adding:

&i2c1 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c1_pins_a>;
	status = "okay";
};

&i2c2 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c2_pins_a>;
	status = "okay";
}; 

... and recompile.

Posted

Thanks for your help!

 

I changed the DTS file, compiled u-boot using your build script and replaced the pre-installed sun6i-a31s-sinovoip-bpi-m2.dtb with the new one (and rebooted). However, there's still no i2c device :( do I also have to compile and replace the whole bootloader?

Posted

Nevermind! The changes got lost because of the compile script :) it reset the git tree of u-boot and my changes got lost. After fixing this, it is now working - thanks!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines