All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] dual output buck controller pmbus based
Date: Fri, 10 Feb 2012 07:23:42 +0000	[thread overview]
Message-ID: <20120210072342.GA31852@ericsson.com> (raw)
In-Reply-To: <CANSBHnO8pQ_QVMpuS8JCoKfSvQ9s1_KDv-HybXD_TpM2jnPUUA@mail.gmail.com>

On Fri, Feb 10, 2012 at 01:20:25AM -0500, Vivek Bardia wrote:
> Hello,
> 
> I want to know whether does the current pmbus driver support dual output buck
> controller based PMIC?
> 
> Basically for this particular PMIC: http://goo.gl/BFwcu
> 
This is the TI TPS40422. I have not had a chance to test it, so I have no idea
if it will work.

> How do I test the driver for it?
> 
If you know the bus and I2C address, instantiate it with 

echo pmbus <address> > /sys/class/i2c-adapter/i2c-<bus>/new_device

You have to execute the command as root.

Example: Instantiate pmbus device on bus 0, address 0x20:

echo pmbus 0x20 > /sys/class/i2c-adapter/i2c-0/new_device

then execute the "sensors" command and see if you get some output, and if it makes sense.

Looking into the datasheet, the interpretation of the PMBus "page" command is a bit odd.
You might get four sets of registers. If so, the first set would reflect the first channel,
the second set the second channel, the third set is invalid, and the fourth set would reflect 
both channels. But that is just a guess.

Would be great if you can post the results to the list. If it doesn't work, turns out the
evaluation module was just $49, so I ordered one. Which means you'll get support one way
or another.

Guenter


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  reply	other threads:[~2012-02-10  7:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10  6:32 [lm-sensors] dual output buck controller pmbus based Vivek Bardia
2012-02-10  7:23 ` Guenter Roeck [this message]
2012-02-22  4:15 ` Guenter Roeck
2012-03-01  4:55 ` Vivek Bardia
2012-03-01  5:28 ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120210072342.GA31852@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.