Lines Matching +full:hold +full:- +full:gpios
2 * Copyright (c) 2018-2021 Nordic Semiconductor ASA.
4 * SPDX-License-Identifier: Apache-2.0
32 GET_PORT(reset_input, gpios, 0) == 0 && \
33 GET_PIN(reset_input, gpios, 0) == 18)
123 const struct device *gpio = GET_DEV(reset_input, gpios, 0); in reset_pin_configure()
124 gpio_pin_t pin = GET_PIN(reset_input, gpios, 0); in reset_pin_configure()
125 gpio_dt_flags_t flags = GET_FLAGS(reset_input, gpios, 0); in reset_pin_configure()
128 LOG_ERR("%s is not ready", gpio->name); in reset_pin_configure()
129 return -ENODEV; in reset_pin_configure()
135 rc, GET_PORT(reset_input, gpios, 0), pin); in reset_pin_configure()
152 GET_PORT(reset_input, gpios, 0), pin); in reset_pin_configure()
169 gpio_flags_t flags = cfg->flags; in init()
171 if (!device_is_ready(cfg->gpio)) { in init()
172 LOG_ERR("%s is not ready", cfg->gpio->name); in init()
173 return -ENODEV; in init()
176 flags |= (cfg->on ? GPIO_OUTPUT_ACTIVE in init()
178 rc = gpio_pin_configure(cfg->gpio, cfg->pin, flags); in init()
181 cfg->port, cfg->pin, flags); in init()
184 rc, cfg->port, cfg->pin, cfg->name); in init()
185 } else if (cfg->info) { in init()
187 cfg->name, cfg->on ? "ENABLED" : "disabled"); in init()
204 return -EIO; in init()
222 * HOLD line in the flash chip may not be properly pulled up internally in early_init()