mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-09 02:51:11 +01:00
json-schema versions draft7 and earlier have a weird behavior in that any keywords combined with a '$ref' are ignored (silently). The correct form was to put a '$ref' under an 'allOf'. This behavior is now changed in the 2019-09 json-schema spec and '$ref' can be mixed with other keywords. The json-schema library doesn't yet support this, but the tooling now does a fixup for this and either way works. This has been a constant source of review comments, so let's change this treewide so everyone copies the simpler syntax. Scripted with ruamel.yaml with some manual fixups. Some minor whitespace changes from the script. Signed-off-by: Rob Herring <[email protected]> Acked-by: Maxime Ripard <[email protected]> Acked-by: Lee Jones <[email protected]> Acked-By: Vinod Koul <[email protected]> Acked-by: Mark Brown <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Acked-by: Wolfram Sang <[email protected]> # for I2C Reviewed-by: Linus Walleij <[email protected]> Acked-by: Jonathan Cameron <[email protected]> #for-iio Reviewed-by: Stephen Boyd <[email protected]> # clock Signed-off-by: Rob Herring <[email protected]>
56 lines
1.0 KiB
YAML
56 lines
1.0 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Binding for simple fixed factor rate clock sources
|
|
|
|
maintainers:
|
|
- Michael Turquette <[email protected]>
|
|
- Stephen Boyd <[email protected]>
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- allwinner,sun4i-a10-pll3-2x-clk
|
|
- fixed-factor-clock
|
|
|
|
"#clock-cells":
|
|
const: 0
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
clock-div:
|
|
description: Fixed divider
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
minimum: 1
|
|
|
|
clock-mult:
|
|
description: Fixed multiplier
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
clock-output-names:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- clocks
|
|
- "#clock-cells"
|
|
- clock-div
|
|
- clock-mult
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
clock {
|
|
compatible = "fixed-factor-clock";
|
|
clocks = <&parentclk>;
|
|
#clock-cells = <0>;
|
|
clock-div = <2>;
|
|
clock-mult = <1>;
|
|
};
|
|
...
|