Re: Control Register device tree binding request for Opt3001

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 17, 2021 at 9:20 PM Ekin Böke <ekin_boke@xxxxxxxxxxx> wrote:
>
> Hi,
>
> We are using Opt3001 for a day light control system and according to the data sheet it has 2 conversion time modes
> that are 100 ms(CT=0) and 800 ms(CT=1) . Configuration register field CT controls the conversion time and we want to set the CT parameter at the initialization to 0 at all times. We could do it by using the in_illuminance_integration_time sysfs node at the runtime.
>
> Should we add a parameter to the device tree bindings or is there another way to set the CT parameter at the initialization?
>

Yes, it would make sense to have that in the device tree if it isn't
going to be switched on runtime. However if it is supposed to be
configured at runtime you could have a) devicetree + sysfs
configuration b) or just sysfs if timing isn't important.

Although devicetree configuration if *optional* probably wouldn't
hurt. I'm sure Jonathan will have a comment either way :)

>
> Best Regards
>
> Ekin
>
>
>

Just a slight pedantic note that some people won't respond to some
emails on kernel mailing lists due to the following message (corporate
legal departments and such).

- Matt

> Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux