[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <154722865051.169631.16957443589975628047@swboyd.mtv.corp.google.com>
Date: Fri, 11 Jan 2019 09:44:10 -0800
From: Stephen Boyd <sboyd@...nel.org>
To: Rob Herring <robh@...nel.org>, devicetree@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Michael Turquette <mturquette@...libre.com>,
linux-clk@...r.kernel.org
Subject: Re: [PATCH] dt-bindings: clock: Convert fixed-clock binding to json-schema
Quoting Rob Herring (2019-01-10 14:19:01)
> Convert the fixed-clock binding to DT schema format using json-schema.
>
Any pointer to the full schema?
> Cc: Michael Turquette <mturquette@...libre.com>
> Cc: Stephen Boyd <sboyd@...nel.org>
> Cc: linux-clk@...r.kernel.org
> Signed-off-by: Rob Herring <robh@...nel.org>
[...]
> diff --git a/Documentation/devicetree/bindings/clock/fixed-clock.yaml b/Documentation/devicetree/bindings/clock/fixed-clock.yaml
> new file mode 100644
> index 000000000000..8b5628463b90
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/fixed-clock.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/fixed-clock.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Binding for simple fixed-rate clock sources.
Why does title have a full stop?
> +
> +maintainers:
> + - Michael Turquette <mturquette@...libre.com>
> + - Stephen Boyd <sboyd@...nel.org>
> +
> +properties:
> + compatible:
> + const: fixed-clock
> +
> + "#clock-cells":
> + const: 0
> +
> + clock-frequency: true
Why doesn't this need the $ref: /schemas/types.yaml#/... thing?
> + clock-accuracy:
> + description: accuracy of clock in ppb (parts per billion).
> + $ref: /schemas/types.yaml#/definitions/uint32
> +
> + clock-output-names:
> + maxItems: 1
Is there a schema for strings?
> +
> +required:
> + - compatible
> + - "#clock-cells"
> + - clock-frequency
> +
> +additionalProperties: false
Does this always have to be specified even if it's false?
> +
> +examples:
> + - |
> + clock {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <1000000000>;
> + clock-accuracy = <100>;
> + };
> +...
>
Is the triple dot part of the schema?
Powered by blists - more mailing lists