Lines Matching refs:prop
174 #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
211 .cfg.periph.group = DT_PROP_BY_IDX(node_id, prop, 0), \
212 .cfg.periph.bit = DT_PROP_BY_IDX(node_id, prop, 1), \
236 #define Z_PINCTRL_NPCX_PSL_IN_DETECT_CONF_INIT(node_id, prop) \ argument
242 .cfg.psl_in.pol_group = DT_PHA(DT_PROP(node_id, prop), alts, group), \
243 .cfg.psl_in.pol_bit = DT_PHA(DT_PROP(node_id, prop), alts, bit), \
253 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
255 DT_PROP_BY_IDX(node_id, prop, idx), node_id), \
257 DT_PROP_BY_IDX(node_id, prop, idx), node_id)), ()) \
258 COND_CODE_1(Z_PINCTRL_NPCX_HAS_PUPD_PROP(DT_PROP_BY_IDX(node_id, prop, idx)), \
260 DT_PROP_BY_IDX(node_id, prop, idx), periph_pupd)), ()) \
261 COND_CODE_1(Z_PINCTRL_NPCX_HAS_PSL_IN_PROP(DT_PROP_BY_IDX(node_id, prop, idx)), \
263 DT_PROP_BY_IDX(node_id, prop, idx), psl_polarity)), ()) \
264 COND_CODE_1(DT_NODE_HAS_PROP(DT_PROP_BY_IDX(node_id, prop, idx), dev_ctl), \
266 DT_PROP_BY_IDX(node_id, prop, idx), dev_ctl)), ()) \
267 COND_CODE_1(DT_NODE_HAS_PROP(DT_PROP_BY_IDX(node_id, prop, idx), pinmux), \
269 DT_PROP_BY_IDX(node_id, prop, idx), pinmux)), ())
277 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
278 {DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT)}