Lines Matching refs:node

46 #define Z_PINCTRL_SILABS_MODE_INIT(node)                                                           \  argument
47 (DT_PROP(node, drive_push_pull) ? (4 + DT_PROP(node, silabs_alternate_port_control)) \
48 : DT_PROP(node, drive_open_source) ? (6 + DT_PROP(node, bias_pull_down)) \
49 : DT_PROP(node, drive_open_drain) \
50 ? (8 + DT_PROP(node, silabs_input_filter) + 2 * DT_PROP(node, bias_pull_up) + \
51 4 * DT_PROP(node, silabs_alternate_port_control)) \
52 : DT_PROP(node, input_enable) \
53 ? ((DT_PROP(node, bias_pull_down) || DT_PROP(node, bias_pull_up)) \
54 ? (2 + DT_PROP(node, silabs_input_filter)) \
58 #define Z_PINCTRL_SILABS_DOUT_INIT(node) \ argument
59 (DT_PROP(node, drive_push_pull) ? DT_PROP(node, output_high) \
60 : DT_PROP(node, drive_open_drain) ? 1 \
61 : DT_PROP(node, input_enable) \
62 ? ((DT_PROP(node, bias_pull_down) || DT_PROP(node, bias_pull_up)) \
63 ? DT_PROP(node, bias_pull_up) \
64 : DT_PROP(node, silabs_input_filter)) \
65 : DT_PROP(node, input_disable) ? DT_PROP(node, bias_pull_up) \
68 #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)), \
78 .mode = Z_PINCTRL_SILABS_MODE_INIT(node), \
79 .dout = Z_PINCTRL_SILABS_DOUT_INIT(node)},