Lines Matching +full:output +full:- +full:only
2 * Copyright (c) 2016 Open-RnD Sp. z o.o.
7 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/pinctrl/mchp-xec-pinctrl.h>
22 * We initially clear alternate output disable allowing us to set output state
23 * in the control register. Hardware sets output state bit in both control and
24 * parallel output register bits. Alternate output disable only controls which
27 * alternate function is input or bi-directional.
28 * Note 1: hardware allows input and output to be simultaneously enabled.
29 * Note 2: hardware interrupt detection is only on the input path.
41 return -EINVAL; in mec5_config_pin()
46 return -EIO; in mec5_config_pin()
64 cfg2[idx].val = (uint8_t)(temp - 1u); in mec5_config_pin()
68 /* Touch internal pull-up/pull-down? */ in mec5_config_pin()
78 /* Touch output enable. We always enable input */ in mec5_config_pin()
88 /* Touch output state? Bit can be set even if the direction is input only */ in mec5_config_pin()
98 /* Touch output buffer type? */ in mec5_config_pin()
129 /* HW sets output state set in control & parallel regs */ in mec5_config_pin()
132 return -EIO; in mec5_config_pin()
135 /* make output state in control read-only in control and read-write in parallel reg */ in mec5_config_pin()
138 return -EIO; in mec5_config_pin()
156 return -EINVAL; in pinctrl_configure_pins()