Home
last modified time | relevance | path

Searched refs:gpio_cs (Results 1 – 5 of 5) sorted by relevance

/drivers/spi/
Dspi-mpc52xx.c89 unsigned int *gpio_cs; member
101 gpio_set_value(ms->gpio_cs[cs], value ? 0 : 1); in mpc52xx_spi_chipsel()
386 int gpio_cs; in mpc52xx_spi_probe() local
439 ms->gpio_cs = kmalloc_array(ms->gpio_cs_count, in mpc52xx_spi_probe()
440 sizeof(*ms->gpio_cs), 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_is_valid(gpio_cs)) { in mpc52xx_spi_probe()
456 rc = gpio_request(gpio_cs, dev_name(&op->dev)); in mpc52xx_spi_probe()
460 i, gpio_cs); in mpc52xx_spi_probe()
[all …]
Dspi-oc-tiny.c54 int *gpio_cs; member
74 gpio_set_value(hw->gpio_cs[spi->chip_select], in tiny_spi_chipselect()
213 hw->gpio_cs = devm_kcalloc(&pdev->dev, in tiny_spi_of_probe()
216 if (!hw->gpio_cs) in tiny_spi_of_probe()
220 hw->gpio_cs[i] = of_get_gpio_flags(np, i, NULL); in tiny_spi_of_probe()
221 if (hw->gpio_cs[i] < 0) in tiny_spi_of_probe()
283 hw->gpio_cs = platp->gpio_cs; in tiny_spi_probe()
284 if (platp->gpio_cs_count && !platp->gpio_cs) { in tiny_spi_probe()
296 err = gpio_request(hw->gpio_cs[i], dev_name(&pdev->dev)); in tiny_spi_probe()
299 gpio_direction_output(hw->gpio_cs[i], 1); in tiny_spi_probe()
[all …]
Dspi-pxa2xx.c1207 if (gpio_is_valid(chip_info->gpio_cs)) { in setup_cs()
1208 err = gpio_request(chip_info->gpio_cs, "SPI_CS"); in setup_cs()
1211 chip_info->gpio_cs); in setup_cs()
1215 gpiod = gpio_to_desc(chip_info->gpio_cs); in setup_cs()
/drivers/phy/ti/
Dphy-tusb1210.c24 struct gpio_desc *gpio_cs; member
33 gpiod_set_value_cansleep(tusb->gpio_cs, 1); in tusb1210_power_on()
48 gpiod_set_value_cansleep(tusb->gpio_cs, 0); in tusb1210_power_off()
109 tusb->gpio_cs = devm_gpiod_get_optional(&ulpi->dev, "cs", in tusb1210_probe()
111 if (IS_ERR(tusb->gpio_cs)) in tusb1210_probe()
112 return PTR_ERR(tusb->gpio_cs); in tusb1210_probe()
114 gpiod_set_value_cansleep(tusb->gpio_cs, 1); in tusb1210_probe()
/drivers/rtc/
Drtc-v3020.c113 v3020_gpio[V3020_CS].gpio = pdata->gpio_cs; in v3020_gpio_map()