backlight: lp855x: Add enable regulator
authorBrian Norris <briannorris@chromium.org>
Fri, 10 Jun 2016 19:39:57 +0000 (12:39 -0700)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Jun 2016 09:06:21 +0000 (10:06 +0100)
commit602553073892c18f723f8aa090153a23b1312a16
treef6b898ed187ef7cf1134e46bf914f49732a783cc
parentaf8c34ce6ae32addda3788d54a7e340cad22516b
backlight: lp855x: Add enable regulator

The LP8556 datasheet describes an EN/VDDIO input, which serves "both as
a chip enable and as a power supply reference for PWM, SDA, and SCL
inputs." The LP8556 that I'm testing doesn't respond properly if I try
to talk I2C to it too quickly after enabling VDDIO, and the LP8555
datasheet mentions a t_RESPONSE delay of up to 1 millisecond.

Support this EN/VDDIO by adding a regulator property to the binding;
enabling this regulator at probe time; and sleeping for 1 to 2ms, if the
EN/VDDIO regulator was provided.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Milo Kim <milo.kim@ti.com>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/leds/backlight/lp855x.txt
drivers/video/backlight/lp855x_bl.c