Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 243) sorted by relevance

12345678910

/Zephyr-latest/soc/nordic/common/
Dsoc_nrf_common.h129 #define NRF_DT_GPIOS_TO_PSEL_BY_IDX(node_id, prop, idx) \ argument
130 ((DT_PROP_BY_PHANDLE_IDX(node_id, prop, idx, port) << 5) | \
131 (DT_GPIO_PIN_BY_IDX(node_id, prop, idx) & 0x1F))
137 #define NRF_DT_GPIOS_TO_PSEL(node_id, prop) \ argument
138 NRF_DT_GPIOS_TO_PSEL_BY_IDX(node_id, prop, 0)
147 #define NRF_DT_GPIOS_TO_PSEL_OR(node_id, prop, default_value) \ argument
148 COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
149 (NRF_DT_GPIOS_TO_PSEL(node_id, prop)), \
187 #define NRF_DT_GPIOTE_INST_BY_IDX(node_id, prop, idx) \ argument
188 DT_PROP(DT_PHANDLE(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx), \
[all …]
Dpinctrl_soc.h37 #define Z_CHECK_CLOCKPIN_ENABLE(node_id, prop, idx, fun) \ argument
38 DT_PROP_BY_IDX(node_id, prop, idx) == fun ? BIT(NRF_CLOCKPIN_ENABLE_POS) :
52 #define Z_GET_CLOCKPIN_ENABLE(node_id, prop, idx, p_node_id) \ argument
56 (), NRF_GET_FUN(DT_PROP_BY_IDX(node_id, prop, idx))) \
77 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx, p_node_id) \ argument
78 (DT_PROP_BY_IDX(node_id, prop, idx) | \
84 Z_GET_CLOCKPIN_ENABLE(node_id, prop, idx, p_node_id) | \
94 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
95 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/include/zephyr/
Ddevicetree.h752 #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop) argument
786 #define DT_PROP_LEN(node_id, prop) DT_CAT4(node_id, _P_, prop, _LEN) argument
802 #define DT_PROP_LEN_OR(node_id, prop, default_value) \ argument
803 COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
804 (DT_PROP_LEN(node_id, prop)), (default_value))
826 #define DT_PROP_HAS_IDX(node_id, prop, idx) \ argument
827 IS_ENABLED(DT_CAT6(node_id, _P_, prop, _IDX_, idx, _EXISTS))
861 #define DT_PROP_HAS_NAME(node_id, prop, name) \ argument
862 IS_ENABLED(DT_CAT6(node_id, _P_, prop, _NAME_, name, _EXISTS))
898 #define DT_PROP_BY_IDX(node_id, prop, idx) \ argument
[all …]
/Zephyr-latest/soc/nuvoton/npcx/common/
Dpinctrl_soc.h174 #define Z_PINCTRL_NPCX_PERIPH_PINMUX_INIT(node_id, prop) \ argument
180 .cfg.periph.group = DT_PHA(DT_PROP(node_id, prop), alts, group), \
181 .cfg.periph.bit = DT_PHA(DT_PROP(node_id, prop), alts, bit), \
182 .cfg.periph.inverted = DT_PHA(DT_PROP(node_id, prop), alts, inv), \
191 #define Z_PINCTRL_NPCX_DEVICE_CONTROL_INIT(node_id, prop) \ argument
194 .cfg.dev_ctl.offest = DT_PROP_BY_IDX(node_id, prop, 0), \
195 .cfg.dev_ctl.field_offset = DT_PROP_BY_IDX(node_id, prop, 1), \
196 .cfg.dev_ctl.field_size = DT_PROP_BY_IDX(node_id, prop, 2), \
197 .cfg.dev_ctl.field_value = DT_PROP_BY_IDX(node_id, prop, 3), \
206 #define Z_PINCTRL_NPCX_PERIPH_PUPD_INIT(node_id, prop) \ argument
[all …]
/Zephyr-latest/tests/drivers/charger/sbs_charger/src/
Dtest_sbs_charger.c37 charger_prop_t prop = CHARGER_PROP_MAX; in ZTEST_USER_F() local
40 int ret = charger_get_prop(fixture->dev, prop, &val); in ZTEST_USER_F()
42 zassert_equal(ret, -ENOTSUP, "Getting bad property %d has a good status.", prop); in ZTEST_USER_F()
48 charger_prop_t prop = CHARGER_PROP_ONLINE; in ZTEST_USER_F() local
51 int ret = charger_get_prop(fixture->dev, prop, &val); in ZTEST_USER_F()
53 zassert_equal(ret, 0, "Getting good property %d has a good status.", prop); in ZTEST_USER_F()
59 charger_prop_t prop = CHARGER_PROP_MAX; in ZTEST_USER_F() local
62 int ret = charger_set_prop(fixture->dev, prop, &val); in ZTEST_USER_F()
64 zassert_equal(ret, -ENOTSUP, "Setting bad property %d has a good status.", prop); in ZTEST_USER_F()
/Zephyr-latest/scripts/kconfig/
Dkconfigfunctions.py199 def _node_int_prop(node, prop, unit=None): argument
218 if prop not in node.props:
221 if node.props[prop].type != "int":
224 return node.props[prop].val >> _dt_units_to_scale(unit)
227 def _node_array_prop(node, prop, index=0, unit=None): argument
244 if prop not in node.props:
246 if node.props[prop].type != "array":
248 if int(index) >= len(node.props[prop].val):
250 return node.props[prop].val[int(index)] >> _dt_units_to_scale(unit)
252 def _node_ph_array_prop(node, prop, index, cell, unit=None): argument
[all …]
/Zephyr-latest/soc/telink/tlsr/tlsr951x/
Dpinctrl_soc.h26 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
27 (DT_PROP(DT_PROP_BY_IDX(node_id, prop, idx), pinmux) | \
28 ((B91_PULL_DOWN * DT_PROP(DT_PROP_BY_IDX(node_id, prop, idx), bias_pull_down)) \
30 ((B91_PULL_UP * DT_PROP(DT_PROP_BY_IDX(node_id, prop, idx), bias_pull_up)) \
40 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
41 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
/Zephyr-latest/include/zephyr/bluetooth/services/
Dots.h106 #define BT_OTS_OBJ_SET_PROP_DELETE(prop) \ argument
107 WRITE_BIT(prop, BT_OTS_OBJ_PROP_DELETE, 1)
113 #define BT_OTS_OBJ_SET_PROP_EXECUTE(prop) \ argument
114 WRITE_BIT(prop, BT_OTS_OBJ_PROP_EXECUTE, 1)
120 #define BT_OTS_OBJ_SET_PROP_READ(prop) \ argument
121 WRITE_BIT(prop, BT_OTS_OBJ_PROP_READ, 1)
127 #define BT_OTS_OBJ_SET_PROP_WRITE(prop) \ argument
128 WRITE_BIT(prop, BT_OTS_OBJ_PROP_WRITE, 1)
134 #define BT_OTS_OBJ_SET_PROP_APPEND(prop) \ argument
135 WRITE_BIT(prop, BT_OTS_OBJ_PROP_APPEND, 1)
[all …]
/Zephyr-latest/soc/silabs/common/
Dpinctrl_soc.h68 #define Z_PINCTRL_STATE_PIN_INIT(node, prop, idx) \ argument
70 FIELD_GET(SILABS_PINCTRL_PERIPH_BASE_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
71 .port = FIELD_GET(SILABS_PINCTRL_GPIO_PORT_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
72 .pin = FIELD_GET(SILABS_PINCTRL_GPIO_PIN_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
74 (FIELD_GET(SILABS_PINCTRL_HAVE_EN_MASK, DT_PROP_BY_IDX(node, prop, idx)) \
75 ? FIELD_GET(SILABS_PINCTRL_EN_BIT_MASK, DT_PROP_BY_IDX(node, prop, idx)) \
77 .route_offset = FIELD_GET(SILABS_PINCTRL_ROUTE_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
81 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
82 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pins, \
97 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) (DT_PROP_BY_IDX(node_id, prop, idx)),
[all …]
/Zephyr-latest/soc/renesas/ra/common_fsp/
Dpinctrl_soc.h40 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
42 .port_num = RA_GET_PORT_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
43 .pin_num = RA_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
48 (RA_GET_MODE(DT_PROP_BY_IDX(node_id, prop, idx)) << 16) | \
49 (RA_GET_PSEL(DT_PROP_BY_IDX(node_id, prop, idx)) << 24), \
58 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
60 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, psels, \
/Zephyr-latest/soc/renesas/smartbond/da1469x/
Dpinctrl_soc.h24 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
26 SMARTBOND_GET_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
27 SMARTBOND_GET_PORT(DT_PROP_BY_IDX(node_id, prop, idx)), \
28 SMARTBOND_GET_PIN(DT_PROP_BY_IDX(node_id, prop, idx)), \
35 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
36 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/soc/xlnx/zynqmp/
Dpinctrl_soc.h43 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
45 .pin = ZYNQMP_GET_PIN(DT_PROP_BY_IDX(node_id, prop, idx)), \
46 .func = ZYNQMP_GET_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
49 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) { \ argument
50 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/soc/espressif/esp32/
Dpinctrl_soc.h35 #define Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx) DT_PROP_BY_IDX(node_id, prop, idx) argument
60 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
61 {.pinmux = Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx), \
70 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
72 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/soc/espressif/esp32c2/
Dpinctrl_soc.h35 #define Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx) DT_PROP_BY_IDX(node_id, prop, idx) argument
60 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
61 {.pinmux = Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx), \
70 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
72 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/soc/espressif/esp32c3/
Dpinctrl_soc.h35 #define Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx) DT_PROP_BY_IDX(node_id, prop, idx) argument
60 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
61 {.pinmux = Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx), \
70 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
72 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/soc/espressif/esp32c6/
Dpinctrl_soc.h35 #define Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx) \ argument
36 DT_PROP_BY_IDX(node_id, prop, idx)
61 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
62 { .pinmux = Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx), \
71 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
72 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/soc/espressif/esp32s2/
Dpinctrl_soc.h35 #define Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx) DT_PROP_BY_IDX(node_id, prop, idx) argument
60 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
61 {.pinmux = Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx), \
70 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
72 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/soc/espressif/esp32s3/
Dpinctrl_soc.h37 #define Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx) DT_PROP_BY_IDX(node_id, prop, idx) argument
62 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
63 {.pinmux = Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx), \
72 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
74 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/scripts/release/
Dlist_devicetree_bindings_changes.py270 return [AddedProperty(prop) for prop in binding_end.prop2specs
271 if prop not in binding_start.prop2specs]
277 return [RemovedProperty(prop) for prop in binding_start.prop2specs
278 if prop not in binding_end.prop2specs]
287 lambda prop: binding_start.prop2specs[prop].type,
288 lambda prop: binding_end.prop2specs[prop].type,
298 lambda prop: binding_start.prop2specs[prop].enum,
299 lambda prop: binding_end.prop2specs[prop].enum,
309 lambda prop: binding_start.prop2specs[prop].const,
310 lambda prop: binding_end.prop2specs[prop].const,
[all …]
/Zephyr-latest/soc/sifive/sifive_freedom/common/
Dpinctrl_soc.h23 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
24 SIFIVE_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx))
26 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
27 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
/Zephyr-latest/soc/snps/emsdp/
Dpinctrl_soc.h24 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
25 EMSDP_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx))
27 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
28 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
/Zephyr-latest/soc/nxp/s32/common/
Dsiul2_pinctrl.h35 #define Z_PINCTRL_STATE_PIN_INIT(group, prop, idx) \ argument
36 {NXP_S32_PINMUX_INIT(group, DT_PROP_BY_IDX(group, prop, idx))},
44 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
46 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/soc/renesas/rzt2m/
Dpinctrl_soc.h34 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
36 .port = RZT2M_GET_PORT(DT_PROP_BY_IDX(node_id, prop, idx)), \
37 .pin = RZT2M_GET_PIN(DT_PROP_BY_IDX(node_id, prop, idx)), \
38 .func = RZT2M_GET_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
48 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
49 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/soc/ti/k3/am6x/
Dpinctrl_soc.h30 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
31 TI_K3_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx))
33 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
34 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
/Zephyr-latest/include/zephyr/drivers/pinctrl/
Dpinctrl_soc_sam_common.h42 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
43 ((DT_PROP_BY_IDX(node_id, prop, idx) << SAM_PINCTRL_PINMUX_POS) \
49 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
50 ((DT_PROP_BY_IDX(node_id, prop, idx) << SAM_PINCTRL_PINMUX_POS) \
65 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
66 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \

12345678910