diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2015-08-17 08:53:48 +0900 |
---|---|---|
committer | Kukjin Kim <kgene@kernel.org> | 2015-09-17 07:48:11 +0900 |
commit | d3981d1e0a34bd294d620476a33967452e0298a7 (patch) | |
tree | 6f7c9f5db00df00acac0d474f788e09b08957ced /arch/arm/boot/dts/exynos4412-odroidu3.dts | |
parent | ee6011f299f3e75458bd6e91db5795e5adedd6fe (diff) | |
download | op-kernel-dev-d3981d1e0a34bd294d620476a33967452e0298a7.zip op-kernel-dev-d3981d1e0a34bd294d620476a33967452e0298a7.tar.gz |
ARM: dts: use pwm-fan device as a cooling device for exynos4412-odroidu3
With those bindings it is possible to use pwm-fan device available in
Odroid U3 as a cooling device.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Eduardo Valentin <edubezval@gmail.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/exynos4412-odroidu3.dts')
-rw-r--r-- | arch/arm/boot/dts/exynos4412-odroidu3.dts | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index 54b3bc1..1e6ef99 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -33,9 +33,40 @@ }; }; - pwm-fan { + fan0: pwm-fan { compatible = "pwm-fan"; pwms = <&pwm 0 10000 0>; + cooling-min-state = <0>; + cooling-max-state = <3>; + #cooling-cells = <2>; + cooling-levels = <0 102 170 230>; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = <&cpu0 7 7>; + }; + map1 { + trip = <&cpu_alert2>; + cooling-device = <&cpu0 13 13>; + }; + map2 { + trip = <&cpu_alert0>; + cooling-device = <&fan0 0 1>; + }; + map3 { + trip = <&cpu_alert1>; + cooling-device = <&fan0 1 2>; + }; + map4 { + trip = <&cpu_alert2>; + cooling-device = <&fan0 2 3>; + }; + }; + }; }; }; |