Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp179691imm; Tue, 17 Jul 2018 23:45:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNRn2xgG9HWEAFIpiKxI9K+4/0zD0n4K5AnHNTQ60SlHiavBoZpuWoBPVGO1ws94rdihF1 X-Received: by 2002:a62:6003:: with SMTP id u3-v6mr3861957pfb.114.1531896314025; Tue, 17 Jul 2018 23:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531896313; cv=none; d=google.com; s=arc-20160816; b=IICId+Mr1FqIky9VDMQkDh9/GQx8XIoK+2XLKrn44hVsArEMyn0RPPiZTCp/vl5tCc VUIat1nkM304RjEc/MR73lUCwyuaA/hdWPQsQBvfY42WLiJEOPxPV+sZINdjbSS7d5S9 mz49tipgMVwqc5ST8c76IqaBWe9Tcc6dFpnMrBBWMaviCACUo+NuRKDZH448XSj70f0i MAXBGz+TIZzSJGmnRiFDU6aEQt4aysP5LEuEmLumGQGaHaAxLTnbe6kO7OdEhrRdhPOl QHBy05p6or0hhEOgUQD/JZVsWtn4KbswCVvefaraA2NTX2XWkbexccaDetWPu8GEVlGu /c4w== 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=oUO1jTYttP/QLbWHGOr2MUnHUZOUMjTQ0O4rLImfJII=; b=D90cZmFquD6mrJxXrKi45ZfIKEQYgL3iD9hT/dz/SZcuVy4TUsTqdMrNpIkKnnG1Re puGhmny6YoD0tJBYo/7IKmJCNSr3SE2R4ANm1UYvTTyElO+HcV5ZZzigANgZUXec6Ums W1d97ahb1NMU+pOYkXFemMx7nLzZ8hW4cX0ZeVB3GuytPlQPxs1N8LHpd7PLO/3rfv0Z dxJ2pZvu3DcZdGcdzul3z7Uov8fHAKSTNtXfPUvRcxJz4F2Oc7oso+ffmGad9Mo67DBO NmP16qSmnzBfxhRvZCaDcawA/yTn11EAPWq+KSuLt0hlk34W4JMg9X1QiYKJUZga0WS3 54+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YQ1zB8U6; 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 u4-v6si2777766pgm.454.2018.07.17.23.44.59; Tue, 17 Jul 2018 23:45:13 -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=YQ1zB8U6; 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 S1729692AbeGRHUZ (ORCPT + 99 others); Wed, 18 Jul 2018 03:20:25 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36965 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729325AbeGRHUY (ORCPT ); Wed, 18 Jul 2018 03:20:24 -0400 Received: by mail-wm0-f67.google.com with SMTP id a19-v6so1604851wmb.2 for ; Tue, 17 Jul 2018 23:44:06 -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=oUO1jTYttP/QLbWHGOr2MUnHUZOUMjTQ0O4rLImfJII=; b=YQ1zB8U6wZg3c8D198e2AHWegXFdKLfD26VsNN19w2TRMNlzoNglwKxp48ZG8r9H1k Qy+mD4vuIEf2hEkJpvCUBCd8lCRC1FRKhA8OLmaLk8hdjXQAns56q0cItd/DN/oik5Z7 Kb8a8/3R8fHP0ggd+pHRAK/nQa28FKsQ30TXE= 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=oUO1jTYttP/QLbWHGOr2MUnHUZOUMjTQ0O4rLImfJII=; b=l37RgJ850l4yC/szflZrPuQFgDgNqlLsN11DShWXL70MFs186nTnHqgotwmMH78aKE /3HDD3yFzHDCMClnAXjlE9lPWvJE+aqjKc/SGM1Xwi42WA4h2NJNhnheFeEOtPKcAF1b SzO9aiqx6YEe/+6CLaVAUta27KT9ceOl5X6/M8ozdRc4RSu5SixRkjKjLcLczRBqlQnM PNW5+pMuP5luMTq9hxs64RLePV+aBZp8JzWfxDYnX1kZl8xyEU8c+b4YsDaPyeWnwoEI zAvdTCTGulcBZbXS/lBRK5cF/+qa+sY1uZQflRG8f8f4DwG+SOxcmDeY1eMiEqxUT1cC E4fw== X-Gm-Message-State: AOUpUlFU5jAvrZS8FD+lbX47DAYp//LEJ2m7U3OCk1XfoLcJX2NobKwy d3w13+3h+cc7FgvymrQxjKWehD3UQBg= X-Received: by 2002:a1c:2396:: with SMTP id j144-v6mr725114wmj.26.1531896245241; Tue, 17 Jul 2018 23:44:05 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id 35-v6sm2161913wrh.52.2018.07.17.23.44.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:44:04 -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 4/7] arm64: dts: msm8996: thermal: Initialise via DT and add second controller Date: Wed, 18 Jul 2018 12:13:10 +0530 Message-Id: <540bcdb06d3e032de903748545076327ebc04026.1531895128.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 We also split up the regmap address space into two, for the TM and SROT registers. This was required to deal with different address offsets for the TM and SROT registers across different SoC families. 8996 has two TSENS IP blocks, initialise the second one too. Since tsens-common.c/init_common() currently only registers one address space, the order is important (TM before SROT). This is OK since the code doesn't really use the SROT functionality yet. 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/msm8996.dtsi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 8c7f9ca..688e752 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -459,9 +459,19 @@ status = "disabled"; }; - tsens0: thermal-sensor@4a8000 { + tsens0: thermal-sensor@4a9000 { compatible = "qcom,msm8996-tsens"; - reg = <0x4a8000 0x2000>; + reg = <0x4a9000 0x1000>, /* TM */ + <0x4a8000 0x1000>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: thermal-sensor@4ad000 { + compatible = "qcom,msm8996-tsens"; + reg = <0x4ad000 0x1000>, /* TM */ + <0x4ac000 0x1000>; /* SROT */ + #qcom,sensors = <8>; #thermal-sensor-cells = <1>; }; -- 2.7.4