/Linux-v5.4/drivers/mfd/ |
D | lp3943.c | 73 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 …]
|
D | Makefile | 148 obj-$(CONFIG_MFD_LP3943) += lp3943.o
|
/Linux-v5.4/drivers/gpio/ |
D | gpio-lp3943.c | 41 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 …]
|
D | Makefile | 72 obj-$(CONFIG_GPIO_LP3943) += gpio-lp3943.o
|
/Linux-v5.4/drivers/pwm/ |
D | pwm-lp3943.c | 24 struct lp3943 *lp3943; member 37 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_request_map() local 52 if (test_and_set_bit(offset, &lp3943->pin_used)) { in lp3943_pwm_request_map() 76 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_free_map() local 81 clear_bit(offset, &lp3943->pin_used); in lp3943_pwm_free_map() 99 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_config() local 124 err = lp3943_write_byte(lp3943, reg_prescale, val); in lp3943_pwm_config() 130 return lp3943_write_byte(lp3943, reg_duty, val); in lp3943_pwm_config() 137 struct lp3943 *lp3943 = lp3943_pwm->lp3943; in lp3943_pwm_set_mode() local 138 const struct lp3943_reg_cfg *mux = lp3943->mux_cfg; in lp3943_pwm_set_mode() [all …]
|
D | Makefile | 24 obj-$(CONFIG_PWM_LP3943) += pwm-lp3943.o
|
D | Kconfig | 243 will be called pwm-lp3943.
|
/Linux-v5.4/Documentation/devicetree/bindings/mfd/ |
D | lp3943.txt | 4 - 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-v5.4/include/linux/mfd/ |
D | lp3943.h | 99 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-v5.4/Documentation/devicetree/bindings/gpio/ |
D | gpio-lp3943.txt | 4 - compatible: "ti,lp3943-gpio" 13 lp3943@60 { 14 compatible = "ti,lp3943"; 18 compatible = "ti,lp3943-gpio";
|
/Linux-v5.4/Documentation/devicetree/bindings/pwm/ |
D | pwm-lp3943.txt | 4 - compatible: "ti,lp3943-pwm" 21 lp3943@60 { 22 compatible = "ti,lp3943"; 30 compatible = "ti,lp3943-pwm";
|