Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2416448imm; Mon, 10 Sep 2018 00:19:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbfdXAlMWO8k6neeydAEGYtAjbi1GWpLiq7kR5ZUZTsfbyHIZPWvBxCackkyXlGkHAPVy6p X-Received: by 2002:a63:9244:: with SMTP id s4-v6mr20725160pgn.141.1536563968331; Mon, 10 Sep 2018 00:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536563968; cv=none; d=google.com; s=arc-20160816; b=yqBfLcUBTEtt9ZVZqxHmUHbK+f3HoLrlUvDSN0TUG6XYKGRa0gdYYcZO8EAH+7GpW4 qRT54YZR/GttaTL+/6yK1qI7KOGpSb8NhfZiWQ/NA0ApMJPibreelkrRNw/P4E3Horza iqx7zX6hRf+L4WGRSRvUvbnyhzZ+jLyyxLMYOZPQanX/I2IVa5cWV6HiUWxgSTbpr1Lf Wjj8nAs31dunFuikx2nt4DjtHCSmNcLQ0zBS2xeDYTKLZkjnYzS+49+ogDwQJUfKriYd Pj8BUVQ2h13P9pVzt4/4zsX4OxdNGAeszUqBrO8RAkwOUcSZpxEyygQyXaH0yWp5zyVW qubA== 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=m410Ab5qIJFOWRYS/T4hMUHADOSTQIVxdyFktr4G/B4=; b=BClWgWFv3Lu4Y7rS2mRSRCg4fW4o6bxXbYwozOBfza7Yqzg3Fem0EI6auvpUAyAhe/ LduOO3aQpEzNE4puSg/RpbQ457I1FddiFvjYVW8e+W1KquveSGeG/RxTxr10PQ5xb/EK XzQigiX26orDyJUjFN85BgRIxP++HQsZuQ8j5oshtBbm4IYgBQqRsz1XJnAN2fIJVVw6 wzjPc9H9l2LcMKFLxlQDdZFJvX0qlISE7TLeswMflKOVLlDCvzpCrMtG2laTxKMwsB9A /awMKLE33XuePaEcWM2ek4g2x4Mxz0ASavlufKY0zGT2MQEum3dl3dteQ5SQx2jjfbbN fe4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DfzyQZzP; 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 r1-v6si15543407pls.131.2018.09.10.00.19.13; Mon, 10 Sep 2018 00:19:28 -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=DfzyQZzP; 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 S1727948AbeIJMKN (ORCPT + 99 others); Mon, 10 Sep 2018 08:10:13 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36750 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbeIJMKN (ORCPT ); Mon, 10 Sep 2018 08:10:13 -0400 Received: by mail-ed1-f65.google.com with SMTP id f4-v6so15694441edq.3 for ; Mon, 10 Sep 2018 00:17:35 -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=m410Ab5qIJFOWRYS/T4hMUHADOSTQIVxdyFktr4G/B4=; b=DfzyQZzPxxM4StAHDaFqMuV0KTAQRrY05MBPzXr9Xkru9zcUO/teWEJEmM6bSGVzGt +1yjjwUZrBTw+fc0ltdVtLSRqImjpZmnPJsSXMROPBu+fQcMx6ND7raczA6wNBqoJmYv f98lw/G2GYF9hzVyb+EvcPNraA5dnMnP3s+VM= 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=m410Ab5qIJFOWRYS/T4hMUHADOSTQIVxdyFktr4G/B4=; b=VjLseVpTwjhSD8NwEaMiqyWWO9caMZ4MRX6nd8rehGhDeHVvvXXwZfOan2C1lHk5N0 kiTA+jfdWmC5yk69rPjuaGL52shN1UEw/vVqKVeBEf1Bs674CG9HM5A5Q+QIh0YV1vuT d+JohNEgRaWURyzIjFqtCxb3HGxUc4Ccb378BCsoohl5zOmJsCgaCCcc6NvMump1BGvs dIw6E91XrCDjhBQi70X2T3kUMF9eRcVzUcv7SmfJCK9jey6IKjaVUtQbqWVu69uZDWfA aBbhxipjrpEjJquagEbjgS2SKsVrYenrgKzgZw4BzmVW4D5Mxp8gzTGwsMr3RBeSKARj VeTQ== X-Gm-Message-State: APzg51AkPtiXN7MgADcnaotVcbdnO2csWXtv1Zat1j1eyHZ4UMkYRdGC HGlgOx2dFS61/XV7PF9tgXoLFI2KIGE= X-Received: by 2002:a50:eacb:: with SMTP id u11-v6mr22055397edp.7.1536563854872; Mon, 10 Sep 2018 00:17:34 -0700 (PDT) Received: from localhost ([49.248.190.103]) by smtp.gmail.com with ESMTPSA id z56-v6sm16184530edz.54.2018.09.10.00.17.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Sep 2018 00:17:34 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, andy.gross@linaro.org, David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v1 2/2] arm64: dts: msm8916: Add camera thermal zone Date: Mon, 10 Sep 2018 12:47:15 +0530 Message-Id: <2eb1d8aeef707b3a49de273a14bc9910e29ae013.1536563656.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 a494196a657e..d1cfda35b0cb 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