def compat_is_coresight(dcompat):
    """
    Check if a device tree node claims compatibility with CoreSight.
    We don't check for "arm" here because an architecture-licensee core might be
    ETM-compatible but not be an Arm device.
    We also expect to see "primecell".
    """
    for dc in dcompat:
        if dc.startswith("coresight-"):
            return dc[10:]
    return None