xref: /linux/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra210-nvjpg.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
157978838SJon Hunter# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
257978838SJon Hunter%YAML 1.2
357978838SJon Hunter---
4*c94673e8SRob Herring$id: http://devicetree.org/schemas/gpu/host1x/nvidia,tegra210-nvjpg.yaml#
5*c94673e8SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
657978838SJon Hunter
79d69d47fSKrzysztof Kozlowskititle: NVIDIA Tegra NVJPG
857978838SJon Hunter
957978838SJon Hunterdescription: |
1057978838SJon Hunter  NVJPG is the hardware JPEG decoder and encoder present on NVIDIA Tegra210
1157978838SJon Hunter  and newer chips. It is located on the Host1x bus and typically programmed
1257978838SJon Hunter  through Host1x channels.
1357978838SJon Hunter
1457978838SJon Huntermaintainers:
1557978838SJon Hunter  - Thierry Reding <treding@gmail.com>
1657978838SJon Hunter  - Mikko Perttunen <mperttunen@nvidia.com>
1757978838SJon Hunter
1857978838SJon Hunterproperties:
1957978838SJon Hunter  $nodename:
2057978838SJon Hunter    pattern: "^nvjpg@[0-9a-f]*$"
2157978838SJon Hunter
2257978838SJon Hunter  compatible:
2357978838SJon Hunter    enum:
2457978838SJon Hunter      - nvidia,tegra210-nvjpg
2557978838SJon Hunter      - nvidia,tegra186-nvjpg
2657978838SJon Hunter      - nvidia,tegra194-nvjpg
2757978838SJon Hunter
2857978838SJon Hunter  reg:
2957978838SJon Hunter    maxItems: 1
3057978838SJon Hunter
3157978838SJon Hunter  clocks:
3257978838SJon Hunter    maxItems: 1
3357978838SJon Hunter
3457978838SJon Hunter  clock-names:
3557978838SJon Hunter    items:
3657978838SJon Hunter      - const: nvjpg
3757978838SJon Hunter
3857978838SJon Hunter  resets:
3957978838SJon Hunter    maxItems: 1
4057978838SJon Hunter
4157978838SJon Hunter  reset-names:
4257978838SJon Hunter    items:
4357978838SJon Hunter      - const: nvjpg
4457978838SJon Hunter
4557978838SJon Hunter  power-domains:
4657978838SJon Hunter    maxItems: 1
4757978838SJon Hunter
4857978838SJon Hunter  iommus:
4957978838SJon Hunter    maxItems: 1
5057978838SJon Hunter
5157978838SJon Hunter  dma-coherent: true
5257978838SJon Hunter
5357978838SJon Hunter  interconnects:
5457978838SJon Hunter    items:
5557978838SJon Hunter      - description: DMA read memory client
5657978838SJon Hunter      - description: DMA write memory client
5757978838SJon Hunter
5857978838SJon Hunter  interconnect-names:
5957978838SJon Hunter    items:
6057978838SJon Hunter      - const: dma-mem
6157978838SJon Hunter      - const: write
6257978838SJon Hunter
6357978838SJon Hunterrequired:
6457978838SJon Hunter  - compatible
6557978838SJon Hunter  - reg
6657978838SJon Hunter  - clocks
6757978838SJon Hunter  - clock-names
6857978838SJon Hunter  - resets
6957978838SJon Hunter  - reset-names
7057978838SJon Hunter  - power-domains
7157978838SJon Hunter
7257978838SJon HunteradditionalProperties: false
7357978838SJon Hunter
7457978838SJon Hunterexamples:
7557978838SJon Hunter  - |
7657978838SJon Hunter    #include <dt-bindings/clock/tegra186-clock.h>
7757978838SJon Hunter    #include <dt-bindings/memory/tegra186-mc.h>
7857978838SJon Hunter    #include <dt-bindings/power/tegra186-powergate.h>
7957978838SJon Hunter    #include <dt-bindings/reset/tegra186-reset.h>
8057978838SJon Hunter
8157978838SJon Hunter    nvjpg@15380000 {
8257978838SJon Hunter            compatible = "nvidia,tegra186-nvjpg";
8357978838SJon Hunter            reg = <0x15380000 0x40000>;
8457978838SJon Hunter            clocks = <&bpmp TEGRA186_CLK_NVJPG>;
8557978838SJon Hunter            clock-names = "nvjpg";
8657978838SJon Hunter            resets = <&bpmp TEGRA186_RESET_NVJPG>;
8757978838SJon Hunter            reset-names = "nvjpg";
8857978838SJon Hunter
8957978838SJon Hunter            power-domains = <&bpmp TEGRA186_POWER_DOMAIN_NVJPG>;
9057978838SJon Hunter            interconnects = <&mc TEGRA186_MEMORY_CLIENT_NVJPGSRD &emc>,
9157978838SJon Hunter                            <&mc TEGRA186_MEMORY_CLIENT_NVJPGSWR &emc>;
9257978838SJon Hunter            interconnect-names = "dma-mem", "write";
9357978838SJon Hunter            iommus = <&smmu TEGRA186_SID_NVJPG>;
9457978838SJon Hunter    };
95