Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl_nxp_siul2_common.h
Go to the documentation of this file.
1/*
2 * Copyright 2022-2025 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_
8#define ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_
9
10#include <zephyr/devicetree.h>
11#include <zephyr/types.h>
12
14
15struct pinctrl_soc_reg {
16 uint8_t inst;
17 uint16_t idx;
18 uint32_t val;
19};
20
22typedef struct {
23 struct pinctrl_soc_reg mscr;
24 struct pinctrl_soc_reg imcr;
26
35#define Z_PINCTRL_STATE_PIN_INIT(group, prop, idx) \
36 {NXP_SIUL2_PINMUX_INIT(group, DT_PROP_BY_IDX(group, prop, idx))},
37
44#define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \
45 { \
46 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
47 Z_PINCTRL_STATE_PIN_INIT) \
48 }
49
51
52#endif /* ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_ */
Devicetree main header.
struct pinctrl_soc_pin pinctrl_soc_pin_t
Type for R-Car pin.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89