diff options
| author | Srikar Srimath Tirumala <srikars@nvidia.com> | 2018-06-28 15:27:52 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-05 19:53:03 -0400 |
| commit | a4051c12dc8b22cc0ee05c1a1f14c8f7665b68fa (patch) | |
| tree | c927c71f5f6ec12848cfb4d642774e9c90938840 /Documentation/devicetree | |
| parent | de9df1f6c982cf39b03d48506c79d50898608a41 (diff) | |
thermal: throttle: fix for floorswept platforms
Pass the clock handles for all the CPU clusters instead of just the
one cluster from DT. The NAFLLL CLUSTER clock id refers to the
physical cluster and is not guaranteed to be present on floorswept
configurations.
Add logic to look for the appropriate clock handle from a list of
clock handles and fail the driver registration if a missing clock
is referenced in the cooling device.
Bug 2224577
Change-Id: I36a7d308eaa573c6b99390e3fbf36a3828377494
Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1764644
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'Documentation/devicetree')
| -rw-r--r-- | Documentation/devicetree/bindings/platform/tegra/nvidia,tegra_thermal_throttle.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/platform/tegra/nvidia,tegra_thermal_throttle.txt b/Documentation/devicetree/bindings/platform/tegra/nvidia,tegra_thermal_throttle.txt index 7444ef0ce..e1f0cbfe5 100644 --- a/Documentation/devicetree/bindings/platform/tegra/nvidia,tegra_thermal_throttle.txt +++ b/Documentation/devicetree/bindings/platform/tegra/nvidia,tegra_thermal_throttle.txt | |||
| @@ -31,9 +31,9 @@ Required properties: | |||
| 31 | - clocks : This property provides a list of clocks that can be throttled. Must | 31 | - clocks : This property provides a list of clocks that can be throttled. Must |
| 32 | provide at least one valid clock. Must contain one entry for each entry in | 32 | provide at least one valid clock. Must contain one entry for each entry in |
| 33 | clock-names. See ../clocks/clock-bindings.txt for details. | 33 | clock-names. See ../clocks/clock-bindings.txt for details. |
| 34 | - clock-names: Must include one of the following entries: | 34 | - clock-names: Must include either: |
| 35 | - cpu: for throttling the clocks of all the CPUs. | 35 | - Clock names for all CPUs "cpu0, cpu1, cpu2, cpu3", to throttle all CPUs. Or |
| 36 | - gpu: for thorttling the GPU clock. | 36 | - Clock name for GPU "gpu" to throttle the GPU. |
| 37 | 37 | ||
| 38 | Required subnodes: The throttle node must provide at least one cooling device | 38 | Required subnodes: The throttle node must provide at least one cooling device |
| 39 | node with at least one clock to throttle. | 39 | node with at least one clock to throttle. |
| @@ -95,8 +95,11 @@ Example: | |||
| 95 | tegra_thermal_throttle { | 95 | tegra_thermal_throttle { |
| 96 | compatible = "nvidia,tegra-thermal-throttle"; | 96 | compatible = "nvidia,tegra-thermal-throttle"; |
| 97 | clocks = <&bpmp_clks TEGRA194_CLK_NAFLL_CLUSTER0>, | 97 | clocks = <&bpmp_clks TEGRA194_CLK_NAFLL_CLUSTER0>, |
| 98 | <&bpmp_clks TEGRA194_CLK_NAFLL_CLUSTER1>, | ||
| 99 | <&bpmp_clks TEGRA194_CLK_NAFLL_CLUSTER2>, | ||
| 100 | <&bpmp_clks TEGRA194_CLK_NAFLL_CLUSTER3>, | ||
| 98 | <&bpmp_clks TEGRA194_CLK_NAFLL_GPU>; | 101 | <&bpmp_clks TEGRA194_CLK_NAFLL_GPU>; |
| 99 | clock-names = "cpu", "gpu"; | 102 | clock-names = "cpu0", "cpu1", "cpu2", "cpu3", "gpu"; |
| 100 | cpu_balanced { | 103 | cpu_balanced { |
| 101 | cdev-type = "cpu-balanced"; | 104 | cdev-type = "cpu-balanced"; |
| 102 | #cooling-cells = <2>; | 105 | #cooling-cells = <2>; |
