Thread (27 messages) 27 messages, 7 authors, 2022-08-16

Re: [PATCH v7 12/13] leds: flash: mt6370: Add MediaTek MT6370 flashlight support

From: Andy Shevchenko <hidden>
Date: 2022-08-05 13:10:30
Also in: dri-devel, linux-devicetree, linux-fbdev, linux-iio, linux-leds, linux-mediatek, linux-pm, linux-usb, lkml

On Fri, Aug 5, 2022 at 9:07 AM ChiaEn Wu [off-list ref] wrote:
From: Alice Chen <redacted>

The MediaTek MT6370 is a highly-integrated smart power management IC,
which includes a single cell Li-Ion/Li-Polymer switching battery
charger, a USB Type-C & Power Delivery (PD) controller, dual Flash
LED current sources, a RGB LED driver, a backlight WLED driver,
a display bias driver and a general LDO for portable devices.

Add a support for the MT6370 Flash LED driver. Flash LED in MT6370
has 2 channels and support torch/strobe mode.
Same comments as per previous LED related patch.

...
+       /*
+        * For the flash to turn on/off, we need to wait HW ramping up/down time
+        * 5ms/500us to prevent the unexpected problem.
+        */
+       if (!priv->fled_strobe_used && curr)
+               usleep_range(5000, 6000);
+       else if (priv->fled_strobe_used && !curr)
+               usleep_range(500, 600);
Now it's much better!

...
+       /*
+        * Always configure as min level when off to
+        * prevent flash current spike
/*
 * You need to check the style
 * of multi-line comments like
 * this one.
 */
+        */
-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help