Home
last modified time | relevance | path

Searched refs:cs_gpiod (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/regulator/
Dslg51000-regulator.c43 struct gpio_desc *cs_gpiod; member
442 struct gpio_desc *cs_gpiod; in slg51000_i2c_probe() local
449 cs_gpiod = devm_gpiod_get_optional(dev, "dlg,cs", in slg51000_i2c_probe()
452 if (IS_ERR(cs_gpiod)) in slg51000_i2c_probe()
453 return PTR_ERR(cs_gpiod); in slg51000_i2c_probe()
455 if (cs_gpiod) { in slg51000_i2c_probe()
457 chip->cs_gpiod = cs_gpiod; in slg51000_i2c_probe()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dbu21013_ts.c162 struct gpio_desc *cs_gpiod; member
404 gpiod_set_value(ts->cs_gpiod, 0); in bu21013_disable_chip()
498 ts->cs_gpiod = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_HIGH); in bu21013_probe()
499 error = PTR_ERR_OR_ZERO(ts->cs_gpiod); in bu21013_probe()
505 gpiod_set_consumer_name(ts->cs_gpiod, "BU21013 CS"); in bu21013_probe()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-atmel.c330 if (spi->cs_gpiod) in cs_activate()
355 if (spi->cs_gpiod) in cs_activate()
356 gpiod_set_value(spi->cs_gpiod, 1); in cs_activate()
372 if (spi->cs_gpiod) in cs_activate()
373 gpiod_set_value(spi->cs_gpiod, 1); in cs_activate()
385 if (spi->cs_gpiod) in cs_deactivate()
401 if (!spi->cs_gpiod) in cs_deactivate()
404 gpiod_set_value(spi->cs_gpiod, 0); in cs_deactivate()
825 if (spi->cs_gpiod) in atmel_spi_set_xfer_speed()
1217 if (!spi->cs_gpiod && (spi->mode & SPI_CS_HIGH)) { in atmel_spi_setup()
[all …]
Dspi-fsl-spi.c560 if (spi->cs_gpiod) { in fsl_spi_grlib_cs_control()
561 gpiod_set_value(spi->cs_gpiod, on); in fsl_spi_grlib_cs_control()
693 if (spi->cs_gpiod) { in fsl_spi_cs_control()
694 gpiod_set_value(spi->cs_gpiod, on); in fsl_spi_cs_control()
Dspi-davinci.c215 if (spi->cs_gpiod) { in davinci_spi_chipselect()
217 gpiod_set_value(spi->cs_gpiod, 1); in davinci_spi_chipselect()
219 gpiod_set_value(spi->cs_gpiod, 0); in davinci_spi_chipselect()
418 if (np && spi->cs_gpiod) in davinci_spi_setup()
Dspi-tegra114.c834 if (spi->cs_gpiod) in tegra_spi_setup_transfer_one()
835 gpiod_set_value(spi->cs_gpiod, 1); in tegra_spi_setup_transfer_one()
984 if (spi->cs_gpiod) in tegra_spi_setup()
985 gpiod_set_value(spi->cs_gpiod, 0); in tegra_spi_setup()
1006 if (spi->cs_gpiod) in tegra_spi_transfer_end()
1007 gpiod_set_value(spi->cs_gpiod, 0); in tegra_spi_transfer_end()
Dspi-txx9.c108 c->last_chipselect = spi->cs_gpiod; in txx9spi_cs_func()
114 gpiod_set_value(spi->cs_gpiod, on); in txx9spi_cs_func()
Dspi-bcm2835.c1246 if (spi->cs_gpiod) in bcm2835_spi_setup()
1272 spi->cs_gpiod = gpiochip_request_own_desc(chip, 8 - spi->chip_select, in bcm2835_spi_setup()
1276 if (IS_ERR(spi->cs_gpiod)) in bcm2835_spi_setup()
1277 return PTR_ERR(spi->cs_gpiod); in bcm2835_spi_setup()
Dspi.c602 spi->cs_gpiod = ctlr->cs_gpiods[spi->chip_select]; in spi_add_device()
821 if (spi->cs_gpiod || gpio_is_valid(spi->cs_gpio)) { in spi_set_cs()
823 if (spi->cs_gpiod) { in spi_set_cs()
835 gpiod_set_value_cansleep(spi->cs_gpiod, !enable); in spi_set_cs()
838 gpiod_set_value_cansleep(spi->cs_gpiod, enable1); in spi_set_cs()
3532 spi->cs_gpiod || in __spi_validate()
Dspi-rspi.c952 if (spi->cs_gpiod) in rspi_setup()
1003 rspi->spcmd |= SPCMD_SSLA(spi->cs_gpiod ? rspi->ctlr->unused_native_cs in rspi_prepare_message()
Dspi-mem.c298 if (ctlr->mem_ops && !mem->spi->cs_gpiod) { in spi_mem_exec_op()
Dspi-sh-msiof.c553 if (spi->cs_gpiod || spi_controller_is_slave(p->ctlr)) in sh_msiof_spi_setup()
586 if (spi->cs_gpiod) { in sh_msiof_prepare_message()
Dspi-bcm-qspi.c876 if (!spi->cs_gpiod) in bcm_qspi_bspi_exec_mem_op()
956 if (!spi->cs_gpiod) in bcm_qspi_transfer_one()
Dspi-omap2-mcspi.c1157 if (spi->cs_gpiod) in omap2_mcspi_transfer_one()
1246 if (spi->cs_gpiod) in omap2_mcspi_transfer_one()
Dspi-imx.c738 if (!spi->cs_gpiod) in mx31_prepare_transfer()
838 if (!spi->cs_gpiod) in mx21_prepare_transfer()
Dspi-lantiq-ssc.c395 if (spidev->cs_gpiod) in lantiq_ssc_setup()
/kernel/linux/linux-5.10/include/linux/spi/
Dspi.h194 struct gpio_desc *cs_gpiod; /* chip select gpio desc */ member
/kernel/linux/patches/linux-5.10/yangfan_patch/
Ddrivers.patch59849 + if (spi->cs_gpiod)
59856 + if (spi->cs_gpiod)