<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=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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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]-->
</head>
<body lang="EN-IN" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As of my understanding, we need to add chip specific driver support in linux hwmon feature to list the sensors in OpenBMC webUI.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1082 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/pxm1310@XX<o:p></o:p></p>
<p class="MsoNormal">1083 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/ir38163@XX<o:p></o:p></p>
<p class="MsoNormal">1084 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@1c0/mpcie_bmc_temp@XX<o:p></o:p></p>
<p class="MsoNormal">1085 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/pxe1610@XX<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have added some PMBUS driver to get temp ,input values of VRs and I used exiting lm75 hwmon driver to get temperature sensors.
<o:p></o:p></p>
<p class="MsoNormal">Added OpenBMC configuration files also. So, I am able to list some sensors and its exact values in openbmc WebUI.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Now, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I need to add some more temp sensors which is connected to PCA95X chip channel 0,channel 1.
<o:p></o:p></p>
<p class="MsoNormal">PCA95X driver is already supported in linux/driver/i2c/muxes/.
<b><span style="color:black">But NOT listed under hwmon features</span></b>. So This chip attributes will NOT be registered as hwmon sysfs attribute.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I want to add this temperature sensor in OpenBMC webUI<o:p></o:p></p>
<p class="MsoNormal">Should I add this PCA95X driver code under hwmon?. ( with hwmon_register and hwmon_unregister).
<o:p></o:p></p>
<p class="MsoNormal">Please give your concern , is there any other way to add sensor attribute path to phosphor-hwmon-readd daemon in OBMC.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks <o:p></o:p></p>
<p class="MsoNormal">Maheswari A<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>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>