There are different ways to use the compatible
string in the
properties
key of driver YAML files:
- When there is one IP and one
driver:
properties: compatible: items: - const: xlnx,zynqmp-csudma-1.0
- When multiple IPs have the same
driver:
properties: compatible: OneOf: - items: - enum: - xlnx,zynqmp-8.9a - arasan,sdhci-8.9a - enum: - xlnx,versal-8.9a - arasan,sdhci-8.9a - const: - xlnx,versal-net-emmc
- When the same IP has different
versions:
properties: compatible: OneOf: - items: - enum: - xlnx,axi-cdma-4.1 - xlnx,axi-cdma-1.00.a