From patchwork Wed Sep 12 09:53:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 146542 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4619371ljw; Wed, 12 Sep 2018 02:55:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ+RKlfeNlIJFtMZ4QnFKXL7EZ11DllUo7CAsEQzS+/uhQCSfv38MOqgvEI6p7h9uhCBJ45 X-Received: by 2002:a63:8f17:: with SMTP id n23-v6mr1262820pgd.131.1536746107382; Wed, 12 Sep 2018 02:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536746107; cv=none; d=google.com; s=arc-20160816; b=MjHmN9Yo4RuvbG0ztD33y7b6RsD+7vgmyaktu0zCc4OkOwmW89rOsM1y+26+3xg1Xd Bmp0Hl6iSnLgv1BB/t/plOr4SuC3jwNLqhFZFq+0BAkZgucIApkP1h/hJsLjxiqvnczI AdZl0DouKmXN6WEfMofXTq+JI+QZtLduETELetWa8/LYqwBd84VhwBSyynGJNXRfEa4e q8TinzIg2MxXx3viuh3OMQ7XXyFs5wGnuhod7emZS/Az2H0/A065+joHfeR0HQ5Hn5dp lUEqb1Czwpn3nIplXlh6ukUgltVukPxqmjtfWOwuGG37VWP4l0wg11JLutZaIqQi/EVP bVJg== 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=aYN3QixbUtrUZqC/2B6X5Z0bYMECH3bwzl4YZ4SGETbwxLRqMF5jncpcplwo7/dRg0 FaQtU08kdgwNoAw9DR5vOqYWWpdo2opZc3vjQUJnyI2qd5/NDZ/7yepGdU39Ym/hTyQF /T5Fk5sJJ+14riyCM/oPiwD8hvtHPeHZIjFA7fbJe5EJSdNc6Zqe+gFQLBlX3cyRLpXi wZ/rgeGO46MXqxdCvOycTkHYeB6VeypxVMYcM/yFNXrSs05n+MAsd5CcfJ5ldLFxfTsq EsPbA7yVYL9PsVVxYnEwCW4nXxT5o4Qpmv0mtg3wuFUYEdQn5udxmV/7t6p2UnGpxY/p 7CCw== 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 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 l1-v6si549672plg.285.2018.09.12.02.55.07; Wed, 12 Sep 2018 02:55:07 -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=IxOuWwRY; 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 S1726782AbeILO6w (ORCPT + 6 others); Wed, 12 Sep 2018 10:58:52 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:34297 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727150AbeILO6w (ORCPT ); Wed, 12 Sep 2018 10:58:52 -0400 Received: by mail-ed1-f68.google.com with SMTP id u1-v6so1279545eds.1 for ; Wed, 12 Sep 2018 02:55:04 -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=sQseU3urubR5qiwqzZ/dGNBXOSbpnIfhHSaNEHIIZWw2FnAk4+8UKS3CYaKaS5XL3g OU9KJ3W6AP0F+aD/o8qxaG9KOgElDK143HaA1nVE0i/mC65QMNtu7mwlFbkuZMsFHpTB Nzwev3u0Q5H9ud9+8D7t2+PwqnPJg9HL0LeEEHVM3hxCeWPCibIbDqgnjNfUcDN+cFfT hD9v/qj+rCLlahGIwLsUInz7Lzay5gocwc7LqvJHd7hgrkpAZsiD0t8dowBdHVDzqEKd Vr9tvLC/gM+y5gxt/8zH7QMLtzftl+5CwUgnO6BUpbDIfFjCKWEgq2C3NolRO1VuIHf/ lOcg== X-Gm-Message-State: APzg51AdfKH82JvQiEEn9U/pZ1hWfFCBoVye9AgEHV07ob4rtQpj3+sC EgGGyLo8PCutvtbYIvKEyXWc6Q== 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: 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 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 {