/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-tps65910.c | 22 struct tps65910 *tps65910; member 28 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_get() local 31 tps65910_reg_read(tps65910, TPS65910_GPIO0 + offset, &val); in tps65910_gpio_get() 43 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_set() local 46 tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set() 49 tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set() 57 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_output() local 62 return tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_output() 69 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input() local 71 return tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_input() [all …]
|
D | Makefile | 152 obj-$(CONFIG_GPIO_TPS65910) += gpio-tps65910.o
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | tps65910.c | 222 static int tps65910_irq_init(struct tps65910 *tps65910, int irq, in tps65910_irq_init() argument 229 dev_warn(tps65910->dev, "No interrupt support, no core IRQ\n"); in tps65910_irq_init() 234 dev_warn(tps65910->dev, "No interrupt support, no pdata\n"); in tps65910_irq_init() 238 switch (tps65910_chip_id(tps65910)) { in tps65910_irq_init() 247 tps65910->chip_irq = irq; in tps65910_irq_init() 248 ret = devm_regmap_add_irq_chip(tps65910->dev, tps65910->regmap, in tps65910_irq_init() 249 tps65910->chip_irq, in tps65910_irq_init() 251 tps6591x_irqs_chip, &tps65910->irq_data); in tps65910_irq_init() 253 dev_warn(tps65910->dev, "Failed to add irq_chip %d\n", ret); in tps65910_irq_init() 254 tps65910->chip_irq = 0; in tps65910_irq_init() [all …]
|
D | tps65911-comparator.c | 53 static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) in comp_threshold_set() argument 72 ret = tps65910_reg_write(tps65910, tps_comp.reg, val); in comp_threshold_set() 77 static int comp_threshold_get(struct tps65910 *tps65910, int id) in comp_threshold_get() argument 83 ret = tps65910_reg_read(tps65910, tps_comp.reg, &val); in comp_threshold_get() 94 struct tps65910 *tps65910 = dev_get_drvdata(dev->parent); in comp_threshold_show() local 105 uVolt = comp_threshold_get(tps65910, id); in comp_threshold_show() 115 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65911_comparator_probe() local 116 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65911_comparator_probe() 119 ret = comp_threshold_set(tps65910, COMP1, pdata->vmbch_threshold); in tps65911_comparator_probe() 125 ret = comp_threshold_set(tps65910, COMP2, pdata->vmbch2_threshold); in tps65911_comparator_probe() [all …]
|
D | Makefile | 104 obj-$(CONFIG_MFD_TPS65910) += tps65910.o
|
/kernel/linux/linux-5.10/include/linux/mfd/ |
D | tps65910.h | 887 struct tps65910 { struct 911 static inline int tps65910_chip_id(struct tps65910 *tps65910) in tps65910_chip_id() argument 913 return tps65910->id; in tps65910_chip_id() 916 static inline int tps65910_reg_read(struct tps65910 *tps65910, u8 reg, in tps65910_reg_read() argument 919 return regmap_read(tps65910->regmap, reg, val); in tps65910_reg_read() 922 static inline int tps65910_reg_write(struct tps65910 *tps65910, u8 reg, in tps65910_reg_write() argument 925 return regmap_write(tps65910->regmap, reg, val); in tps65910_reg_write() 928 static inline int tps65910_reg_set_bits(struct tps65910 *tps65910, u8 reg, in tps65910_reg_set_bits() argument 931 return regmap_update_bits(tps65910->regmap, reg, mask, mask); in tps65910_reg_set_bits() 934 static inline int tps65910_reg_clear_bits(struct tps65910 *tps65910, u8 reg, in tps65910_reg_clear_bits() argument [all …]
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-tps65910.c | 49 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_alarm_irq_enable() 70 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_time() 101 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_time() 143 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_alarm() 173 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_alarm() 204 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_calibration() 249 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_get_calibration() 332 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_interrupt() 373 struct tps65910 *tps65910 = NULL; in tps65910_rtc_probe() local 379 tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_rtc_probe() [all …]
|
D | Makefile | 172 obj-$(CONFIG_RTC_DRV_TPS65910) += rtc-tps65910.o
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | tps65910-regulator.c | 310 struct tps65910 *mfd; 825 struct tps65910 *mfd = pmic->mfd; in tps65910_set_ext_sleep_config() 1003 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_parse_dt_reg_data() local 1021 switch (tps65910_chip_id(tps65910)) { in tps65910_parse_dt_reg_data() 1074 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_probe() local 1083 pmic_plat_data = dev_get_platdata(tps65910->dev); in tps65910_probe() 1084 if (!pmic_plat_data && tps65910->dev->of_node) in tps65910_probe() 1097 pmic->mfd = tps65910; in tps65910_probe() 1106 switch (tps65910_chip_id(tps65910)) { in tps65910_probe() 1169 if (tps65910_chip_id(tps65910) == TPS65910) { in tps65910_probe() [all …]
|
D | Makefile | 145 obj-$(CONFIG_REGULATOR_TPS65910) += tps65910-regulator.o
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | tps65910.dtsi | 8 * http://www.ti.com/lit/ds/symlink/tps65910.pdf 12 compatible = "ti,tps65910";
|
D | am335x-lxm.dts | 175 compatible = "ti,tps65910"; 180 /include/ "tps65910.dtsi"
|
D | am3517-craneboard.dts | 72 #include "tps65910.dtsi"
|
D | am335x-moxa-uc-8100-common.dtsi | 197 compatible = "ti,tps65910"; 236 #include "tps65910.dtsi"
|
D | rk3066a-bqcurie2.dts | 157 #include "tps65910.dtsi"
|
D | rk3066a-marsboard.dts | 146 #include "tps65910.dtsi"
|
D | am335x-igep0033.dtsi | 224 #include "tps65910.dtsi"
|
D | am335x-phycore-som.dtsi | 234 #include "tps65910.dtsi"
|
D | rk3066a-rayeager.dts | 288 #include "tps65910.dtsi"
|
D | omap3-echo.dts | 280 #include "tps65910.dtsi"
|
D | am335x-baltos.dtsi | 261 #include "tps65910.dtsi"
|
D | am335x-icev2.dts | 363 #include "tps65910.dtsi"
|
D | am335x-pdu001.dts | 403 #include "tps65910.dtsi"
|
D | am335x-evmsk.dts | 520 #include "tps65910.dtsi"
|
/kernel/linux/linux-5.10/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";
|