Hi, Jon,
I don't know why you want to enable I2C_MPC .
I checked our linux bsp source code, the driver of your rtc is rtc-ds1307.c, which is in drivers/rtc. below is what I found.
---
./rtc-ds1307.c:259: { "mcp7940x", mcp794xx },
./rtc-ds1307.c:320: .compatible = "microchip,mcp7940x",
---
so you need these steps to add it to i.MX6SX:
1. try the configuration in device tree
(1) I2C3 IOMUX
confim your I2C3 pins IOMUX are correct in device tree.
(2) Adding i2c device node
&i2c3 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";
rtc: rtc@68 {
compatible = "microchip,mcp7940x";
reg = <0x68>;
};
};
2. In linux kernel
you only select RTC_DRV_DS1307, see the Kconfig file in the path drivers/rtc
After compiling kernel, checking if rtc-ds1307.c is compiled.
3. compiling kernel and program it to Flash on board.
4. boot your board, and check if booting log can show you rtc messages.
Hope above information is helpful for you.
Have a nice day!
B.R,
Weidong