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: 10514431 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB62D600CA for ; Mon, 9 Jul 2018 12:00:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAF5328639 for ; Mon, 9 Jul 2018 12:00:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACEEE28682; Mon, 9 Jul 2018 12:00:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 424A628AC2 for ; Mon, 9 Jul 2018 12:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=WpgOtWYr0byRqV9vCjc/bTkbSIrp/reN3knnGEYh8DU=; b=OFsBhkCdlD4kU+JRcxvuI+LO6p ai5bERJYyTmDL+JnhJ8yl+L/nRDag9tyOxis2TR1+5ckYXplR0rXpIwvr0zK5Exb5a0pPSZj/NsTT sRoqSc6cPlsLkwFtm2Vgn73qf2Y222noPBG87gEQ730KFN9LtAX/G7nwBAT2xSJchcI1dHcYC64a3 IPAy+G37NnfjML50ejK9Mmtqhwlt0hy56XDfygAbOvZByJjWzp4YF9dhQJp1ykJUbPK3rXjdkj/BB YmqS1mfKY5UTHk4cGLSAfO8j61QWDRtgb5JMvOvKMxtgRjYyn/RKwAnN23pJcgZpNM/VpKZK4xOwC lgmIMcsQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcUph-0002cm-KP; Mon, 09 Jul 2018 11:59:57 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcUpf-0002Sn-S6 for linux-arm-kernel@bombadil.infradead.org; Mon, 09 Jul 2018 11:59:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ta7IG6QU9uQXIMjNn801Ta4qAYhVBfB/2Z+Ht5f83MQ=; b=HufD8SV1i189U2o4OCmQgQrUt wTbfSHibzhdZZ6UJg2ThzOUPWve6z9dPDFl4YdK4mG89+3DJIZEN3TVVFGsw3qLjU2Bw6ja9GVxT9 gItogBnK8jiVZSCjoyE7Lsf9oGmwITdsbEKWopm+nBCxxL5Ce5M5hCPn06O5c0RlbaZ1xm6rBL0mK 7Bbwc0KqQ9077RRmxihtCNCVVPh8Wz47//vigsHPtJba/U9Tt6Hhs/raF44Ob/4tGseiGe+qTCkG4 OhF0g/RL0cPmesyKnep4S0HJg+41z07gnouhYCKmmn03oywYqsYjJl+KDIEWYb+WTkWkoq+EJcrx3 FJ7XW1x3Q==; Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcUaz-0001vR-UF for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2018 11:44:48 +0000 Received: by mail-pl0-x244.google.com with SMTP id t6-v6so5928944plo.7 for ; Mon, 09 Jul 2018 04:44:35 -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=bBmWE5ZpsppezxN/xURNswID8o3aEBqiBODroHL8qptghpAXuMngwICTR/5m80loUZ S7Lm10RGb8k+4gNPYJzQOWTrrX+kdl4Tkfu808k+I8t+9MpSYRLrsKns7nCM+yt/NALC VmqY68L/+ts7vEerd0RdRuaubZar09Q2MK2wSjsSOxzjkK60rjwIpTw0sptYum7Nnp2S 7RdDREPD3m37bOOa0RB3HhJaUMOrL4WUw+M6a5xg+CuErchGGrjLNPM6a7vxNdA+GPe1 8nSILpIgAuab0VyodLumPlZBSrLB3tzqRR2pj3jAicPngMewGU8HPyvLCvjtm4E37hEX 7xrw== X-Gm-Message-State: APt69E3FgREeK2ky7IduRS0+6FM+Xe2Vafbk+SV7hAMd1ASdQTyoC909 sXWC2ZRtAr6gtXhj/zMCjncYLTM2wfM= X-Google-Smtp-Source: AAOMgpdnwJ4DJHfBhcqRQ5N/dZm2Gz/fsUycyC08Epz465UVY08NJHREo/jc7tB8gDWlFLRHlrXcWw== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180709_124446_083649_A0378283 X-CRM114-Status: GOOD ( 14.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, Will Deacon , smohanad@codeaurora.org, bjorn.andersson@linaro.org, edubezval@gmail.com, David Brown , Rob Herring , vivek.gautam@codeaurora.org, Catalin Marinas , andy.gross@linaro.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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>,