Lines Matching +full:child +full:- +full:prop +full:- +full:2

4  * SPDX-License-Identifier: Apache-2.0
126 "vnd,gpio-device"), ""); in ZTEST()
127 zassert_true(!strcmp(DT_PROP_LAST(TEST_DEADBEEF, compatible), "vnd,gpio-device"), ""); in ZTEST()
132 zassert_equal(DT_NUM_REGS(TEST_ABCD1234), 2, ""); in ZTEST()
140 "vnd,gpio-device"), ""); in ZTEST()
156 "vnd,gpio-device"), ""); in ZTEST()
169 "vnd,gpio-device"), ""); in ZTEST()
190 "vnd,gpio-device"), ""); in ZTEST()
199 "vnd,gpio-device"), ""); in ZTEST()
226 2, ""); in ZTEST()
265 2, ""); in ZTEST()
284 zassert_equal(DT_PROP_OR(TEST_REG, not_a_property, -1), -1, ""); in ZTEST()
287 zassert_equal(DT_PHA_BY_IDX_OR(TEST_TEMP, dmas, 1, not_a_cell, -1), -1, in ZTEST()
291 zassert_equal(DT_PHA_OR(TEST_TEMP, dmas, not_a_cell, -1), -1, ""); in ZTEST()
295 zassert_equal(DT_PHA_BY_NAME_OR(TEST_TEMP, dmas, tx, not_a_cell, -1), in ZTEST()
296 -1, ""); in ZTEST()
302 zassert_equal(DT_INST_PROP_OR(0, not_a_property, -1), -1, ""); in ZTEST()
307 zassert_equal(DT_INST_PROP_LEN_OR(0, not_a_property, -1), -1, ""); in ZTEST()
312 zassert_equal(DT_INST_PHA_BY_IDX_OR(0, dmas, 1, not_a_cell, -1), -1, in ZTEST()
316 zassert_equal(DT_INST_PHA_OR(0, dmas, not_a_cell, -1), -1, ""); in ZTEST()
320 zassert_equal(DT_INST_PHA_BY_NAME_OR(0, dmas, tx, not_a_cell, -1), -1, in ZTEST()
345 zassert_equal(DT_NODE_EXISTS(DT_INST(2, vnd_gpio_device)), 1, ""); in ZTEST()
347 zassert_equal(DT_NUM_INST_STATUS_OKAY(vnd_gpio_device), 2, ""); in ZTEST()
376 (TA_HAS_COMPAT(vnd_not_a_test_array_compat) << 2)); in ZTEST()
438 /* Test a nested I2C bus using vnd,i2c-mux. */ in ZTEST()
450 "expected TEST_SPI_NO_CS as bus for vnd,spi-device-2"); in ZTEST()
456 * either vnd,spi-device. in ZTEST()
481 zassert_equal(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT), 2, ""); in ZTEST()
493 zassert_equal(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT), 2, ""); in ZTEST()
548 #define VND_VENDOR "A stand-in for a real vendor which can be used in examples and tests"
549 #define ZEP_VENDOR "Zephyr-specific binding"
556 zassert_true(DT_NODE_VENDOR_HAS_IDX(TEST_VENDOR, 2), ""); in ZTEST()
561 zassert_true(!strcmp(DT_NODE_VENDOR_BY_IDX(TEST_VENDOR, 2), ZEP_VENDOR), ""); in ZTEST()
566 zassert_true(!strcmp(DT_NODE_VENDOR_BY_IDX_OR(TEST_VENDOR, 2, NULL), ZEP_VENDOR), ""); in ZTEST()
581 zassert_true(DT_NODE_MODEL_HAS_IDX(TEST_MODEL, 2), ""); in ZTEST()
586 zassert_true(!strcmp(DT_NODE_MODEL_BY_IDX(TEST_MODEL, 2), ZEP_MODEL), ""); in ZTEST()
591 zassert_true(!strcmp(DT_NODE_MODEL_BY_IDX_OR(TEST_MODEL, 2, NULL), ZEP_MODEL), ""); in ZTEST()
608 zassert_false(DT_REG_HAS_IDX(TEST_ABCD1234, 2), ""); in ZTEST()
660 zassert_false(DT_INST_REG_HAS_IDX(0, 2), ""); in ZTEST()
730 zassert_equal(DT_NUM_IRQS(TEST_I2C_BUS), 2, ""); in ZTEST()
736 zassert_true(DT_IRQ_HAS_IDX(TEST_SPI_BUS_0, 2), ""); in ZTEST()
744 zassert_false(DT_IRQ_HAS_IDX(TEST_I2C_BUS, 2), ""); in ZTEST()
749 zassert_equal(DT_IRQ_BY_IDX(TEST_SPI_BUS_0, 2, irq), 10, ""); in ZTEST()
752 zassert_equal(DT_IRQ_BY_IDX(TEST_SPI_BUS_0, 2, priority), 1, ""); in ZTEST()
757 zassert_equal(DT_IRQ_BY_NAME(TEST_I2C_BUS, status, priority), 2, ""); in ZTEST()
764 zassert_true(DT_IRQ_HAS_CELL_AT_IDX(TEST_IRQ, 2, irq), ""); in ZTEST()
765 zassert_true(DT_IRQ_HAS_CELL_AT_IDX(TEST_IRQ, 2, priority), ""); in ZTEST()
766 zassert_false(DT_IRQ_HAS_CELL_AT_IDX(TEST_IRQ, 2, foo), ""); in ZTEST()
781 zassert_equal(DT_IRQ(TEST_I2C_BUS, priority), 2, ""); in ZTEST()
798 zassert_equal(DT_IRQN_BY_IDX(DT_INST(0, DT_DRV_COMPAT), 2), 60, ""); in ZTEST()
804 zassert_equal(DT_IRQN_BY_IDX(DT_INST(0, DT_DRV_COMPAT), 2), in ZTEST()
817 zassert_equal(DT_INST_IRQ_HAS_IDX(0, 2), 1, ""); in ZTEST()
823 zassert_equal(DT_INST_IRQ_BY_IDX(0, 2, irq), 60, ""); in ZTEST()
826 zassert_equal(DT_INST_IRQ_BY_IDX(0, 2, priority), 7, ""); in ZTEST()
851 zassert_equal(DT_INST_IRQN_BY_IDX(0, 2), 60, ""); in ZTEST()
857 zassert_equal(DT_INST_IRQN_BY_IDX(0, 2), in ZTEST()
865 zassert_true(DT_INST_IRQ_HAS_CELL_AT_IDX(0, 2, irq), ""); in ZTEST()
866 zassert_true(DT_INST_IRQ_HAS_CELL_AT_IDX(0, 2, priority), ""); in ZTEST()
867 zassert_false(DT_INST_IRQ_HAS_CELL_AT_IDX(0, 2, foo), ""); in ZTEST()
887 zassert_equal(DT_IRQN_BY_IDX(TEST_IRQ_EXT, 2), in ZTEST()
891 zassert_equal(DT_IRQN_BY_IDX(TEST_IRQ_EXT, 2), 42, ""); in ZTEST()
900 zassert_equal(DT_IRQ_LEVEL(TEST_SPI), 2, ""); in ZTEST()
913 zassert_equal(DT_INST_IRQ_LEVEL(0), 2, ""); in ZTEST()
921 #define CLOCK_FREQUENCY_AND_COMMA(node_id, prop, idx) \ argument
922 DT_PROP_BY_PHANDLE_IDX(node_id, prop, idx, clock_frequency),
925 #define DT_GPIO_ELEM(idx, node_id, prop) \ argument
927 DT_PHA_BY_IDX(node_id, prop, idx, pin),\
928 DT_PHA_BY_IDX(node_id, prop, idx, flags),\
930 #define DT_GPIO_LISTIFY(node_id, prop) \ argument
931 { LISTIFY(DT_PROP_LEN(node_id, prop), DT_GPIO_ELEM, (,), \
932 node_id, prop) }
954 zassert_equal(ARRAY_SIZE(phs_freqs), 2, ""); in ZTEST()
955 zassert_equal(DT_PROP_LEN(TEST_PH, phs), 2, ""); in ZTEST()
969 /* DT_PROP_BY_PHANDLE_IDX on a phandle-array type property */ in ZTEST()
985 /* phandle-array */ in ZTEST()
987 zassert_equal(ARRAY_SIZE(gps), 2, ""); in ZTEST()
988 zassert_equal(DT_PROP_LEN(TEST_PH, gpios), 2, ""); in ZTEST()
993 zassert_false(DT_PROP_HAS_IDX(TEST_PH, gpios, 2), ""); in ZTEST()
998 zassert_false(DT_PROP_HAS_NAME(TEST_PH, foos, b-c), ""); in ZTEST()
1005 /* pha-gpios index 1 has nothing, not even a phandle */ in ZTEST()
1010 /* index 2 only has a pin cell, no 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()
1082 zassert_false(DT_INST_PROP_HAS_IDX(0, gpios, 2), ""); in ZTEST()
1087 zassert_false(DT_INST_PROP_HAS_NAME(0, foos, b-c), ""); in ZTEST()
1098 /* index 2 only has pin, no flags */ in ZTEST()
1099 zassert_true(DT_INST_PHA_HAS_CELL_AT_IDX(0, pha_gpios, 2, pin), ""); in ZTEST()
1100 zassert_false(DT_INST_PHA_HAS_CELL_AT_IDX(0, pha_gpios, 2, flags), ""); in ZTEST()
1167 zassert_equal(DT_NUM_GPIO_HOGS(TEST_GPIO_HOG_1), 2, ""); in ZTEST()
1323 zassert_false(DT_DMAS_HAS_IDX(TEST_TEMP, 2), ""); in ZTEST()
1324 zassert_false(DT_INST_DMAS_HAS_IDX(0, 2), ""); in ZTEST()
1547 zassert_equal(DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(2, 0), 0, ""); in ZTEST()
1548 zassert_equal(DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(2, 10000), 10000, ""); in ZTEST()
1549 zassert_equal(DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(2, 20000), 20000, ""); in ZTEST()
1575 zassert_equal(DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(2, 125000), 125000, ""); in ZTEST()
1576 zassert_equal(DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(2, 1000000), 1000000, ""); in ZTEST()
1577 zassert_equal(DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(2, 5000000), 1000000, ""); in ZTEST()
1615 zassert_equal(ARRAY_SIZE(c), 2, ""); in ZTEST()
1619 zassert_equal(a[2], 3000, ""); in ZTEST()
1623 zassert_true(DT_PROP_HAS_IDX(TEST_ARRAYS, a, 2), ""); in ZTEST()
1640 zassert_equal(DT_PROP_BY_IDX(TEST_ARRAYS, a, 2), a[2], ""); in ZTEST()
1641 zassert_equal(DT_PROP_LAST(TEST_ARRAYS, a), a[2], ""); in ZTEST()
1647 zassert_equal(b[2], 0xcc, ""); in ZTEST()
1652 zassert_true(DT_PROP_HAS_IDX(TEST_ARRAYS, b, 2), ""); in ZTEST()
1658 zassert_equal(DT_PROP_BY_IDX(TEST_ARRAYS, b, 2), b[2], ""); in ZTEST()
1668 zassert_false(DT_PROP_HAS_IDX(TEST_ARRAYS, c, 2), ""); in ZTEST()
1673 zassert_equal(DT_PROP_LEN(TEST_ARRAYS, c), 2, ""); in ZTEST()
1693 zassert_equal(2, DT_FOREACH_NODE_VARGS(IS_ALIASES_VARGS, 2), ""); in ZTEST()
1694 zassert_equal(2, DT_FOREACH_NODE_VARGS(IS_DISABLED_GPIO_VARGS, 2), ""); in ZTEST()
1695 zassert_equal(2, DT_FOREACH_STATUS_OKAY_NODE_VARGS(IS_ALIASES_VARGS, 2), ""); in ZTEST()
1696 zassert_equal(0, DT_FOREACH_STATUS_OKAY_NODE_VARGS(IS_DISABLED_GPIO_VARGS, 2), ""); in ZTEST()
1710 * For-each-node type macro tests. in ZTEST()
1713 * for-each-property type macros. in ZTEST()
1720 * "/test/enum-0" "/test/enum-1" in ZTEST()
1726 zassert_true(!strcmp(str, "/test/enum-0/test/enum-1") || in ZTEST()
1727 !strcmp(str, "/test/enum-1/test/enum-0"), ""); in ZTEST()
1733 * 0 + 2 + 3 in ZTEST()
1745 * 0 + 2 + 3 in ZTEST()
1760 zassert_equal(val, 2, ""); in ZTEST()
1801 zassert_equal(enum_test_gpio_1, 2, ""); in ZTEST()
1806 zassert_equal(TEST_NODELABEL_ALLCAPS_added, 2, ""); in ZTEST()
1815 zassert_true(!strcmp(nodelabels[2], "test_gpio_1"), ""); in ZTEST()
1848 #define TIMES_TWO(node_id, prop, idx) \ in ZTEST() argument
1849 (2 * DT_PROP_BY_IDX(node_id, prop, idx)), in ZTEST()
1850 #define BY_IDX_COMMA(node_id, prop, idx) DT_PROP_BY_IDX(node_id, prop, idx), in ZTEST() argument
1859 zassert_equal(array_a[2], 6000, ""); in ZTEST()
1866 zassert_equal(array_b[0], 2 * 0xAA, ""); in ZTEST()
1867 zassert_equal(array_b[1], 2 * 0xBB, ""); in ZTEST()
1868 zassert_equal(array_b[2], 2 * 0xCC, ""); in ZTEST()
1869 zassert_equal(array_b[3], 2 * 0xDD, ""); in ZTEST()
1875 zassert_equal(ARRAY_SIZE(array_c), 2, ""); in ZTEST()
1895 #define PATH_COMMA(node_id, prop, idx) \ in ZTEST() argument
1896 DT_NODE_PATH(DT_PROP_BY_IDX(node_id, prop, idx)), in ZTEST()
1917 zassert_equal(ARRAY_SIZE(array_phs), 2, ""); in ZTEST()
1923 #define PIN_COMMA(node_id, prop, idx) DT_GPIO_PIN_BY_IDX(node_id, prop, idx), in ZTEST() argument
1929 zassert_equal(ARRAY_SIZE(array_gpios), 2, ""); in ZTEST()
1942 zassert_equal(array_sep[2], 3000, ""); in ZTEST()
1954 zassert_equal(inst_array[2], array_a[2], ""); in ZTEST()
1963 zassert_equal(inst_array_sep[2], array_sep[2], ""); in ZTEST()
1969 #define TIMES_TWO_ADD(node_id, prop, idx, arg) \ in ZTEST() argument
1970 ((2 * DT_PROP_BY_IDX(node_id, prop, idx)) + arg), in ZTEST()
1979 zassert_equal(array[2], 6003, ""); in ZTEST()
1981 #define PROP_PLUS_ARG(node_id, prop, idx, arg) \ in ZTEST() argument
1982 (DT_PROP_BY_IDX(node_id, prop, idx) + arg) in ZTEST()
1992 zassert_equal(array_sep[2], 3003, ""); in ZTEST()
2004 zassert_equal(inst_array[2], array[2], ""); in ZTEST()
2014 zassert_equal(inst_array_sep[2], array_sep[2], ""); in ZTEST()
2030 struct test_gpio_data *data = dev->data; in test_gpio_init()
2032 data->init_called = 1; in test_gpio_init()
2063 const struct device *devs[2] = { DEVICE_DT_INST_GET(0), DEVICE_DT_INST_GET(1) }; in ZTEST()
2069 zassert_equal(DT_NUM_INST_STATUS_OKAY(vnd_gpio_device), 2, ""); in ZTEST()
2071 data_dev0 = devs[0]->data; in ZTEST()
2072 data_dev1 = devs[1]->data; in ZTEST()
2077 zassert_true(data_dev0->is_gpio_ctlr, ""); in ZTEST()
2078 zassert_true(data_dev1->is_gpio_ctlr, ""); in ZTEST()
2079 zassert_true(data_dev0->init_called, ""); in ZTEST()
2080 zassert_true(data_dev1->init_called, ""); in ZTEST()
2083 config_abdc = dev_abcd->config; in ZTEST()
2085 zassert_equal(config_abdc->reg_addr, 0xabcd1234, ""); in ZTEST()
2086 zassert_equal(config_abdc->reg_len, 0x500, ""); in ZTEST()
2133 /* DT_ENUM_IDX_BY_IDX and DT_ENUM_HAS_VALUE_BY_IDX on string-array enum */ in ZTEST()
2136 zassert_equal(DT_ENUM_IDX_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 2), 0); in ZTEST()
2145 zassert_true(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 2, foo)); in ZTEST()
2146 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 2, baz)); in ZTEST()
2147 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 2, bar)); in ZTEST()
2148 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 2, zoo)); in ZTEST()
2150 /* DT_ENUM_IDX_BY_IDX and DT_ENUM_HAS_VALUE_BY_IDX on int-array enum */ in ZTEST()
2153 zassert_equal(DT_ENUM_IDX_BY_IDX(DT_NODELABEL(test_enum_int_array), val, 2), 3); in ZTEST()
2161 zassert_true(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_int_array), val, 2, 4)); in ZTEST()
2162 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_int_array), val, 2, 3)); in ZTEST()
2163 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_int_array), val, 2, 7)); in ZTEST()
2165 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_int_array), val, 3, 2)); in ZTEST()
2174 zassert_equal(DT_ENUM_IDX_OR(DT_NODELABEL(test_enum_default_0), val, 2), in ZTEST()
2176 zassert_equal(DT_ENUM_IDX_OR(DT_NODELABEL(test_enum_default_1), val, 2), in ZTEST()
2177 2, ""); in ZTEST()
2185 /* DT_ENUM_IDX_OR on string-array value */ in ZTEST()
2186 zassert_equal(DT_ENUM_IDX_BY_IDX_OR(DT_NODELABEL(test_enum_string_array), val, 0, 2), in ZTEST()
2188 zassert_equal(DT_ENUM_IDX_BY_IDX_OR(DT_NODELABEL(test_enum_string_array), val, 5, 2), in ZTEST()
2189 2, ""); in ZTEST()
2190 /* DT_ENUM_IDX_OR on int-array value */ in ZTEST()
2204 zassert_equal(DT_INST_ENUM_IDX_OR(0, val, 2), 0, ""); in ZTEST()
2211 zassert_equal(DT_INST_ENUM_IDX_OR(0, val, 2), 2, ""); in ZTEST()
2228 zassert_false(DT_INST_ENUM_HAS_VALUE_BY_IDX(0, val, 2, baz), ""); in ZTEST()
2260 zassert_true(DT_CLOCKS_HAS_IDX(TEST_TEMP, 2), ""); in ZTEST()
2268 zassert_equal(DT_CLOCKS_CELL_BY_IDX(TEST_TEMP, 2, bits), 2, ""); in ZTEST()
2269 zassert_equal(DT_CLOCKS_CELL_BY_IDX(TEST_TEMP, 2, bus), 8, ""); in ZTEST()
2279 /* clock-freq on fixed clock */ in ZTEST()
2303 zassert_true(DT_INST_CLOCKS_HAS_IDX(0, 2), ""); in ZTEST()
2311 zassert_equal(DT_INST_CLOCKS_CELL_BY_IDX(0, 2, bits), 2, ""); in ZTEST()
2312 zassert_equal(DT_INST_CLOCKS_CELL_BY_IDX(0, 2, bus), 8, ""); in ZTEST()
2322 /* clock-freq on fixed clock */ in ZTEST()
2335 * The parent's label for the first instance of vnd,spi-device, in ZTEST()
2336 * child of TEST_SPI, is the same as TEST_SPI. in ZTEST()
2390 val), 2, ""); in ZTEST()
2394 zassert_equal(DT_PROP(DT_INST_CHILD(0, child_c), val), 2, ""); in ZTEST()
2401 #define TEST_FUNC(child) { DT_PROP(child, val) } in ZTEST() argument
2402 #define TEST_FUNC_AND_COMMA(child) TEST_FUNC(child), in ZTEST() argument
2445 zassert_equal(ARRAY_SIZE(vals_status_okay), 2, ""); in ZTEST()
2446 zassert_equal(ARRAY_SIZE(vals_status_okay_inst), 2, ""); in ZTEST()
2447 zassert_equal(ARRAY_SIZE(vals_status_okay_sep), 2, ""); in ZTEST()
2448 zassert_equal(ARRAY_SIZE(vals_status_okay_inst_sep), 2, ""); in ZTEST()
2452 zassert_equal(vals[2].val, 2, ""); in ZTEST()
2455 zassert_equal(vals_sep[2].val, 2, ""); in ZTEST()
2458 zassert_equal(vals_inst[2].val, 2, ""); in ZTEST()
2461 zassert_equal(vals_inst_sep[2].val, 2, ""); in ZTEST()
2480 #define TEST_FUNC(child, arg) { DT_PROP(child, val) + arg } in ZTEST() argument
2481 #define TEST_FUNC_AND_COMMA(child, arg) TEST_FUNC(child, arg), in ZTEST() argument
2524 zassert_equal(ARRAY_SIZE(vals_status_okay), 2, ""); in ZTEST()
2525 zassert_equal(ARRAY_SIZE(vals_status_okay_inst), 2, ""); in ZTEST()
2526 zassert_equal(ARRAY_SIZE(vals_status_okay_sep), 2, ""); in ZTEST()
2527 zassert_equal(ARRAY_SIZE(vals_status_okay_inst_sep), 2, ""); in ZTEST()
2530 zassert_equal(vals[1].val, 2, ""); in ZTEST()
2531 zassert_equal(vals[2].val, 3, ""); in ZTEST()
2533 zassert_equal(vals_sep[1].val, 2, ""); in ZTEST()
2534 zassert_equal(vals_sep[2].val, 3, ""); in ZTEST()
2536 zassert_equal(vals_inst[1].val, 2, ""); in ZTEST()
2537 zassert_equal(vals_inst[2].val, 3, ""); in ZTEST()
2539 zassert_equal(vals_inst_sep[1].val, 2, ""); in ZTEST()
2540 zassert_equal(vals_inst_sep[2].val, 3, ""); in ZTEST()
2542 zassert_equal(vals_status_okay[1].val, 2, ""); in ZTEST()
2544 zassert_equal(vals_status_okay_inst[1].val, 2, ""); in ZTEST()
2546 zassert_equal(vals_status_okay_sep[1].val, 2, ""); in ZTEST()
2548 zassert_equal(vals_status_okay_inst_sep[1].val, 2, ""); in ZTEST()
2561 zassert_equal(DT_CHILD_NUM_STATUS_OKAY(TEST_CHILDREN), 2, ""); in ZTEST()
2562 zassert_equal(DT_INST_CHILD_NUM_STATUS_OKAY(0), 2, ""); in ZTEST()
2604 zassert_equal(DT_RANGES_HAS_IDX(TEST_RANGES_PCIE, 2), 1, ""); in ZTEST()
2611 zassert_equal(DT_RANGES_HAS_CHILD_BUS_FLAGS_AT_IDX(TEST_RANGES_PCIE, 2), in ZTEST()
2618 zassert_equal(ranges_pcie_flags[2], 0x3000000, ""); in ZTEST()
2621 zassert_equal(ranges_child_bus_addr[2], 0x8000000000, ""); in ZTEST()
2624 zassert_equal(ranges_parent_bus_addr[2], 0x8000000000, ""); in ZTEST()
2627 zassert_equal(ranges_length[2], 0x8000000000, ""); in ZTEST()
2661 zassert_equal(count, 2, ""); in ZTEST()
2665 zassert_equal(DT_RANGES_HAS_IDX(TEST_RANGES_OTHER, 2), 0, ""); in ZTEST()
2670 zassert_equal(HAS_FLAGS(TEST_RANGES_OTHER, 2), 0, ""); in ZTEST()
2798 * Combined ordinals for /test/test-children are from in ZTEST()
2824 "test-children at %zu", i); in ZTEST()
2829 * Combined ordinals for /test/test-children/child-a in ZTEST()
2851 "child-a at %zu", i); in ZTEST()
2884 * We go through the STRINGIFY()->atoi conversion cycle to avoid in ZTEST()
2911 "temperature-sensor"), ""); in ZTEST()
2913 "reg-holder"), ""); in ZTEST()
2920 zassert_equal(DT_NODE_CHILD_IDX(DT_NODELABEL(test_child_c)), 2, ""); in ZTEST()
2958 zassert_equal(DT_PINCTRL_NAME_TO_IDX(TEST_TEMP, f_o_o2), 2, ""); in ZTEST()
2960 zassert_equal(DT_NUM_PINCTRLS_BY_IDX(TEST_TEMP, 0), 2, ""); in ZTEST()
2962 zassert_equal(DT_NUM_PINCTRLS_BY_NAME(TEST_TEMP, default), 2, ""); in ZTEST()
2969 zassert_equal(DT_PINCTRL_HAS_IDX(TEST_TEMP, 2), 1, ""); in ZTEST()
2988 MAKE_TOKEN(2) = 12, in ZTEST()
2993 MAKE_UPPER_TOKEN(2) = 22, in ZTEST()
3026 zassert_equal(DT_INST_PINCTRL_NAME_TO_IDX(0, f_o_o2), 2, ""); in ZTEST()
3028 zassert_equal(DT_INST_NUM_PINCTRLS_BY_IDX(0, 0), 2, ""); in ZTEST()
3030 zassert_equal(DT_INST_NUM_PINCTRLS_BY_NAME(0, default), 2, ""); in ZTEST()
3037 zassert_equal(DT_INST_PINCTRL_HAS_IDX(0, 2), 1, ""); in ZTEST()
3056 MAKE_TOKEN(2) = 12, in ZTEST()
3060 MAKE_UPPER_TOKEN(2) = 22, in ZTEST()
3102 zassert_equal(channel_rx.channel_id, 2, ""); in ZTEST()
3105 zassert_equal(DT_MBOX_CHANNEL_BY_NAME(TEST_TEMP, rx), 2, ""); in ZTEST()
3113 zassert_equal(DT_MBOX_CHANNEL_BY_NAME(TEST_TEMP, rx), 2, ""); in ZTEST()
3189 zassert_between_inclusive(ids[i], 0, ARRAY_SIZE(ids) - 1, ""); in ZTEST()
3328 zassert_equal(DT_STRING_TOKEN_BY_IDX(DT_NODELABEL(test_str_array_token_0), val, 2), in ZTEST()
3334 zassert_equal(DT_STRING_TOKEN_BY_IDX(DT_NODELABEL(test_str_array_token_1), val, 2), in ZTEST()
3343 zassert_equal(DT_STRING_UPPER_TOKEN_BY_IDX(DT_NODELABEL(test_str_array_token_0), val, 2), in ZTEST()
3349 zassert_equal(DT_STRING_UPPER_TOKEN_BY_IDX(DT_NODELABEL(test_str_array_token_1), val, 2), in ZTEST()
3360 DT_INST_STRING_TOKEN_BY_IDX(inst, val, 2) \ in ZTEST()
3368 zassert_equal(STRING_TOKEN_BY_IDX_VAR(DT_NODELABEL(test_str_array_token_0))[2], in ZTEST()
3374 zassert_equal(STRING_TOKEN_BY_IDX_VAR(DT_NODELABEL(test_str_array_token_1))[2], in ZTEST()
3382 DT_INST_STRING_UPPER_TOKEN_BY_IDX(inst, val, 2) \ in ZTEST()
3390 zassert_equal(STRING_UPPER_TOKEN_BY_IDX_VAR(DT_NODELABEL(test_str_array_token_0))[2], in ZTEST()
3396 zassert_equal(STRING_UPPER_TOKEN_BY_IDX_VAR(DT_NODELABEL(test_str_array_token_1))[2], in ZTEST()
3410 const double f1_expected = 0.9e-3; in ZTEST()
3411 const double delta = 0.1e-4; in ZTEST()
3463 double STRING_UNQUOTED_OR_VAR(DT_DRV_INST(inst))[2] = { \ in ZTEST()
3501 #define XMINUS - in ZTEST()
3504 const double delta = 0.1e-4; in ZTEST()
3511 zassert_within(DT_STRING_UNQUOTED_BY_IDX(DT_NODELABEL(test_stra_unquoted_f0), val, 2), in ZTEST()
3520 zassert_within(DT_STRING_UNQUOTED_BY_IDX(DT_NODELABEL(test_stra_unquoted_f1), val, 2), in ZTEST()
3529 zassert_within(DT_STRING_UNQUOTED_BY_IDX(DT_NODELABEL(test_stra_unquoted_t), val, 2), in ZTEST()
3544 DT_INST_STRING_UNQUOTED_BY_IDX(inst, val, 2), \ in ZTEST()
3553 zassert_within(STRING_UNQUOTED_BY_IDX_VAR(DT_NODELABEL(test_stra_unquoted_f0))[2], in ZTEST()
3562 zassert_within(STRING_UNQUOTED_BY_IDX_VAR(DT_NODELABEL(test_stra_unquoted_f1))[2], in ZTEST()
3571 zassert_within(STRING_UNQUOTED_BY_IDX_VAR(DT_NODELABEL(test_stra_unquoted_t))[2], in ZTEST()
3599 zassert_str_equal(DT_PROP_BY_IDX(DT_NODELABEL(test_stra_escape), val, 2), "first\nsecond"); in ZTEST()
3630 /* reg-width on reset */ in ZTEST()
3659 /* reg-width on reset */ in ZTEST()