[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2842aa7b-e369-4c80-b651-a3a9b09d17ff@kernel.org>
Date: Thu, 5 Dec 2024 08:28:32 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Stephen Boyd <sboyd@...nel.org>,
Michal Wilczynski <m.wilczynski@...sung.com>, airlied@...il.com,
aou@...s.berkeley.edu, conor+dt@...nel.org, drew@...7.com,
frank.binns@...tec.com, guoren@...nel.org, jassisinghbrar@...il.com,
jszhang@...nel.org, krzk+dt@...nel.org, m.szyprowski@...sung.com,
maarten.lankhorst@...ux.intel.com, matt.coster@...tec.com,
mripard@...nel.org, mturquette@...libre.com, palmer@...belt.com,
paul.walmsley@...ive.com, robh@...nel.org, simona@...ll.ch,
tzimmermann@...e.de, ulf.hansson@...aro.org, wefu@...hat.com
Cc: 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 PATCH v1 05/14] dt-bindings: clock: thead,th1520: Add
support for Video Output subsystem
On 04/12/2024 21:21, Stephen Boyd wrote:
>>> No, that's a clear NAK. You claim you have no address space but in the
>>> same time you have address space via regmap.
>>
>> I see your concern. The VOSYS subsystem's address space includes
>> registers for various components, such as clock gates and reset
>> controls, which are scattered throughout the address space as specified
>> in the manual 4.4.1 [2]. Initially, I attempted to use a shared syscon
>> regmap for access, but I realize this might not be the best approach.
>>
>> To address this, I'll specify the 'reg' property in each node to define
>> the address ranges explicitly fragmenting the address space for the VOSYS
>> manually.
>>
>> vosys_clk: clock-controller@...f528050 {
>> compatible = "thead,th1520-clk-vo";
>> reg = <0xff 0xef528050 0x0 0x8>;
>> #clock-cells = <1>;
>> };
>>
>> pd: power-domain@...f528000 {
>> compatible = "thead,th1520-pd";
>> reg = <0xff 0xef528000 0x0 0x8>;
>> #power-domain-cells = <1>;
>> };
>
> You should have one node:
>
> clock-controller@...f528000 {
> compatible = "thead,th1520-vo";
> reg = <0xff 0xef528050 0x0 0x1a04>;
Yes, obviously, but probably entire block:
<0xff 0xef528000 0x0 0x1000>;
> #clock-cells = <1>;
> #power-domain-cells = <1>;
> };
Best regards,
Krzysztof
Powered by blists - more mailing lists