* help: OpenBMC phosphor-hwmon-readd support for non-hwmon drivers in linux.
@ 2018-11-09 10:47 A, Maheswari
2018-11-09 15:45 ` Patrick Venture
0 siblings, 1 reply; 2+ messages in thread
From: A, Maheswari @ 2018-11-09 10:47 UTC (permalink / raw)
To: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]
Hi,
As of my understanding, we need to add chip specific driver support in linux hwmon feature to list the sensors in OpenBMC webUI.
1082 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/pxm1310@XX
1083 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/ir38163@XX
1084 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@1c0/mpcie_bmc_temp@XX
1085 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/pxe1610@XX
I have added some PMBUS driver to get temp ,input values of VRs and I used exiting lm75 hwmon driver to get temperature sensors.
Added OpenBMC configuration files also. So, I am able to list some sensors and its exact values in openbmc WebUI.
Now,
I need to add some more temp sensors which is connected to PCA95X chip channel 0,channel 1.
PCA95X driver is already supported in linux/driver/i2c/muxes/. But NOT listed under hwmon features. So This chip attributes will NOT be registered as hwmon sysfs attribute.
If I want to add this temperature sensor in OpenBMC webUI
Should I add this PCA95X driver code under hwmon?. ( with hwmon_register and hwmon_unregister).
Please give your concern , is there any other way to add sensor attribute path to phosphor-hwmon-readd daemon in OBMC.
Thanks
Maheswari A
[-- Attachment #2: Type: text/html, Size: 4388 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: help: OpenBMC phosphor-hwmon-readd support for non-hwmon drivers in linux.
2018-11-09 10:47 help: OpenBMC phosphor-hwmon-readd support for non-hwmon drivers in linux A, Maheswari
@ 2018-11-09 15:45 ` Patrick Venture
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Venture @ 2018-11-09 15:45 UTC (permalink / raw)
To: maheswari.a; +Cc: OpenBMC Maillist
On Fri, Nov 9, 2018 at 2:48 AM A, Maheswari <maheswari.a@atos.net> wrote:
>
> Hi,
>
>
>
> As of my understanding, we need to add chip specific driver support in linux hwmon feature to list the sensors in OpenBMC webUI.
>
>
>
> 1082 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/pxm1310@XX
>
> 1083 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/ir38163@XX
>
> 1084 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@1c0/mpcie_bmc_temp@XX
>
> 1085 root 6388 S phosphor-hwmon-readd -o /ahb/apb/i2c@1e78a000/i2c-bus@140/pxe1610@XX
>
>
>
> I have added some PMBUS driver to get temp ,input values of VRs and I used exiting lm75 hwmon driver to get temperature sensors.
>
> Added OpenBMC configuration files also. So, I am able to list some sensors and its exact values in openbmc WebUI.
>
>
>
> Now,
>
>
>
> I need to add some more temp sensors which is connected to PCA95X chip channel 0,channel 1.
>
> PCA95X driver is already supported in linux/driver/i2c/muxes/. But NOT listed under hwmon features. So This chip attributes will NOT be registered as hwmon sysfs attribute.
>
So if there are temperature sensors beyond an i2c mux, I assume you
need to add the temperature sensors to the device tree as nodes beyond
that mux.
Here's an example of defining nodes behind the mux:
&i2c7 {
status = "okay";
/* 0: PSU4
* PSU1
* PSU3
* PSU2
*/
i2c-switch@70 {
compatible = "nxp,pca9546";
reg = <0x70>;
#address-cells = <1>;
#size-cells = <0>;
i2c_psu4: i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
psu@59 {
compatible = "pmbus";
reg = <0x59>;
};
};
};
};
>
>
> If I want to add this temperature sensor in OpenBMC webUI
>
> Should I add this PCA95X driver code under hwmon?. ( with hwmon_register and hwmon_unregister).
>
> Please give your concern , is there any other way to add sensor attribute path to phosphor-hwmon-readd daemon in OBMC.
>
>
>
> Thanks
>
> Maheswari A
>
>
>
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-09 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-09 10:47 help: OpenBMC phosphor-hwmon-readd support for non-hwmon drivers in linux A, Maheswari
2018-11-09 15:45 ` Patrick Venture
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.