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

Need device driver for ucd90160 power sequencer chip #653

Closed
spinler opened this issue Oct 7, 2016 · 10 comments
Closed

Need device driver for ucd90160 power sequencer chip #653

spinler opened this issue Oct 7, 2016 · 10 comments

Comments

@spinler
Copy link
Contributor

spinler commented Oct 7, 2016

Witherspoon code will need to monitor it for faults, possibly using interrupts.

@shenki
Copy link
Member

shenki commented Oct 10, 2016

There is drivers/hwmon/pmbus/ucd9000.c that may be applicable

@mine260309
Copy link
Contributor

mine260309 commented Oct 18, 2016

From https://patchwork.kernel.org/patch/9291515/, it looks like current driver drivers/hwmon/pmbus/ucd9000.c can be used to support ucd90160.

So what I plan to do is:

  1. Apply the above patch to current build;
  2. Add this config in witherspoon.cfg;
  3. Add ucd90160 at i2c-11 in device tree;

Then I expect the driver should just work.
@shenki could you kindly help to check what the i2c address does ucd90160 connect to? Is it 0x64 on i2c-11?

@shenki
Copy link
Member

shenki commented Oct 18, 2016

@mine260309 Good discovery.

I do not know what address the part is at. @spinler might be able to help us there.

@shenki
Copy link
Member

shenki commented Oct 18, 2016

@mine260309 The patch looked good to me, so I pulled it into the kernel. See https://gerrit.openbmc-project.xyz/#/c/819/

@spinler
Copy link
Contributor Author

spinler commented Oct 18, 2016

Yea, it is 0x64 on i2c11

@mine260309
Copy link
Contributor

I can confirm that with the above changes (including kernel, device tree, and kernel config), 0x64@i2c-11 does work, and then we have /sys/class/hwmon/hwmon0 linked to ../../devices/platform/ahb/ahb:apb/1e78a000.i2c/i2c-11/i2c-11/11-0064/hwmon/hwmon0.

@shenki currently the changes to kernel and device tree are done by a patch put under meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-kernel/linux/linux-obmc/.
Should this change be in the current patch, or committed to linux-obmc?

If it should be committed to linux-obmc, should this story splitted into two reviews:

  1. One changes in linux-obmc;
  2. The other for changes in openbmc, contains the kernel config, and the bumped linux version?

@shenki
Copy link
Member

shenki commented Oct 21, 2016

The kernel part has landed in dev-4.7, and as of bf18e18 it is part of the openbmc build.

The next step is to submit a change to our device trees to enable this driver.

@mine260309
Copy link
Contributor

@shenki let me know when openbmc's linux version is updated, and then I will update witherspoon.cfg to enable CONFIG_SENSORS_UCD9000

@shenki
Copy link
Member

shenki commented Oct 21, 2016

The change has been posted for review:

https://gerrit.openbmc-project.xyz/#/c/876/

You can pull that change into your branch and submit a change to enable the driver in Witherspoon.

@mine260309
Copy link
Contributor

witherspoon.cfg change has been posted for review:
https://gerrit.openbmc-project.xyz/#/c/881/

williamspatrick pushed a commit to openbmc/meta-openpower that referenced this issue Jun 30, 2017
Resolves openbmc/openbmc#653

Change-Id: I2c696ea0cf10b71ce971b456983ab0acdb5fed3f
Signed-off-by: Lei YU <mine260309@gmail.com>
williamspatrick pushed a commit to openbmc/meta-phosphor that referenced this issue Jun 30, 2017
 - 4.7.8 stable release

 - Enable VOUT on adm1278
   * hwmon: (adm1275) Enable adm1278 VOUT sampling
   * Resolves openbmc/openbmc#600

 - Backport support for UDC901601 pmbus device
  * hwmon: (ucd9000) Add support for UCD90160 Power Supply Sequencer
  * Resolves openbmc/openbmc#653

 - Change strapping so we can use PNOR on EVB
   * arm/aspeed: Enable SPI Master on ast2500evb

 - Firestone and Witherspoon fan controller driver
   * hwmon: Add support for MAX31785 intelligent fan controller

 - Zauis BMC support
   * mach-aspeed: Add Zaius BMC-specific early setup
   * ARM: dts: aspeed: zaius: Add front panel LEDs
   * ARM: dts: aspeed: zaius: Use I2C buses and muxes
   * ARM: dts: aspeed: zaius: Add static GPIO config
   * ARM: dts: aspeed: zaius: Fix pinctrl on MACs

Change-Id: Id6886b7099684063320d6d8d0ceedcca5a31b046
Signed-off-by: Joel Stanley <joel@jms.id.au>
bradbishop pushed a commit to openbmc/meta-ibm that referenced this issue Aug 22, 2018
Resolves openbmc/openbmc#653

Change-Id: I2c696ea0cf10b71ce971b456983ab0acdb5fed3f
Signed-off-by: Lei YU <mine260309@gmail.com>
stefanberger pushed a commit to stefanberger/openbmc that referenced this issue Aug 1, 2023
Gunnar Mills (1):
  Fix websocket csrf checking (openbmc#653)

deepakala-k (1):
  Fix ResourceNotFound on manual guard of Dimm (openbmc#655)

Change-Id: I1b2c3e9752fc0e8ac44d0d3e7d7468fa004d7034
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

3 participants