Home
last modified time | relevance | path

Searched refs:power_gpio (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/sound/soc/codecs/
Dtpa6130a2.c36 int power_gpio; member
52 if (data->power_gpio >= 0) in tpa6130a2_power()
53 gpio_set_value(data->power_gpio, 1); in tpa6130a2_power()
62 if (data->power_gpio >= 0) in tpa6130a2_power()
63 gpio_set_value(data->power_gpio, 0); in tpa6130a2_power()
79 if (data->power_gpio >= 0) in tpa6130a2_power()
80 gpio_set_value(data->power_gpio, 0); in tpa6130a2_power()
243 data->power_gpio = pdata->power_gpio; in tpa6130a2_probe()
245 data->power_gpio = of_get_named_gpio(np, "power-gpio", 0); in tpa6130a2_probe()
257 if (data->power_gpio >= 0) { in tpa6130a2_probe()
[all …]
Dtlv320dac33.c83 int power_gpio; member
386 if (dac33->power_gpio >= 0) in dac33_hard_power()
387 gpio_set_value(dac33->power_gpio, 1); in dac33_hard_power()
392 if (dac33->power_gpio >= 0) in dac33_hard_power()
393 gpio_set_value(dac33->power_gpio, 0); in dac33_hard_power()
1493 dac33->power_gpio = pdata->power_gpio; in dac33_i2c_probe()
1504 if (dac33->power_gpio >= 0) { in dac33_i2c_probe()
1505 ret = gpio_request(dac33->power_gpio, "tlv320dac33 reset"); in dac33_i2c_probe()
1509 dac33->power_gpio); in dac33_i2c_probe()
1512 gpio_direction_output(dac33->power_gpio, 0); in dac33_i2c_probe()
[all …]
/linux-6.6.21/drivers/usb/dwc3/
Ddwc3-octeon.c265 int power_gpio, int power_active_low) in dwc3_octeon_setup() argument
353 if (power_gpio == DWC3_GPIO_POWER_NONE) { in dwc3_octeon_setup()
358 power_gpio); in dwc3_octeon_setup()
359 dev_dbg(dev, "power control is using gpio%d\n", power_gpio); in dwc3_octeon_setup()
420 int power_active_low, power_gpio; in dwc3_octeon_probe() local
477 power_gpio = DWC3_GPIO_POWER_NONE; in dwc3_octeon_probe()
494 power_gpio = gpio_pwr[1]; in dwc3_octeon_probe()
507 power_gpio, power_active_low); in dwc3_octeon_probe()
/linux-6.6.21/drivers/net/wireless/ti/wl1251/
Dspi.c26 struct gpio_desc *power_gpio; member
217 if (wl_spi->power_gpio) in wl1251_spi_set_power()
218 gpiod_set_value_cansleep(wl_spi->power_gpio, enable); in wl1251_spi_set_power()
273 wl_spi->power_gpio = devm_gpiod_get_optional(&spi->dev, "ti,power", in wl1251_spi_probe()
275 ret = PTR_ERR_OR_ZERO(wl_spi->power_gpio); in wl1251_spi_probe()
282 gpiod_set_consumer_name(wl_spi->power_gpio, "wl1251 power"); in wl1251_spi_probe()
/linux-6.6.21/drivers/nfc/fdp/
Di2c.c42 gpiod_set_value_cansleep(phy->power_gpio, FDP_POWER_OFF); in fdp_nci_i2c_reset()
44 gpiod_set_value_cansleep(phy->power_gpio, FDP_POWER_ON); in fdp_nci_i2c_reset()
321 phy->power_gpio = devm_gpiod_get(dev, "power", GPIOD_OUT_LOW); in fdp_nci_i2c_probe()
322 if (IS_ERR(phy->power_gpio)) { in fdp_nci_i2c_probe()
324 return PTR_ERR(phy->power_gpio); in fdp_nci_i2c_probe()
Dfdp.h16 struct gpio_desc *power_gpio; member
/linux-6.6.21/include/sound/
Dtpa6130a2-plat.h14 int power_gpio; member
Dtlv320dac33-plat.h14 int power_gpio; member
/linux-6.6.21/drivers/phy/motorola/
Dphy-mapphone-mdm6600.c366 struct gpio_desc *mode_gpio0, *mode_gpio1, *reset_gpio, *power_gpio; in phy_mdm6600_device_power_on() local
372 power_gpio = ddata->ctrl_gpios[PHY_MDM6600_POWER]; in phy_mdm6600_device_power_on()
391 gpiod_set_value_cansleep(power_gpio, 1); in phy_mdm6600_device_power_on()
393 gpiod_set_value_cansleep(power_gpio, 0); in phy_mdm6600_device_power_on()
/linux-6.6.21/drivers/media/platform/via/
Dvia-camera.c73 struct gpio_desc *power_gpio; member
184 cam->power_gpio = devm_gpiod_get(dev, "VGPIO3", GPIOD_OUT_LOW); in via_sensor_power_setup()
185 if (IS_ERR(cam->power_gpio)) in via_sensor_power_setup()
186 return dev_err_probe(dev, PTR_ERR(cam->power_gpio), in via_sensor_power_setup()
203 gpiod_set_value(cam->power_gpio, 1); in via_sensor_power_up()
212 gpiod_set_value(cam->power_gpio, 0); in via_sensor_power_down()
/linux-6.6.21/drivers/mmc/host/
Dsdhci-tegra.c163 struct gpio_desc *power_gpio; member
1716 tegra_host->power_gpio = devm_gpiod_get_optional(&pdev->dev, "power", in sdhci_tegra_probe()
1718 if (IS_ERR(tegra_host->power_gpio)) { in sdhci_tegra_probe()
1719 rc = PTR_ERR(tegra_host->power_gpio); in sdhci_tegra_probe()
/linux-6.6.21/drivers/net/ethernet/smsc/
Dsmc91x.h225 struct gpio_desc *power_gpio; member
Dsmc91x.c2282 ret = try_toggle_control_gpio(&pdev->dev, &lp->power_gpio, in smc_drv_probe()