Jump to content

i2c support on Banana Pi M2 (A31s)


D.Cent

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Important Information

Terms of Use - Privacy Policy - Guidelines