Searched refs:gpio_cs (Results 1 – 6 of 6) sorted by relevance
/drivers/spi/ |
D | spi-mpc52xx.c | 90 unsigned int *gpio_cs; member 102 gpio_set_value(ms->gpio_cs[cs], value ? 0 : 1); in mpc52xx_spi_chipsel() 387 int gpio_cs; in mpc52xx_spi_probe() local 440 ms->gpio_cs = kmalloc(ms->gpio_cs_count * sizeof(unsigned int), in mpc52xx_spi_probe() 442 if (!ms->gpio_cs) { in mpc52xx_spi_probe() 448 gpio_cs = of_get_gpio(op->dev.of_node, i); in mpc52xx_spi_probe() 449 if (gpio_cs < 0) { in mpc52xx_spi_probe() 457 rc = gpio_request(gpio_cs, dev_name(&op->dev)); in mpc52xx_spi_probe() 461 "on gpio line %d\n", i, gpio_cs); in mpc52xx_spi_probe() 465 gpio_direction_output(gpio_cs, 1); in mpc52xx_spi_probe() [all …]
|
D | spi-oc-tiny.c | 57 int *gpio_cs; member 77 gpio_set_value(hw->gpio_cs[spi->chip_select], in tiny_spi_chipselect() 216 hw->gpio_cs = devm_kzalloc(&pdev->dev, in tiny_spi_of_probe() 219 if (!hw->gpio_cs) in tiny_spi_of_probe() 223 hw->gpio_cs[i] = of_get_gpio_flags(np, i, NULL); in tiny_spi_of_probe() 224 if (hw->gpio_cs[i] < 0) in tiny_spi_of_probe() 288 hw->gpio_cs = platp->gpio_cs; in tiny_spi_probe() 289 if (platp->gpio_cs_count && !platp->gpio_cs) { in tiny_spi_probe() 301 err = gpio_request(hw->gpio_cs[i], dev_name(&pdev->dev)); in tiny_spi_probe() 304 gpio_direction_output(hw->gpio_cs[i], 1); in tiny_spi_probe() [all …]
|
D | spi-pxa2xx.c | 339 if (gpio_is_valid(chip->gpio_cs)) { in cs_assert() 340 gpio_set_value(chip->gpio_cs, chip->gpio_cs_inverted); in cs_assert() 360 if (gpio_is_valid(chip->gpio_cs)) { in cs_deassert() 361 gpio_set_value(chip->gpio_cs, !chip->gpio_cs_inverted); in cs_deassert() 1137 if (gpio_is_valid(chip->gpio_cs)) in setup_cs() 1138 gpio_free(chip->gpio_cs); in setup_cs() 1146 if (gpio_is_valid(chip_info->gpio_cs)) { in setup_cs() 1147 err = gpio_request(chip_info->gpio_cs, "SPI_CS"); in setup_cs() 1150 chip_info->gpio_cs); in setup_cs() 1154 chip->gpio_cs = chip_info->gpio_cs; in setup_cs() [all …]
|
D | spi-pxa2xx.h | 97 int gpio_cs; member
|
/drivers/phy/ |
D | phy-tusb1210.c | 27 struct gpio_desc *gpio_cs; member 36 gpiod_set_value_cansleep(tusb->gpio_cs, 1); in tusb1210_power_on() 51 gpiod_set_value_cansleep(tusb->gpio_cs, 0); in tusb1210_power_off() 78 tusb->gpio_cs = devm_gpiod_get_optional(&ulpi->dev, "cs", in tusb1210_probe() 80 if (IS_ERR(tusb->gpio_cs)) in tusb1210_probe() 81 return PTR_ERR(tusb->gpio_cs); in tusb1210_probe() 83 gpiod_set_value_cansleep(tusb->gpio_cs, 1); in tusb1210_probe()
|
/drivers/rtc/ |
D | rtc-v3020.c | 117 v3020_gpio[V3020_CS].gpio = pdata->gpio_cs; in v3020_gpio_map()
|