<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:新細明體;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@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;}
@font-face
{font-family:"\@新細明體";
panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:908879347;
mso-list-template-ids:-813154244;}
@list l1
{mso-list-id:1681740169;
mso-list-template-ids:1472338644;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Thanks Konstantin !<o:p></o:p></p>
<p class="MsoNormal">Bye the way , <o:p></o:p></p>
<p class="MsoNormal">If I would like to access ast_2500 peripheral such as LPC , I2C in uboot,
<o:p></o:p></p>
<p class="MsoNormal">Are there any specific file have to modify as well as dts for kernel ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Konstantin Klubnichkin <kitsok@yandex-team.ru> <br>
<b>Sent:</b> Tuesday, January 29, 2019 4:29 PM<br>
<b>To:</b> Brenden Lai <Brenden_Lai@jabil.com>; openbmc@lists.ozlabs.org<br>
<b>Subject:</b> Re: dts file questions<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello, Brenden!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">29.01.2019, 07:08, "Brenden Lai" <<a href="mailto:brenden_lai@jabil.com">brenden_lai@jabil.com</a>>:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Hi all ,<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> I have couple dts questions about porting OpenBMC into a new machine .<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.75in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Although there are many dts file located in <a href="https://github.com/openbmc/linux/blob/dev-4.13/arch/arm/boot/dts/">
https://github.com/openbmc/linux/blob/dev-4.13/arch/arm/boot/dts/</a> ,<o:p></o:p></p>
<p style="margin-left:.75in">But , how does bitbake know which one should be applied .<o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><br>
You describe the needed device tree in the machine config file:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">KERNEL_DEVICETREE = "${KMACHINE}-bmc-yandex-${MACHINE}.dtb"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.75in;text-indent:-.25in;mso-list:l1 level1 lfo2">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>if there are no suitable dts file in github , it should be made by myself , where should I put my dts file in working space source tree?<o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<div>
<p class="MsoNormal">To do so you can create an append recipe to linux-aspeed, and copy the needed file to the kernel source tree:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">========================================================================<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">$cat linux-aspeed_%.bbappend<br>
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"<br>
<br>
SRC_URI += "<a href="file://aspeed-bmc-yandex-my70.dts">file://aspeed-bmc-yandex-my70.dts</a>"<br>
SRC_URI += "<a href="file://my70.cfg">file://my70.cfg</a>"<br>
<br>
do_patch_append() {<br>
install -m 0644 ${WORKDIR}/aspeed-bmc-yandex-my70.dts ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/aspeed-bmc-yandex-my70.dts<br>
}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">========================================================================<o:p></o:p></p>
</div>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
<p><span style="font-size:10.0pt;color:black">Brenden Lai<br>
SR. BMC Design Engineer</span><br>
<span style="font-size:10.0pt;color:#222222">E&I, Jabil Design Services</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Konstantin Klubnichkin,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">lead firmware engineer,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">server hardware R&D group,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Yandex Moscow office.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">tel: +7-903-510-33-33<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>