Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: arm: tegra: flowctrl: Convert to json-schema

Convert the Tegra flow controller bindings from the free-form text
format to json-schema.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

+41 -18
-18
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-flowctrl.txt
··· 1 - NVIDIA Tegra Flow Controller 2 - 3 - Required properties: 4 - - compatible: Should contain one of the following: 5 - - "nvidia,tegra20-flowctrl": for Tegra20 6 - - "nvidia,tegra30-flowctrl": for Tegra30 7 - - "nvidia,tegra114-flowctrl": for Tegra114 8 - - "nvidia,tegra124-flowctrl": for Tegra124 9 - - "nvidia,tegra132-flowctrl", "nvidia,tegra124-flowctrl": for Tegra132 10 - - "nvidia,tegra210-flowctrl": for Tegra210 11 - - reg: Should contain one register range (address and length) 12 - 13 - Example: 14 - 15 - flow-controller@60007000 { 16 - compatible = "nvidia,tegra20-flowctrl"; 17 - reg = <0x60007000 0x1000>; 18 - };
+41
Documentation/devicetree/bindings/soc/tegra/nvidia,tegra20-flowctrl.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/soc/tegra/nvidia,tegra20-flowctrl.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NVIDIA Tegra Flow Controller 8 + 9 + maintainers: 10 + - Thierry Reding <thierry.reding@gmail.com> 11 + - Jon Hunter <jonathanh@nvidia.com> 12 + 13 + properties: 14 + compatible: 15 + oneOf: 16 + - enum: 17 + - nvidia,tegra20-flowctrl 18 + - nvidia,tegra30-flowctrl 19 + - nvidia,tegra114-flowctrl 20 + - nvidia,tegra124-flowctrl 21 + - nvidia,tegra210-flowctrl 22 + 23 + - items: 24 + - const: nvidia,tegra132-flowctrl 25 + - const: nvidia,tegra124-flowctrl 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + flow-controller@60007000 { 39 + compatible = "nvidia,tegra20-flowctrl"; 40 + reg = <0x60007000 0x1000>; 41 + };