leds: aw200xx: Support HWEN hardware control
authorDmitry Rokosov <ddrokosov@salutedevices.com>
Sat, 25 Nov 2023 20:05:10 +0000 (23:05 +0300)
committerLee Jones <lee@kernel.org>
Wed, 13 Dec 2023 11:28:54 +0000 (11:28 +0000)
commitd882762f7950c3dfd56c786a35d1518397773947
treed120c8598b669ca972ef7f71eed52185aef7a16b
parentadfd4621b78d0c02da91335da2b9ad847cb7b39e
leds: aw200xx: Support HWEN hardware control

HWEN is hardware control, which is used for enable/disable aw200xx chip.
It's high active, internally pulled down to GND.

After HWEN pin set high the chip begins to load the OTP information,
which takes 200us to complete. About 200us wait time is needed for
internal oscillator startup and display SRAM initialization. After
display SRAM initialization, the registers in page 1 to page 5 can be
configured via i2c interface.

Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
Link: https://lore.kernel.org/r/20231125200519.1750-3-ddrokosov@salutedevices.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-aw200xx.c