Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C sensor LM75 does not show on D-Bus and WebUI #3836

Closed
LukeKungCJ opened this issue Dec 2, 2021 · 1 comment
Closed

I2C sensor LM75 does not show on D-Bus and WebUI #3836

LukeKungCJ opened this issue Dec 2, 2021 · 1 comment

Comments

@LukeKungCJ
Copy link

LukeKungCJ commented Dec 2, 2021

Hi all,

I'm trying to add an LM75 temp sensor based on Romulus and run on the AST2500 EVB board, but I met some issues as follows:

1. The default sensor w83773g does not show on the D-Bus and WebUI.
Based on my understanding (may be wrong), even the w83773g does not physically exist, it should still be created on D-Bus and WebUI but it's not.
BTW, I have not modified any code and recipe, but only modified the kernel DTS from NCSI to dedicate LAN.
Finally, I tried QEMU but it shows the same issue.

2. I try to add an LM75 sensor which is physically existing on the EVB board but it does not show on the D-Bus and WebUI.
This time I modify the I2C part of DTS and successfully create an LM75 sensor and could read the value by the following path:

/sys/bus/i2c/drivers/lm75/7-004d/hwmon/hwmon1/temp1_input

And could also see the following path has been created:

/sys/firmware/devicetree/base/ahb/apb/bus@1e78a000/i2c-bus@1c0/lm75@4d

And the boot-up message shows as follows:

[ 2.246388] w83773g 12-004c: error writing config rate register
[ 2.256768] lm75 7-004d: hwmon1: sensor 'lm75'

I think the driver part is ok, but when I run busctl | grep Hwmon, there is still only ADC and TACH shows on the D-Bus and without LM75:
image

Also, the phosphor-hwmon-readd only monitor ADC and TACH without LM75:
image

For file phosphor-hwmon_%.bbappend, I only add one lm75 line.

   CHIPS = " \
   bus@1e78a000/i2c-bus@440/w83773g@4c \
   bus@1e78a000/i2c-bus@1c0/lm75@4d \
   pwm-tacho-controller@1e786000 \
   "

Any help would be really appreciated.

@yty2023
Copy link

yty2023 commented Apr 3, 2023

@LukeKungCJ Hi, i'm a rookie for openbmc, i met the same problem on qemu, may i know how you solve this problem?

stefanberger pushed a commit to stefanberger/openbmc that referenced this issue Aug 1, 2023
ArchanaKakani (1):
  Association between fabric adapter and slots (openbmc#416)

Change-Id: I1930bbd19d7346486b03623b611c3b32ed45891c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants