Home
last modified time | relevance | path

Searched refs:lp3943 (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/mfd/
H A Dlp3943.c73 int lp3943_read_byte(struct lp3943 *lp3943, u8 reg, u8 *read) in lp3943_read_byte() argument
78 ret = regmap_read(lp3943->regmap, reg, &val); in lp3943_read_byte()
87 int lp3943_write_byte(struct lp3943 *lp3943, u8 reg, u8 data) in lp3943_write_byte() argument
89 return regmap_write(lp3943->regmap, reg, data); in lp3943_write_byte()
93 int lp3943_update_bits(struct lp3943 *lp3943, u8 reg, u8 mask, u8 data) in lp3943_update_bits() argument
95 return regmap_update_bits(lp3943->regmap, reg, mask, data); in lp3943_update_bits()
107 struct lp3943 *lp3943; in lp3943_probe() local
110 lp3943 = devm_kzalloc(dev, sizeof(*lp3943), GFP_KERNEL); in lp3943_probe()
111 if (!lp3943) in lp3943_probe()
114 lp3943->regmap = devm_regmap_init_i2c(cl, &lp3943_regmap_config); in lp3943_probe()
[all …]
H A DMakefile152 obj-$(CONFIG_MFD_LP3943) += lp3943.o
/linux/drivers/gpio/
H A Dgpio-lp3943.c41 struct lp3943 *lp3943; member
48 struct lp3943 *lp3943 = lp3943_gpio->lp3943; in lp3943_gpio_request() local
51 if (test_and_set_bit(offset, &lp3943->pin_used)) in lp3943_gpio_request()
60 struct lp3943 *lp3943 = lp3943_gpio->lp3943; in lp3943_gpio_free() local
62 clear_bit(offset, &lp3943->pin_used); in lp3943_gpio_free()
68 struct lp3943 *lp3943 = lp3943_gpio->lp3943; in lp3943_gpio_set_mode() local
69 const struct lp3943_reg_cfg *mux = lp3943->mux_cfg; in lp3943_gpio_set_mode()
71 return lp3943_update_bits(lp3943, mux[offset].reg, mux[offset].mask, in lp3943_gpio_set_mode()
102 err = lp3943_read_byte(lp3943_gpio->lp3943, addr, &read); in lp3943_get_gpio_in_status()
112 struct lp3943 *lp3943 = lp3943_gpio->lp3943; in lp3943_get_gpio_out_status() local
[all …]
H A DMakefile91 obj-$(CONFIG_GPIO_LP3943) += gpio-lp3943.o
/linux/drivers/pwm/
H A Dpwm-lp3943.c23 struct lp3943 *lp3943; member
37 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_request_map() local
48 if (test_and_set_bit(offset, &lp3943->pin_used)) in lp3943_pwm_request_map()
70 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_free_map() local
75 clear_bit(offset, &lp3943->pin_used); in lp3943_pwm_free_map()
91 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_config() local
121 err = lp3943_write_byte(lp3943, reg_prescale, val); in lp3943_pwm_config()
128 return lp3943_write_byte(lp3943, reg_duty, val); in lp3943_pwm_config()
135 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_set_mode() local
136 const struct lp3943_reg_cfg *mux = lp3943->mux_cfg; in lp3943_pwm_set_mode()
[all …]
H A DMakefile33 obj-$(CONFIG_PWM_LP3943) += pwm-lp3943.o
H A DKconfig362 will be called pwm-lp3943.
/linux/Documentation/devicetree/bindings/mfd/
H A Dlp3943.txt4 - compatible: "ti,lp3943"
7 LP3943 consists of two sub-devices, lp3943-gpio and lp3943-pwm.
10 Documentation/devicetree/bindings/gpio/gpio-lp3943.txt
13 Documentation/devicetree/bindings/pwm/pwm-lp3943.txt
17 lp3943@60 {
18 compatible = "ti,lp3943";
22 compatible = "ti,lp3943-gpio";
28 compatible = "ti,lp3943-pwm";
/linux/include/linux/mfd/
H A Dlp3943.h99 struct lp3943 { struct
107 int lp3943_read_byte(struct lp3943 *lp3943, u8 reg, u8 *read); argument
108 int lp3943_write_byte(struct lp3943 *lp3943, u8 reg, u8 data);
109 int lp3943_update_bits(struct lp3943 *lp3943, u8 reg, u8 mask, u8 data);
/linux/Documentation/devicetree/bindings/gpio/
H A Dgpio-lp3943.txt4 - compatible: "ti,lp3943-gpio"
13 lp3943@60 {
14 compatible = "ti,lp3943";
18 compatible = "ti,lp3943-gpio";
/linux/Documentation/devicetree/bindings/pwm/
H A Dpwm-lp3943.txt4 - compatible: "ti,lp3943-pwm"
21 lp3943@60 {
22 compatible = "ti,lp3943";
30 compatible = "ti,lp3943-pwm";