xref: /freebsd/sys/contrib/device-tree/Bindings/gpu/nvidia,gk20a.txt (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel VadotNVIDIA Tegra Graphics Processing Units
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotRequired properties:
4c66ec88fSEmmanuel Vadot- compatible: "nvidia,<gpu>"
5c66ec88fSEmmanuel Vadot  Currently recognized values:
6c66ec88fSEmmanuel Vadot  - nvidia,gk20a
7c66ec88fSEmmanuel Vadot  - nvidia,gm20b
8c66ec88fSEmmanuel Vadot  - nvidia,gp10b
9c66ec88fSEmmanuel Vadot  - nvidia,gv11b
10c66ec88fSEmmanuel Vadot- reg: Physical base address and length of the controller's registers.
11c66ec88fSEmmanuel Vadot  Must contain two entries:
12c66ec88fSEmmanuel Vadot  - first entry for bar0
13c66ec88fSEmmanuel Vadot  - second entry for bar1
14c66ec88fSEmmanuel Vadot- interrupts: Must contain an entry for each entry in interrupt-names.
15c66ec88fSEmmanuel Vadot  See ../interrupt-controller/interrupts.txt for details.
16c66ec88fSEmmanuel Vadot- interrupt-names: Must include the following entries:
17c66ec88fSEmmanuel Vadot  - stall
18c66ec88fSEmmanuel Vadot  - nonstall
19c66ec88fSEmmanuel Vadot- vdd-supply: regulator for supply voltage. Only required for GPUs not using
20c66ec88fSEmmanuel Vadot  power domains.
21c66ec88fSEmmanuel Vadot- clocks: Must contain an entry for each entry in clock-names.
22c66ec88fSEmmanuel Vadot  See ../clocks/clock-bindings.txt for details.
23c66ec88fSEmmanuel Vadot- clock-names: Must include the following entries:
24c66ec88fSEmmanuel Vadot  - gpu
25c66ec88fSEmmanuel Vadot  - pwr
26c66ec88fSEmmanuel VadotIf the compatible string is "nvidia,gm20b", then the following clock
27c66ec88fSEmmanuel Vadotis also required:
28c66ec88fSEmmanuel Vadot  - ref
29c66ec88fSEmmanuel VadotIf the compatible string is "nvidia,gv11b", then the following clock is also
30c66ec88fSEmmanuel Vadotrequired:
31c66ec88fSEmmanuel Vadot  - fuse
32c66ec88fSEmmanuel Vadot- resets: Must contain an entry for each entry in reset-names.
33c66ec88fSEmmanuel Vadot  See ../reset/reset.txt for details.
34c66ec88fSEmmanuel Vadot- reset-names: Must include the following entries:
35c66ec88fSEmmanuel Vadot  - gpu
36c66ec88fSEmmanuel Vadot- power-domains: GPUs that make use of power domains can define this property
37c66ec88fSEmmanuel Vadot  instead of vdd-supply. Currently "nvidia,gp10b" makes use of this.
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel VadotOptional properties:
40c66ec88fSEmmanuel Vadot- iommus: A reference to the IOMMU. See ../iommu/iommu.txt for details.
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel VadotExample for GK20A:
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot	gpu@57000000 {
45c66ec88fSEmmanuel Vadot		compatible = "nvidia,gk20a";
46c66ec88fSEmmanuel Vadot		reg = <0x0 0x57000000 0x0 0x01000000>,
47c66ec88fSEmmanuel Vadot		      <0x0 0x58000000 0x0 0x01000000>;
48c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
49c66ec88fSEmmanuel Vadot			     <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
50c66ec88fSEmmanuel Vadot		interrupt-names = "stall", "nonstall";
51c66ec88fSEmmanuel Vadot		vdd-supply = <&vdd_gpu>;
52c66ec88fSEmmanuel Vadot		clocks = <&tegra_car TEGRA124_CLK_GPU>,
53c66ec88fSEmmanuel Vadot			 <&tegra_car TEGRA124_CLK_PLL_P_OUT5>;
54c66ec88fSEmmanuel Vadot		clock-names = "gpu", "pwr";
55c66ec88fSEmmanuel Vadot		resets = <&tegra_car 184>;
56c66ec88fSEmmanuel Vadot		reset-names = "gpu";
57c66ec88fSEmmanuel Vadot		iommus = <&mc TEGRA_SWGROUP_GPU>;
58c66ec88fSEmmanuel Vadot	};
59c66ec88fSEmmanuel Vadot
60c66ec88fSEmmanuel VadotExample for GM20B:
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadot	gpu@57000000 {
63c66ec88fSEmmanuel Vadot		compatible = "nvidia,gm20b";
64c66ec88fSEmmanuel Vadot		reg = <0x0 0x57000000 0x0 0x01000000>,
65c66ec88fSEmmanuel Vadot		      <0x0 0x58000000 0x0 0x01000000>;
66c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
67c66ec88fSEmmanuel Vadot			     <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
68c66ec88fSEmmanuel Vadot		interrupt-names = "stall", "nonstall";
69c66ec88fSEmmanuel Vadot		clocks = <&tegra_car TEGRA210_CLK_GPU>,
70c66ec88fSEmmanuel Vadot			 <&tegra_car TEGRA210_CLK_PLL_P_OUT5>,
71c66ec88fSEmmanuel Vadot			 <&tegra_car TEGRA210_CLK_PLL_G_REF>;
72c66ec88fSEmmanuel Vadot		clock-names = "gpu", "pwr", "ref";
73c66ec88fSEmmanuel Vadot		resets = <&tegra_car 184>;
74c66ec88fSEmmanuel Vadot		reset-names = "gpu";
75c66ec88fSEmmanuel Vadot		iommus = <&mc TEGRA_SWGROUP_GPU>;
76c66ec88fSEmmanuel Vadot	};
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel VadotExample for GP10B:
79c66ec88fSEmmanuel Vadot
80c66ec88fSEmmanuel Vadot	gpu@17000000 {
81c66ec88fSEmmanuel Vadot		compatible = "nvidia,gp10b";
82c66ec88fSEmmanuel Vadot		reg = <0x0 0x17000000 0x0 0x1000000>,
83c66ec88fSEmmanuel Vadot		      <0x0 0x18000000 0x0 0x1000000>;
84c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH
85c66ec88fSEmmanuel Vadot			      GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
86c66ec88fSEmmanuel Vadot		interrupt-names = "stall", "nonstall";
87c66ec88fSEmmanuel Vadot		clocks = <&bpmp TEGRA186_CLK_GPCCLK>,
88c66ec88fSEmmanuel Vadot			 <&bpmp TEGRA186_CLK_GPU>;
89c66ec88fSEmmanuel Vadot		clock-names = "gpu", "pwr";
90c66ec88fSEmmanuel Vadot		resets = <&bpmp TEGRA186_RESET_GPU>;
91c66ec88fSEmmanuel Vadot		reset-names = "gpu";
92c66ec88fSEmmanuel Vadot		power-domains = <&bpmp TEGRA186_POWER_DOMAIN_GPU>;
93c66ec88fSEmmanuel Vadot		iommus = <&smmu TEGRA186_SID_GPU>;
94c66ec88fSEmmanuel Vadot	};
95c66ec88fSEmmanuel Vadot
96c66ec88fSEmmanuel VadotExample for GV11B:
97c66ec88fSEmmanuel Vadot
98c66ec88fSEmmanuel Vadot	gpu@17000000 {
99c66ec88fSEmmanuel Vadot		compatible = "nvidia,gv11b";
100*5def4c47SEmmanuel Vadot		reg = <0x17000000 0x1000000>,
101*5def4c47SEmmanuel Vadot		      <0x18000000 0x1000000>;
102c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
103c66ec88fSEmmanuel Vadot			     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
104c66ec88fSEmmanuel Vadot		interrupt-names = "stall", "nonstall";
105c66ec88fSEmmanuel Vadot		clocks = <&bpmp TEGRA194_CLK_GPCCLK>,
106c66ec88fSEmmanuel Vadot			 <&bpmp TEGRA194_CLK_GPU_PWR>,
107c66ec88fSEmmanuel Vadot			 <&bpmp TEGRA194_CLK_FUSE>;
108c66ec88fSEmmanuel Vadot		clock-names = "gpu", "pwr", "fuse";
109c66ec88fSEmmanuel Vadot		resets = <&bpmp TEGRA194_RESET_GPU>;
110c66ec88fSEmmanuel Vadot		reset-names = "gpu";
111c66ec88fSEmmanuel Vadot		dma-coherent;
112c66ec88fSEmmanuel Vadot
113c66ec88fSEmmanuel Vadot		power-domains = <&bpmp TEGRA194_POWER_DOMAIN_GPU>;
114c66ec88fSEmmanuel Vadot		iommus = <&smmu TEGRA194_SID_GPU>;
115c66ec88fSEmmanuel Vadot	};
116