Home
last modified time | relevance | path

Searched refs:tps65910 (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/drivers/gpio/
Dgpio-tps65910.c27 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 …]
DMakefile132 obj-$(CONFIG_GPIO_TPS65910) += gpio-tps65910.o
/Linux-v4.19/drivers/mfd/
Dtps65910.c229 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 …]
Dtps65911-comparator.c58 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 …]
DMakefile93 obj-$(CONFIG_MFD_TPS65910) += tps65910.o
/Linux-v4.19/include/linux/mfd/
Dtps65910.h892 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/
Drtc-tps65910.c53 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 …]
DMakefile166 obj-$(CONFIG_RTC_DRV_TPS65910) += rtc-tps65910.o
/Linux-v4.19/drivers/regulator/
Dtps65910-regulator.c315 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 …]
DMakefile117 obj-$(CONFIG_REGULATOR_TPS65910) += tps65910-regulator.o
/Linux-v4.19/arch/arm/boot/dts/
Dtps65910.dtsi11 * http://www.ti.com/lit/ds/symlink/tps65910.pdf
15 compatible = "ti,tps65910";
Dam335x-lxm.dts174 compatible = "ti,tps65910";
179 /include/ "tps65910.dtsi"
Dam3517-craneboard.dts75 #include "tps65910.dtsi"
Drk3066a-bqcurie2.dts153 #include "tps65910.dtsi"
Drk3066a-marsboard.dts142 #include "tps65910.dtsi"
Dam335x-moxa-uc-8100-me-t.dts266 compatible = "ti,tps65910";
326 #include "tps65910.dtsi"
Dam335x-igep0033.dtsi247 #include "tps65910.dtsi"
Dam335x-phycore-som.dtsi218 #include "tps65910.dtsi"
Drk3066a-rayeager.dts285 #include "tps65910.dtsi"
Dam335x-baltos.dtsi276 #include "tps65910.dtsi"
Dam335x-icev2.dts353 #include "tps65910.dtsi"
Dam335x-pdu001.dts431 #include "tps65910.dtsi"
Dam335x-evmsk.dts550 #include "tps65910.dtsi"
Dam335x-evm.dts614 #include "tps65910.dtsi"
/Linux-v4.19/Documentation/devicetree/bindings/mfd/
Dtps65910.txt4 - 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";

12