From patchwork Wed Sep 30 10:02:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 313887 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:1081:0:0:0:0 with SMTP id r1csp49294ilj; Wed, 30 Sep 2020 03:04:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVxFLczLdxzHPfMX41/ZIZLBM4HGzbGAwQQ3QXSe4phGhiy990cCLTlv2qrGM8XX2LDtpz X-Received: by 2002:a17:906:dbf5:: with SMTP id yd21mr1886173ejb.521.1601460168187; Wed, 30 Sep 2020 03:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601460168; cv=none; d=google.com; s=arc-20160816; b=l/2EqTpOcpQ8WO3OIVEqhjfM8EsDwnlffW16vzavwUIS9IJUJet4KRPOTnHhso2/FW Xltj+SoFOUIc5++brRMISJVtApk0lc64mnqLytLbz+/e+L0idk1NcFPcEWjEGpDiAbq4 QBW6Bt9eQUf8oI4Tuj4yhLYiRnHpM5OVXQcz3ROFyarTZjVsNoDHbw+uVTCxPVOx2Xba TDwliBCsyWGRFnAT3XB5kdL4A9b4egR/GAJa/o/oHZDeSyGCB/ObRUfdw4oY9WH3El+W 11e6jA/tEziAX18mrh4RZroK97Xfo2dsmjoXUjFctQbIyx6IlWEM3j6sVsqDEJvozFJJ A8nA== 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=CTDgaBkrl1T9Sisdx+Othb1hsd+3ttD8QNQTPZFUcsKU7ndar/8F9zDu9bBZbWh+o/ vntJPqLsFqq9ge0aOaa6jy7/R+auaaSh0UL4rF1NPup2ls5ozRHjEzLAbTmHqwhGw1tr QzcHtPyIRlq+QeR6xjnv1OgPp28S3E2X5y/7NA75hmck95+IH3cTPsYsx3qOEWlXOWp+ mZqtKEwR4v7n8jlwmG+dC3omzrbi36GglDZFtIkm4kSNlX32vQBL6OsG0rt4jhQ434Dk /OeuaGTRcmY9ItnJmvcST+zMg6hh2vYr5fBtSwFDdcQLevBVMzLdDjMQRnKEw5RNdJiW BFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWO0F5gp; 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 b10si732144edq.484.2020.09.30.03.02.48; Wed, 30 Sep 2020 03:02:48 -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=eWO0F5gp; 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 S1729424AbgI3KCq (ORCPT + 6 others); Wed, 30 Sep 2020 06:02:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729444AbgI3KCq (ORCPT ); Wed, 30 Sep 2020 06:02:46 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5C46C0613D0 for ; Wed, 30 Sep 2020 03:02:44 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id v23so1061363ljd.1 for ; Wed, 30 Sep 2020 03:02:44 -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=eWO0F5gp7V8DSza5dh7RccwYowiNRo3RKTENbUioTQzilk8j3rY9vb5TSmevlE6yRk 88jkXMraQhK/td2BMXxcrV6SccZNxx/g+aUAHyv7NeExbVqoL7jBvxoFhODQdgw6F2+0 7SkNGdvgSzgb1t0rixg91W9G65XgTQB9/cGsYAapPXSRpdle8QO5XkmWhpSQpwBI+a3X CT/LvYxV1cZE3YBUMemUhsUjq+cyY0g9aZEGbzbkkFwo9GdanqjCeKmqwScHn/h4/rax ppm5wvFLvtQ5dCBN+2HgTq5mcfMrWsd8R89x+lNv3d1DN7jCyT0P3RVZbV9gV0C7wzng 8I/A== 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=nYE2P1UwJVoSaj4rO+3vQZwAX4QPsl2iOQqmI9CEl++d6AhC72RCu+7rbrhoPTwy/2 qsGaG+zqRrllQsnI/0TnkRJ3SElHjsHmdXMrF6ZIM3BpllsbGNx5I/M+9CwZ9B4ri++V TxrW3Xt4O+E57SLp6BZSdK3NuSCgPSRr53ZBA7PG+kGRHC+OiZGRBYYnP0QP58CV3DMx nsO6tt3ltbmrbye+dhNC5TJhuHbLjHjIs0tBciDGnDKZxJ68RxgTz+BaWScptIZJ8J+6 acOZdoV2TPmK6H5fXPwsOG2+R/2Ajw6o3RS783cKpYXW9wTOqVzcsEpmpxSWlKemHLez 2d1Q== X-Gm-Message-State: AOAM530XP4QMM7L7AtMr0dpActrXp1fn2cs6im0q2ESbHPCspD+qkVRi 8V1J7h75bykAzewHXXJ9nQYEAQ== X-Received: by 2002:a2e:8e71:: with SMTP id t17mr594550ljk.413.1601460163143; Wed, 30 Sep 2020 03:02:43 -0700 (PDT) Received: from eriador.lan ([188.162.64.138]) by smtp.gmail.com with ESMTPSA id w4sm132479lff.231.2020.09.30.03.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 03:02:42 -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 v6 10/10] arm64: dts: qrb5165-rb5: port thermal zone definitions Date: Wed, 30 Sep 2020 13:02:03 +0300 Message-Id: <20200930100203.1988374-11-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200930100203.1988374-1-dmitry.baryshkov@linaro.org> References: <20200930100203.1988374-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 =