From patchwork Wed Oct 7 13:54:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 316913 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp469928ilm; Wed, 7 Oct 2020 06:55:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAU2Ml5cFO9SxfMFYjYn4mgh4qs5urhKYf5K/hZmsAwZ+y7mt1qN9+4ECF87PfgqphDXSZ X-Received: by 2002:a17:906:4c93:: with SMTP id q19mr3304131eju.198.1602078908976; Wed, 07 Oct 2020 06:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602078908; cv=none; d=google.com; s=arc-20160816; b=zbAtMcfHHuIcFRsCJaPAr4u13uRpwxGXWEQgDXausynrRuWZWX/T3tfuESEAPDlQ3x /y7YOaPqOxOvdoYXW6ZuxZhPb7VUdx3UlVluFaMZ2aNDxKewQj+d1xD8k16qd4AuAqAt Y859H55ixory/MMMgqas653+LRoG8tQzXIvnfDELe9wgepiUWUYO8hVhonGBcAR1f7dv zY5uEmZ02toAPm1DOh/OhFBEIEz70HFLL4uvCIdbWjyJs5vRis8mTXwgwd7FOznuGYFQ lT9PWVcyEZGhYcg/PMgcBi5II9lyu5h0y0FOLF+jOcXVL7ifJcwxxtp1Ow3MwAyiQPMU jKZA== 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=aRbSGI7hrp3CI5/xb4b6X0urPfFb5fFyR/C1ZmbKI2U5nR2+BQhNpp4A7U82T7Ij4I 14ZZhEZECn6Qp3E141uANDQQed3FKROSRbyT3QAA06jn9L7UvAtFuHGCQgUNXUcFS9Xi rpoL7I2QkXwpSCLV+LCYjvr6gwjmtj3khCFFe6bkvfYdhMxnHHgVgJuFEICwyY2WXs12 yAG49+43M0zdkZPRy9JBys9q2OXSpYc6oqgFHuzqY25rGGw0tah/wzO7tz0hjXE9U5D1 FwVFRdz6hi0nHNfJ8sqKGmflwBiEUBsrSUqNuwpXIcs515GLL9gGdOF5NoRHh5rqOQ9b 0vRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZMxtEcJD; 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 qo18si1510701ejb.161.2020.10.07.06.55.08; Wed, 07 Oct 2020 06:55:08 -0700 (PDT) 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=ZMxtEcJD; 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 S1728593AbgJGNzI (ORCPT + 6 others); Wed, 7 Oct 2020 09:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbgJGNzE (ORCPT ); Wed, 7 Oct 2020 09:55:04 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89BA1C0613DB for ; Wed, 7 Oct 2020 06:55:03 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id h20so2051875lji.9 for ; Wed, 07 Oct 2020 06:55:03 -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=ZMxtEcJDm8Bggm89ABB8R37Cvdn1N4JOLSFF0ib2qzZcToX4kZgefd0QGaf0DWKMdH 2FlcXXGmaFpJQN5BEdMSnunOsb19ahjGgsAMJMV7v5zIllcs+4WfdA7TuKXJwzoU1rOK wnWdM/RiuYdPfNN6R+ZVsUjoOTiFTlgumI8j3tedasjj7siRmKSyGfPSVAaBYeqOlluF 8E/XTT4b7Wee7cgYKMLzPFEmN9vO25jEN5BatFlCcYtfBeAtIM5XjLs2QcbW5bkfWqNK kDY0sjbuxz+LN14cjsM7WzvR9tWLIJc7bW5aj8Wlgpyf36z9+whPt4uBW2zTe+xUUECU EHaA== 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=rpDXzTxOcgfu02jcMssYX/E4iuXob8H/LGxzZDrnskn2W22E8nGkrfjKkL6WfkpjIT 6yte5R6RIJlbbRPkJrxbG4G6N+SxKUutTFRW/Gs9IdHwwWLz1l+hIXmAVm8IFrD3mGzH 46sorvNI/DAL9m/EbzxC7gRnJ8bbkL8DVP1oUR+eNw74fiEUZhdRaBAAGH4Kjo7znSzz s2IQIgFtFXVta65jzXJ47yOEEFl3Vytm8u8y/PKPw5Nojs5nvDEH/NH2IhXrJ8k3kWMe xRkXypqn7e/jv9JTwHFkairLfPQmVGRN/MfNkyTfExBSkteukoDQbW5v/w9OoleG9prw 3/vA== X-Gm-Message-State: AOAM530f5+5l4T0Ln5zaES5AzX/8jHQfMLXDjsO2FL/B84WrWqJ942U6 CydV+aqIiDQ7F2jZuS3LoSkhmg== X-Received: by 2002:a2e:9c88:: with SMTP id x8mr1144712lji.251.1602078901963; Wed, 07 Oct 2020 06:55:01 -0700 (PDT) Received: from localhost.localdomain ([188.162.65.250]) by smtp.gmail.com with ESMTPSA id n3sm339768lfq.274.2020.10.07.06.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 06:55:01 -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 v7 10/10] arm64: dts: qrb5165-rb5: port thermal zone definitions Date: Wed, 7 Oct 2020 16:54:33 +0300 Message-Id: <20201007135433.1041979-11-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201007135433.1041979-1-dmitry.baryshkov@linaro.org> References: <20201007135433.1041979-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.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 =