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: 10597301 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BFB6513BF for ; Wed, 12 Sep 2018 09:55:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABD542982F for ; Wed, 12 Sep 2018 09:55:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D74929834; Wed, 12 Sep 2018 09:55:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 430142982F for ; Wed, 12 Sep 2018 09:55:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726970AbeILO6q (ORCPT ); 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-Google-Smtp-Source: ANB0VdaL4sHGU8o3EJxKovk7DEfF27YAtwNdouu4xvYR36iYmlJdE8iQZABl7BVyv6JjYoyag2Hd6w== 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 X-Virus-Scanned: ClamAV using ClamSMTP Initialise the gpu thermal zone to export temperature to userspace. Signed-off-by: Amit Kucheria Acked-by: Andy Gross --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 {