/Linux-v4.19/drivers/gpio/ |
D | gpio-tps65910.c | 27 struct tps65910 *tps65910; member 33 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_get() local 36 tps65910_reg_read(tps65910, TPS65910_GPIO0 + offset, &val); in tps65910_gpio_get() 48 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_set() local 51 tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set() 54 tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set() 62 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_output() local 67 return tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_output() 74 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input() local 76 return tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_input() [all …]
|
D | Makefile | 132 obj-$(CONFIG_GPIO_TPS65910) += gpio-tps65910.o
|
/Linux-v4.19/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 = devm_regmap_add_irq_chip(tps65910->dev, tps65910->regmap, in tps65910_irq_init() 256 tps65910->chip_irq, in tps65910_irq_init() 258 tps6591x_irqs_chip, &tps65910->irq_data); in tps65910_irq_init() 260 dev_warn(tps65910->dev, "Failed to add irq_chip %d\n", ret); in tps65910_irq_init() 261 tps65910->chip_irq = 0; in tps65910_irq_init() [all …]
|
D | tps65911-comparator.c | 58 static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) in comp_threshold_set() argument 77 ret = tps65910_reg_write(tps65910, tps_comp.reg, val); in comp_threshold_set() 82 static int comp_threshold_get(struct tps65910 *tps65910, int id) in comp_threshold_get() argument 88 ret = tps65910_reg_read(tps65910, tps_comp.reg, &val); in comp_threshold_get() 99 struct tps65910 *tps65910 = dev_get_drvdata(dev->parent); in comp_threshold_show() local 110 uVolt = comp_threshold_get(tps65910, id); in comp_threshold_show() 120 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65911_comparator_probe() local 121 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65911_comparator_probe() 124 ret = comp_threshold_set(tps65910, COMP1, pdata->vmbch_threshold); in tps65911_comparator_probe() 130 ret = comp_threshold_set(tps65910, COMP2, pdata->vmbch2_threshold); in tps65911_comparator_probe() [all …]
|
D | Makefile | 93 obj-$(CONFIG_MFD_TPS65910) += tps65910.o
|
/Linux-v4.19/include/linux/mfd/ |
D | tps65910.h | 892 struct tps65910 { struct 916 static inline int tps65910_chip_id(struct tps65910 *tps65910) in tps65910_chip_id() argument 918 return tps65910->id; in tps65910_chip_id() 921 static inline int tps65910_reg_read(struct tps65910 *tps65910, u8 reg, in tps65910_reg_read() argument 924 return regmap_read(tps65910->regmap, reg, val); in tps65910_reg_read() 927 static inline int tps65910_reg_write(struct tps65910 *tps65910, u8 reg, in tps65910_reg_write() argument 930 return regmap_write(tps65910->regmap, reg, val); in tps65910_reg_write() 933 static inline int tps65910_reg_set_bits(struct tps65910 *tps65910, u8 reg, in tps65910_reg_set_bits() argument 936 return regmap_update_bits(tps65910->regmap, reg, mask, mask); in tps65910_reg_set_bits() 939 static inline int tps65910_reg_clear_bits(struct tps65910 *tps65910, u8 reg, in tps65910_reg_clear_bits() argument [all …]
|
/Linux-v4.19/drivers/rtc/ |
D | rtc-tps65910.c | 53 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_alarm_irq_enable() 74 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_time() 105 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_time() 147 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_alarm() 177 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_alarm() 208 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_calibration() 253 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_get_calibration() 336 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_interrupt() 370 struct tps65910 *tps65910 = NULL; in tps65910_rtc_probe() local 376 tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_rtc_probe() [all …]
|
D | Makefile | 166 obj-$(CONFIG_RTC_DRV_TPS65910) += rtc-tps65910.o
|
/Linux-v4.19/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 | 117 obj-$(CONFIG_REGULATOR_TPS65910) += tps65910-regulator.o
|
/Linux-v4.19/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 | 153 #include "tps65910.dtsi"
|
D | rk3066a-marsboard.dts | 142 #include "tps65910.dtsi"
|
D | am335x-moxa-uc-8100-me-t.dts | 266 compatible = "ti,tps65910"; 326 #include "tps65910.dtsi"
|
D | am335x-igep0033.dtsi | 247 #include "tps65910.dtsi"
|
D | am335x-phycore-som.dtsi | 218 #include "tps65910.dtsi"
|
D | rk3066a-rayeager.dts | 285 #include "tps65910.dtsi"
|
D | am335x-baltos.dtsi | 276 #include "tps65910.dtsi"
|
D | am335x-icev2.dts | 353 #include "tps65910.dtsi"
|
D | am335x-pdu001.dts | 431 #include "tps65910.dtsi"
|
D | am335x-evmsk.dts | 550 #include "tps65910.dtsi"
|
D | am335x-evm.dts | 614 #include "tps65910.dtsi"
|
/Linux-v4.19/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: 76 pmu: tps65910@d2 { 77 compatible = "ti,tps65910";
|