From patchwork Wed Sep 12 09:52:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 146541 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4619273ljw; Wed, 12 Sep 2018 02:55:01 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda7CS77RqnEW1jsk+4vLl2Kaxbay265+DxLz1G+pW9xEUpg+XcNIBXpTsCYnB3Ld3U0KMks X-Received: by 2002:a63:c245:: with SMTP id l5-v6mr1257266pgg.255.1536746101319; Wed, 12 Sep 2018 02:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536746101; cv=none; d=google.com; s=arc-20160816; b=gHai5b5gNEUBxsin6VSJWBkY9VoFjcy2JxdU30w5vPvuQY7nQSFJmUMKNR/anEXlel U9DoDYONTOFFgxtSssP5hPf9tvgXV2tKOHqBJ9iAqCzQLLxKbvy2BUJmCfk7zr8zCcK8 E9wrTIY78uw34Q+slV6phn/yTBVUBp5a4rAzcLwgYElitx+vKvLJIfC6vsUUGNO8WOLU r4LpaPxYSknoqwQ1sGsTJefP4ZL/cv1AdgDn1WbvNZFDRm5zh/yVLPZmWlF/ZJ63FY/l C//fJLdFs/EJG7cT7Tc3AfSaqqU6CriVgPsA9LqEc0LgFWBI5Y29ins1Px+/aUAw6v3Y SX3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=9bJ7qSAUU7/5UhkQH/j21Wuybl3ji2CUnJgoFpqPBH8=; b=k1hl0ObtJG3uhJ/cNDOOLsqtHbjh8nV8p7mj8DCppNopyI6EUT6wVeFslaGR01jGH2 I2KPwlPeYRFzwFQ7oyGmZN0mw+4oTg9puTnjEBrsTCQcSWIo70PxQ0ncjDIWyBejhI+k 2phiMgADMy2G8Q9vh9dvsYan2wZDXNJPh3e6IOsTHGwNeVP5S+zehpCnPL8qosofI2CF ZPZHDSA1V21wx5s6LANB2CorHMTraEPN0axGuI6Rifc89IQvdEK9MS52NEZZoFk2gtcg yvSufQHeE7zFZH2Tl3prnowd4MGj2rwvkSw3KMtI2Z4Rqh33z0Gtrvy2P9c5Q2SZlZkv Xz3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="E78Z/icE"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [209.132.180.67]) by mx.google.com with ESMTP id u129-v6si596438pfb.247.2018.09.12.02.55.01; Wed, 12 Sep 2018 02:55:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="E78Z/icE"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726970AbeILO6q (ORCPT + 13 others); Wed, 12 Sep 2018 10:58:46 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:34290 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbeILO6p (ORCPT ); Wed, 12 Sep 2018 10:58:45 -0400 Received: by mail-ed1-f67.google.com with SMTP id u1-v6so1279316eds.1 for ; Wed, 12 Sep 2018 02:54:58 -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 :in-reply-to:references; bh=9bJ7qSAUU7/5UhkQH/j21Wuybl3ji2CUnJgoFpqPBH8=; b=E78Z/icE+yxJRRycW8ZF3KLIgVkflz0oks+ey8DbjzK0W6Z9evURKH4w5CY/7PmjxF gHRdO4+KsGHKksvWarxBBUNldQuYBLf0GnmJSLw/55Nu7As3+FglyledJH6kdR05wq2K dxbr8cz1r+nY+fV/Xsne3uCJj+/TMeOSg/OiQ= 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:in-reply-to:references; bh=9bJ7qSAUU7/5UhkQH/j21Wuybl3ji2CUnJgoFpqPBH8=; b=gDA3M46CkUFY+fzGw6gV2iTakmlY7Ag+cNzyeqHpfrGmAM2+JAVLwFpcw2EP3Ik5UL bhgPJXguVEOLZH4TnoKdXztkYpF/TlU13Jj5gP5FYRc63X9WIvOWwMTxyBG/zUsSqOBh ZQupkqkEN613YDzGnSMQVuda8JCZD238/MxdElkJPDN/MHk7AnTaOlH8IoK5L0fRCWJz h10Htxso3AQr2x1YOHoInJFVJUWlG/9KQJC4uYR6pmxzaDCe3sFagdSBShWIiltouNgj PavBTHw834TOHhQFO/g35iXcsfyBQMtqCKkA/R8OgXcBdeyiaIraW4PLhTvqDUrpQ+Al a6Bg== X-Gm-Message-State: APzg51D+S++3VQxFfSEsExtyKJsM7r87N7O6tqEYQJ2rmBePCvn/+uYH +wXsH9yom2r53jlITIZZjYfb9w== X-Received: by 2002:a50:9732:: with SMTP id c47-v6mr1753777edb.89.1536746097944; Wed, 12 Sep 2018 02:54:57 -0700 (PDT) Received: from localhost ([49.248.190.214]) by smtp.gmail.com with ESMTPSA id q26-v6sm387923eda.72.2018.09.12.02.54.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Sep 2018 02:54:56 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 14/16] arm64: dts: msm8916: Add gpu thermal zone Date: Wed, 12 Sep 2018 15:22:59 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Initialise the gpu thermal zone to export temperature to userspace. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index be27d8dc9e6b..62f079ae9ba3 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -237,6 +237,26 @@ }; }; + gpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + gpu_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + gpu_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; cpu_opp_table: cpu_opp_table {