Home
last modified time | relevance | path

Searched refs:reset_gpio (Results 1 – 25 of 43) sorted by relevance

12

/Zephyr-latest/drivers/gpio/
Dgpio_sn74hc595.c33 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), \
Dgpio_aw9523b.c38 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), \
Dgpio_tca6424a.c41 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/
Dwifi_winc1500_nm_bsp.c20 .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()
Dwifi_winc1500_nm_bsp_internal.h40 struct gpio_dt_spec reset_gpio; member
Dwifi_winc1500_nm_bus_wrapper.c102 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/
Dinput_ft5336.c57 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}), \
Dinput_pmw3610.c102 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/
Dmfd_ad559x.c67 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), \
Dmfd_adp5585.c87 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}), \
Dmfd_ad559x.h43 struct gpio_dt_spec reset_gpio; member
/Zephyr-latest/drivers/display/
Ddisplay_ist3931.c23 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), \
Ddisplay_hx8394.c19 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}), \
Ddisplay_rm67162.c190 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/
Dauxdisplay_itron.c56 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/
Dphy_microchip_ksz8081.c46 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}),
Dphy_ti_dp83825.c47 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}),
Dphy_realtek_rtl8211f.c63 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/
Dccs811.c456 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/
Dfxas21002.c337 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/
Dov7725.c179 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()
Dgc2145.c685 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()
Dov5640.c115 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}), \
Dov2640.c437 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/
Dieee802154_rf2xx_iface.c32 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()

12