Lines Matching +full:10 +full:- +full:pin
4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rcar-common.h>
17 uint8_t bank:5; /* bank number 0 - 18 */
18 uint8_t shift:5; /* bit shift 0 - 28 */
22 /** Pull-up, pull-down, or bias disable is requested */
26 /** Select pull-up resistor if set pull-down otherwise */
28 /** Alternate function for the pin is requested */
30 /** Ignore IPSR settings for alternate function pin */
37 /** Type for R-Car pin. */
39 uint16_t pin; member
46 #define RCAR_IPSR(node_id) DT_PROP_BY_IDX(node_id, pin, 1)
47 #define RCAR_HAS_IPSR(node_id) DT_PROP_HAS_IDX(node_id, pin, 1)
49 /* Offsets are defined in dt-bindings pinctrl-rcar-common.h */
52 ((RCAR_IPSR(node_id) >> 10U) & 0x1FU), \
58 ((((RCAR_IPSR(node_id) >> 10U) & 0x1FU) == 0x1F) && \
71 .pin = DT_PROP_BY_IDX(node_id, pin, 0), \
85 * @brief Utility macro to initialize each pin.
104 uint16_t pin; member
115 uint32_t puen; /** Pull-enable or pull-up control register */
116 uint32_t pud; /** Pull-up/down or pull-down control register */
121 * @brief Utility macro to check if a pin is GPIO capable
123 * @param pin
124 * @return true if pin is GPIO capable false otherwise
126 #define RCAR_IS_GP_PIN(pin) (pin < PIN_NOGPSR_START) argument