Lines Matching +full:gpo +full:- +full:config +full:- +full:1
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
3 * Keerthy <j-keerthy@ti.com>
43 return -EINVAL; in lp873x_gpio_direction_input()
52 return regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_direction_output()
62 ret = regmap_read(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, &val); in lp873x_gpio_get()
74 regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_set()
86 /* No MUX Set up Needed for GPO */ in lp873x_gpio_request()
88 case 1: in lp873x_gpio_request()
90 ret = regmap_update_bits(gpio->lp873->regmap, LP873X_REG_CONFIG, in lp873x_gpio_request()
97 return -EINVAL; in lp873x_gpio_request()
104 unsigned long config) in lp873x_gpio_set_config() argument
108 switch (pinconf_to_config_param(config)) { in lp873x_gpio_set_config()
110 return regmap_update_bits(gpio->lp873->regmap, in lp873x_gpio_set_config()
118 return regmap_update_bits(gpio->lp873->regmap, in lp873x_gpio_set_config()
123 return -ENOTSUPP; in lp873x_gpio_set_config()
128 .label = "lp873x-gpio",
137 .base = -1,
147 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in lp873x_gpio_probe()
149 return -ENOMEM; in lp873x_gpio_probe()
153 gpio->lp873 = dev_get_drvdata(pdev->dev.parent); in lp873x_gpio_probe()
154 gpio->chip = template_chip; in lp873x_gpio_probe()
155 gpio->chip.parent = gpio->lp873->dev; in lp873x_gpio_probe()
157 ret = devm_gpiochip_add_data(&pdev->dev, &gpio->chip, gpio); in lp873x_gpio_probe()
159 dev_err(&pdev->dev, "Could not register gpiochip, %d\n", ret); in lp873x_gpio_probe()
167 { "lp873x-gpio", },
174 .name = "lp873x-gpio",
181 MODULE_AUTHOR("Keerthy <j-keerthy@ti.com>");