[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1aa8e9aa-8cb3-8537-6d65-dd9441d5ee07@linaro.org>
Date: Tue, 12 Jul 2022 09:15:32 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Jiucheng Xu <jiucheng.xu@...ogic.com>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-amlogic@...ts.infradead.org, devicetree@...r.kernel.org
Cc: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Neil Armstrong <narmstrong@...libre.com>,
Kevin Hilman <khilman@...libre.com>,
Jerome Brunet <jbrunet@...libre.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
Chris Healy <cphealy@...il.com>
Subject: Re: [PATCH 4/4] dt-binding:perf: Add Amlogic DDR PMU
On 12/07/2022 08:36, Jiucheng Xu wrote:
> Add binding documentation for the Amlogic G12 series DDR
> performance monitor unit.
You need to fix subject - use a prefix matching subsystem. Space after
each ':'.
>
> Signed-off-by: Jiucheng Xu <jiucheng.xu@...ogic.com>
> ---
> .../devicetree/bindings/perf/aml-ddr-pmu.yaml | 51 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 52 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/perf/aml-ddr-pmu.yaml
>
> diff --git a/Documentation/devicetree/bindings/perf/aml-ddr-pmu.yaml b/Documentation/devicetree/bindings/perf/aml-ddr-pmu.yaml
> new file mode 100644
> index 000000000000..c586b4ab4009
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/perf/aml-ddr-pmu.yaml
Filename: aml,g12-ddr-pmu.yaml
> @@ -0,0 +1,51 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/perf/aml-ddr-pmu.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Amlogic G12 DDR performance monitor
> +
> +maintainers:
> + - Jiucheng Xu <jiucheng.xu@...ogic.com>
> +
> +properties:
> + compatible:
> + oneOf:
> + - enum:
> + - aml,g12-ddr-pmu
> + - items:
> + - enum:
> + - aml,g12-ddr-pmu
> + - const: aml,g12-ddr-pmu
This does not make any sense. Why do you use two compatibles
"aml,g12-ddr-pmu", "aml,g12-ddr-pmu" after each other?
> +
> + reg:
> + maxItems: 2
You need to describe the items.
> +
> + interrupts:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - model
> + - dmc_nr
> + - chann_nr
How these ended up here?
No underscores.
> + - reg
> + - interrupts
> + - interrupt-names
Also something new. No.
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + ddr_pmu: ddr_pmu {
Wrong indentation. 4 spaces for DTS example.
Generic node name, so "pmu", no underscores in node names.
> + compatible = "amlogic,g12-ddr-pmu";
> + model = "g12a";
> + dmc_nr = <1>;
> + chann_nr = <4>;
This does not pass the test. Please do not send untested bindings.
Best regards,
Krzysztof
Powered by blists - more mailing lists