diff --git a/bindings/thermal/qcom-spmi-adc-tm5.yaml b/bindings/thermal/qcom-spmi-adc-tm5.yaml index dbcdf7ae..22c258e0 100644 --- a/bindings/thermal/qcom-spmi-adc-tm5.yaml +++ b/bindings/thermal/qcom-spmi-adc-tm5.yaml @@ -17,8 +17,20 @@ properties: reg: maxItems: 1 - interrupts: - maxItems: 1 + - if: + properties: + compatible: + contains: + const: qcom,spmi-adc-tm5 + then: + properties: + interrupts: + maxItems: 1 + required: + - interrupts + else: + properties: + interrupts: false "#thermal-sensor-cells": const: 1 @@ -105,7 +117,6 @@ patternProperties: required: - compatible - reg - - interrupts - "#address-cells" - "#size-cells" - "#thermal-sensor-cells"