From: Krzysztof Kozlowski <krzk@kernel.org> Date: 2021-02-12 16:42:00
Add common properties appearing in DTSes (assigned-clocks and similar)
to fix dtbs_check warnings like:
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clock-rates: [[6000000]] is not of type 'object'
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clocks: [[7, 238]] is not of type 'object'
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
.../bindings/iio/adc/samsung,exynos-adc.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
@@ -27,6 +27,18 @@ properties:reg:maxItems:1+assigned-clocks:+minItems:1+maxItems:3++assigned-clock-parents:+minItems:1+maxItems:3++assigned-clock-rates:+minItems:1+maxItems:3+clocks:description:Phandle to ADC bus clock. For Exynos3250 additional clock is needed.
From: Marek Szyprowski <m.szyprowski@samsung.com> Date: 2021-02-15 09:04:57
Hi Krzysztof,
On 12.02.2021 17:38, Krzysztof Kozlowski wrote:
Add common properties appearing in DTSes (assigned-clocks and similar)
to fix dtbs_check warnings like:
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clock-rates: [[6000000]] is not of type 'object'
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clocks: [[7, 238]] is not of type 'object'
Does it mean that assigned-clocks related properties have to be added to
almost all bindings? IMHO this is an over-engineering and this has to be
handled somewhere else...
@@ -27,6 +27,18 @@ properties:reg:maxItems:1+assigned-clocks:+minItems:1+maxItems:3++assigned-clock-parents:+minItems:1+maxItems:3++assigned-clock-rates:+minItems:1+maxItems:3+clocks:description:Phandle to ADC bus clock. For Exynos3250 additional clock is needed.
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
From: Krzysztof Kozlowski <krzk@kernel.org> Date: 2021-02-15 09:30:19
On Mon, Feb 15, 2021 at 10:01:48AM +0100, Marek Szyprowski wrote:
Hi Krzysztof,
On 12.02.2021 17:38, Krzysztof Kozlowski wrote:
quoted
Add common properties appearing in DTSes (assigned-clocks and similar)
to fix dtbs_check warnings like:
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clock-rates: [[6000000]] is not of type 'object'
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clocks: [[7, 238]] is not of type 'object'
Does it mean that assigned-clocks related properties have to be added to
almost all bindings?
To my understanding: yes, and we already added it to multiple schemas.
IMHO this is an over-engineering and this has to be
handled somewhere else...
Would have to be made a part of the core schema (just like pinctrl nodes
etc).
Best regards,
Krzysztof
From: Rob Herring <robh@kernel.org> Date: 2021-03-05 20:42:47
On Mon, Feb 15, 2021 at 10:29:15AM +0100, Krzysztof Kozlowski wrote:
On Mon, Feb 15, 2021 at 10:01:48AM +0100, Marek Szyprowski wrote:
quoted
Hi Krzysztof,
On 12.02.2021 17:38, Krzysztof Kozlowski wrote:
quoted
Add common properties appearing in DTSes (assigned-clocks and similar)
to fix dtbs_check warnings like:
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clock-rates: [[6000000]] is not of type 'object'
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clocks: [[7, 238]] is not of type 'object'
Does it mean that assigned-clocks related properties have to be added to
almost all bindings?
To my understanding: yes, and we already added it to multiple schemas.
quoted
IMHO this is an over-engineering and this has to be
handled somewhere else...
Would have to be made a part of the core schema (just like pinctrl nodes
etc).
That's the case now. It's contingent on having a 'clocks' property in
the node.
Rob
From: Krzysztof Kozlowski <krzk@kernel.org> Date: 2021-03-07 11:45:10
On 05/03/2021 21:41, Rob Herring wrote:
On Mon, Feb 15, 2021 at 10:29:15AM +0100, Krzysztof Kozlowski wrote:
quoted
On Mon, Feb 15, 2021 at 10:01:48AM +0100, Marek Szyprowski wrote:
quoted
Hi Krzysztof,
On 12.02.2021 17:38, Krzysztof Kozlowski wrote:
quoted
Add common properties appearing in DTSes (assigned-clocks and similar)
to fix dtbs_check warnings like:
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clock-rates: [[6000000]] is not of type 'object'
arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml:
adc@126c0000: assigned-clocks: [[7, 238]] is not of type 'object'
Does it mean that assigned-clocks related properties have to be added to
almost all bindings?
To my understanding: yes, and we already added it to multiple schemas.
quoted
IMHO this is an over-engineering and this has to be
handled somewhere else...
Would have to be made a part of the core schema (just like pinctrl nodes
etc).
That's the case now. It's contingent on having a 'clocks' property in
the node.
Do I understand correctly: with new dtschema my patch is not needed anymore?
Best regards,
Krzysztof