[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8af66556-90d9-4360-ac38-f300f487f55a@samsung.com>
Date: Tue, 21 Jan 2025 22:29:33 +0100
From: Michal Wilczynski <m.wilczynski@...sung.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
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 01/18] dt-bindings: clock: Add VO subsystem clock
controller support
On 1/21/25 10:47, Krzysztof Kozlowski wrote:
> On Mon, Jan 20, 2025 at 06:20:54PM +0100, Michal Wilczynski wrote:
>> properties:
>> compatible:
>> - const: thead,th1520-clk-ap
>> + enum:
>> + - thead,th1520-clk-ap
>> + - thead,th1520-clk-vo
>>
>> reg:
>> maxItems: 1
>>
>> clocks:
>> items:
>> - - description: main oscillator (24MHz)
>> + - description: main oscillator (24MHz) or CLK_VIDEO_PLL
>
> thead,th1520-clk-ap gets also VIDEO_PLL? Aren't both serving the same
> purpose from these devices point of view? Bindings are telling what this
> device is expecting.
Since thead,th1520-clk-ap configures PLL clocks it takes the oscillator
24MHz as an input, so no.
The VO subsystem takes as an input VIDEO_PLL that's configured by the
AP.
I could do something like this if this needs to be formally expressed in
the schema:
if:
properties:
compatible:
contains:
const: thead,th1520-clk-ap
then:
properties:
clocks:
description:
main oscillator (24MHz)
if:
properties:
compatible:
contains:
const: thead,th1520-clk-vo
then:
properties:
clocks:
description:
VIDEO_PLL (derived from AP) for the VO clock controller.
>
>>
>> "#clock-cells":
>> const: 1
>> @@ -51,3 +54,10 @@ examples:
>> clocks = <&osc>;
>> #clock-cells = <1>;
>> };
>> +
>> + clock-controller@...10000 {
>> + compatible = "thead,th1520-clk-vo";
>
> Difference in one property does not justify new example. If there is
> goign to be resend, just drop.
>
>
>> + reg = <0xff010000 0x1000>;
>> + clocks = <&clk CLK_VIDEO_PLL>;
>> + #clock-cells = <1>;
>
> Best regards,
> Krzysztof
>
>
Powered by blists - more mailing lists