All of lore.kernel.org
 help / color / mirror / Atom feed
From: sathyanarayanan kuppuswamy <sathyanarayanan.kuppuswamy@linux.intel.com>
To: Daniel Baluta <daniel.baluta@intel.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
	Peter Meerwald <pmeerw@pmeerw.net>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Subject: Re: [PATCH v1 1/1] iio: ltr301: Add support for ltr301
Date: Wed, 01 Apr 2015 10:42:59 -0700	[thread overview]
Message-ID: <551C2E23.2080400@linux.intel.com> (raw)
In-Reply-To: <CAEnQRZBUS6LDLJUMWafVV4hs9kwovkSqD1Tg9XJA-ZkG3zuCyw@mail.gmail.com>

Hi Daniel,

On 04/01/2015 08:34 AM, Daniel Baluta wrote:
> On Wed, Apr 1, 2015 at 7:06 AM, Kuppuswamy Sathyanarayanan
> <sathyanarayanan.kuppuswamy@linux.intel.com> wrote:
>> Added support for Liteon 301 Ambient light sensor. Since
>> LTR301 and LTR501 are register compatible(and even have same
>> part id), LTR501 driver has been extended to support both
>> devices. LTR501 is similar to LTR301 in ALS sensing, But the
>> only difference is, LTR501 also supports proximity sensing.
>>
>> LTR501 - ALS + Proximity combo
>> LTR301 - ALS sensor.
>>
>> Following are the data sheets for both devices:
>>
>> http://optoelectronics.liteon.com/upload/download/DS86-2013-0004/S_110_LTR-303ALS-01_DS_V1.pdf
>>
>> http://optoelectronics.liteon.com/upload/download/DS86-2012-0006/S_110_LTR-501ALS-01_PrelimDS_ver1[1].pdf
> One more thing. The datasheet you posted is for LTR303 not LTR301.
> Which chip are you adding support for?
No. I posted link for the wrong data sheet. I will fix it once I find a 
proper link.

But LTR301 is register compatible with LTR501. I have verified it once 
again.
>
> If indeed the datasheet link is correct, then although LTR303 and
> LTR501 are register compatbile at
> a first glance I spotted at least one difference.
>
> The ALS Control register is not the same.
>
> (e.g ALS Gain uses 1 bit for LTR501 and 3 bits for LTR303).
>
> thanks,
> Daniel.
>

-- 
Sathyanarayanan Kuppuswamy
Android kernel developer

  reply	other threads:[~2015-04-01 17:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01  4:06 [PATCH v1 0/1] LTR301 ALS support Kuppuswamy Sathyanarayanan
2015-04-01  4:06 ` [PATCH v1 1/1] iio: ltr301: Add support for ltr301 Kuppuswamy Sathyanarayanan
2015-04-01 15:10   ` Daniel Baluta
2015-04-01 17:39     ` sathyanarayanan kuppuswamy
2015-04-01 15:34   ` Daniel Baluta
2015-04-01 17:42     ` sathyanarayanan kuppuswamy [this message]
2015-04-01 17:54       ` Daniel Baluta
2015-04-01 17:54         ` Daniel Baluta

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=551C2E23.2080400@linux.intel.com \
    --to=sathyanarayanan.kuppuswamy@linux.intel.com \
    --cc=daniel.baluta@intel.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    --cc=srinivas.pandruvada@linux.intel.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 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.