Re: [RFC PATCH 8/9] ARM: dt: t30 cardhu: add dt entry for thermal driver
From: Stephen Warren <hidden>
Date: 2013-02-20 17:18:37
Also in:
linux-arm-kernel, linux-pm, linux-tegra
On 02/20/2013 04:53 AM, Wei Ni wrote:
On 02/20/2013 07:28 AM, Stephen Warren wrote:quoted
On 02/18/2013 04:30 AM, Wei Ni wrote:quoted
Enable thermal driver in the dts file. Set sensor as lm90 remote sensor, and set throttle data.quoted
diff --git a/Documentation/devicetree/bindings/thermal/tegra3-thermal.txt b/Documentation/devicetree/bindings/thermal/tegra3-thermal.txt
quoted
Also, what units are used for all these properties?they use "int". And according to our downstream dvfs driver, the throttle table use "unsigned long".
int and unsigned long are types, not units. Units means degrees C vs. degrees F vs. degrees K, or Hz vs. KHz vs. MHz, etc.
quoted
Judging by the example below, this property is a list of tuples. The meaning of each field in the tuple needs to be explained. What happens when the CPU/SoC needs to be throttled? Must some clock or voltage be lowered/limited? If so, you need properties that indicate which clock/voltage/... needs to be acted upon.This table which will be used by our DVFS driver, although it didn't be upstreamed yet. The table set clock frequency limited value with different cooling state. When the temperature touch the different limited value, we will set difficult cooling state, find the limited freq from this table and pass to the dvfs driver. I think may be this table should be set for cooling device node. This table is only for our tegra dvfs, so I think we can parse this table in the tegra3_cooling.c, which will be the new driver for cooling device.
Note that I expect the answers to these questions (pretty much all the questions I asked in response to your patch) to be included in the DT binding documentation, not just in email.