This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: AM335x with external RTC(Ricoh,R2023) doesn't work.

Part Number: AM3352


Tool/software: Linux

Hello.

On the AM335x custom board like GPEVM. Linux is ti-processor-sdk-linux-rt-am335x-evm-04.03.00.05.

I want to work external RTC(RICOH,R2023). So I customize kernel configs:

1. in menuconfig : Device Drivers --> Real Time Clock --> <*>   Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A

    (Because R2023 is seemed to be like R2025.)

2. in devicetree entry, R2023 is connected to i2c0 bus line so I wrote DT entry like below:

&i2c0 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c0_pins>;

        status = "okay";
        clock-frequency = <400000>;

        r2023: r2023@32 {
                status = "okey";
                compatible = "ricoh,rs5c372";
                reg = <0x32>;
        };
};

I checked i2c0 works fine, and I can read 0x32 slave address by using i2cdump command.

When I look at the dmesg log, the device r2023 seems to be probed. (Only omap-rtc is probed.)

Any mistake is there?

I want your advice to resolve this probrem.

dmesg log is share-log-1119.zip

Regards.

Nishihashi