Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Robert Hancock <hancock@sedsystems.ca>
To: Guenter Roeck <linux@roeck-us.net>,
	Michal Simek <michal.simek@xilinx.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: Linux driver for IRPS5401 - status reg not found
Date: Mon, 30 Mar 2020 13:09:56 -0600	[thread overview]
Message-ID: <3b1750d0-bb1c-0a37-e1a0-d7c25b4bc525@sedsystems.ca> (raw)
In-Reply-To: <299872b6-0fcf-3ef1-5b52-41fceb2dcdc0@roeck-us.net>

On 2020-03-30 12:48 p.m., Guenter Roeck wrote:
> On 3/30/20 8:42 AM, Robert Hancock wrote:
>> On 2020-03-30 9:24 a.m., Guenter Roeck wrote:
>>> On 3/30/20 4:33 AM, Michal Simek wrote:
>>>> Hi Robert and Guenter,
>>>>
>>>> Xilinx boards are using IRPS5401 chips and I have tried to use your driver.
>>>> I have checked that u-boot can detect that devices and read it.
>>>>
>>>> ZynqMP> i2c probe
>>>> Valid chip addresses: 0C 13 14 20 43 44 74
>>>> ZynqMP> i2c md 13 0 10
>>>> 0000: 00 08 00 08 00 08 00 08 00 08 00 08 00 08 00 08    ................
>>>> ZynqMP> i2c md 14 0 10
>>>> 0000: 00 08 00 08 00 08 00 08 00 08 00 08 00 08 00 08    ................
>>>> ZynqMP> i2c md 43 0 10
>>>> 0000: 00 98 ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
>>>> ZynqMP> i2c md 44 0 10
>>>> 0000: 00 8a ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
>>>> ZynqMP>
>>>>
>>>> Here is DT fragment which I use (it is under i2c mux)
>>>>
>>>> 185                         irps5401_43: irps5401@43 {
>>>> 186                                 compatible = "infineon,irps5401";
>>>> 187                                 reg = <0x43>; /* pmbus / i2c 0x13 */
>>>
>>> Does that mean the mux is at 0x13 ?
>>
>> These chips have two I2C addresses with two separate interfaces: the standard PMBus-compatible interface at an address between 0x40-0x4f, which the irps5401 driver supports, and another proprietary interface at an address between 0x10-0x1f. The specific addresses in those ranges is configured by the value of a resistor on one of the pins.
>>
> 
> Ah, sorry, I didn't get that part earlier. Unfortunately, the datasheet
> doesn't seem to include a description of the proprietary interface
> registers/commands, or maybe I am missing it.
> 
> The chip datasheet does talk a lot about various MTP registers.
> Part of that register set is Write_protect_section and
> Read_protect_section. Maybe the PMBus registers are all read
> protected ?

There is a programming guide and register map on the Infineon site under 
"Additional Technical Information" here:

https://www.infineon.com/cms/en/product/power/dc-dc-converters/integrated-pol-voltage-regulators/irps5401m/

-- 
Robert Hancock
Senior Hardware Designer
SED Systems, a division of Calian Ltd.
Email: hancock@sedsystems.ca

  reply	other threads:[~2020-03-30 19:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30 11:33 Linux driver for IRPS5401 - status reg not found Michal Simek
2020-03-30 15:24 ` Guenter Roeck
2020-03-30 15:42   ` Robert Hancock
2020-03-30 18:48     ` Guenter Roeck
2020-03-30 19:09       ` Robert Hancock [this message]
2020-03-30 19:48         ` Guenter Roeck
2020-03-31 12:38           ` Michal Simek
2020-04-09 14:29             ` Michal Simek
2020-04-09 15:16               ` Guenter Roeck
2020-04-09 15:30                 ` Robert Hancock
2020-04-09 21:23                   ` Guenter Roeck
2020-04-10  7:19                     ` Michal Simek
2020-03-30 15:46   ` Michal Simek
2020-03-30 16:52     ` 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=3b1750d0-bb1c-0a37-e1a0-d7c25b4bc525@sedsystems.ca \
    --to=hancock@sedsystems.ca \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=michal.simek@xilinx.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox