Lines Matching +full:40 +full:- +full:pin
4 * SPDX-License-Identifier: Apache-2.0
52 /* MIO pin function multiplexing (from Xilinx UG585 v1.13, B.28 SLCR) */
86 /* MIO SDIO CD/WP pin selection (from Xilinx UG585 v1.13, B.28 SLCR) */
107 /* MIO pin numbers */
148 #define MIO40 40
163 /* MIO pin groups (from Xilinx UG585 v1.13, table 2-4 "MIO-at-a-Glance") */
180 #define MIO_GROUP_SPI0_2_GRP_PINS 40, 41, 45
202 #define MIO_GROUP_SDIO0_2_GRP_PINS 40, 41, 42, 43, 44, 45
237 #define MIO_GROUP_CAN1_8_GRP_PINS 40, 41
260 #define MIO_GROUP_UART1_8_GRP_PINS 40, 41
282 #define MIO_GROUP_I2C1_7_GRP_PINS 40, 41
291 #define MIO_GROUP_TTC1_2_GRP_PINS 40, 41
337 #define MIO_GROUP_GPIO0_40_GRP_PINS 40
352 #define MIO_GROUP_USB1_0_GRP_PINS 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51
360 /* Iterate over each pinctrl-n phandle child */
367 * - Iterate over each pin in group and populate pinctrl_soc_pin_t
369 * - Iterate over each pin in pins and populate pinctrl_soc_pin_t
379 /* Process each pin in group using MIO_GROUP_x_PINS macros defined above */
386 #define Z_PINCTRL_STATE_PIN_CHILD_GROUP_PIN_INIT(pin, node_id) \ argument
387 Z_PINCTRL_STATE_PIN_INIT(node_id, pin)
389 /* Process pin using MIOx macros defines above */
393 /* Process pin functions and special functions (CD, WP) */
394 #define Z_PINCTRL_STATE_PIN_INIT(node_id, pin) \ argument
396 (Z_PINCTRL_STATE_PIN_SPECIAL_INIT(node_id, pin)), \
397 (Z_PINCTRL_STATE_PIN_FUNCTION_INIT(node_id, pin)))
399 /* Determine if pin has special function */
405 /* Populate pinctrl_soc_pin_t for each special function pin */
406 #define Z_PINCTRL_STATE_PIN_SPECIAL_INIT(node_id, pin) \ argument
410 .val = pin << UTIL_CAT(MIO_PIN_SPECIAL_SHIFT_, \
416 /* Populate pinctrl_soc_pin_t for each pin */
417 #define Z_PINCTRL_STATE_PIN_FUNCTION_INIT(node_id, pin) \ argument
421 .offset = pin * sizeof(uint32_t), \