[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b727f099-f734-49d3-1099-dfdb241b4074@linaro.org>
Date: Tue, 17 Jan 2023 12:08:46 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Kelvin Cheung <keguang.zhang@...il.com>,
Rob Herring <robh@...nel.org>
Cc: Michael Turquette <mturquette@...libre.com>,
linux-mips@...r.kernel.org, linux-clk@...r.kernel.org,
Stephen Boyd <sboyd@...nel.org>, linux-kernel@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
Subject: Re: [PATCH 1/2] dt-bindings: clock: Add binding for Loongson-1 clock
driver
On 17/01/2023 11:54, Kelvin Cheung wrote:
> Rob Herring <robh@...nel.org> 于2023年1月13日周五 23:26写道:
>>
>>
>> On Fri, 13 Jan 2023 19:07:37 +0800, Keguang Zhang wrote:
>>> Add devicetree binding document for the Loongson-1 clock driver.
>>>
>>> Signed-off-by: Keguang Zhang <keguang.zhang@...il.com>
>>> ---
>>> .../bindings/clock/loongson,ls1x-clk.yaml | 81 +++++++++++++++++++
>>> 1 file changed, 81 insertions(+)
>>> create mode 100644 Documentation/devicetree/bindings/clock/loongson,ls1x-clk.yaml
>>>
>>
>> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
>> on your patch (DT_CHECKER_FLAGS is new in v5.13):
>>
>> yamllint warnings/errors:
>>
>> dtschema/dtc warnings/errors:
>> Documentation/devicetree/bindings/clock/loongson,ls1x-clk.example.dts:36.39-41.15: Warning (unique_unit_address_if_enabled): /example-0/clocks/cpu_clk@...78034: duplicate unit-address (also used in node /example-0/clocks/ahb_clk@...78034)
>
> I did notice this warning.
> But my situation is the cpu_clk and ahb_clk share the same registers.
> May I have your suggestion?
Don't introduce warnings and errors no matter what. If your code is not
correct, don't submit it, but instead try to fix it.
You got proper solution - use one clock controller, not devices per each
clock. Why Loongson is special here from all other devices in the world?
Best regards,
Krzysztof
Powered by blists - more mailing lists