+ regmap_write(led->regmap, RT5033_REG_FLED_FUNCTION1, val);
+ } else {
+ regmap_update_bits(led->regmap, RT5033_REG_FLED_FUNCTION1,
+ RT5033_FLED_FUNC1_MASK, RT5033_FLED_PINCTRL |
+ rt5033_fled_used(led, fled_id));
+ regmap_update_bits(led->regmap, RT5033_REG_FLED_CTRL1,
+ RT5033_FLED_CTRL1_MASK,
+ (brightness - 1) << 4);
+ regmap_update_bits(led->regmap, RT5033_REG_FLED_FUNCTION2,
+ RT5033_FLED_FUNC2_MASK, RT5033_FLED_ENFLED);
+ }
How are you distinguishing between setting brightness for iout_joint
case and for individual LEDs? Have you tested this use case?
Even if you don't have a board with two separate LEDs,
you should be able to test two LED class devices with a single
connected LED.
Thanks, I missed a iout_joint case :(
I have tested a board with integrated single LED,
It looks fine and all feature works well even if it has limitation.