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

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

Convert the NVIDIA Tegra AHB 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>

+40 -17
-17
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-ahb.txt
··· 1 - NVIDIA Tegra AHB 2 - 3 - Required properties: 4 - - compatible : For Tegra20, must contain "nvidia,tegra20-ahb". For 5 - Tegra30, must contain "nvidia,tegra30-ahb". Otherwise, must contain 6 - '"nvidia,<chip>-ahb", "nvidia,tegra30-ahb"' where <chip> is tegra124, 7 - tegra132, or tegra210. 8 - - reg : Should contain 1 register ranges(address and length). For 9 - Tegra20, Tegra30, and Tegra114 chips, the value must be <0x6000c004 10 - 0x10c>. For Tegra124, Tegra132 and Tegra210 chips, the value should 11 - be be <0x6000c000 0x150>. 12 - 13 - Example (for a Tegra20 chip): 14 - ahb: ahb@6000c004 { 15 - compatible = "nvidia,tegra20-ahb"; 16 - reg = <0x6000c004 0x10c>; /* AHB Arbitration + Gizmo Controller */ 17 - };
+40
Documentation/devicetree/bindings/soc/tegra/nvidia,tegra20-ahb.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-ahb.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + maintainers: 8 + - Thierry Reding <thierry.reding@gmail.com> 9 + - Jon Hunter <jonathanh@nvidia.com> 10 + 11 + title: NVIDIA Tegra AHB 12 + 13 + properties: 14 + compatible: 15 + oneOf: 16 + - enum: 17 + - nvidia,tegra20-ahb 18 + - nvidia,tegra30-ahb 19 + - items: 20 + - enum: 21 + - nvidia,tegra114-ahb 22 + - nvidia,tegra124-ahb 23 + - nvidia,tegra210-ahb 24 + - const: nvidia,tegra30-ahb 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + additionalProperties: false 30 + 31 + required: 32 + - compatible 33 + - reg 34 + 35 + examples: 36 + - | 37 + ahb@6000c004 { 38 + compatible = "nvidia,tegra20-ahb"; 39 + reg = <0x6000c004 0x10c>; /* AHB Arbitration + Gizmo Controller */ 40 + };