From patchwork Fri Oct 9 15:44:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 317555 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp2427021ilm; Fri, 9 Oct 2020 08:45:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4naXkbarxFvWg/kCGmlLivWd5tVCOAZx5zJnF8FtzuEPA0EGCH4w4JQ908meyz+8AJMOH X-Received: by 2002:a17:906:dc5:: with SMTP id p5mr15733266eji.116.1602258338151; Fri, 09 Oct 2020 08:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602258338; cv=none; d=google.com; s=arc-20160816; b=mR0X9G1DILqZaShBoujVocM+r2OFNPGkbklG3///JJhP+XNf/TeD9CjaMedMLZPhT9 Dhxor4UU1VdsnJwDii4ASmnQdhR6ZIZkTDcs61lVx7hOEXzYYHiXsQDgQecDXidSbREY pmxKW6GdH36IeUG9WD/vgBFIP57tX65wFhnvCIgbW7x6wIvIn43vEglaFvHnZ+6OS+c3 k6zoccItoZhoE8FakTF2ku5G4+Qbhfx2MuPCU+s0pdMlrniXO5EqU2sGQNXkjrbP3cu1 /OCryD+4Clqfax9iPNYtXcSl2f8rPZkkobZcKKls7x84W+u7AcuYVoRMwsFZncntwjn8 DXkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IlnfeC5dNMsfRj34KVveDWWiSX6big7HcGo7tOgQ3Ps=; b=Cul6/JWEFf4sfS/Fp8tN3lXgakesTq/qt8RLcpcpxHlny3zM+6f6lTsOx5VhH//DtF y7m9LyOqsPHjofoaQQvYnkaWenE6S3lR9i4cFQaGEHg4bM6nP8qHo2aFLvKYO9eb3vqC zaoTV3YfblctSrUeYims3GvAowkfUwG4p8Iyf9zKrUAMW43jhPDXgDh9Ht0OeANAAt8l 0+N9Ywo8d4LTGY2VEUOL8rUOL/6g4QA8gXad7/uYyI67IT2lsR3M1oFoDzCQMw0Tz1Q2 GQtlD1STm4yJ1usFlqGHJvtrcUjYn5ooaa93rvrUHGTA4YaUe9GHvw5KQDcjc7IwahIC Kh9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYuMO7A3; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si6328708ejy.232.2020.10.09.08.45.37; Fri, 09 Oct 2020 08:45:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYuMO7A3; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389472AbgJIPpg (ORCPT + 9 others); Fri, 9 Oct 2020 11:45:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389366AbgJIPpg (ORCPT ); Fri, 9 Oct 2020 11:45:36 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D5AC0613D5 for ; Fri, 9 Oct 2020 08:45:35 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id a4so10030884lji.12 for ; Fri, 09 Oct 2020 08:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IlnfeC5dNMsfRj34KVveDWWiSX6big7HcGo7tOgQ3Ps=; b=FYuMO7A3DbIUdKIEj3Z5e+A49K1QxZbLCxr6PPabiLrGw5/nDSApisnltR25JT3Ykc sdeTALeYSh6X4AssbWwtidJNvm12QReo3k0syA2akf4wthzxGVrQqFHKOO/W+NBk5NNw hbaqWCs+FUZBT0BBaR74Fbt5fDdJMwA95iMoqCVO/9t5xu3PbnXiqZD7uTotXmH7ZlLg 7leA3claJykESJBjzYY5J/CMjTUTffkCu32Po+/Cjo7zxbFK5edg1ffbwT3IEZZ3IzIO QuW6eclxuWiyZbxI5aOELRt6MWwiMBKmaNh62hnOtiPCPBrE1Ofnu/MdfThM/nH/YD4E 5vRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IlnfeC5dNMsfRj34KVveDWWiSX6big7HcGo7tOgQ3Ps=; b=nfqs3N4i0zolZC4mwkBdOjmwec5Yme3rGCBctOIhGLKAe4WtwWsmsjYotwQMRBR8Tg izkFiitg7JzGynooyBGvAnMzIvZpUvUR6XXaObcEAyPS1a92JNpLB9j+B0Mp830QPRpb hpNzozmpX+5NebboPWPi1637iXVav57cgAMXfrZ9RmWxK37BfXZVxY1C2ZIuKcZLvLLG OoDgKQfsaF1rytPXXACUcpw+hMYP7vdq6ArfSJYZhMaGQ8M+mv82x/I336X/MD8pewKj aNb3oedKJEJKGJ2+0Jm0uQV6C3i8Gwzjm9UEvSxoGzEYihQoxBBSIY1sjogsJ+Zn5iZt DcTA== X-Gm-Message-State: AOAM532J4Z2S1jKrX9gVTcIplmMtWgkdJrMn4DY3SGTYyCCW5wvqkg2v r996VdVsnMiRhvfVr+uZHtAQBWIRU+Ipdr1R X-Received: by 2002:a05:651c:1128:: with SMTP id e8mr5802681ljo.436.1602258334086; Fri, 09 Oct 2020 08:45:34 -0700 (PDT) Received: from eriador.lan ([188.162.65.231]) by smtp.gmail.com with ESMTPSA id r4sm1505597lfc.162.2020.10.09.08.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 08:45:33 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Zhang Rui , Daniel Lezcano , Amit Kucheria , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Manivannan Sadhasivam , Jishnu Prakash Subject: [PATCH v8 11/11] arm64: dts: qrb5165-rb5: port thermal zone definitions Date: Fri, 9 Oct 2020 18:44:59 +0300 Message-Id: <20201009154459.106189-12-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201009154459.106189-1-dmitry.baryshkov@linaro.org> References: <20201009154459.106189-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add thermal zones definitions basing on the downstream kernel. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 154 +++++++++++++++++++++++ 1 file changed, 154 insertions(+) -- 2.28.0 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 1528a865f1f8..6cb8688910a2 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -58,6 +58,77 @@ bt { }; + thermal-zones { + xo-therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150_adc_tm 0>; + trips { + active-config0 { + temperature = <50000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + wifi-therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150_adc_tm 1>; + trips { + active-config0 { + temperature = <52000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + conn-therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150b_adc_tm 0>; + + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + skin-msm-therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150l_adc_tm 0>; + + trips { + active-config0 { + temperature = <50000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + pm8150l-therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150l_adc_tm 1>; + + trips { + active-config0 { + temperature = <50000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + }; + vbat: vbat-regulator { compatible = "regulator-fixed"; regulator-name = "VBAT"; @@ -412,6 +483,89 @@ &i2c15 { status = "okay"; }; +&pm8150_adc { + xo-therm@4c { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + wifi-therm@4e { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pm8150b_adc { + conn-therm@4f { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pm8150l_adc { + skin-msm-therm@4e { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + pm8150l-therm@4f { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pm8150_adc_tm { + status = "okay"; + + xo-therm@0 { + reg = <0>; + io-channels = <&pm8150_adc ADC5_XO_THERM_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + wifi-therm@1 { + reg = <1>; + io-channels = <&pm8150_adc ADC5_AMUX_THM2_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + +&pm8150b_adc_tm { + status = "okay"; + + conn-therm@0 { + reg = <0>; + io-channels = <&pm8150b_adc ADC5_AMUX_THM3_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + +&pm8150l_adc_tm { + status = "okay"; + + skin-msm-therm@0 { + reg = <0>; + io-channels = <&pm8150l_adc ADC5_AMUX_THM2_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + pm8150l-therm@1 { + reg = <1>; + io-channels = <&pm8150l_adc ADC5_AMUX_THM3_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + &pm8150_gpios { gpio-reserved-ranges = <1 1>, <3 2>, <7 1>; gpio-line-names =