Usage Information for "compatible" - 2023.2 English

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

Document ID
UG1647
Release Date
2023-11-10
Version
2023.2 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