From patchwork Mon Jul 9 11:43:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 141393 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2563717ljj; Mon, 9 Jul 2018 04:44:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsbR1Q4rl0obgpJFE0BSU0HzfCs74LyFw4yzouATW1L+ITTr/vjv72qcIEn+YS+h+svLo7 X-Received: by 2002:a62:828a:: with SMTP id w132-v6mr8200096pfd.121.1531136686095; Mon, 09 Jul 2018 04:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531136686; cv=none; d=google.com; s=arc-20160816; b=y520ZcP5cM6GyP/JlQ0PGXjYULQldufBbrJmv3pruFJkg3bXGEgyDfb1BAVOX7fCdF HcflEpHh7CTuyghux3hJ1+6qn+szfy0QlRHQFE4tSNocOX9H80fyX9V6i/NDE4Y/y1zE ola03lehgOjolgTlS8jRbM0kqrPwbXXgIUWKByq/0m834/wlsFMx0o4ztimf1OIha/Gl lMFfFPGk1GCotVNFbvQWc3YklCfohVa6tol7kC8A+fndum0lGL8qZANUPfTK8KCDp+2T DYEELW7xvlC0dPAyp/MyuFvvY7UkMyehW5e87mi/340gIrhAOWD0cvzHxO3QEHMklVge EVDQ== 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=Ta7IG6QU9uQXIMjNn801Ta4qAYhVBfB/2Z+Ht5f83MQ=; b=bO9zPCDOiGrTnKn1OEHhAiV9TEjL2jtWz/id2aMxZfOySZdlYn8kDtvIEGEaU0ncp1 Nx+VeASbHzmZbmNYWrEljuSxCPzACSaydgNelM8l0zo3XcXHsO8WeUs3JWCP0c89TL7m vGK9Oj06J56ayt29yOKQcKHrdctRXjMDeUHph9iWwiVbuHmoMvG+ag0jR5NgX19Y3Sev a+OZcCoDFUPN1NGBgVqYLvbk1CxFu9hfp61n3/kIzLQddziVwftPdFoE6r2f0m2MJRmI H00oWAoiyy1UCwRDIjouG3NsJ/bXxhUSt1fB24rrZdxmdAUj9d7c5L7O4M0XFdb/r/ce 738Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CFiLC00P; 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 x24-v6si14265389pln.22.2018.07.09.04.44.45; Mon, 09 Jul 2018 04:44:46 -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=CFiLC00P; 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 S932993AbeGILoo (ORCPT + 31 others); Mon, 9 Jul 2018 07:44:44 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34424 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932921AbeGILoe (ORCPT ); Mon, 9 Jul 2018 07:44:34 -0400 Received: by mail-pl0-f66.google.com with SMTP id z9-v6so5925793plo.1 for ; Mon, 09 Jul 2018 04:44:34 -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=Ta7IG6QU9uQXIMjNn801Ta4qAYhVBfB/2Z+Ht5f83MQ=; b=CFiLC00PdmvxxS4DWrqNLL2khUpysqVR9W5y8s+6Nd759wpdjdIV2oxPaNQ1bBy0Os z8SkqZdO227jVfb0T7jF6gIKdLSce6lnHMOkU80XXBKpRoSTsnqh8ff1qPYhl30pzakI 9pJ4wCJEddidbDIemgPT0oUyjxjs0IIkc5/Cw= 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=Ta7IG6QU9uQXIMjNn801Ta4qAYhVBfB/2Z+Ht5f83MQ=; b=NqEvei0jFk3fsuFaiLGipiRd1NcW1fD4hwZQqhILXPBmWHrFxNxR2LIk8wKOkmTEEg oOknk9GxD8UV5LvmJuicmt/W5sOf2/3Q9O04Q0jcyOFMyKIVn6Yw0i+xiOxeMzoeT+Pu L1LY/2DfQ4Gpm82ZRKFQjcZS9OwhQGKAOoJo0Y+BqjHV615cCJGDLwizJqhvf0qj71SU Dv5Q14OwyuC1D3KGglPcQBgD1bVGLo9z1c/53c6nKhq9I+hlminbgweo4C9k/aGtW3fM oNErfVz9JsJnkEIuaBH1pOSBpli/rKxFJGVKT91Scc1XhX8OToGG8WPR8uPTOXY3Q2Ga Yqrw== X-Gm-Message-State: APt69E1Rst6Chvbfsz0/nhrJ5fsHWsNlJ39HX5Mf1sl7X2DBAOO41dka 634Gj8qayuNBfzd4XCvjj4xArlvd0og= X-Received: by 2002:a17:902:8309:: with SMTP id bd9-v6mr6236123plb.321.1531136673840; Mon, 09 Jul 2018 04:44:33 -0700 (PDT) Received: from localhost ([103.249.91.93]) by smtp.gmail.com with ESMTPSA id n80-v6sm5409828pfb.95.2018.07.09.04.44.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 04:44:33 -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 v6 7/7] arm64: dts: sdm845: Add tsens nodes Date: Mon, 9 Jul 2018 17:13:29 +0530 Message-Id: <65c39c405076627bd43ec94c211c6998191b9f16.1531136000.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 Reviewed-by: Bjorn Andersson diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index cdaabeb..ba2899c 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@c263000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc263000 0x1ff>, /* TM */ + <0xc222000 0x1ff>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: tsens@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>,