Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
40 lines
800 B
Plaintext
40 lines
800 B
Plaintext
This is a introduction for flashlight chip MT6336
|
|
|
|
[Scope]
|
|
- Two channel for two LEDs
|
|
|
|
|
|
[Hardware Interface]
|
|
- I2C
|
|
* For general control
|
|
* Slave address 0x55, 0x56, 0x57, 0x58
|
|
|
|
|
|
[Limit]
|
|
- Channel couple:
|
|
* Flash/Torch enable
|
|
* Flash/Torch LED current source
|
|
* Flash mode watchdog timer
|
|
* Torch mode watchdog timer
|
|
* Flash/Torch timeout
|
|
* Flash mode step up/down timeing (default: 10 us)
|
|
* Flash mode output regulation voltage (default: 5.0 V)
|
|
|
|
- Channel decouple:
|
|
* Flash/Torch mode enable
|
|
* Brightness level
|
|
|
|
- Torch Mode
|
|
* Step current: 12.5 mA
|
|
* Min currnet: 12.5 mA
|
|
* Max current: 200 mA
|
|
|
|
- Flash Mode
|
|
* Step current: 12.5 mA
|
|
* Min currnet: 12.5 mA
|
|
* Max current: 1500 mA
|
|
* Max current for two channel: 2500 mA
|
|
* Min protected timeout: 200 ms
|
|
* Max protected timeout: 800 ms
|
|
|