From patchwork Wed Jul 18 06:43:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 142246 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp178107ljj; Tue, 17 Jul 2018 23:44:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeVPBlE3XQ5K6+wFJlVFl3RpLvlqYYKb+jH8WIoDqAYvjF2e3hYZHIZgkNBLLXqTbbCmPFu X-Received: by 2002:a63:3c0c:: with SMTP id j12-v6mr4525951pga.440.1531896271192; Tue, 17 Jul 2018 23:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531896271; cv=none; d=google.com; s=arc-20160816; b=O0da24aPMOiPPB3SvNnhDvH0cOYk1bSH5iORJOS2mQDC9AwibGrx5QpNRvHDbHexJO 3H0jC5pKY1dcYbmkY8uNX86f4mg/qd34o9EBzkhpBKSiNKBxtomECj9NBfiaQIBnlISc 8t9Sc7F2QVwPjwNkcDLx9L3iia0VtiEeJZ4mfqa5z7Vtz2g3kJto+7K6JgNv2gq3PYAx jL+b3D9bjnBfEd6hzk4zQ5kOEovHPGsXOKBAJ+ldtJLCSchf+4zdUYGfr375Tc+1xG2T JXMwlvWsr4WtaPadWLM0vy7zdObqD/6mQpMOMPfh53tSjK/VYFBxwkar2WQbkFUc97no s/RA== 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 :arc-authentication-results; bh=yCvaDboezeN2wnG0sRsc8poSWVxkPMFHY4/b24+7m/g=; b=kfNcZZwacbm/xK+bbNYJSrvXo45E6fGa91sNN1Hgdrsxs5qiu5kP20aba+rs2aFmBE lCE6f5HVBLSuCUTeSN7AyJ8o2FULx48QTvOuA9/YrRxhtK85BxmXtZqzrliiOK6DHPKj YxSxbrKuFd7Mwu9CEFT3ApQCtKtNad/w6JCHYiBDpDdiZpKv0SJ8kV0sqG7DOwmxtd7f ct4qbTkOC87u7mQMeGn/ManEM3QIEoaduhaPZqcWHXj1PxC+Bwt5ILgFfEgdT9qf4O9a PtgdUySQguiL3ED/cq2Bpn25NdFzwSRnO0BIawrFRnHiNSuEPpF6+JgCc+e65VoZ+2SU i7nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="F0/20GA0"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 o4-v6si2962145pfh.168.2018.07.17.23.44.30; Tue, 17 Jul 2018 23:44:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="F0/20GA0"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730211AbeGRHUr (ORCPT + 13 others); Wed, 18 Jul 2018 03:20:47 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42618 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729677AbeGRHUr (ORCPT ); Wed, 18 Jul 2018 03:20:47 -0400 Received: by mail-pg1-f196.google.com with SMTP id y4-v6so1550692pgp.9 for ; Tue, 17 Jul 2018 23:44:29 -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=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=F0/20GA0BuCtCFnXTUAf9mmSlKh30DiHD3lYza665pIBMLkxHlgQxFC5dpB8HBTsPM WhLKrYWfVCFZ9NDZvRdBB9Hchbvg2y2+pyV0BU7MrEWW7CfAZ9T902gET4U/dkwXowXz lNUu6D9p3hUTtYY2zbqOm0D0BGEJ26FtkqDLM= 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=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=kGLSHekXQ6/roTseNniCZ/ANxdUjFCRNhifQELHLXtESiOy1vhupnmKWf/Flct7Ejq L86KtwiD4tFXHB78Vq3nCvTn+SLPMeuS8JoFktFDyASVQ9CbQZu8tJiMVYhmMsjMJDDD ZO+UGa+z9aTq5o4QEj3JHeF1dAGxSUso6+3Q/a3+X5PP7G3vVxBTBf+AWgF3mF+q1Jtl 4bzhV/x0rsh1/ZLob8gf5yJYW6tx3jLjoImk2hPqpE9Uptkzv3y1/f0eWq7OpFdWsOnw 989Ub9LFJQrbSbj59pCFaRBZep5pZz4uxzT+7z88RMK6lZHGWMdXXK2iaX1wXMXbVmhd NqcQ== X-Gm-Message-State: AOUpUlFp76WGs58hb/V2BVtY9unv/C+LGPIhXglzNJjIo11VZ8/aelsC +Mt9o5HJBpwHGKIkbNPqD7CSZg== X-Received: by 2002:a62:9f16:: with SMTP id g22-v6mr3853543pfe.207.1531896268411; Tue, 17 Jul 2018 23:44:28 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id d132-v6sm4905676pgc.93.2018.07.17.23.44.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:44:27 -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, vivek.gautam@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 7/7] arm64: dts: sdm845: Add tsens nodes Date: Wed, 18 Jul 2018 12:13:13 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 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 SDM845 has two tsens blocks, one with 13 sensors and the other with 8 sensors. It uses version 2 of the TSENS IP, so use the fallback property to allow more common code. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Tested-by: Matthias Kaehlcke Reviewed-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index cdaabeb..01ff146 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -221,6 +221,22 @@ #interrupt-cells = <2>; }; + tsens0: thermal-sensor@c263000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc263000 0x1ff>, /* TM */ + <0xc222000 0x1ff>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: thermal-sensor@c265000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc265000 0x1ff>, /* TM */ + <0xc223000 0x1ff>; /* SROT */ + #qcom,sensors = <8>; + #thermal-sensor-cells = <1>; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0xc440000 0x1100>,