This article provides the complete related output of all the of function demos.
For related subjects, please refer to the SOC Table of Contents.
Completed code download: of function tests
|||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||| Node was successfully found via of_find_node_by_name Node name is: test_node2 Node was successfully found via of_find_node_by_type Node name is: test_node1 Node was successfully found via of_find_compatible_node Node name is: test_node1 Node was successfully found via of_find_matching_node_and_match Node name is: fii-dt-driver Node was successfully found via of_find_node_by_path Node name is: test_node1 #################################################### Parent node of test_node2 was successfully found via of_get_parent Node name is: test_node1 Next child node of test_node1 was successfully found via of_get_next_child Node name is: test_node2 #################################################### Compatible property of test_node1 was successfully found via of_find_property Property name is: compatible propname = 4 Compatible property of test_node1 was successfully found via of_property_count_elems_of_size Property element count is: 18 test_array of test_node1 was successfully found via of_property_read_u32_index Property value at index 0 is: ret = 0, 0x12345678 Property value at index 1 is: ret = 0, 0xaabbccdd Property value at index 2 is: ret = 0, 0x1234abcd Property value at index 3 is: ret = -75, 0x1234abcd Property value at index 4 is: ret = -75, 0x1234abcd ---------------------------------------------------- test_array of test_node1 was successfully found via of_property_read_u8_array Return value : 0 Property value is: 0x12 Return value : 0 Property value is: 0x34 Return value : 0 Property value is: 0x56 Return value : 0 Property value is: 0x78 Return value : 0 Property value is: 0xaa u8_test_array of test_node2 was successfully found via of_property_read_u8_array Return value : 0 Property value is: 0x10 Return value : 0 Property value is: 0x20 Return value : 0 Property value is: 0x30 Return value : 0 Property value is: 0x40 Return value : 0 Property value is: 0x50 test_array of test_node1 was successfully found via of_property_read_u16_array Return value : 0 Property value is: 0x1234 Return value : 0 Property value is: 0x5678 Return value : 0 Property value is: 0xaabb Return value : 0 Property value is: 0xccdd Return value : 0 Property value is: 0x1234 u16_test_array of test_node2 was successfully found via of_property_read_u16_array Return value : 0 Property value is: 0x1000 Return value : 0 Property value is: 0x2000 Return value : 0 Property value is: 0x3000 Return value : 0 Property value is: 0x4000 Return value : 0 Property value is: 0x5000 u32_test_array of test_node2 was successfully found via of_property_read_u32_array Return value : 0 Property value is: 0x100000 Return value : 0 Property value is: 0x200000 Return value : 0 Property value is: 0x300000 Return value : 0 Property value is: 0x400000 Return value : 0 Property value is: 0x500000 u64_test_array of test_node2 was successfully found via of_property_read_u64_array Return value : 0 Property value is: 0x10000000 Return value : 0 Property value is: 0x20000000 Return value : 0 Property value is: 0x30000000 Return value : 0 Property value is: 0x40000000 Return value : 0 Property value is: 0x50000000 ---------------------------------------------------- u8_test_array of test_node2 was successfully found via of_property_read_u8 Return value : 0 Property value is: 0x10 u8_test of test_node2 was successfully found via of_property_read_u8 Return value : 0 Property value is: 0x99 u16_test_array of test_node2 was successfully found via of_property_read_u16 Return value : 0 Property value is: 0x1000 u16_test of test_node2 was successfully found via of_property_read_u16 Return value : 0 Property value is: 0x9999 u32_test_array of test_node2 was successfully found via of_property_read_u32 Return value : 0 Property value is: 0x100000 u32_test of test_node2 was successfully found via of_property_read_u32 Return value : 0 Property value is: 0x999999 u64_test_array of test_node2 was successfully found via of_property_read_u64 Return value : 0 Property value is: 0x10000000 u64_test of test_node2 was successfully found via of_property_read_u64 Return value : 0 Property value is: 0x99999999 ---------------------------------------------------- status was successfully found via of_property_read_string Return value : 0 Property value is: okay Address Cells was successfully found via of_n_addr_cells Return value : 1 Size Cells was successfully found via of_n_size_cells Return value : 1 #################################################### Compatible was successfully found via of_device_is_compatible Return value : 1073741823 Address was successfully found via of_get_address Return value : 0xc7a3660c Address was successfully translated via of_translate_address Return value : 0x2ee8d000 Resource was successfully transfered via of_address_to_resource Return value: 0 Property value is: 0x43c00000 Mapping was successful via of_iomap Return value: 0xf0a08000 |||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||||||