读取dts中的属性值的接口:
of_get_property
of_property_read_string
of_property_read_string_index
of_property_read_u8
of_property_read_u32
of_property_read_u8_array
of_property_read_u32_array
of_property_read_u16
of_property_read_u16_array
中断解析接口:
irq_of_parse_and_map;根据device_node中的interrupts属性解析。
在需要使用中断的设备的DTS文件中,加上相应的属性,然后在对应设备的中断中调用该接口解析相应的中断配置信息。
device_node查找platform_device:
of_find_device_by_node
phandle查找node接口:
of_find_node_by_phandle
后续更新中......