From patchwork Mon Jul 9 11:27:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 141384 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2549014ljj; Mon, 9 Jul 2018 04:29:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc4oR6YKimxiAnucaiUJ5dMO9nJgHFXIvjPGk1Pr4DdOUiuXUZyKSrkXTsjiNecteCTm2sM X-Received: by 2002:a63:1844:: with SMTP id 4-v6mr12906947pgy.313.1531135750910; Mon, 09 Jul 2018 04:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531135750; cv=none; d=google.com; s=arc-20160816; b=mjMDyA2mLrLVUzIVBzTCfWhZ/wxlAGp/eX9D9tATTeEPazJXZcpULPLDM7XQ2jFJH1 KAEZ4nUh31Y9i6ID5IMrN43lC1ISaGDN984/pBNofNKGQVytayyIv/dUZDyJS/baecHF 7z9Cpgy9kYWlOy6+8BczYtRXajs4jM84aQe4H97qUCMeoRxe6VWmvQHE3MNEK68UB3BF wiqelkim7Q5+cmKLpW7ndEXC8XNObg1sAebJlXKESAuAGL1dPhp8lIzHA7R7xkOklqA9 LYdGrl9sFBTQH5KyqV7JHIhVXPhP07o6IU3B0zGvwUx/cmxcKFUHFtPi3LQWW3XVdz7d ubNw== 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=1JqEW+Zyv2CqnsmBXNt/A0PwbfHTAHHNG/CWkFvPZKE=; b=zv8OHlUeRDKABDF2BBIbgE5koSidiG5bZSP2fUYli7qj9+tH5t+RY6YtAm+uPdMNnz Z+j0koDQiD1jhNBZyXmWxS5IGH+z6tWShpjmEnw0ffoDFe6D8fBc2u10McxAm/HoA4LN eXQDxuqs3jIhJ5PmDB//1yhwXMyHNkuSRVjN7jYPagzL72kCTKsNKFFn5LlE5mQB3jnd xvlM5uL3wUipDtLkAoy1K1dg0PmblIlaC8V3AF359OMgzBWDlFX/IGMmFphhzXvqFEhm xCzM/xiG3IHe4cWKu0mlDtgNOyV2rKXeSE9XWVevtcuiiW469shFoibdGXrDx6zcyxOX 55uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f6QLWEmL; 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 61-v6si14612627plr.483.2018.07.09.04.29.10; Mon, 09 Jul 2018 04:29:10 -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=f6QLWEmL; 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 S1754538AbeGIL3I (ORCPT + 31 others); Mon, 9 Jul 2018 07:29:08 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41373 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754490AbeGIL3E (ORCPT ); Mon, 9 Jul 2018 07:29:04 -0400 Received: by mail-wr1-f66.google.com with SMTP id j5-v6so4076081wrr.8 for ; Mon, 09 Jul 2018 04:29: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=1JqEW+Zyv2CqnsmBXNt/A0PwbfHTAHHNG/CWkFvPZKE=; b=f6QLWEmLD2lDqjkUZeGQ4embRvv0fJ4Xnkhyn6ucvT8PCBROXHsKAF2y8IBTADdpyV TAJlih0zolCTOWrmBDuGcMrNEH5GsQrZSDpcvn6AmOeicgn/JJ+7jHISr1ndwUDA0MEw mI3V2aGi1UMQssHmgtdsZ3/1F04WTyJtg1YOQ= 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=1JqEW+Zyv2CqnsmBXNt/A0PwbfHTAHHNG/CWkFvPZKE=; b=N+w6vAuV4Xbuyr4QfLDxUyXEY3LN1CsAsbJSu3dde8Sc9pa15TL1V8rrWrCRVPYfTD bSUUbBuJH99OEAI3AHr771RUXn/eQtT97WK0taYiU6coqCHA0PMUdwr9g59whScalnyY +bs2iNhSqtABXRyh1poY3WrdE7HUi/LMA5mQTRM6tY9q9ChobwEzzCNrmbQNBXsBRST6 kIZN6ifryQX5oWCXwrsc4HC/FobI3C17ALIe3zDqTW5HV83PUl7H/dbJXNQO+sn9fQCe TXUV8qSzTJLgKXNnUBuDpAam/56BtEFWN0FNihkk+f3aYL8L0Vj51i1nTWwqMT6EhSZf H85g== X-Gm-Message-State: APt69E25NjWojcq4ESzSZgSfISVVIPDfQEyePxs31Ets0IaWVl1azpfI dXnSlFfcRpr6EfRtp8HbXDwcXE6EVd8= X-Received: by 2002:adf:e90c:: with SMTP id f12-v6mr14129316wrm.126.1531135743226; Mon, 09 Jul 2018 04:29:03 -0700 (PDT) Received: from localhost ([49.248.189.240]) by smtp.gmail.com with ESMTPSA id x16-v6sm24804528wme.12.2018.07.09.04.29.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 04:29:02 -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, 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 v5 7/7] arm64: dts: sdm845: Add tsens nodes Date: Mon, 9 Jul 2018 16:57:40 +0530 Message-Id: <742cf44d162523a66bb4ce60e15449dfbf88800a.1531133612.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.7.4 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 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 --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index cdaabeb..d97ee00 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: tsens@c222000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc263000 0x1ff>, /* TM */ + <0xc222000 0x1ff>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: tsens@c223000 { + 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>,