From patchwork Mon Sep 10 07:17:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 146288 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2172273ljw; Mon, 10 Sep 2018 00:17:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbIPqKhz1mNQAN5gqU5DSYTV0jyQrIzquLJyt9hMZVl7r3bPbbL8g7nXiqEIrp+qc7boZc2 X-Received: by 2002:a63:a06:: with SMTP id 6-v6mr21542177pgk.318.1536563858465; Mon, 10 Sep 2018 00:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536563858; cv=none; d=google.com; s=arc-20160816; b=tkZufguIBJsEsHQvKThQnJL52f9wHTfIiRp0lUBOUtj/7RwFI3y6noj9d93GCMvSTg YWJuQCrk36CnE+T/v+ABHzwgMTYsr5EXYRgmenveKbxHJPhtsg/EHxHr5vss0xkoIi5D bPlWdAQvIg3831XyZWkCSQ0sWF3+N21MUppTrlh2tkxpLoMiqXA0amd3q0KBGSYmSxTY o6BvAxdF1aBEbEn9cXARZin9tVXJUAwMo9WdTRe6llyWUWxyd0KOQlhUs2XoejGC53NK ABuHn5kA5P6BTuZ9V3gJWZLTGtbwhLMa/H7BTTBzwTD0VUuuUA/hMhzXLNWlAXRbGmZU 0Ieg== 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=dUGEIhNGPDpDUyptLokVEDHHNa+/SIX4N1NvL7SAc+GB1EpbvqFymHDV3TxtYe6Swp zedm82yqYFddebQdzN5q07qYmRex9OF0m1xqFXBQpN9/jnZDNmToGvL7Jdnm1kz8L9cG R8vWHKstK19FwgVALx3CtY46K8nqWMI9N+IuUeGqNzKmDkSbzarw1lWu3Gr7QTiiyjqz Lydu8WMRJgsGnW/K9n1QiIkxxihALVp2/2XxVdQ1DC2Iv0Nj29kd3ftKcNLNT9xj+kc1 m23M72zXr/jrXskaj0idGl3GwdvGY5mHIBNRjW9LAVgXmey/w7SGOlda55WOP/ny6MUx rT2Q== 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 devicetree-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si15606554plr.213.2018.09.10.00.17.38; Mon, 10 Sep 2018 00:17:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 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 S1727883AbeIJMKN (ORCPT + 6 others); Mon, 10 Sep 2018 08:10:13 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:33911 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727703AbeIJMKM (ORCPT ); Mon, 10 Sep 2018 08:10:12 -0400 Received: by mail-ed1-f65.google.com with SMTP id u1-v6so15708633eds.1 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=G8JoWMgTxFowQ9qdAwoVnobFlxdGHclLtN1S7O56N1lIBtTfm7eXNigOEsfWoQ/Meu m1S0FPny/oLAVuLPqQcrPhpK6T8Tm8j9vWBy1+tKXmz/M+1U0FeS72MHxgyeVdxzPva4 vj9+gNn6X0//fo+I5sO81/GVzLV6hLObtmQAy5TWUrJx2/kuwM58j+PPmAOk5MIc26H9 lPyd14AUAlufAlOgpjQtTQ/n+/RjW30l0dIswg24l5RYxSBdJ45Xv1HEGqNzRmPrU0gs iFBeqZOaLGzJRT8mBmYUUcMwUD2jxR+P4/AwfEsHMdeN3nPzG9xT08pKBzungPYKjsPk L45g== X-Gm-Message-State: APzg51AgqgxXAXim28RvoCpKPmjHtWm1EElP5Ddgwy9kbgrKvRPRN0rP /lLpQGnAnsUW5ngFoATQwSt7SQ== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(+) -- 2.17.1 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 {