ARM: dts: exynos5422-odroidxu3: Add pwm-fan node
Subsystems (2)
PATCH v7 1/4 ARM: dts: exynos5422-odroidxu3: Add pwm-fan node
Add pwm-fan node to the Odroid-XU3 board.
--- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +10 -0
@@ -107,6 +107,15 @@ clocks = <&i2s0 CLK_I2S_CDCLK>; }; }; + + fan0: pwm-fan { + compatible = "pwm-fan"; + pwms = <&pwm 0 20972 0>; + cooling-min-state = <0>; + cooling-max-state = <3>; + #cooling-cells = <2>; + cooling-levels = <0 130 170 230>; + }; }; &clock_audss {
@@ -461,6 +470,7 @@ */ pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>; pinctrl-names = "default"; + samsung,pwm-outputs = <0>; status = "okay"; };
Signature · 1 line
2.4.3
PATCH v7 2/4 ARM: dts: exynos5422-odroidxu3: Enable TMU at Exynos5422 base
This changes enables TMU IP block on the Exynos5422 Odroid-XU3 device.
---
Changes rebase on git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung branch for-next Changes from v5 and v6: Use LDO7 regulator instead of LDO10 regulator to control TMU.
Fixed the commit log.
--- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +25 -0
@@ -474,6 +474,31 @@ status = "okay"; }; +&tmu_cpu0 { + vtmu-supply = <&ldo7_reg>; + status = "okay"; +}; + +&tmu_cpu1 { + vtmu-supply = <&ldo7_reg>; + status = "okay"; +}; + +&tmu_cpu2 { + vtmu-supply = <&ldo7_reg>; + status = "okay"; +}; + +&tmu_cpu3 { + vtmu-supply = <&ldo7_reg>; + status = "okay"; +}; + +&tmu_gpu { + vtmu-supply = <&ldo7_reg>; + status = "okay"; +}; + &rtc { status = "okay"; clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>;
Signature · 1 line
2.4.3
Re: [PATCHv7 2/4] ARM: dts: exynos5422-odroidxu3: Enable TMU at Exynos5422 base
W dniu 15.06.2015 o 11:53, Anand Moon pisze:
Quoted 5 lines
This changes enables TMU IP block on the Exynos5422 Odroid-XU3 device.
Signed-off-by Anand Moon <[email protected]>Acked-by Lukasz Majewski <[email protected]>
Quoted 7 lines
---
Changes rebase ongit://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsungbranch for-next Changes from v5 and v6: Use LDO7 regulator instead of LDO10 regulator to control TMU.
Fixed the commit log.--- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+)
Thanks Anand for working on this!
Whole patchset tested on Odroid XU3-Lite board:
I already acked other patches, except this one:
I'll apply this to my tree and send for v4.3 to Kukjin (unless he picks it also).
Best regards,
Krzysztof
PATCH v7 3/4 ARM: dts: exynos5422-odroidxu3: Define default thermal-zones
In reply to Anand MoonTrip points corresponding to the one defined in the exynos_tmu_data.c for Exynos5422 have been included so define thermal-zones attribute.
--- arch/arm/boot/dts/exynos5422-cpu-thermal.dtsi | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5422-cpu-thermal.dtsi
arch/arm/boot/dts/exynos5422-cpu-thermal.dtsi new file +59 -0
@@ -0,0 +1,59 @@ +/* + * Device tree sources for Exynos5422 thermal zone + * + * Copyright (c) 2015 Lukasz Majewski <[email protected]> + * Anand Moon <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#include <dt-bindings/thermal/thermal.h> + +/ { + thermal-zones { + cpu0_thermal: cpu0-thermal { + thermal-sensors = <&tmu_cpu0 0>; + polling-delay-passive = <0>; + polling-delay = <0>; + trips { + cpu_alert0: cpu-alert-0 { + temperature = <50000>; /* millicelsius */ + hysteresis = <5000>; /* millicelsius */ + type = "active"; + }; + cpu_alert1: cpu-alert-1 { + temperature = <60000>; /* millicelsius */ + hysteresis = <5000>; /* millicelsius */ + type = "active"; + }; + cpu_alert2: cpu-alert-2 { + temperature = <70000>; /* millicelsius */ + hysteresis = <5000>; /* millicelsius */ + type = "active"; + }; + cpu_crit0: cpu-crit-0 { + temperature = <120000>; /* millicelsius */ + hysteresis = <0>; /* millicelsius */ + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = <&fan0 0 1>; + }; + map1 { + trip = <&cpu_alert1>; + cooling-device = <&fan0 1 2>; + }; + map2 { + trip = <&cpu_alert2>; + cooling-device = <&fan0 2 3>; + }; + }; + }; + }; +};
Signature · 1 line
2.4.3
PATCH v7 4/4 ARM: dts: exynos5422-odroidxu3: Enable thermal-zones
In reply to Anand MoonInclude exynos5422-cpu-thermal.dtsi to enable thermal_zone support.
--- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +1 -0
@@ -15,6 +15,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/sound/samsung-i2s.h> #include "exynos5800.dtsi" +#include "exynos5422-cpu-thermal.dtsi" / { memory {
Signature · 1 line
2.4.3