From: Matthias Brugger <matthias.bgg@gmail.com>
To: sean.wang@mediatek.com, robh+dt@kernel.org, mark.rutland@arm.com,
devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 14/16] arm64: dts: mt7622: add thermal and related nodes
Date: Wed, 7 Feb 2018 12:43:56 +0100 [thread overview]
Message-ID: <4db5c81b-0e55-3676-d7c8-d1b6aefb99c4@gmail.com> (raw)
In-Reply-To: <687a7c43e3e3260ebdf004a96d2cde143f563250.1517910489.git.sean.wang@mediatek.com>
On 02/06/2018 10:53 AM, sean.wang@mediatek.com wrote:
> From: Sean Wang <sean.wang@mediatek.com>
>
> add nodes for the thermal controller and associated thermal zone using
> CPU as the cooling device for each trip point. In addition, add a fixup
> for thermal_calibration on nvmem should be 12 bytes as the minimal
> requirement.
>
> Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> ---
> arch/arm64/boot/dts/mediatek/mt7622.dtsi | 72 +++++++++++++++++++++++++++++++-
> 1 file changed, 71 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> index e6dd4f6..6cf67dd 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> @@ -12,6 +12,7 @@
> #include <dt-bindings/phy/phy.h>
> #include <dt-bindings/power/mt7622-power.h>
> #include <dt-bindings/reset/mt7622-reset.h>
> +#include <dt-bindings/thermal/thermal.h>
>
> / {
> compatible = "mediatek,mt7622";
> @@ -75,6 +76,7 @@
> <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
> clock-names = "cpu", "intermediate";
> operating-points-v2 = <&cpu_opp_table>;
> + #cooling-cells = <2>;
> enable-method = "psci";
> clock-frequency = <1300000000>;
> };
> @@ -119,6 +121,58 @@
> };
> };
>
> + thermal-zones {
> + cpu_thermal: cpu-thermal {
> + polling-delay-passive = <1000>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&thermal 0>;
> +
> + trips {
> + cpu_passive: cpu-passive {
> + temperature = <47000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_active: cpu-active {
> + temperature = <67000>;
> + hysteresis = <2000>;
> + type = "active";
> + };
> +
> + cpu_hot: cpu-hot {
> + temperature = <87000>;
> + hysteresis = <2000>;
> + type = "hot";
> + };
> +
> + cpu-crit {
> + temperature = <107000>;
> + hysteresis = <2000>;
> + type = "critical";
> + };
> + };
> +
> + cooling-maps {
> + map0 {
> + trip = <&cpu_passive>;
> + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> +
> + map1 {
> + trip = <&cpu_active>;
> + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> +
> + map2 {
> + trip = <&cpu_hot>;
> + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> + };
> + };
> + };
> +
> timer {
> compatible = "arm,armv8-timer";
> interrupt-parent = <&gic>;
> @@ -201,7 +255,7 @@
> #size-cells = <1>;
>
> thermal_calibration: calib@198 {
> - reg = <0x198 0x8>;
> + reg = <0x198 0xc>;
Any reason why this is not part of patch 8/16?
Regards,
Matthias
next prev parent reply other threads:[~2018-02-07 11:44 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-06 9:52 [PATCH v2 00/16] add dts nodes to MT7622 SoC sean.wang
2018-02-06 9:52 ` [PATCH v2 01/16] dt-bindings: clock: mediatek: add missing required #reset-cells sean.wang
2018-02-07 10:45 ` Matthias Brugger
2018-02-09 3:38 ` Sean Wang
2018-02-06 9:52 ` [PATCH v2 02/16] arm64: dts: mt7622: add clock controller device nodes sean.wang
2018-02-06 9:52 ` [PATCH v2 03/16] arm64: dts: mt7622: add power domain " sean.wang
2018-02-06 9:52 ` [PATCH v2 04/16] arm64: dts: mt7622: add pinctrl related " sean.wang
2018-02-07 11:31 ` Matthias Brugger
2018-02-09 3:41 ` Sean Wang
2018-02-06 9:52 ` [PATCH v2 05/16] arm64: dts: mt7622: add PMIC MT6380 related nodes sean.wang
2018-02-08 14:46 ` Philippe Ombredanne
2018-02-06 9:52 ` [PATCH v2 06/16] arm64: dts: mt7622: add cpufreq related device nodes sean.wang
2018-02-07 3:33 ` Viresh Kumar
2018-02-07 6:16 ` Sean Wang
2018-02-07 6:18 ` Viresh Kumar
2018-02-07 8:34 ` Sean Wang
2018-02-06 9:52 ` [PATCH v2 07/16] arm64: dts: mt7622: turn uart0 clock to real ones sean.wang
2018-02-06 9:52 ` [PATCH v2 08/16] arm64: dts: mt7622: add SoC and peripheral related device nodes sean.wang
2018-02-06 9:52 ` [PATCH v2 09/16] arm64: dts: mt7622: add flash " sean.wang
2018-02-06 9:52 ` [PATCH v2 10/16] arm64: dts: mt7622: add ethernet " sean.wang
2018-02-06 9:53 ` [PATCH v2 11/16] arm64: dts: mt7622: add PCIe " sean.wang
2018-02-06 9:53 ` [PATCH v2 12/16] arm64: dts: mt7622: add SATA " sean.wang
2018-02-06 9:53 ` [PATCH v2 13/16] arm64: dts: mt7622: add usb " sean.wang
2018-02-06 9:53 ` [PATCH v2 14/16] arm64: dts: mt7622: add thermal and related nodes sean.wang
2018-02-07 11:43 ` Matthias Brugger [this message]
2018-02-09 3:51 ` Sean Wang
2018-02-12 11:55 ` Matthias Brugger
2018-02-06 9:53 ` [PATCH v2 15/16] arm64: dts: mt7622: add High-Speed DMA device nodes sean.wang
2018-02-06 9:53 ` [PATCH v2 16/16] arm64: dts: mt7622: add mmc related " sean.wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4db5c81b-0e55-3676-d7c8-d1b6aefb99c4@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=sean.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome