Usage Information for "compatible" - 2024.1 English

Porting Guide for embeddedsw Components System Device Tree Based Build Flow (UG1647)

Document ID
UG1647
Release Date
2024-06-21
Version
2024.1 English

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