0%

DeviceTree

center>ZYNQ设备树编写

compatible

The compatible property value consists of one or more strings that define the specific programming model for
the device. This list of strings should be used by a client program for device driver selection. The property
value consists of a concatenated list of null terminated strings, from most specific to most general. They
allow a device to express its compatibility with a family of similar devices, potentially allowing a single
device driver to match against several devices.
(通过该字符串定义设备)

1
compatible = "fsl,mpc8641", "ns16550";

status

“okay”,”disabled”,”fail”,”fail-sss”

reg

The reg property describes the address of the device’s resources within the address space defined by its parent
bus. Most commonly this means the offsets and lengths of memory-mapped IO register blocks, but may have
a different meaning on some bus types. Addresses in the address space defined by :: the:root node are cpu :::: CPU
real addresses

坚持原创技术分享,您的支持将鼓励我继续创作!