Re: [PATCH v2] thermal: Fix examples in DT documentation

2015-01-28 Thread Eduardo Valentin
On Wed, Jan 28, 2015 at 05:13:35PM +, Srinivas Kandagatla wrote:
> There are various issues with the examples in this documentation, some
> of the DT labels are invalid and one of the macro THERMAL_NO_LIMITS
> referenced is not available as well.
> 
> This patch attempts to fix such errors in the documentation.
> 
> Signed-off-by: Srinivas Kandagatla 
> ---
> Changes Since v1:
>   - Fixed few more typo's as suggested by Eduardo Valentin

Looks like there are still occurencies of adc-dummy after your patch.
But I am amending myself, no need to resend.

> 
>  .../devicetree/bindings/thermal/thermal.txt| 66 
> +++---
>  1 file changed, 33 insertions(+), 33 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt 
> b/Documentation/devicetree/bindings/thermal/thermal.txt
> index f5db6b7..91c77da 100644
> --- a/Documentation/devicetree/bindings/thermal/thermal.txt
> +++ b/Documentation/devicetree/bindings/thermal/thermal.txt
> @@ -251,24 +251,24 @@ ocp {
>  };
>  
>  thermal-zones {
> - cpu-thermal: cpu-thermal {
> + cpu_thermal: cpu-thermal {
>   polling-delay-passive = <250>; /* milliseconds */
>   polling-delay = <1000>; /* milliseconds */
>  
>   thermal-sensors = <&bandgap0>;
>  
>   trips {
> - cpu-alert0: cpu-alert {
> + cpu_alert0: cpu-alert0 {
>   temperature = <9>; /* millicelsius */
>   hysteresis = <2000>; /* millicelsius */
>   type = "active";
>   };
> - cpu-alert1: cpu-alert {
> + cpu_alert1: cpu-alert1 {
>   temperature = <10>; /* millicelsius */
>   hysteresis = <2000>; /* millicelsius */
>   type = "passive";
>   };
> - cpu-crit: cpu-crit {
> + cpu_crit: cpu-crit {
>   temperature = <125000>; /* millicelsius */
>   hysteresis = <2000>; /* millicelsius */
>   type = "critical";
> @@ -277,17 +277,17 @@ thermal-zones {
>  
>   cooling-maps {
>   map0 {
> - trip = <&cpu-alert0>;
> - cooling-device = <&fan0 THERMAL_NO_LIMITS 4>;
> + trip = <&cpu_alert0>;
> + cooling-device = <&fan0 THERMAL_NO_LIMIT 4>;
>   };
>   map1 {
> - trip = <&cpu-alert1>;
> - cooling-device = <&fan0 5 THERMAL_NO_LIMITS>;
> + trip = <&cpu_alert1>;
> + cooling-device = <&fan0 5 THERMAL_NO_LIMIT>;
>   };
>   map2 {
> - trip = <&cpu-alert1>;
> + trip = <&cpu_alert1>;
>   cooling-device =
> - <&cpu0 THERMAL_NO_LIMITS THERMAL_NO_LIMITS>;
> + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>   };
>   };
>   };
> @@ -298,13 +298,13 @@ used to monitor the zone 'cpu-thermal' using its sole 
> sensor. A fan
>  device (fan0) is controlled via I2C bus 1, at address 0x48, and has ten
>  different cooling states 0-9. It is used to remove the heat out of
>  the thermal zone 'cpu-thermal' using its cooling states
> -from its minimum to 4, when it reaches trip point 'cpu-alert0'
> +from its minimum to 4, when it reaches trip point 'cpu_alert0'
>  at 90C, as an example of active cooling. The same cooling device is used at
> -'cpu-alert1', but from 5 to its maximum state. The cpu@0 device is also
> +'cpu_alert1', but from 5 to its maximum state. The cpu@0 device is also
>  linked to the same thermal zone, 'cpu-thermal', as a passive cooling device,
> -using all its cooling states at trip point 'cpu-alert1',
> +using all its cooling states at trip point 'cpu_alert1',
>  which is a trip point at 100C. On the thermal zone 'cpu-thermal', at the
> -temperature of 125C, represented by the trip point 'cpu-crit', the silicon
> +temperature of 125C, represented by the trip point 'cpu_crit', the silicon
>  is not reliable anymore.
>  
>  (b) - IC with several internal sensors
> @@ -329,7 +329,7 @@ ocp {
>  };
>  
>  thermal-zones {
> - cpu-thermal: cpu-thermal {
> + cpu_thermal: cpu-thermal {
>   polling-delay-passive = <250>; /* milliseconds */
>   polling-delay = <1000>; /* milliseconds */
>  
> @@ -338,12 +338,12 @@ thermal-zones {
>  
>   trips {
>   /* each zone within the SoC may have its own trips */
> - cpu-alert: cpu-alert {
> +

[PATCH v2] thermal: Fix examples in DT documentation

2015-01-28 Thread Srinivas Kandagatla
There are various issues with the examples in this documentation, some
of the DT labels are invalid and one of the macro THERMAL_NO_LIMITS
referenced is not available as well.

This patch attempts to fix such errors in the documentation.

Signed-off-by: Srinivas Kandagatla 
---
Changes Since v1:
- Fixed few more typo's as suggested by Eduardo Valentin

 .../devicetree/bindings/thermal/thermal.txt| 66 +++---
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt 
b/Documentation/devicetree/bindings/thermal/thermal.txt
index f5db6b7..91c77da 100644
--- a/Documentation/devicetree/bindings/thermal/thermal.txt
+++ b/Documentation/devicetree/bindings/thermal/thermal.txt
@@ -251,24 +251,24 @@ ocp {
 };
 
 thermal-zones {
-   cpu-thermal: cpu-thermal {
+   cpu_thermal: cpu-thermal {
polling-delay-passive = <250>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */
 
thermal-sensors = <&bandgap0>;
 
trips {
-   cpu-alert0: cpu-alert {
+   cpu_alert0: cpu-alert0 {
temperature = <9>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "active";
};
-   cpu-alert1: cpu-alert {
+   cpu_alert1: cpu-alert1 {
temperature = <10>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
-   cpu-crit: cpu-crit {
+   cpu_crit: cpu-crit {
temperature = <125000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
@@ -277,17 +277,17 @@ thermal-zones {
 
cooling-maps {
map0 {
-   trip = <&cpu-alert0>;
-   cooling-device = <&fan0 THERMAL_NO_LIMITS 4>;
+   trip = <&cpu_alert0>;
+   cooling-device = <&fan0 THERMAL_NO_LIMIT 4>;
};
map1 {
-   trip = <&cpu-alert1>;
-   cooling-device = <&fan0 5 THERMAL_NO_LIMITS>;
+   trip = <&cpu_alert1>;
+   cooling-device = <&fan0 5 THERMAL_NO_LIMIT>;
};
map2 {
-   trip = <&cpu-alert1>;
+   trip = <&cpu_alert1>;
cooling-device =
-   <&cpu0 THERMAL_NO_LIMITS THERMAL_NO_LIMITS>;
+   <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
@@ -298,13 +298,13 @@ used to monitor the zone 'cpu-thermal' using its sole 
sensor. A fan
 device (fan0) is controlled via I2C bus 1, at address 0x48, and has ten
 different cooling states 0-9. It is used to remove the heat out of
 the thermal zone 'cpu-thermal' using its cooling states
-from its minimum to 4, when it reaches trip point 'cpu-alert0'
+from its minimum to 4, when it reaches trip point 'cpu_alert0'
 at 90C, as an example of active cooling. The same cooling device is used at
-'cpu-alert1', but from 5 to its maximum state. The cpu@0 device is also
+'cpu_alert1', but from 5 to its maximum state. The cpu@0 device is also
 linked to the same thermal zone, 'cpu-thermal', as a passive cooling device,
-using all its cooling states at trip point 'cpu-alert1',
+using all its cooling states at trip point 'cpu_alert1',
 which is a trip point at 100C. On the thermal zone 'cpu-thermal', at the
-temperature of 125C, represented by the trip point 'cpu-crit', the silicon
+temperature of 125C, represented by the trip point 'cpu_crit', the silicon
 is not reliable anymore.
 
 (b) - IC with several internal sensors
@@ -329,7 +329,7 @@ ocp {
 };
 
 thermal-zones {
-   cpu-thermal: cpu-thermal {
+   cpu_thermal: cpu-thermal {
polling-delay-passive = <250>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */
 
@@ -338,12 +338,12 @@ thermal-zones {
 
trips {
/* each zone within the SoC may have its own trips */
-   cpu-alert: cpu-alert {
+   cpu_alert: cpu-alert {
temperature = <10>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
-   cpu-c

Re: [PATCH v2] thermal: Fix examples in DT documentation

2015-01-28 Thread Srinivas Kandagatla



On 28/01/15 17:29, Eduardo Valentin wrote:

Looks like there are still occurencies of adc-dummy after your patch.
But I am amending myself, no need to resend.


Thanks for fixing.. :-)

--srini
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html