PCT: Create devicetree validation schema

This is the output of the automated scripts created
to parse the dtb and dts files congruently

Jira ESDP-27666

Change-Id: Ic82a3f813bcbe6e78ba5f9b68875293c5d4bc6d7
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3274878
Tested-by: Mark Mendez <mmendez@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
Mark Mendez
2024-12-29 12:08:14 -08:00
committed by Jon Hunter
parent c4d1462fd6
commit a2ee9f655f
172 changed files with 22145 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
%YAML 1.2
---
$id: http://devicetree.org/schemas/ete_cpu_0/arm,embedded-trace-extension.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = arm,embedded-trace-extension is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/hwtracing/coresight/coresight-etm4x-core.c
The following nodes use this compatibility
- /ete_cpu_0
- /ete_cpu_1
- /ete_cpu_2
- /ete_cpu_3
- /ete_cpu_4
- /ete_cpu_5
- /ete_cpu_6
- /ete_cpu_7
- /ete_cpu_8
- /ete_cpu_9
- /ete_cpu_10
- /ete_cpu_11
- /ete_cpu_12
- /ete_cpu_13
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- arm,embedded-trace-extension
required:
- compatible
properties:
cpu:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
examples:
- |
ete_cpu_0 {
compatible = "arm,embedded-trace-extension";
status = "disabled";
cpu = <&cpu_0>;
};

View File

@@ -0,0 +1,74 @@
# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
%YAML 1.2
---
$id: http://devicetree.org/schemas/trbe/arm,trace-buffer-extension.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = arm,trace-buffer-extension is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/hwtracing/coresight/coresight-trbe.c
The following nodes use this compatibility
- /trbe
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- arm,trace-buffer-extension
required:
- compatible
properties:
interrupts:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Interrupts are give by a tuple of 3 values:
- interrupt specifier (GIC_SPI = 0, GIC_PPI = 1)
definitions in dt-bindings/interrupt-controller/arm-gic.h
- interrupt number
- trigger type (rising edge, falling edge, both, etc)
definitions in dt-bindings/interrupt-controller/irq.h
items:
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x1
maximum: 0x1
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x6
maximum: 0x6
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x8
maximum: 0x8
required:
- compatible
- interrupts
examples:
- |
trbe {
compatible = "arm,trace-buffer-extension";
status = "disabled";
interrupts = <GIC_PPI 6 8>;
};