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,128 @@
# 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/usb@a80aa70000/nvidia,tegra264-xusb-vf1.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = nvidia,tegra264-xusb-vf1 is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/usb/host/xhci-tegra.c
The following nodes use this compatibility
- /bus@0/usb@a80aa70000
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- nvidia,tegra264-xusb-vf1
required:
- compatible
properties:
reg:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Registers are given by a tuple of two values:
- register address:
- register block size.
items:
minItems: 4
maxItems: 4
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xa8
maximum: 0xa8
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xaa70000
maximum: 0xaa70000
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x40000
maximum: 0x40000
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: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3b9
maximum: 0x3b9
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x4
maximum: 0x4
iommus:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
iommus are given by a tuple of 2 values:
- Phandle to the device
- Device ID
items:
minItems: 2
maxItems: 2
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3201
maximum: 0x3601
dma-coherent:
$ref: "/schemas/types.yaml#/definitions/flag"
nvidia,xusb-padctl:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
- reg
- interrupts
- iommus
examples:
- |
usb@a80aa70000 {
compatible = "nvidia,tegra264-xusb-vf1";
reg = <0xa8 0xaa70000 0x0 0x40000>;
interrupts = <0 953 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&smmu1_mmu TEGRA_SID_XUSB_VF1_HS_PORTS>,
<&smmu1_mmu TEGRA_SID_XUSB_VF1_SS_PORT1>,
<&smmu1_mmu TEGRA_SID_XUSB_VF1_SS_PORT2>,
<&smmu1_mmu TEGRA_SID_XUSB_VF1_SS_PORT3>,
<&smmu1_mmu TEGRA_SID_XUSB_VF1_SS_PORT4>;
dma-coherent;
nvidia,xusb-padctl = <&xusb_padctl>;
status = "disabled";
};

View File

@@ -0,0 +1,128 @@
# 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/usb@a80aac0000/nvidia,tegra264-xusb-vf2.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = nvidia,tegra264-xusb-vf2 is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/usb/host/xhci-tegra.c
The following nodes use this compatibility
- /bus@0/usb@a80aac0000
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- nvidia,tegra264-xusb-vf2
required:
- compatible
properties:
reg:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Registers are given by a tuple of two values:
- register address:
- register block size.
items:
minItems: 4
maxItems: 4
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xa8
maximum: 0xa8
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xaac0000
maximum: 0xaac0000
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x40000
maximum: 0x40000
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: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3ba
maximum: 0x3ba
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x4
maximum: 0x4
iommus:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
iommus are given by a tuple of 2 values:
- Phandle to the device
- Device ID
items:
minItems: 2
maxItems: 2
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3202
maximum: 0x3602
dma-coherent:
$ref: "/schemas/types.yaml#/definitions/flag"
nvidia,xusb-padctl:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
- reg
- interrupts
- iommus
examples:
- |
usb@a80aac0000 {
compatible = "nvidia,tegra264-xusb-vf2";
reg = <0xa8 0xaac0000 0x0 0x40000>;
interrupts = <0 954 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&smmu1_mmu TEGRA_SID_XUSB_VF2_HS_PORTS>,
<&smmu1_mmu TEGRA_SID_XUSB_VF2_SS_PORT1>,
<&smmu1_mmu TEGRA_SID_XUSB_VF2_SS_PORT2>,
<&smmu1_mmu TEGRA_SID_XUSB_VF2_SS_PORT3>,
<&smmu1_mmu TEGRA_SID_XUSB_VF2_SS_PORT4>;
dma-coherent;
nvidia,xusb-padctl = <&xusb_padctl>;
status = "disabled";
};

View File

