All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding support for external RTC (PCF2127/29)
@ 2018-03-23  6:14 Andreas Enbacka
  2018-03-23 20:59 ` Bas Mevissen
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Enbacka @ 2018-03-23  6:14 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 621 bytes --]

Hello,

 

I am working on adding support for an external real-time clock chip (NXP
PCF2127/29) to our custom Kontron SMARC SAMX6i Linux Yocto 1.8 image,
however, I am experiencing issues with getting the device to work. I have
enabled the PCF2127-compatible I2C driver using menuconfig, and rebuilt the
Linux 3.14-based kernel. I assume some modification is required to the
device tree as well? Are there some device tree example available, in case
anyone else has used the same RTC chip previously? Any information would be
greatly appreciated.

 

Best regards,

Andreas Enbacka

Gasera Ltd

 


[-- Attachment #2: Type: text/html, Size: 2946 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Adding support for external RTC (PCF2127/29)
  2018-03-23  6:14 Adding support for external RTC (PCF2127/29) Andreas Enbacka
@ 2018-03-23 20:59 ` Bas Mevissen
  0 siblings, 0 replies; 2+ messages in thread
From: Bas Mevissen @ 2018-03-23 20:59 UTC (permalink / raw)
  To: Andreas Enbacka; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]

Hi Andreas,

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@gasera.fi> wrote:
> 
> Hello,
>  
> I am working on adding support for an external real-time clock chip (NXP PCF2127/29) to our custom Kontron SMARC SAMX6i Linux Yocto 1.8 image, however, I am experiencing issues with getting the device to work. I have enabled the PCF2127-compatible I2C driver using menuconfig, and rebuilt the Linux 3.14-based kernel. I assume some modification is required to the device tree as well? Are there some device tree example available, in case anyone else has used the same RTC chip previously? Any information would be greatly appreciated.
>  
> Best regards,
> Andreas Enbacka
> Gasera Ltd
>  
> -- 
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale

[-- Attachment #2: Type: text/html, Size: 5023 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-23 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-23  6:14 Adding support for external RTC (PCF2127/29) Andreas Enbacka
2018-03-23 20:59 ` Bas Mevissen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.