On Wed, Apr 1, 2015 at 7:06 AM, Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx> 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? 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. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html