@@ -0,0 +1,128 @@
# 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/usb@a80ab10000/nvidia,tegra264-xusb-vf3.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = nvidia,tegra264-xusb-vf3 is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/usb/host/xhci-tegra.c
The following nodes use this compatibility
- /bus@0/usb@a80ab10000
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- nvidia,tegra264-xusb-vf3
required:
- compatible
properties:
reg:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Registers are given by a tuple of two values:
- register address:
- register block size.
items:
minItems: 4
maxItems: 4
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xa8
maximum: 0xa8
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xab10000
maximum: 0xab10000
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x40000
maximum: 0x40000
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: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3bb
maximum: 0x3bb
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x4
maximum: 0x4
iommus:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
iommus are given by a tuple of 2 values:
- Phandle to the device
- Device ID
items:
minItems: 2
maxItems: 2
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3203
maximum: 0x3603
dma-coherent:
$ref: "/schemas/types.yaml#/definitions/flag"
nvidia,xusb-padctl:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
- reg
- interrupts
- iommus
examples:
- |
usb@a80ab10000 {
compatible = "nvidia,tegra264-xusb-vf3";
reg = <0xa8 0xab10000 0x0 0x40000>;
interrupts = <0 955 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&smmu1_mmu TEGRA_SID_XUSB_VF3_HS_PORTS>,
<&smmu1_mmu TEGRA_SID_XUSB_VF3_SS_PORT1>,
<&smmu1_mmu TEGRA_SID_XUSB_VF3_SS_PORT2>,
<&smmu1_mmu TEGRA_SID_XUSB_VF3_SS_PORT3>,
<&smmu1_mmu TEGRA_SID_XUSB_VF3_SS_PORT4>;
dma-coherent;
nvidia,xusb-padctl = <&xusb_padctl>;
status = "disabled";
};

View File

@@ -0,0 +1,128 @@
# 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/usb@a80ab60000/nvidia,tegra264-xusb-vf4.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = nvidia,tegra264-xusb-vf4 is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/usb/host/xhci-tegra.c
The following nodes use this compatibility
- /bus@0/usb@a80ab60000
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- nvidia,tegra264-xusb-vf4
required:
- compatible
properties:
reg:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Registers are given by a tuple of two values:
- register address:
- register block size.
items:
minItems: 4
maxItems: 4
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xa8
maximum: 0xa8
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xab60000
maximum: 0xab60000
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x40000
maximum: 0x40000
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: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3bc
maximum: 0x3bc
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x4
maximum: 0x4
iommus:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
iommus are given by a tuple of 2 values:
- Phandle to the device
- Device ID
items:
minItems: 2
maxItems: 2
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3204
maximum: 0x3604
dma-coherent:
$ref: "/schemas/types.yaml#/definitions/flag"
nvidia,xusb-padctl:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
- reg
- interrupts
- iommus
examples:
- |
usb@a80ab60000 {
compatible = "nvidia,tegra264-xusb-vf4";
reg = <0xa8 0xab60000 0x0 0x40000>;
interrupts = <0 956 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&smmu1_mmu TEGRA_SID_XUSB_VF4_HS_PORTS>,
<&smmu1_mmu TEGRA_SID_XUSB_VF4_SS_PORT1>,
<&smmu1_mmu TEGRA_SID_XUSB_VF4_SS_PORT2>,
<&smmu1_mmu TEGRA_SID_XUSB_VF4_SS_PORT3>,
<&smmu1_mmu TEGRA_SID_XUSB_VF4_SS_PORT4>;
dma-coherent;
nvidia,xusb-padctl = <&xusb_padctl>;
status = "disabled";
};

View File

@@ -0,0 +1,128 @@
# 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/usb@a80abb0000/nvidia,tegra264-xusb-vf5.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = nvidia,tegra264-xusb-vf5 is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/usb/host/xhci-tegra.c
The following nodes use this compatibility
- /bus@0/usb@a80abb0000
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- nvidia,tegra264-xusb-vf5
required:
- compatible
properties:
reg:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Registers are given by a tuple of two values:
- register address:
- register block size.
items:
minItems: 4
maxItems: 4
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xa8
maximum: 0xa8
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xabb0000
maximum: 0xabb0000
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x40000
maximum: 0x40000
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: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3bd
maximum: 0x3bd
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x4
maximum: 0x4
iommus:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
iommus are given by a tuple of 2 values:
- Phandle to the device
- Device ID
items:
minItems: 2
maxItems: 2
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3205
maximum: 0x3605
dma-coherent:
$ref: "/schemas/types.yaml#/definitions/flag"
nvidia,xusb-padctl:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
- reg
- interrupts
- iommus
examples:
- |
usb@a80abb0000 {
compatible = "nvidia,tegra264-xusb-vf5";
reg = <0xa8 0xabb0000 0x0 0x40000>;
interrupts = <0 957 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&smmu1_mmu TEGRA_SID_XUSB_VF5_HS_PORTS>,
<&smmu1_mmu TEGRA_SID_XUSB_VF5_SS_PORT1>,
<&smmu1_mmu TEGRA_SID_XUSB_VF5_SS_PORT2>,
<&smmu1_mmu TEGRA_SID_XUSB_VF5_SS_PORT3>,
<&smmu1_mmu TEGRA_SID_XUSB_VF5_SS_PORT4>;
dma-coherent;
nvidia,xusb-padctl = <&xusb_padctl>;
status = "disabled";
};

