Lines Matching refs:TEST_PH

23 #define TEST_PH	DT_NODELABEL(test_phandles)  macro
938 bool gpio_controller = DT_PROP_BY_PHANDLE(TEST_PH, ph, gpio_controller); in ZTEST()
939 size_t phs_freqs[] = { DT_FOREACH_PROP_ELEM(TEST_PH, phs, CLOCK_FREQUENCY_AND_COMMA) }; in ZTEST()
940 struct gpios_struct gps[] = DT_GPIO_LISTIFY(TEST_PH, gpios); in ZTEST()
943 zassert_true(DT_NODE_HAS_PROP(TEST_PH, ph), ""); in ZTEST()
944 zassert_true(DT_SAME_NODE(DT_PROP(TEST_PH, ph), in ZTEST()
946 zassert_equal(DT_PROP_LEN(TEST_PH, ph), 1, ""); in ZTEST()
947 zassert_true(DT_SAME_NODE(DT_PROP_BY_IDX(TEST_PH, ph, 0), in ZTEST()
953 zassert_true(DT_NODE_HAS_PROP(TEST_PH, phs), ""); in ZTEST()
955 zassert_equal(DT_PROP_LEN(TEST_PH, phs), 2, ""); in ZTEST()
956 zassert_true(DT_SAME_NODE(DT_PROP_BY_IDX(TEST_PH, phs, 1), in ZTEST()
964 zassert_equal(DT_PROP_BY_PHANDLE_IDX(TEST_PH, phs, 0, clock_frequency), in ZTEST()
966 zassert_equal(DT_PROP_BY_PHANDLE_IDX(TEST_PH, phs, 1, clock_frequency), in ZTEST()
970 zassert_equal(DT_PROP_BY_PHANDLE_IDX(TEST_PH, gpios, 0, in ZTEST()
972 zassert_equal(DT_PROP_BY_PHANDLE_IDX(TEST_PH, gpios, 1, in ZTEST()
974 zassert_true(!strcmp(DT_PROP_BY_PHANDLE_IDX(TEST_PH, gpios, 0, status), in ZTEST()
976 zassert_true(!strcmp(DT_PROP_BY_PHANDLE_IDX(TEST_PH, gpios, 1, status), in ZTEST()
980 zassert_true(!strcmp(DT_PROP_BY_PHANDLE_IDX_OR(TEST_PH, phs_or, 0, in ZTEST()
982 zassert_true(!strcmp(DT_PROP_BY_PHANDLE_IDX_OR(TEST_PH, phs_or, 1, in ZTEST()
986 zassert_true(DT_NODE_HAS_PROP(TEST_PH, gpios), ""); in ZTEST()
988 zassert_equal(DT_PROP_LEN(TEST_PH, gpios), 2, ""); in ZTEST()
991 zassert_true(DT_PROP_HAS_IDX(TEST_PH, gpios, 0), ""); in ZTEST()
992 zassert_true(DT_PROP_HAS_IDX(TEST_PH, gpios, 1), ""); in ZTEST()
993 zassert_false(DT_PROP_HAS_IDX(TEST_PH, gpios, 2), ""); in ZTEST()
996 zassert_false(DT_PROP_HAS_NAME(TEST_PH, foos, A), ""); in ZTEST()
997 zassert_true(DT_PROP_HAS_NAME(TEST_PH, foos, a), ""); in ZTEST()
998 zassert_false(DT_PROP_HAS_NAME(TEST_PH, foos, b-c), ""); in ZTEST()
999 zassert_true(DT_PROP_HAS_NAME(TEST_PH, foos, b_c), ""); in ZTEST()
1000 zassert_false(DT_PROP_HAS_NAME(TEST_PH, bazs, jane), ""); in ZTEST()
1003 zassert_true(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, gpios, 1, pin), ""); in ZTEST()
1004 zassert_true(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, gpios, 1, flags), ""); in ZTEST()
1006 zassert_false(DT_PROP_HAS_IDX(TEST_PH, pha_gpios, 1), ""); in ZTEST()
1007 zassert_false(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, pha_gpios, 1, pin), ""); in ZTEST()
1008 zassert_false(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, pha_gpios, 1, flags), in ZTEST()
1011 zassert_true(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, pha_gpios, 2, pin), ""); in ZTEST()
1012 zassert_false(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, pha_gpios, 2, flags), in ZTEST()
1015 zassert_true(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, pha_gpios, 3, pin), ""); in ZTEST()
1016 zassert_true(DT_PHA_HAS_CELL_AT_IDX(TEST_PH, pha_gpios, 3, flags), ""); in ZTEST()
1018 zassert_equal(DT_PROP_LEN(TEST_PH, pha_gpios), 4, ""); in ZTEST()
1021 zassert_true(DT_PHA_HAS_CELL(TEST_PH, gpios, flags), ""); in ZTEST()
1022 zassert_false(DT_PHA_HAS_CELL(TEST_PH, gpios, bar), ""); in ZTEST()
1025 zassert_true(DT_SAME_NODE(DT_PHANDLE_BY_IDX(TEST_PH, gpios, 0), TEST_GPIO_1), ""); in ZTEST()
1026 zassert_true(DT_SAME_NODE(DT_PHANDLE_BY_IDX(TEST_PH, gpios, 1), TEST_GPIO_2), ""); in ZTEST()
1029 zassert_true(DT_SAME_NODE(DT_PHANDLE(TEST_PH, gpios), TEST_GPIO_1), ""); in ZTEST()
1032 zassert_equal(DT_PHA(TEST_PH, gpios, pin), 10, ""); in ZTEST()
1033 zassert_equal(DT_PHA(TEST_PH, gpios, flags), 20, ""); in ZTEST()
1036 zassert_equal(DT_PHA_BY_IDX(TEST_PH, gpios, 0, pin), 10, ""); in ZTEST()
1037 zassert_equal(DT_PHA_BY_IDX(TEST_PH, gpios, 0, flags), 20, ""); in ZTEST()
1039 zassert_equal(DT_PHA_BY_IDX(TEST_PH, gpios, 1, pin), 30, ""); in ZTEST()
1040 zassert_equal(DT_PHA_BY_IDX(TEST_PH, gpios, 1, flags), 40, ""); in ZTEST()
1043 zassert_equal(DT_PHA_BY_NAME(TEST_PH, foos, a, foocell), 100, ""); in ZTEST()
1044 zassert_equal(DT_PHA_BY_NAME(TEST_PH, foos, b_c, foocell), 110, ""); in ZTEST()
1047 zassert_true(DT_SAME_NODE(DT_PHANDLE_BY_NAME(TEST_PH, foos, a), TEST_GPIO_1), ""); in ZTEST()
1048 zassert_true(DT_SAME_NODE(DT_PHANDLE_BY_NAME(TEST_PH, foos, b_c), TEST_GPIO_2), ""); in ZTEST()
1143 zassert_true(!strcmp(TO_STRING(DT_GPIO_CTLR_BY_IDX(TEST_PH, gpios, 0)), in ZTEST()
1145 zassert_true(!strcmp(TO_STRING(DT_GPIO_CTLR_BY_IDX(TEST_PH, gpios, 1)), in ZTEST()
1149 zassert_true(!strcmp(TO_STRING(DT_GPIO_CTLR(TEST_PH, gpios)), in ZTEST()
1153 zassert_equal(DT_GPIO_PIN_BY_IDX(TEST_PH, gpios, 0), 10, ""); in ZTEST()
1154 zassert_equal(DT_GPIO_PIN_BY_IDX(TEST_PH, gpios, 1), 30, ""); in ZTEST()
1157 zassert_equal(DT_GPIO_PIN(TEST_PH, gpios), 10, ""); in ZTEST()
1160 zassert_equal(DT_GPIO_FLAGS_BY_IDX(TEST_PH, gpios, 0), 20, ""); in ZTEST()
1161 zassert_equal(DT_GPIO_FLAGS_BY_IDX(TEST_PH, gpios, 1), 40, ""); in ZTEST()
1164 zassert_equal(DT_GPIO_FLAGS(TEST_PH, gpios), 20, ""); in ZTEST()
1404 zassert_true(DT_SAME_NODE(DT_PWMS_CTLR_BY_IDX(TEST_PH, 0), in ZTEST()
1406 zassert_true(DT_SAME_NODE(DT_PWMS_CTLR_BY_IDX(TEST_PH, 1), in ZTEST()
1410 zassert_true(DT_SAME_NODE(DT_PWMS_CTLR_BY_NAME(TEST_PH, red), in ZTEST()
1412 zassert_true(DT_SAME_NODE(DT_PWMS_CTLR_BY_NAME(TEST_PH, green), in ZTEST()
1416 zassert_true(DT_SAME_NODE(DT_PWMS_CTLR(TEST_PH), in ZTEST()
1420 zassert_equal(DT_PWMS_CELL_BY_IDX(TEST_PH, 1, channel), 5, ""); in ZTEST()
1421 zassert_equal(DT_PWMS_CELL_BY_IDX(TEST_PH, 1, period), 100, ""); in ZTEST()
1422 zassert_equal(DT_PWMS_CELL_BY_IDX(TEST_PH, 1, flags), 1, ""); in ZTEST()
1425 zassert_equal(DT_PWMS_CELL_BY_NAME(TEST_PH, red, channel), 8, ""); in ZTEST()
1426 zassert_equal(DT_PWMS_CELL_BY_NAME(TEST_PH, red, period), 200, ""); in ZTEST()
1427 zassert_equal(DT_PWMS_CELL_BY_NAME(TEST_PH, red, flags), 3, ""); in ZTEST()
1430 zassert_equal(DT_PWMS_CELL(TEST_PH, channel), 8, ""); in ZTEST()
1431 zassert_equal(DT_PWMS_CELL(TEST_PH, period), 200, ""); in ZTEST()
1432 zassert_equal(DT_PWMS_CELL(TEST_PH, flags), 3, ""); in ZTEST()
1435 zassert_equal(DT_PWMS_CHANNEL_BY_IDX(TEST_PH, 1), 5, ""); in ZTEST()
1438 zassert_equal(DT_PWMS_CHANNEL_BY_NAME(TEST_PH, green), 5, ""); in ZTEST()
1441 zassert_equal(DT_PWMS_CHANNEL(TEST_PH), 8, ""); in ZTEST()
1444 zassert_equal(DT_PWMS_PERIOD_BY_IDX(TEST_PH, 1), 100, ""); in ZTEST()
1447 zassert_equal(DT_PWMS_PERIOD_BY_NAME(TEST_PH, green), 100, ""); in ZTEST()
1450 zassert_equal(DT_PWMS_PERIOD(TEST_PH), 200, ""); in ZTEST()
1453 zassert_equal(DT_PWMS_FLAGS_BY_IDX(TEST_PH, 1), 1, ""); in ZTEST()
1456 zassert_equal(DT_PWMS_FLAGS_BY_NAME(TEST_PH, green), 1, ""); in ZTEST()
1459 zassert_equal(DT_PWMS_FLAGS(TEST_PH), 3, ""); in ZTEST()
1899 DT_FOREACH_PROP_ELEM(TEST_PH, ph, PATH_COMMA) in ZTEST()
1914 DT_FOREACH_PROP_ELEM(TEST_PH, phs, PATH_COMMA) in ZTEST()
1926 DT_FOREACH_PROP_ELEM(TEST_PH, gpios, PIN_COMMA) in ZTEST()