Path: blob/master/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra210-nvenc.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpu/host1x/nvidia,tegra210-nvenc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NVIDIA Tegra NVENC78description: |9NVENC is the hardware video encoder present on NVIDIA Tegra21010and newer chips. It is located on the Host1x bus and typically11programmed through Host1x channels.1213maintainers:14- Thierry Reding <treding@gmail.com>15- Mikko Perttunen <mperttunen@nvidia.com>1617properties:18$nodename:19pattern: "^nvenc@[0-9a-f]*$"2021compatible:22enum:23- nvidia,tegra210-nvenc24- nvidia,tegra186-nvenc25- nvidia,tegra194-nvenc2627reg:28maxItems: 12930clocks:31maxItems: 13233clock-names:34items:35- const: nvenc3637resets:38maxItems: 13940reset-names:41items:42- const: nvenc4344power-domains:45maxItems: 14647iommus:48maxItems: 14950dma-coherent: true5152interconnects:53minItems: 254maxItems: 35556interconnect-names:57minItems: 258maxItems: 35960nvidia,host1x-class:61description: |62Host1x class of the engine, used to specify the targeted engine63when programming the engine through Host1x channels or when64configuring engine-specific behavior in Host1x.65default: 0x2166$ref: /schemas/types.yaml#/definitions/uint326768required:69- compatible70- reg71- clocks72- clock-names73- resets74- reset-names75- power-domains7677allOf:78- if:79properties:80compatible:81enum:82- nvidia,tegra210-nvenc83- nvidia,tegra186-nvenc84then:85properties:86interconnects:87items:88- description: DMA read memory client89- description: DMA write memory client90interconnect-names:91items:92- const: dma-mem93- const: write94- if:95properties:96compatible:97enum:98- nvidia,tegra194-nvenc99then:100properties:101interconnects:102items:103- description: DMA read memory client104- description: DMA read 2 memory client105- description: DMA write memory client106interconnect-names:107items:108- const: dma-mem109- const: read-1110- const: write111112additionalProperties: false113114examples:115- |116#include <dt-bindings/clock/tegra186-clock.h>117#include <dt-bindings/memory/tegra186-mc.h>118#include <dt-bindings/power/tegra186-powergate.h>119#include <dt-bindings/reset/tegra186-reset.h>120121nvenc@154c0000 {122compatible = "nvidia,tegra186-nvenc";123reg = <0x154c0000 0x40000>;124clocks = <&bpmp TEGRA186_CLK_NVENC>;125clock-names = "nvenc";126resets = <&bpmp TEGRA186_RESET_NVENC>;127reset-names = "nvenc";128129power-domains = <&bpmp TEGRA186_POWER_DOMAIN_MPE>;130interconnects = <&mc TEGRA186_MEMORY_CLIENT_NVENCSRD &emc>,131<&mc TEGRA186_MEMORY_CLIENT_NVENCSWR &emc>;132interconnect-names = "dma-mem", "write";133iommus = <&smmu TEGRA186_SID_NVENC>;134};135136137