View File

@@ -0,0 +1,128 @@
# 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/usb@a80ac00000/nvidia,tegra264-xusb-vf6.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = nvidia,tegra264-xusb-vf6 is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/usb/host/xhci-tegra.c
The following nodes use this compatibility
- /bus@0/usb@a80ac00000
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- nvidia,tegra264-xusb-vf6
required:
- compatible
properties:
reg:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Registers are given by a tuple of two values:
- register address:
- register block size.
items:
minItems: 4
maxItems: 4
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xa8
maximum: 0xa8
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xac00000
maximum: 0xac00000
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x40000
maximum: 0x40000
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: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3be
maximum: 0x3be
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x4
maximum: 0x4
iommus:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
iommus are given by a tuple of 2 values:
- Phandle to the device
- Device ID
items:
minItems: 2
maxItems: 2
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3206
maximum: 0x3606
dma-coherent:
$ref: "/schemas/types.yaml#/definitions/flag"
nvidia,xusb-padctl:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
- reg
- interrupts
- iommus
examples:
- |
usb@a80ac00000 {
compatible = "nvidia,tegra264-xusb-vf6";
reg = <0xa8 0xac00000 0x0 0x40000>;
interrupts = <0 958 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&smmu1_mmu TEGRA_SID_XUSB_VF6_HS_PORTS>,
<&smmu1_mmu TEGRA_SID_XUSB_VF6_SS_PORT1>,
<&smmu1_mmu TEGRA_SID_XUSB_VF6_SS_PORT2>,
<&smmu1_mmu TEGRA_SID_XUSB_VF6_SS_PORT3>,
<&smmu1_mmu TEGRA_SID_XUSB_VF6_SS_PORT4>;
dma-coherent;
nvidia,xusb-padctl = <&xusb_padctl>;
status = "disabled";
};

View File

@@ -0,0 +1,128 @@
# 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/usb@a80ac50000/nvidia,tegra264-xusb-vf7.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: FIXME -- add title
maintainers:
- FIXME -- add maintainers
description: |
the compatability = nvidia,tegra264-xusb-vf7 is mentioned in the following drivers
- <TOP>/kernel/kernel-oot/drivers/usb/host/xhci-tegra.c
The following nodes use this compatibility
- /bus@0/usb@a80ac50000
select:
properties:
compatible:
minItems: 1
maxItems: 1
items:
enum:
- nvidia,tegra264-xusb-vf7
required:
- compatible
properties:
reg:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
Registers are given by a tuple of two values:
- register address:
- register block size.
items:
minItems: 4
maxItems: 4
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xa8
maximum: 0xa8
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0xac50000
maximum: 0xac50000
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x40000
maximum: 0x40000
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: 0x0
maximum: 0x0
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3bf
maximum: 0x3bf
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x4
maximum: 0x4
iommus:
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
description: |
iommus are given by a tuple of 2 values:
- Phandle to the device
- Device ID
items:
minItems: 2
maxItems: 2
items:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0x3207
maximum: 0x3607
dma-coherent:
$ref: "/schemas/types.yaml#/definitions/flag"
nvidia,xusb-padctl:
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
- reg
- interrupts
- iommus
examples:
- |
usb@a80ac50000 {
compatible = "nvidia,tegra264-xusb-vf7";
reg = <0xa8 0xac50000 0x0 0x40000>;
interrupts = <0 959 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&smmu1_mmu TEGRA_SID_XUSB_VF7_HS_PORTS>,
<&smmu1_mmu TEGRA_SID_XUSB_VF7_SS_PORT1>,
<&smmu1_mmu TEGRA_SID_XUSB_VF7_SS_PORT2>,
<&smmu1_mmu TEGRA_SID_XUSB_VF7_SS_PORT3>,
<&smmu1_mmu TEGRA_SID_XUSB_VF7_SS_PORT4>;
dma-coherent;
nvidia,xusb-padctl = <&xusb_padctl>;
status = "disabled";
};