Home
last modified time | relevance | path

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

123456789

/Zephyr-Core-3.7.0/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 …]
/Zephyr-Core-3.7.0/include/zephyr/
Ddevicetree.h663 #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop) argument
697 #define DT_PROP_LEN(node_id, prop) DT_CAT4(node_id, _P_, prop, _LEN) argument
713 #define DT_PROP_LEN_OR(node_id, prop, default_value) \ argument
714 COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
715 (DT_PROP_LEN(node_id, prop)), (default_value))
737 #define DT_PROP_HAS_IDX(node_id, prop, idx) \ argument
738 IS_ENABLED(DT_CAT6(node_id, _P_, prop, _IDX_, idx, _EXISTS))
772 #define DT_PROP_HAS_NAME(node_id, prop, name) \ argument
773 IS_ENABLED(DT_CAT6(node_id, _P_, prop, _NAME_, name, _EXISTS))
809 #define DT_PROP_BY_IDX(node_id, prop, idx) \ argument
[all …]
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/soc/renesas/ra/common_fsp/
Dpinctrl_soc.h36 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
38 .port_num = RA_GET_PORT_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
39 .pin_num = RA_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
43 (RA_GET_MODE(DT_PROP_BY_IDX(node_id, prop, idx)) << 16) | \
44 (RA_GET_PSEL(DT_PROP_BY_IDX(node_id, prop, idx)) << 24), \
53 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
55 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, psels, \
/Zephyr-Core-3.7.0/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)
59 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
60 { .pinmux = Z_PINCTRL_ESP32_PINMUX_INIT(node_id, prop, idx), \
69 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
70 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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), \
/Zephyr-Core-3.7.0/soc/raspberrypi/rp2xxx/
Dpinctrl_soc.h43 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
45 RP2_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
46 RP2_GET_PIN_ALT_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
61 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
62 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-Core-3.7.0/soc/silabs/common/
Dpinctrl_soc.h40 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) (DT_PROP_BY_IDX(node_id, prop, idx)), argument
48 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
50 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, psels, \
/Zephyr-Core-3.7.0/tests/drivers/pinctrl/api/src/
Dpinctrl_soc.h78 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
79 (((DT_PROP_BY_IDX(node_id, prop, idx) << TEST_PIN_POS) \
93 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
94 {DT_FOREACH_CHILD_VARGS(DT_PROP_BY_IDX(node_id, prop, 0), \

123456789