/linux-4.1.27/drivers/mfd/ |
D | tps65910.c | 229 static int tps65910_irq_init(struct tps65910 *tps65910, int irq, in tps65910_irq_init() argument 236 dev_warn(tps65910->dev, "No interrupt support, no core IRQ\n"); in tps65910_irq_init() 241 dev_warn(tps65910->dev, "No interrupt support, no pdata\n"); in tps65910_irq_init() 245 switch (tps65910_chip_id(tps65910)) { in tps65910_irq_init() 254 tps65910->chip_irq = irq; in tps65910_irq_init() 255 ret = regmap_add_irq_chip(tps65910->regmap, tps65910->chip_irq, in tps65910_irq_init() 257 tps6591x_irqs_chip, &tps65910->irq_data); in tps65910_irq_init() 259 dev_warn(tps65910->dev, "Failed to add irq_chip %d\n", ret); in tps65910_irq_init() 260 tps65910->chip_irq = 0; in tps65910_irq_init() 265 static int tps65910_irq_exit(struct tps65910 *tps65910) in tps65910_irq_exit() argument [all …]
|
D | tps65911-comparator.c | 59 static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) in comp_threshold_set() argument 81 ret = tps65910->write(tps65910, tps_comp.reg, 1, &val); in comp_threshold_set() 86 static int comp_threshold_get(struct tps65910 *tps65910, int id) in comp_threshold_get() argument 95 ret = tps65910->read(tps65910, tps_comp.reg, 1, &val); in comp_threshold_get() 106 struct tps65910 *tps65910 = dev_get_drvdata(dev->parent); in comp_threshold_show() local 117 uVolt = comp_threshold_get(tps65910, id); in comp_threshold_show() 127 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65911_comparator_probe() local 128 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65911_comparator_probe() 131 ret = comp_threshold_set(tps65910, COMP1, pdata->vmbch_threshold); in tps65911_comparator_probe() 137 ret = comp_threshold_set(tps65910, COMP2, pdata->vmbch2_threshold); in tps65911_comparator_probe() [all …]
|
D | Makefile | 68 obj-$(CONFIG_MFD_TPS65910) += tps65910.o
|
/linux-4.1.27/drivers/gpio/ |
D | gpio-tps65910.c | 27 struct tps65910 *tps65910; member 38 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_get() local 41 tps65910_reg_read(tps65910, TPS65910_GPIO0 + offset, &val); in tps65910_gpio_get() 53 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_set() local 56 tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set() 59 tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set() 67 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_output() local 72 return tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_output() 79 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input() local 81 return tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_input() [all …]
|
D | Makefile | 94 obj-$(CONFIG_GPIO_TPS65910) += gpio-tps65910.o
|
/linux-4.1.27/include/linux/mfd/ |
D | tps65910.h | 891 struct tps65910 { struct 915 static inline int tps65910_chip_id(struct tps65910 *tps65910) in tps65910_chip_id() argument 917 return tps65910->id; in tps65910_chip_id() 920 static inline int tps65910_reg_read(struct tps65910 *tps65910, u8 reg, in tps65910_reg_read() argument 923 return regmap_read(tps65910->regmap, reg, val); in tps65910_reg_read() 926 static inline int tps65910_reg_write(struct tps65910 *tps65910, u8 reg, in tps65910_reg_write() argument 929 return regmap_write(tps65910->regmap, reg, val); in tps65910_reg_write() 932 static inline int tps65910_reg_set_bits(struct tps65910 *tps65910, u8 reg, in tps65910_reg_set_bits() argument 935 return regmap_update_bits(tps65910->regmap, reg, mask, mask); in tps65910_reg_set_bits() 938 static inline int tps65910_reg_clear_bits(struct tps65910 *tps65910, u8 reg, in tps65910_reg_clear_bits() argument [all …]
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-tps65910.c | 38 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_alarm_irq_enable() 59 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_time() 90 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_time() 132 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_alarm() 162 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_alarm() 194 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_interrupt() 226 struct tps65910 *tps65910 = NULL; in tps65910_rtc_probe() local 232 tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_rtc_probe() 240 ret = regmap_read(tps65910->regmap, TPS65910_RTC_STATUS, &rtc_reg); in tps65910_rtc_probe() 244 ret = regmap_write(tps65910->regmap, TPS65910_RTC_STATUS, rtc_reg); in tps65910_rtc_probe() [all …]
|
D | Makefile | 146 obj-$(CONFIG_RTC_DRV_TPS65910) += rtc-tps65910.o
|
D | Kconfig | 513 will be called rtc-tps65910.
|
/linux-4.1.27/drivers/regulator/ |
D | tps65910-regulator.c | 315 struct tps65910 *mfd; 398 struct tps65910 *mfd = pmic->mfd; in tps65910_set_mode() 828 struct tps65910 *mfd = pmic->mfd; in tps65910_set_ext_sleep_config() 1007 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_parse_dt_reg_data() local 1025 switch (tps65910_chip_id(tps65910)) { in tps65910_parse_dt_reg_data() 1078 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_probe() local 1087 pmic_plat_data = dev_get_platdata(tps65910->dev); in tps65910_probe() 1088 if (!pmic_plat_data && tps65910->dev->of_node) in tps65910_probe() 1101 pmic->mfd = tps65910; in tps65910_probe() 1108 switch (tps65910_chip_id(tps65910)) { in tps65910_probe() [all …]
|
D | Makefile | 90 obj-$(CONFIG_REGULATOR_TPS65910) += tps65910-regulator.o
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | tps65910.dtsi | 11 * http://www.ti.com/lit/ds/symlink/tps65910.pdf 15 compatible = "ti,tps65910";
|
D | am335x-lxm.dts | 174 compatible = "ti,tps65910"; 179 /include/ "tps65910.dtsi"
|
D | am3517-craneboard.dts | 75 #include "tps65910.dtsi"
|
D | rk3066a-bqcurie2.dts | 151 #include "tps65910.dtsi"
|
D | rk3066a-marsboard.dts | 162 #include "tps65910.dtsi"
|
D | am335x-igep0033.dtsi | 244 #include "tps65910.dtsi"
|
D | rk3066a-rayeager.dts | 311 #include "tps65910.dtsi"
|
D | am335x-evm.dts | 525 #include "tps65910.dtsi"
|
D | am335x-evmsk.dts | 516 #include "tps65910.dtsi"
|
/linux-4.1.27/Documentation/devicetree/bindings/mfd/ |
D | tps65910.txt | 4 - compatible: "ti,tps65910" or "ti,tps65911" 23 tps65910: vrtc, vio, vdd1, vdd2, vdd3, vdig1, vdig2, vpll, vdac, vaux1, 34 tps65910: 72 pmu: tps65910@d2 { 73 compatible = "ti,tps65910";
|
/linux-4.1.27/ |
D | MAINTAINERS | 7052 F: drivers/mfd/tps65910.c 7061 F: drivers/regulator/tps65910-regulator.c
|