From patchwork Thu Jul 12 08:39:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 141807 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1242490ljj; Thu, 12 Jul 2018 01:40:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd7lWsv4WEVyPU7yKNK3qijrPulAGhpqXmK+vAEJ+iNZJKBmM1WsUZ1yayLWMQpKNSDiFj3 X-Received: by 2002:a62:41d6:: with SMTP id g83-v6mr1366769pfd.219.1531384836365; Thu, 12 Jul 2018 01:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531384836; cv=none; d=google.com; s=arc-20160816; b=MP202yKVc73VwAtXFLMj34UAzjVGUesmbdmajIPvj3wDXjX84pJ8w61+YFfXI2le0H wdicH2FPVtu1BDEeO848u/SqDKOLB0vpyk6ymn+eUoKLSTt0DdZeP2ZFXJvPOq7OnBQD gJp/XKrFSiBAEhlkWKs4btm9twm4GHshva1cesNL8XZsh6tHWgp7KRFpsZrd/LeXdCrb 7CmwKP65sTExLigxiA4OXw9zFGWgemL23qih2OMSG0Be56mw0PvAxE2NV6UGIAKEDj6K QnVxF8BGuURAU1jRdeFhw2u/igk5SPlIzcCyMXnWWrxNsPB0CBYVEE2q04+j2HkOWKdD llWA== 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=AaKNp6ZDIuvDhdQBOaE+GIW1Zp4tfSjeVSbLMuNI4Kk=; b=TvWmDl3FZ5El4ZcpPfztLSuin+BtuqZ7VX9qxXhQ3lm6cNIShq29IbAbxRHan+u35D UYlBMCjicZKjzsOoHYtXSWqMopOu7QniF2QklOJFBRPPnWi5x8XlNknUMEXIWjsFUcOM nHtyu4fWP2j6CEDX8ulyQVCw8GZAqYPQeYxLXM1lRyZ/Qsv0r1JnCfhTTd/+t+s2UkB5 PcHaq3Tuofc0i0Xwg3tSurLApHLr74khiQ/Zo2eDHusXmStZESwPw4geOP70RwLGGEZW 8ZnHordi6RQsUNTNqezYWCRNBeQZ9+myNLiqCHdzpZmC//OqoMxBnvC5lzoWBV31u4ZH Hxvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TGYTKa3A; 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 b8-v6si21823344plb.125.2018.07.12.01.40.36; Thu, 12 Jul 2018 01:40:36 -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=TGYTKa3A; 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 S1732297AbeGLItJ (ORCPT + 13 others); Thu, 12 Jul 2018 04:49:09 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40855 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727057AbeGLItJ (ORCPT ); Thu, 12 Jul 2018 04:49:09 -0400 Received: by mail-wm0-f68.google.com with SMTP id z13-v6so5119144wma.5 for ; Thu, 12 Jul 2018 01:40:33 -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=gaOY9NRaeiUkrGltnYCPQSkt3TOSQxN5osLFYQfxr7M=; b=TGYTKa3Aoi2HhgmODW8Qq1+XRJjUTd0lpRR0I1O0YajhSECFoKaYA6kSrbupgKTbZC +3rDlvWL1X8iWwsi3pin+BEQHW0XF6ftghqLHvsPJlYNEMeNmj4OQJVlEAKWKFRgbXF6 DeicoWZ1irBQH06MhWNV7a+H1Y7tjvmWXZrKI= 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=gaOY9NRaeiUkrGltnYCPQSkt3TOSQxN5osLFYQfxr7M=; b=ALMeSWth8B1IaVGF5RkGy1y0wuDiUgzDf/93IGVDGR71BYHa4ukMtgKO6Xu0YOMgee J8Y5GpHMLfSoXRNmRTSWje5pJ1i9yHutTS0NZ+MmDPzKt6IOSXXT08JzSBCXyouZsQo9 Rq8aH9CskcypbKl1SzxnPRplHdrto2Rm1bFBcqeXKcnHVH6uHRZA0iEgCjRPLoLOBXnM sBH66iXyQZu2JV2675SqkuMgWPl5IN89HLJHBnf0W5lbGW41ApHZap1bkn+hX1DcbQ0V Sm5CnmOM+QERWmpet9P0/NTlFBfcVa3RBoMI76Ph1rHGlLsnmBJLmHNeRU/ftsH+zS+j tr+Q== X-Gm-Message-State: AOUpUlHvn7M1MgIMjqOaGhnx2zbP/3mErt6MbehR1rE3h8MLnvDP0kWo ttSorROpFB5NM69x9ZOb95xKAg== X-Received: by 2002:a1c:cc08:: with SMTP id h8-v6mr698144wmb.82.1531384832987; Thu, 12 Jul 2018 01:40:32 -0700 (PDT) Received: from localhost ([103.249.91.93]) by smtp.gmail.com with ESMTPSA id n8-v6sm20484249wrn.69.2018.07.12.01.40.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 01:40:32 -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 v7 7/7] arm64: dts: sdm845: Add tsens nodes Date: Thu, 12 Jul 2018 14:09:08 +0530 Message-Id: <0dfdbfa82edced85ea5be02e1d74d73d232c7a08.1531384019.git.amit.kucheria@linaro.org> 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 --- 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 Reviewed-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke 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>,