well, I struggled a little bit with these i2c dts files, too, but it didn't work...
so, I created a dts file with software i2c (i2c-gpio) for my hardware rtc i2c module:
// Overlay for i2c_gpio bitbanging host bus.
/dts-v1/;
/plugin/;
/ {
compatible = "amlogic,meson-gxbb";
fragment@0 {
target-path = "/";
__overlay__ {
i2c_gpio: i2c@2 {
compatible = "i2c-gpio";
gpios = <&gpio 82 0 /* sda */
&gpio 83 0 /* scl */
>;
i2c-gpio,delay-us = <2>; /* ~100 kHz */
#address-cells = <1>;
#size-cells = <0>;
ds3231: rtc@68 {
status = "okay";
compatible = "ds3231";
reg = <0x68>;
};
};
};
};
};
according to gpioinfo and the banana pi m5 wiki, the CON1-P03 is the I2C_M2_SDA and CON1-P05 is the I2C_M2_SCL.