Lines Matching refs:detect_gpio
59 const struct gpio_dt_spec detect_gpio; member
155 if (gpio_pin_get_dt(&cfg->detect_gpio)) { in card_detect_gpio_cb()
819 } else if (cfg->detect_gpio.port) { in imx_usdhc_get_card_present()
820 data->card_present = gpio_pin_get_dt(&cfg->detect_gpio) > 0; in imx_usdhc_get_card_present()
859 if (cfg->detect_gpio.port) { in imx_usdhc_enable_interrupt()
860 ret = gpio_pin_interrupt_configure_dt(&cfg->detect_gpio, in imx_usdhc_enable_interrupt()
878 if (cfg->detect_gpio.port) { in imx_usdhc_enable_interrupt()
880 ret = gpio_pin_interrupt_configure_dt(&cfg->detect_gpio, in imx_usdhc_enable_interrupt()
894 if (cfg->detect_gpio.port) { in imx_usdhc_enable_interrupt()
896 ret = gpio_pin_interrupt_configure_dt(&cfg->detect_gpio, in imx_usdhc_enable_interrupt()
926 if (cfg->detect_gpio.port) { in imx_usdhc_disable_interrupt()
927 ret = gpio_pin_interrupt_configure_dt(&cfg->detect_gpio, in imx_usdhc_disable_interrupt()
941 if (cfg->detect_gpio.port) { in imx_usdhc_disable_interrupt()
942 ret = gpio_pin_interrupt_configure_dt(&cfg->detect_gpio, in imx_usdhc_disable_interrupt()
1023 if (cfg->detect_gpio.port) { in imx_usdhc_init()
1024 ret = gpio_pin_configure_dt(&cfg->detect_gpio, GPIO_INPUT); in imx_usdhc_init()
1029 BIT(cfg->detect_gpio.pin)); in imx_usdhc_init()
1030 ret = gpio_add_callback_dt(&cfg->detect_gpio, &data->cd_callback); in imx_usdhc_init()
1099 .detect_gpio = GPIO_DT_SPEC_INST_GET_OR(n, cd_gpios, {0}), \