gpu: nvgpu: Add Tegra GPU freq table DT binding
Alex Frid [Wed, 10 Jun 2015 21:40:04 +0000 (14:40 -0700)]
Added scaling frequency table property to Tegra GPU driver DT binding.

Bug 200085579

Change-Id: I6cdd8312c8601a4f96fd20fc0f25cd3e8d6e0e5c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/755978
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Documentation/devicetree/bindings/gpu/nvidia,tegra-host1x.txt

index 125ed52..82dc0c9 100644 (file)
@@ -128,11 +128,26 @@ of the following host1x client modules:
 - gk20a: Kepler GPU
 
   Required properties:
-  - compatible: "nvidia,tegra<chip>-gk20a"
+  - compatible:
+        "nvidia,tegra<chip>-gk20a"
+        "nvidia,tegra<chip>-gm20b"
   - reg: Physical base address and length of the controller's registers.
   - interrupts: The interrupt outputs from the controller.
   - nvidia,memory-clients: memory client ID of the controller.
 
+  Optional properties:
+  - freq-table : array of frequencies converted to scaling targets using
+    GPU DVFS table as described below. Must be in kHz, in increasing order.
+    By default, if this property is not present, GPU DVFS set of frequencies
+    is used as scaling targets.
+
+    Conversion from freq-table entries to GPU scaling targets:
+
+    any freq-table entry below bottom DVFS step is replaced with bottom step
+    any freq-table entry exactly at one of the DVFS steps is kept unchanged
+    any freq-table entry between two DVFS steps is replaced with upper step
+    any freq-table entry above top DVFS step is replaced with top step
+
 Example:
 
 / {
@@ -262,6 +277,12 @@ Example:
                         interrupts = <0 157 0x04
                                       0 158 0x04>;
                         nvidia,memory-clients = <56 57>;
+                       freq-table = <
+                               200000
+                               400000
+                               800000
+                               1000000
+                       >;
                 };
 
        };