[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250121-tiny-crazy-goshawk-dce1dc@krzk-bin>
Date: Tue, 21 Jan 2025 11:08:38 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Michal Wilczynski <m.wilczynski@...sung.com>
Cc: mturquette@...libre.com, sboyd@...nel.org, robh@...nel.org,
krzk+dt@...nel.org, conor+dt@...nel.org, drew@...7.com, guoren@...nel.org,
wefu@...hat.com, jassisinghbrar@...il.com, paul.walmsley@...ive.com,
palmer@...belt.com, aou@...s.berkeley.edu, frank.binns@...tec.com,
matt.coster@...tec.com, maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
tzimmermann@...e.de, airlied@...il.com, simona@...ll.ch, ulf.hansson@...aro.org,
jszhang@...nel.org, p.zabel@...gutronix.de, m.szyprowski@...sung.com,
linux-clk@...r.kernel.org, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org, dri-devel@...ts.freedesktop.org, linux-pm@...r.kernel.org
Subject: Re: [RFC v3 11/18] dt-bindings: gpu: Add compatibles for T-HEAD
TH1520 GPU
On Mon, Jan 20, 2025 at 06:21:04PM +0100, Michal Wilczynski wrote:
> reg:
> maxItems: 1
> @@ -25,11 +30,8 @@ properties:
> maxItems: 3
>
> clock-names:
> - items:
> - - const: core
> - - const: mem
> - - const: sys
> minItems: 1
> + maxItems: 3
So what is the third item? It cannot be anything, but must be
constrained.
I understand that you clean it up and maybe the cleaning is correct, but
it should be separate commit with its own explanation.
>
> interrupts:
> maxItems: 1
> @@ -47,8 +49,6 @@ required:
> - clock-names
> - interrupts
>
> -additionalProperties: false
> -
> allOf:
> - if:
> properties:
> @@ -58,7 +58,28 @@ allOf:
> then:
> properties:
> clocks:
> + minItems: 1
Drop minItems here.
> maxItems: 1
> + clock-names:
> + items:
> + - const: core
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: thead,th1520-gpu
> + then:
> + properties:
> + clocks:
> + minItems: 2
> + maxItems: 2
> + clock-names:
> + items:
> + - const: core
> + - const: sys
> +
> +unevaluatedProperties: false
That's not explained. Does not look correct, either, unless you fix some
issue, but then again: separate commit.
Best regards,
Krzysztof
Powered by blists - more mailing lists