From patchwork Tue Jan 19 05:48:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 366124 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp468803jam; Mon, 18 Jan 2021 22:23:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoa/aP2RVQZ5MKStQJKJ/3IxNULcuM278g5FDk2tXwKS9S6GqDrllVkbhSMHc5VU2rFBG+ X-Received: by 2002:aa7:d39a:: with SMTP id x26mr2099793edq.51.1611037417646; Mon, 18 Jan 2021 22:23:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611037417; cv=none; d=google.com; s=arc-20160816; b=bsg55eIAxFDYAKsp6+RHp8ks1OXn+taEnZohYMDYEPBOAtEXJnKk6bpQLUG4KSMudS yY8utcv57gWpt/KoJtucflRj/mmytR7/P2LWgO7XZDzOdC2JSjKyWZOUOH3P32Glbx18 g7O9HZsHoqxcvRYbzm5gwDr2LvO4ZsImx/RBy0xLDUU3H892hS3fBzYYDJDROQVrvDYL V58I65KoikXgK6RMQR1l9xUPug8M/EkjcQb1iFZ3of8SgAezvBljU/sYqvwiY4HX8uX0 pQfIVndJrZydLAezhBlE8zsSBqhDJRzTA+3I8Q86YtOB4lIp8kEyBfv1e8svFqCTHyfN nA3A== 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=xYwmrtz/QU6RpO5QbrehkEFuAsa7SlsbStjo8EQedtw=; b=HnMmJDDF4fGbDtsfZzh0jsfL2xUzdM0j5qLBNPJuY/XirRvhLkHgkDFtoyAqd+UX5x 79Vaw78j8UvP5cOA11v8viwNbSQiXRE+VjfdpvPtOKEE0vD83etyuvpBRfxt6lygmpNF UpX469vihGhhNR153Zb0/M7MTKHpl46rF2nq+IwXejI/NzLJCmIwfR76zjBKxpr3oTtT LYlRQ2baA7BXGaxw2ejvpHPagNibWDGOf+nW3TplVJ1hFNQTr992z9AZrZZb3yQdsLck Jyhaqp2T7uj5/MsdOf9yoS6YbV5XjzXPoESqc7/q7NKJTgBL+8IJV4i8pgjrD3dyHw3K 2QKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K5nRtS2Y; 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 s21si3615300edd.135.2021.01.18.22.23.37; Mon, 18 Jan 2021 22:23:37 -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=K5nRtS2Y; 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 S1728605AbhASGXQ (ORCPT + 6 others); Tue, 19 Jan 2021 01:23:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388302AbhASFvi (ORCPT ); Tue, 19 Jan 2021 00:51:38 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5FCAC0617A3 for ; Mon, 18 Jan 2021 21:49:05 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id m25so27357793lfc.11 for ; Mon, 18 Jan 2021 21:49:05 -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=xYwmrtz/QU6RpO5QbrehkEFuAsa7SlsbStjo8EQedtw=; b=K5nRtS2YbYv2AHTcD6IiyY0LEV8YCv3+rrTBZQwGfrHwDV/775v+Ib+KN125PbV1Jh GgmzTQ6VsRsHqvkyXXLX8I5u667Utq9muwl680eBcSHJ+Tx9ZhkqmWY/27q446SJj0mK OitGxB0lyj7j0VFIESPZj+wWVStV8rqxVk1du8WqXdrtehxOCR2ri8M3/N5Yti3xr0/a PupKf6En4VUyTGpysIHa7aFrU8tXiZVuuNr0oiVjWFAdqnTsLDVZigYnng5g7ppGGfEb 42bCuLBhNm4vG3bQZUvjDJmCWqtieefeVyS0S7YC0ED9BJaFYZVvEEqNYVV8JZsdKCM1 h6Jw== 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=xYwmrtz/QU6RpO5QbrehkEFuAsa7SlsbStjo8EQedtw=; b=Nbdga4q6YuTwu+2vyHGb1mFl5lT3WxfXHAUQtgCuuZCa0TsndopabN+Gj3SLmQ6A2d s27eyn+xyL53mIgIGxd149eJT2nx3EnXBoVd5anzK2a/bpuhKYl52Wz4H++1N1yDX4ff biRpRMChLSuCHb5xFg945RxW4j9/2F/weEHh0EPkaOkt4UiKeErLsIx5vqMfWCjdoNIL 1qeRbuVkOilMwylLqHx0XeYos68slSZ1RZw+0F/kkU7RaGYhekMrmMJdNSnnaMirCKIN KdcG6Jxk8X4j3jlZ/QfmQ0rLctyU+fKUX2AcdeveMvWJ6WJCYMVOjyu+eLJ3D+qbd05q Q+QQ== X-Gm-Message-State: AOAM5306hShxn2qY8b3gLqHFVvmGj+SmaM2Ufiz/Tll0Yyjj8WAUUMMM yBJFTYW7gwA/ZwOdOSs7yLi64A== X-Received: by 2002:a19:e34a:: with SMTP id c10mr1221052lfk.476.1611035344263; Mon, 18 Jan 2021 21:49:04 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.65.64]) by smtp.gmail.com with ESMTPSA id j3sm2168207lfb.29.2021.01.18.21.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 21:49:03 -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 v12 5/5] arm64: dts: qrb5165-rb5: port thermal zone definitions Date: Tue, 19 Jan 2021 08:48:48 +0300 Message-Id: <20210119054848.592329-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210119054848.592329-1-dmitry.baryshkov@linaro.org> References: <20210119054848.592329-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 | 155 +++++++++++++++++++++++ 1 file changed, 155 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 ce22d4fa383e..ef9452f0c6b2 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -66,6 +66,78 @@ bt { }; + thermal-zones { + conn-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150b_adc_tm 0>; + + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + pm8150l-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150l_adc_tm 1>; + + trips { + active-config0 { + temperature = <50000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + skin-msm-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150l_adc_tm 0>; + + trips { + active-config0 { + temperature = <50000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + wifi-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150_adc_tm 1>; + + trips { + active-config0 { + temperature = <52000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + xo-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pm8150_adc_tm 0>; + + trips { + active-config0 { + temperature = <50000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + }; + vbat: vbat-regulator { compatible = "regulator-fixed"; regulator-name = "VBAT"; @@ -420,6 +492,38 @@ &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>; + }; +}; + +&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>; + }; +}; + &pm8150_gpios { gpio-reserved-ranges = <1 1>, <3 2>, <7 1>; gpio-line-names = @@ -435,6 +539,25 @@ &pm8150_gpios { "GPIO_10_P"; /* Green LED */ }; +&pm8150b_adc { + conn-therm@4f { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <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>; + }; +}; + &pm8150b_gpios { gpio-line-names = "NC", @@ -451,6 +574,38 @@ &pm8150b_gpios { "NC"; }; +&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>; + }; +}; + +&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>; + }; +}; + &pm8150l_gpios { gpio-line-names = "NC",