Lines Matching full:tps65910
17 #include <linux/mfd/tps65910.h>
22 struct tps65910 *tps65910; member
28 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_get() local
31 regmap_read(tps65910->regmap, TPS65910_GPIO0 + offset, &val); in tps65910_gpio_get()
43 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_set() local
46 return regmap_set_bits(tps65910->regmap, in tps65910_gpio_set()
49 return regmap_clear_bits(tps65910->regmap, TPS65910_GPIO0 + offset, in tps65910_gpio_set()
57 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_output() local
65 return regmap_set_bits(tps65910->regmap, TPS65910_GPIO0 + offset, in tps65910_gpio_output()
72 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input() local
74 return regmap_clear_bits(tps65910->regmap, TPS65910_GPIO0 + offset, in tps65910_gpio_input()
80 struct tps65910 *tps65910, int chip_ngpio) in tps65910_parse_dt_for_gpio() argument
82 struct tps65910_board *tps65910_board = tps65910->of_plat_data; in tps65910_parse_dt_for_gpio()
89 ret = of_property_read_u32_array(tps65910->dev->of_node, in tps65910_parse_dt_for_gpio()
103 struct tps65910 *tps65910, int chip_ngpio) in tps65910_parse_dt_for_gpio() argument
111 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_gpio_probe() local
112 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65910_gpio_probe()
124 tps65910_gpio->tps65910 = tps65910; in tps65910_gpio_probe()
127 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
129 switch (tps65910_chip_id(tps65910)) { in tps65910_gpio_probe()
130 case TPS65910: in tps65910_gpio_probe()
151 if (!pdata && tps65910->dev->of_node) in tps65910_gpio_probe()
152 pdata = tps65910_parse_dt_for_gpio(&pdev->dev, tps65910, in tps65910_gpio_probe()
163 ret = regmap_set_bits(tps65910->regmap, in tps65910_gpio_probe()
166 dev_warn(tps65910->dev, in tps65910_gpio_probe()
176 .driver.name = "tps65910-gpio",