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: 10514355 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 F31F6600CA for ; Mon, 9 Jul 2018 11:29:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3F1728AB1 for ; Mon, 9 Jul 2018 11:29:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C844B28A7C; Mon, 9 Jul 2018 11:29:22 +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 6D5DA28A7C for ; Mon, 9 Jul 2018 11:29:22 +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=g2Bg4lPPS1uof0RhZC7lJXySg/WJtTmbcVeQUNCBnug=; b=EnBV3lTNm49ve8b6zhj8S71mEr B1RHdnpuWBBl8P2PaQKQxbI6Bpz0B7YW+0oqUEvFOqdufYPlkrEs4a0vtOcTfZyBZAWI7eACnpeMr 2HPfINozqdrlp7PsRboJSzxHtQ9XVl+bicf9c5n3MHjaZI7vFWNXVx5TVNmCSUvcj6avK//xNefWw y7EVEL2bVYGHTmuH2cZgRMaZx5SN5s2AyhCzIKl3RCYWL/rp36WS9qRXxuWXs8ESe2BJ9MX1XHdwJ mDM+2n9JMeIo8hPHVmP0z4HDRsgir4amWm+7MxE9NLsHMJyfL/B8Zf4mG1D7fW5tebWTy8Esp4b5L zIfNrlrQ==; 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 1fcUM2-0003tO-3U; Mon, 09 Jul 2018 11:29:18 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcULy-0003qT-JI for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2018 11:29:15 +0000 Received: by mail-wr1-x441.google.com with SMTP id p1-v6so10597709wrs.9 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=BeOL8hNzMpwKsjnBOHcbP+YpNRoy4342fGxgsYtZA3rKImugaoLWYCCipJQPMLe70T VVcZC41A9XBWuLQfAFWiRBcA9o4DaqD4vskQ3utnDBQyRUmRBiCa6fDxRrw8ucYFvIBv JUKEISB3JpLJgqaQ7zHuRUwwf/oOJO33xJ23ccx4F6medV4D/0JYV5aRAdBHrJTdTFU0 iIWlmt4mohv1rNkFdMihnPF+iF+sjPdXsg42waq+yU3RVLdoORfGZxJ0BbvLMz2KjyBW OjMJUFIj751aUAPj0TQZKC1+HbVaoMqPmZZpboIOadpkLJxXVjPO/RtAKSiV44yLlFQS dznQ== X-Gm-Message-State: APt69E27x3n2ByKnPpaxdNQKl0lG97wWOQiUIqvGYlNqIrKGktt1PJ/c LrFXYYOMMF2ymomQdglIADMmbQ== X-Google-Smtp-Source: AAOMgpc36LrjMg1Od8mrmM+QQInZ8nbXLWINXxF30VJPXTOCMhvTnyTtbL9sNaAp4rYu0jPQzxYiiA== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180709_042914_652032_1B9FC290 X-CRM114-Status: GOOD ( 12.36 ) 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 --- 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..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>,