/Zephyr-latest/drivers/gpio/ |
D | gpio_sn74hc595.c | 33 struct gpio_dt_spec reset_gpio; member 162 if (!gpio_is_ready_dt(&config->reset_gpio)) { in gpio_sn74hc595_init() 163 LOG_ERR("GPIO port %s not ready", config->reset_gpio.port->name); in gpio_sn74hc595_init() 167 if (gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_ACTIVE) < 0) { in gpio_sn74hc595_init() 168 LOG_ERR("Unable to configure RST GPIO pin %u", config->reset_gpio.pin); in gpio_sn74hc595_init() 172 gpio_pin_set(config->reset_gpio.port, config->reset_gpio.pin, 0); in gpio_sn74hc595_init() 193 .reset_gpio = GPIO_DT_SPEC_INST_GET(n, reset_gpios), \
|
D | gpio_aw9523b.c | 38 struct gpio_dt_spec reset_gpio; member 422 if (!config->reset_gpio.port) { in gpio_aw9523b_init() 426 if (!gpio_is_ready_dt(&config->reset_gpio)) { in gpio_aw9523b_init() 431 err = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_ACTIVE); in gpio_aw9523b_init() 434 config->reset_gpio.pin, err); in gpio_aw9523b_init() 440 err = gpio_pin_set_dt(&config->reset_gpio, 0); in gpio_aw9523b_init() 442 LOG_ERR("%s: Failed to set 0 reset pin %d (%d)", dev->name, config->reset_gpio.pin, in gpio_aw9523b_init() 497 .reset_gpio = GPIO_DT_SPEC_INST_GET(inst, reset_gpios), \
|
D | gpio_tca6424a.c | 41 struct gpio_dt_spec reset_gpio; member 476 if (drv_cfg->reset_gpio.port) { in tca6424a_init() 477 if (!gpio_is_ready_dt(&drv_cfg->reset_gpio)) { in tca6424a_init() 478 LOG_ERR("%s is not ready", drv_cfg->reset_gpio.port->name); in tca6424a_init() 481 ret = gpio_pin_configure_dt(&drv_cfg->reset_gpio, GPIO_OUTPUT_ACTIVE); in tca6424a_init() 489 ret = gpio_pin_set_dt(&drv_cfg->reset_gpio, 0); in tca6424a_init() 566 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(idx, reset_gpios, {0}), \
|
/Zephyr-latest/drivers/wifi/winc1500/ |
D | wifi_winc1500_nm_bsp.c | 20 .reset_gpio = GPIO_DT_SPEC_INST_GET(0, reset_gpios), 55 gpio_pin_set_dt(&winc1500_config.reset_gpio, 0); in nm_bsp_reset() 61 gpio_pin_set_dt(&winc1500_config.reset_gpio, 1); in nm_bsp_reset()
|
D | wifi_winc1500_nm_bsp_internal.h | 40 struct gpio_dt_spec reset_gpio; member
|
D | wifi_winc1500_nm_bus_wrapper.c | 102 if (!gpio_is_ready_dt(&winc1500_config.reset_gpio)) { in nm_bus_init() 105 gpio_pin_configure_dt(&winc1500_config.reset_gpio, GPIO_OUTPUT_LOW); in nm_bus_init()
|
/Zephyr-latest/drivers/input/ |
D | input_ft5336.c | 57 struct gpio_dt_spec reset_gpio; member 182 if (config->reset_gpio.port != NULL) { in ft5336_init() 184 r = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_ACTIVE); in ft5336_init() 196 r = gpio_pin_set_dt(&config->reset_gpio, 0); in ft5336_init() 253 if (config->reset_gpio.port == NULL) { in ft5336_pm_action() 270 ret = gpio_pin_set_dt(&config->reset_gpio, 1); in ft5336_pm_action() 277 ret = gpio_pin_set_dt(&config->reset_gpio, 0); in ft5336_pm_action() 301 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(index, reset_gpios, {0}), \
|
D | input_pmw3610.c | 102 struct gpio_dt_spec reset_gpio; member 350 if (cfg->reset_gpio.port != NULL) { in pmw3610_configure() 351 if (!gpio_is_ready_dt(&cfg->reset_gpio)) { in pmw3610_configure() 352 LOG_ERR("%s is not ready", cfg->reset_gpio.port->name); in pmw3610_configure() 356 ret = gpio_pin_configure_dt(&cfg->reset_gpio, GPIO_OUTPUT_ACTIVE); in pmw3610_configure() 364 gpio_pin_set_dt(&cfg->reset_gpio, 0); in pmw3610_configure() 574 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {}), \
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_ad559x.c | 67 if (!gpio_is_ready_dt(&config->reset_gpio)) { in mfd_ad559x_init() 71 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in mfd_ad559x_init() 102 .reset_gpio = GPIO_DT_SPEC_INST_GET(inst, reset_gpios), \
|
D | mfd_adp5585.c | 87 if (gpio_is_ready_dt(&config->reset_gpio)) { in mfd_adp5585_init() 88 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in mfd_adp5585_init() 131 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, reset_gpios, {0}), \
|
D | mfd_ad559x.h | 43 struct gpio_dt_spec reset_gpio; member
|
/Zephyr-latest/drivers/display/ |
D | display_ist3931.c | 23 struct gpio_dt_spec reset_gpio; member 162 gpio_pin_set_dt(&config->reset_gpio, 1); in ist3931_init_device() 164 gpio_pin_set_dt(&config->reset_gpio, 0); in ist3931_init_device() 166 gpio_pin_set_dt(&config->reset_gpio, 1); in ist3931_init_device() 190 if (!gpio_is_ready_dt(&config->reset_gpio)) { in ist3931_init() 194 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in ist3931_init() 269 .reset_gpio = GPIO_DT_SPEC_INST_GET(inst, reset_gpios), \
|
D | display_hx8394.c | 19 const struct gpio_dt_spec reset_gpio; member 567 if (gpio_is_ready_dt(&config->reset_gpio)) { in hx8394_init() 574 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in hx8394_init() 579 gpio_pin_set_dt(&config->reset_gpio, 0); in hx8394_init() 584 gpio_pin_set_dt(&config->reset_gpio, 1); in hx8394_init() 786 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(id, reset_gpios, {0}), \
|
D | display_rm67162.c | 190 const struct gpio_dt_spec reset_gpio; member 232 if (config->reset_gpio.port != NULL) { in rm67162_init() 233 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in rm67162_init() 246 ret = gpio_pin_set_dt(&config->reset_gpio, 0); in rm67162_init() 253 gpio_pin_set_dt(&config->reset_gpio, 1); in rm67162_init() 594 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(id, reset_gpios, {0}), \
|
/Zephyr-latest/drivers/auxdisplay/ |
D | auxdisplay_itron.c | 56 struct gpio_dt_spec reset_gpio; member 114 if (config->reset_gpio.port) { in auxdisplay_itron_init() 115 rc = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in auxdisplay_itron_init() 127 if (config->reset_gpio.port) { in auxdisplay_itron_init() 130 gpio_pin_set_dt(&config->reset_gpio, 1); in auxdisplay_itron_init() 132 gpio_pin_set_dt(&config->reset_gpio, 0); in auxdisplay_itron_init() 436 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, reset_gpios, {0}), \
|
/Zephyr-latest/drivers/ethernet/phy/ |
D | phy_microchip_ksz8081.c | 46 const struct gpio_dt_spec reset_gpio; member 286 if (!config->reset_gpio.port) { in phy_mc_ksz8081_reset() 291 ret = gpio_pin_set_dt(&config->reset_gpio, 0); in phy_mc_ksz8081_reset() 300 ret = gpio_pin_set_dt(&config->reset_gpio, 1); in phy_mc_ksz8081_reset() 488 if (config->reset_gpio.port) { in phy_mc_ksz8081_init() 489 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_ACTIVE); in phy_mc_ksz8081_init() 518 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {0}),
|
D | phy_ti_dp83825.c | 47 const struct gpio_dt_spec reset_gpio; member 323 if (!config->reset_gpio.port) { in phy_ti_dp83825_reset() 328 ret = gpio_pin_set_dt(&config->reset_gpio, 1); in phy_ti_dp83825_reset() 337 ret = gpio_pin_set_dt(&config->reset_gpio, 0); in phy_ti_dp83825_reset() 527 if (config->reset_gpio.port) { in phy_ti_dp83825_init() 528 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in phy_ti_dp83825_init() 578 #define RESET_GPIO(n) .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {0}),
|
D | phy_realtek_rtl8211f.c | 63 const struct gpio_dt_spec reset_gpio; member 121 if (config->reset_gpio.port) { in phy_rt_rtl8211f_reset() 123 ret = gpio_pin_set_dt(&config->reset_gpio, 0); in phy_rt_rtl8211f_reset() 132 ret = gpio_pin_set_dt(&config->reset_gpio, 1); in phy_rt_rtl8211f_reset() 498 if (config->reset_gpio.port) { in phy_rt_rtl8211f_init() 499 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_ACTIVE); in phy_rt_rtl8211f_init() 655 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {0}),
|
/Zephyr-latest/drivers/sensor/ams/ccs811/ |
D | ccs811.c | 456 if (config->reset_gpio.port) { in ccs811_init() 457 if (!gpio_is_ready_dt(&config->reset_gpio)) { in ccs811_init() 462 gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_ACTIVE); in ccs811_init() 480 if (config->reset_gpio.port) { in ccs811_init() 481 gpio_pin_set_dt(&config->reset_gpio, 1); in ccs811_init() 483 gpio_pin_set_dt(&config->reset_gpio, 0); in ccs811_init() 579 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, reset_gpios, { 0 }), \
|
/Zephyr-latest/drivers/sensor/nxp/fxas21002/ |
D | fxas21002.c | 337 if (config->reset_gpio.port) { in fxas21002_init() 341 if (!gpio_is_ready_dt(&config->reset_gpio)) { in fxas21002_init() 346 gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in fxas21002_init() 348 gpio_pin_set_dt(&config->reset_gpio, 1); in fxas21002_init() 354 gpio_pin_set_dt(&config->reset_gpio, 0); in fxas21002_init() 457 .reset_gpio = GPIO_DT_SPEC_INST_GET(inst, reset_gpios), \
|
/Zephyr-latest/drivers/video/ |
D | ov7725.c | 179 struct gpio_dt_spec reset_gpio; member 567 ret = gpio_pin_configure_dt(&cfg->reset_gpio, GPIO_OUTPUT_ACTIVE); in ov7725_init() 572 gpio_pin_set_dt(&cfg->reset_gpio, 0); in ov7725_init() 574 gpio_pin_set_dt(&cfg->reset_gpio, 1); in ov7725_init() 619 .reset_gpio = GPIO_DT_SPEC_INST_GET(0, reset_gpios), 634 if (!gpio_is_ready_dt(&cfg->reset_gpio)) { in ov7725_init_0() 636 cfg->reset_gpio.port->name); in ov7725_init_0()
|
D | gc2145.c | 685 struct gpio_dt_spec reset_gpio; member 1133 ret = gpio_pin_configure_dt(&cfg->reset_gpio, GPIO_OUTPUT_ACTIVE); in gc2145_init() 1139 gpio_pin_set_dt(&cfg->reset_gpio, 0); in gc2145_init() 1170 .reset_gpio = GPIO_DT_SPEC_INST_GET(0, reset_gpios), 1185 if (!gpio_is_ready_dt(&cfg->reset_gpio)) { in gc2145_init_0() 1186 LOG_ERR("%s: device %s is not ready", dev->name, cfg->reset_gpio.port->name); in gc2145_init_0()
|
D | ov5640.c | 115 struct gpio_dt_spec reset_gpio; member 943 if (!gpio_is_ready_dt(&cfg->reset_gpio)) { in ov5640_init() 944 LOG_ERR("%s: device %s is not ready", dev->name, cfg->reset_gpio.port->name); in ov5640_init() 961 if (cfg->reset_gpio.port != NULL) { in ov5640_init() 962 ret = gpio_pin_configure_dt(&cfg->reset_gpio, GPIO_OUTPUT_ACTIVE); in ov5640_init() 976 if (cfg->reset_gpio.port != NULL) { in ov5640_init() 977 gpio_pin_set_dt(&cfg->reset_gpio, 0); in ov5640_init() 1036 .reset_gpio = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {0}), \
|
D | ov2640.c | 437 struct gpio_dt_spec reset_gpio; member 991 ret = gpio_pin_configure_dt(&cfg->reset_gpio, GPIO_OUTPUT_ACTIVE); in ov2640_init() 996 gpio_pin_set_dt(&cfg->reset_gpio, 0); in ov2640_init() 998 gpio_pin_set_dt(&cfg->reset_gpio, 1); in ov2640_init() 1034 .reset_gpio = GPIO_DT_SPEC_INST_GET(0, reset_gpios), 1050 if (!gpio_is_ready_dt(&cfg->reset_gpio)) { in ov2640_init_0() 1052 cfg->reset_gpio.port->name); in ov2640_init_0()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_rf2xx_iface.c | 32 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst() 38 gpio_pin_set_dt(&conf->reset_gpio, 1); in rf2xx_iface_phy_rst() 40 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst()
|