Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5220074imm; Wed, 12 Sep 2018 02:56:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaXhe1wIzuB4mVd8abCXqOUR4BccOyg5V8Q4LhwmdIRDbAXNqiOauoFDhwD7sWsVJV7TvS3 X-Received: by 2002:a62:225d:: with SMTP id i90-v6mr1318186pfi.246.1536746167460; Wed, 12 Sep 2018 02:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536746167; cv=none; d=google.com; s=arc-20160816; b=0O+IYTVHFP7G0dmcI0QzD6zHAAA0FTHDyl/1EIWotADrpYCNcGFpPLsKcrPth4hvbf VH4SSVJz2Y7rqZLRQvw8anUm7ymceHhAwgjPoP+WnlQSK9Sk3BJ/C5Y07an1ZwGbgbgt p1oD8k7u29DpH15I4q1swZF6l9dTJo3KHqyywm4+O3vr5t9nw6ydVF1i/IUY6EQm/bQ8 Bu85oX2vgk3hOpWaUu3VdsEcYnmz5jUsmNppwapWDxSOX+jLI+Bl0YAdzF0bd2JpqeAV vBNSogIUv+VU6YNvD86swJxUlcKpThHW9+q/OUFRUlkJh713Iom6L+lQ5JKvmW5OqTkG 1a3w== 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=YWY514Ho56MqP+3xVlX6Wcdqohkkp5DZVbhXeb5xcpo=; b=H+QZaW3BPTyGBpTTxEZE4h2bnP6C3H6c9jEBIn7P+7ETeG0LzmqTq5DTBZkWdgkwjg D5mOnvBMwc3X3rq4qKjf+fxN/h14m0TGwa/wgqJh3yGy9vVYFdog3+Gns7MAvI4faugq jTgSlVVMTYC+FlAqQrnl9ur2sqnztF6wJ0h1IGtWj6ic5WOodUsHzcC8dI1Oj0xW1EU0 iYcu7MqGz91mx/YN7BnP8UffrG5My1mUTzYM9MX3yjDwoNtxFhDCPm/0IdNX+oVySgj4 B2idh63dz28Wb3VboBuOhyMtVPbiDmLkfA6Zz4N869tp/koXy0CQRSIZpr7gbSckfyMw Py8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IxOuWwRY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 k18-v6si517341pff.91.2018.09.12.02.55.52; Wed, 12 Sep 2018 02:56:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=IxOuWwRY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728109AbeILO6x (ORCPT + 99 others); Wed, 12 Sep 2018 10:58:53 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:34295 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbeILO6w (ORCPT ); Wed, 12 Sep 2018 10:58:52 -0400 Received: by mail-ed1-f65.google.com with SMTP id u1-v6so1279557eds.1 for ; Wed, 12 Sep 2018 02:55:05 -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=YWY514Ho56MqP+3xVlX6Wcdqohkkp5DZVbhXeb5xcpo=; b=IxOuWwRYpJkUsVrLRpCfzYi4uv8X52mWzMaPrOdfDb9B8/iwDZqUxEhV92wc6WOSW8 xXq2XobjiJ0f37w6Os+R307z+o+hXXiiQeFHSw0uteDUFfOxw6hv8Em9uuxK58Q4MrvF pcE+CCM4xtLnXq6WipI+5wvNp/v0PdTXPcTjA= 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=YWY514Ho56MqP+3xVlX6Wcdqohkkp5DZVbhXeb5xcpo=; b=fznebUAiBA2XZJ+VT7jUDNHsrPBu27YGTacslVHphdVTS6EmbbNY/a5sR7Mv48t5A2 RW8HmzSHqmmEg+LlDgmMorHRfaWQBxPsftGRH0TgWCowctJC6DR7/WLumtCdaU14oYGz 7x2yZ8dT0wJ2frTws7Ca+kk1xbMyKb5zQZNrfHxOHKYBCy2AKwvkN68oFKTtCHeFwBkP e0L+YdkzVr87wPvbqTPAtVijWFBjyrmhdtzeEBeYsfPNB0Yms4cVbObqOUDlDbuTmc2C b7a1aDeIvWFi1H1SrchEN555cjg2utB+fUdOIWYgxnBTRZtfCJ1pv5D301Y8ILt8tOHY WREg== X-Gm-Message-State: APzg51C5Rj9kpKioKzGDe8aJDCedCwfCqLjgc/WqK35Tj6ZznRTfZgdY KmFCCWpSeSE6mEjm2gNGAjdjBvhQW3Q= X-Received: by 2002:a50:8a66:: with SMTP id i93-v6mr1786761edi.281.1536746104156; Wed, 12 Sep 2018 02:55:04 -0700 (PDT) Received: from localhost ([49.248.190.214]) by smtp.gmail.com with ESMTPSA id 25-v6sm557988edz.45.2018.09.12.02.55.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Sep 2018 02:55:03 -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 15/16] arm64: dts: msm8916: Add camera thermal zone Date: Wed, 12 Sep 2018 15:23:00 +0530 Message-Id: <5c678cd9c1f9d531efa39e9edb6151106957a077.1536744310.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Initialise the camera thermal zone to export temperature to userspace. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 62f079ae9ba3..3dc8b8aa76c7 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -257,6 +257,27 @@ }; }; + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + cam_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + cam_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + }; + }; cpu_opp_table: cpu_opp_table { -- 2.17.1