Re: [PATCH v8 1/8] dt-bindings: media: qcom: Add JPEG encoder binding
From: Krzysztof Kozlowski
Date: Thu Nov 12 2026 - 05:25:18 EST
On Tue, Nov 10, 2026 at 06:39:02PM +0200, Atanas Filipov wrote:
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: qcom,sc7280-jpeg-enc
> + then:
> + properties:
> + power-domains:
> + items:
> + - description: Titan top GDSC
> + - description: CX power domain
> + power-domain-names:
> + items:
> + - const: titan_top
> + - const: cx
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: qcom,sm8250-jpeg-enc
> + then:
> + properties:
> + power-domains:
> + items:
> + - description: Titan top GDSC
> + - description: MX power domain
> + - description: MMCX power domain
CX and MMCX are the same inputs, right? Then make MMCX second, unify the
list at the top-level with minItems and here you only narrow
min/maxItems.
HPG also calls both domains only as MX and CX.
> + power-domain-names:
> + items:
> + - const: titan_top
> + - const: mx
> + - const: mmcx
> +
> +additionalProperties: false
Best regards,
Krzysztof