Re: Adding support for external RTC (PCF2127/29)
Bas Mevissen
Hi Andreas,
toggle quoted message
Show quoted text
I’m not sure whether the rtc driver in the Linux 3.14 kernel already supports device tree. You need to check that. For the device tree, you need to add something like: &i2c1 { clock-frequency = <100000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; rtc: pcf2129t@51 { compatible = "nxp,pcf2129", "nxp,pcf2127"; reg = <0x51>; }; }; To the device tree. I don’t know on which bus the RTC is connected on your board, so please check the i2c bus to use. Feel come back here if you don’t get it working. You are aware of the i2c detect utility to scan the i2c bus for devices? It needs the i2c-dev kmod loaded. You need to run i2cdetect as root. Is there a reason why you are using such an old kernel and yocto version? Regards, Bas Mevissen On 23 Mar 2018, at 07:14, Andreas Enbacka <andreas.enbacka@...> wrote:
|
|