mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Patrick Williams <patrick@stwcx.xyz>,
	Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Cc: Jean Delvare <jdelvare@suse.com>,
	linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: emc1403: Add support for EMC1442
Date: Thu, 2 Nov 2023 07:34:47 -0700	[thread overview]
Message-ID: <c448d7e3-c6b6-49e1-bbf1-331d74954a77@roeck-us.net> (raw)
In-Reply-To: <ZUOjdGPDX06ehrLB@heinlein.vulture-banana.ts.net>

On 11/2/23 06:26, Patrick Williams wrote:
> On Thu, Nov 02, 2023 at 05:08:07PM +0800, Delphine CC Chiu wrote:
> 
> I have a datasheet for this chip with a "Revision 1.0 (10-25-10)" in the
> footer.  Reviewed the change against the datasheet.
> 
>> Add support for EMC1442 which is compatible with EMC1403.
>>
>> Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
>> ---
>> change in v2:
>> Revised emc1403 to emc1402
> 
>> +	case 0x60:
>> +		strscpy(info->type, "emc1442", I2C_NAME_SIZE);
>> +		break;
> 
> Confirmed against datasheet.
> 
> Section 2.2 "Register Set Delta" specifies:
>      - Product ID | 60h
> 
>>   static const unsigned short emc1403_address_list[] = {
>> -	0x18, 0x1c, 0x29, 0x4c, 0x4d, 0x5c, I2C_CLIENT_END
>> +	0x18, 0x1c, 0x29, 0x3c, 0x4c, 0x4d, 0x5c, I2C_CLIENT_END
> 
> Confirmed against datasheet.
> 
> Section 5.1.2 "SMBus Address and RD/WR Bit" has a table indicating that
> a 22k pull-up resistor corresponds to `0011_100?` binary.
> 
>>   	{ "emc1422", emc1402 },
>>   	{ "emc1423", emc1403 },
>>   	{ "emc1424", emc1404 },
>> +	{ "emc1442", emc1402 },
> 
> Datasheet section 2.1 is titled "Functional Delta from EMC1412 to
> EMC1442", with minimal differences.  We map "emc1412" to `emc1402`, so
> mapping "emc1442" to the same should be appropriate.
> 
> 
> Reviewed-by: Patrick Williams <patrick@stwcx.xyz>
> 
Thanks. I'll apply, and fix the description while doing so.

Guenter


  reply	other threads:[~2023-11-02 14:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-02  9:08 Delphine CC Chiu
2023-11-02 13:26 ` Patrick Williams
2023-11-02 14:34   ` Guenter Roeck [this message]
2023-11-02 14:33 ` 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=c448d7e3-c6b6-49e1-bbf1-331d74954a77@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=Delphine_CC_Chiu@wiwynn.com \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patrick@stwcx.xyz \
    /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

all inboxes | Powered by JetHome®