Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Devicetree pin control helpers. More...
Go to the source code of this file.
Macros | |
#define | DT_PINCTRL_BY_IDX(node_id, pc_idx, idx) |
Get a node identifier for a phandle in a pinctrl property by index. | |
#define | DT_PINCTRL_0(node_id, idx) |
Get a node identifier from a pinctrl-0 property. | |
#define | DT_PINCTRL_BY_NAME(node_id, name, idx) |
Get a node identifier for a phandle inside a pinctrl node by name. | |
#define | DT_PINCTRL_NAME_TO_IDX(node_id, name) |
Convert a pinctrl name to its corresponding index. | |
#define | DT_PINCTRL_IDX_TO_NAME_TOKEN(node_id, pc_idx) |
Convert a pinctrl property index to its name as a token. | |
#define | DT_PINCTRL_IDX_TO_NAME_UPPER_TOKEN(node_id, pc_idx) |
Like DT_PINCTRL_IDX_TO_NAME_TOKEN(), but with an uppercased result. | |
#define | DT_NUM_PINCTRLS_BY_IDX(node_id, pc_idx) |
Get the number of phandles in a pinctrl property. | |
#define | DT_NUM_PINCTRLS_BY_NAME(node_id, name) |
Like DT_NUM_PINCTRLS_BY_IDX(), but by name instead. | |
#define | DT_NUM_PINCTRL_STATES(node_id) |
Get the number of pinctrl properties in a node. | |
#define | DT_PINCTRL_HAS_IDX(node_id, pc_idx) |
Test if a node has a pinctrl property with an index. | |
#define | DT_PINCTRL_HAS_NAME(node_id, name) |
Test if a node has a pinctrl property with a name. | |
#define | DT_INST_PINCTRL_BY_IDX(inst, pc_idx, idx) |
Get a node identifier for a phandle in a pinctrl property by index for a DT_DRV_COMPAT instance. | |
#define | DT_INST_PINCTRL_0(inst, idx) |
Get a node identifier from a pinctrl-0 property for a DT_DRV_COMPAT instance. | |
#define | DT_INST_PINCTRL_BY_NAME(inst, name, idx) |
Get a node identifier for a phandle inside a pinctrl node for a DT_DRV_COMPAT instance. | |
#define | DT_INST_PINCTRL_NAME_TO_IDX(inst, name) |
Convert a pinctrl name to its corresponding index for a DT_DRV_COMPAT instance. | |
#define | DT_INST_PINCTRL_IDX_TO_NAME_TOKEN(inst, pc_idx) |
Convert a pinctrl index to its name as an uppercased token. | |
#define | DT_INST_PINCTRL_IDX_TO_NAME_UPPER_TOKEN(inst, pc_idx) |
Convert a pinctrl index to its name as an uppercased token. | |
#define | DT_INST_NUM_PINCTRLS_BY_IDX(inst, pc_idx) |
Get the number of phandles in a pinctrl property for a DT_DRV_COMPAT instance. | |
#define | DT_INST_NUM_PINCTRLS_BY_NAME(inst, name) |
Like DT_INST_NUM_PINCTRLS_BY_IDX(), but by name instead. | |
#define | DT_INST_NUM_PINCTRL_STATES(inst) |
Get the number of pinctrl properties in a DT_DRV_COMPAT instance. | |
#define | DT_INST_PINCTRL_HAS_IDX(inst, pc_idx) |
Test if a DT_DRV_COMPAT instance has a pinctrl property with an index. | |
#define | DT_INST_PINCTRL_HAS_NAME(inst, name) |
Test if a DT_DRV_COMPAT instance has a pinctrl property with a name. | |
Devicetree pin control helpers.