Lines Matching +full:pwm +full:- +full:leds
1 // SPDX-License-Identifier: GPL-2.0-only
11 * It can be used for a GPIO expander and PWM generators.
16 * LP3943 MFD ---- GPIO expander leds-gpio eg) HW enable pin
18 * --- PWM generator leds-pwm eg) PWM input
20 * Internal two PWM channels are used for LED dimming effect.
23 * LEDs can be controlled with legacy leds-gpio(static brightness) or
24 * leds-pwm drivers(dynamic brightness control).
25 * Alternatively, it can be used for generic GPIO and PWM controller.
27 * A PWM is input pin of a backlight device.
64 .name = "lp3943-pwm",
65 .of_compatible = "ti,lp3943-pwm",
68 .name = "lp3943-gpio",
69 .of_compatible = "ti,lp3943-gpio",
78 ret = regmap_read(lp3943->regmap, reg, &val); in lp3943_read_byte()
89 return regmap_write(lp3943->regmap, reg, data); in lp3943_write_byte()
95 return regmap_update_bits(lp3943->regmap, reg, mask, data); in lp3943_update_bits()
108 struct device *dev = &cl->dev; in lp3943_probe()
112 return -ENOMEM; in lp3943_probe()
114 lp3943->regmap = devm_regmap_init_i2c(cl, &lp3943_regmap_config); in lp3943_probe()
115 if (IS_ERR(lp3943->regmap)) in lp3943_probe()
116 return PTR_ERR(lp3943->regmap); in lp3943_probe()
118 lp3943->pdata = dev_get_platdata(dev); in lp3943_probe()
119 lp3943->dev = dev; in lp3943_probe()
120 lp3943->mux_cfg = lp3943_mux_cfg; in lp3943_probe()
123 return devm_mfd_add_devices(dev, -1, lp3943_devs, in lp3943_probe()