From patchwork Fri Dec 4 02:55:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 337717 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp818754ilb; Thu, 3 Dec 2020 18:58:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMz7QeBh0GzJ5rUBM7mtIM14bcQqpAANzwEjSY3eote3DiUVn6kr8yyXpN2UNLHL3l+Ufx X-Received: by 2002:aa7:c0d6:: with SMTP id j22mr2475628edp.31.1607050718477; Thu, 03 Dec 2020 18:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607050718; cv=none; d=google.com; s=arc-20160816; b=HyxUdFlXwYLGkN0vrNskqx7UiqlAsheXtmplhSnyPL6Geq4TLr1Pe7Z59O8V0K5VLz /MhR6lyOJ5OLCBU1UqFEoE6t7YYxAetEjktjcYqbRzF0gcpsui1fUGjEcmdXQJi7/cpP 8uNoQmYDMcsNE0IhBahgvnwwXDJraAbn61vsskXIBc/BishPnzrlqrVn+1uWF4NxpVGC 9OqkjcwHjBz3rPHwCRwqbgeXU1w35VIPWh19bAM44PG1VeCW1t01S3NDyMugcGYKuxVL WIFDokr4xSiMI8WiRd0OwE6IZsPuaG1HEsuDppYJh1aMgFoTfB7R94zkxaFH6/aXdAP3 tbPQ== 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=npsFFsjWmPcNQLpFgdF7vTEr/fbtzWSA2WvHK+VX9Y8=; b=bp1mQBEXGk4ge1+ELh0LPJj6q73Zyy7IEDdxw/3S9pgT3wcbRwkR3T2ePsxCMdqwE4 8O/8CXXmeriGmcZBNw5qO6Y5v7hZVX1nBz9Cil5wa6CXv9DNmbbTpR0jpTAgaCXgHz8e C7PqM7+UisAD7xm2EEjgprdku5coJXQTm73sO2TZEd7xKeg92SDBjATU5qJUURehXA/E 5EAb4htJLOL8XRQEWM87griQWQOlAUIw9pR5j4/QP7vgcUuSawz+PW/z/KqdLl/W19Yk ZVsQDYxI98Xw1i7SztwW6kulh84o104ZS4AexEhJjszdDl6q89TvQ0SlN5YyclqTw4ST ez1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y6oI6KNi; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 i19si558396ejr.557.2020.12.03.18.58.38; Thu, 03 Dec 2020 18:58:38 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=y6oI6KNi; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727459AbgLDC5v (ORCPT + 6 others); Thu, 3 Dec 2020 21:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727434AbgLDC5v (ORCPT ); Thu, 3 Dec 2020 21:57:51 -0500 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 CA76FC094272 for ; Thu, 3 Dec 2020 18:55:48 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id z1so4934015ljn.4 for ; Thu, 03 Dec 2020 18:55:48 -0800 (PST) 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=npsFFsjWmPcNQLpFgdF7vTEr/fbtzWSA2WvHK+VX9Y8=; b=y6oI6KNiv5i2nOCS/ZDnUrSDdzRzW4B59lG4xHN0AIp20CVPSsAMgZdPWIURR+l0v1 LXMm1JIBnd0SnaszpyFdKxFdhFAs+55BGR0fWES1tLNeQ4gOsdLB4KcMXAEfPprSVzAh GhOIEDxicarbWYg9FmYmYrMd8q9JhmzdgBOwmYpaWwfl9QbJBZiV294dud9m+qzIU3xt T02P4voCfQ5KpuTU1Cm8LCKFN7R4bb6mW9J+qtKJxUnO/8NdyzGWbOV6LU2HZq48B0RR Lymt9vHQQWdKh6Q1bxpfw19GjR19PhkXLR94FBmz+PKZnQKlo/ubbdiPwqDx1NW5Mq0U cHog== 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=npsFFsjWmPcNQLpFgdF7vTEr/fbtzWSA2WvHK+VX9Y8=; b=A+EpUFfBv+eAG/uUZYfcINDFkl2599Lrm1ueAgaiS8/+vehZowNTID7n4CRYS4zMTd fOLNa7bhjAGYSTjVjmYKLZYuFSaNzycuEUdU28TyuH3TiGQZmx5IDGxBo1FES2EAyxT+ xNPycJbkf2Eqo09jR4PWZvFYgIpZTaKWzCacTySJhWuy7x0iv+CBSzndihnWuzPHiQP4 fvr4qLDxTgi8j4czz60NEG9ZsnvxfHEO1v8ne7tuL+38itwZD7N17xBUK1a70mi2L+y7 f/WsqEuSeQzaVTxyNGGFtEJF75uE7JaE08MwKTb58bRIpAP4BcpzA2PT9Cdk9NakL442 9eHA== X-Gm-Message-State: AOAM533f5zehZkMW8lW9NBJamlEa54c/tH2a4eaRr8Gg3+G5xczbxq6P 556+TENliCLAD+t+AToP9hbbsA== X-Received: by 2002:a05:651c:315:: with SMTP id a21mr2256590ljp.229.1607050547298; Thu, 03 Dec 2020 18:55:47 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.117]) by smtp.gmail.com with ESMTPSA id b8sm1131667ljo.68.2020.12.03.18.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 18:55:46 -0800 (PST) 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 v10 15/15] arm64: dts: qrb5165-rb5: port thermal zone definitions Date: Fri, 4 Dec 2020 05:55:09 +0300 Message-Id: <20201204025509.1075506-16-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201204025509.1075506-1-dmitry.baryshkov@linaro.org> References: <20201204025509.1075506-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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.29.2 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 =