<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi Andreas,<div><br></div><div>I’m not sure whether the rtc driver in the Linux 3.14 kernel already supports device tree. You need to check that.</div><div><br></div><div>For the device tree, you need to add something like:</div><div><br></div><div><div>&i2c1 {</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>clock-frequency = <100000>;</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>pinctrl-names = "default";</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>pinctrl-0 = <&pinctrl_i2c1>;</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>status = "okay";</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">  </span>rtc: pcf2129t@51 {</div><div><span class="Apple-tab-span" style="white-space:pre">           </span>compatible = "nxp,pcf2129", "nxp,pcf2127";</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>reg = <0x51>;</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>};</div><div>};</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Is there a reason why you are using such an old kernel and yocto version?</div><div><br></div><div>Regards,</div><br><div id="AppleMailSignature">Bas Mevissen</div><div><br>On 23 Mar 2018, at 07:14, Andreas Enbacka <<a href="mailto:andreas.enbacka@gasera.fi">andreas.enbacka@gasera.fi</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal">Hello,<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US">Andreas Enbacka<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US">Gasera Ltd<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p></div></div></blockquote><blockquote type="cite"><div><span>-- </span><br><span>_______________________________________________</span><br><span>meta-freescale mailing list</span><br><span><a href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a></span><br><span><a href="https://lists.yoctoproject.org/listinfo/meta-freescale">https://lists.yoctoproject.org/listinfo/meta-freescale</a></span><br></div></blockquote></div></body></html>