Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp180139imm; Tue, 17 Jul 2018 23:45:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe2RXMvA3jYzzIdfJlMRw2G2KTnFxxqAB0EFCMD8rBU0z2omGsFP/VnmLzTitf5k0sNZMey X-Received: by 2002:a62:9f16:: with SMTP id g22-v6mr3857769pfe.207.1531896355469; Tue, 17 Jul 2018 23:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531896355; cv=none; d=google.com; s=arc-20160816; b=TGkzZ9W3nMp+f/3QCkxaoavw7RbstHsEtaNBsu6LoBZIPF2axwiHn35kazG6SprHqA 8qC6UimhMqMTL6tThiY8ztZ0c2VnGrIUWPPwEpVg1IoJJ7nAeyvyv+b24el3o+uBWW37 1Ry5SHkl5wU6EYVZGtxJ3Hffi+gIXbsJW6z2F7v93e5JAS21zUSswz4c8fCDUAqSmkLY 8E9tMr2kPbm388UoDJkP7pKODGOQ/7/udW6ixXCS4/GXNq8x3o16ubLbMPv0FqvSPzb8 aD8Q9MhTXkrQWazAmpA9W2ml7EWyTIDUzf16oPtG4PCNHS/d6Vlbd2Z0CrWCDIqXwC4P WLkA== 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=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=xYSKo4NEQDuMVnLTSTWR5Izs143bcA3QOhS2MKe1QenTas4m4mcQkmfjYMKLtAr3IU CQZ3ax9uj4LlGNyYhRmbrhePPMmOodzoiNiYg59uuN/Er225gonIwDNyDugHmJXeupb/ b1ZmYqO2TCXBciQ6r4PGIQcYBTo4W/tBToQiZb2n4K+/KlBkz8cwbd2DvF9k8XVevprL 7LI6RiEvd+o1ib1IAt2HArA+JasFt5LuKmX7ARMNmeGK+uo8oSGV2XzfrG8iqZTO2VmV 50cAZ0Y6I8HUZxH05LnJSHzD6E8WMYbFPPhTiu5AvXY3kz1KyVb/hHLGJ3ALTTylktX6 af4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="F0/20GA0"; 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 b9-v6si2567520pfi.99.2018.07.17.23.45.40; Tue, 17 Jul 2018 23:45:55 -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="F0/20GA0"; 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 S1730248AbeGRHUs (ORCPT + 99 others); Wed, 18 Jul 2018 03:20:48 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38590 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730203AbeGRHUr (ORCPT ); Wed, 18 Jul 2018 03:20:47 -0400 Received: by mail-pg1-f193.google.com with SMTP id k3-v6so1556185pgq.5 for ; Tue, 17 Jul 2018 23:44:29 -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=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=F0/20GA0BuCtCFnXTUAf9mmSlKh30DiHD3lYza665pIBMLkxHlgQxFC5dpB8HBTsPM WhLKrYWfVCFZ9NDZvRdBB9Hchbvg2y2+pyV0BU7MrEWW7CfAZ9T902gET4U/dkwXowXz lNUu6D9p3hUTtYY2zbqOm0D0BGEJ26FtkqDLM= 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=983ENG+uR6T3i+yZoQw2w119/pBf9+bpzs9vYk5rarE=; b=CYyxta1ZWlza9kjhTujg/rb7/u8ZwpInKbmHz2bDZ7F40IhWDBwevGAl+3tSC/giiC Xn38LA6dglXUvciEXdLBzOnlVrg8RFfQzpdsWJCFwdCzmwzI3xyvnv/oHHywERwQuWUn EKSV/WGEXtoldIPQCieyH8m++fva+KHbsPkvbVAI9mi2/gGPyKr7n770QcO18oOHHmkD qNHwz/dbt5oOEzdgMSFv4eZkBiz5m0V4jHDmKD81IVQmW9pwoyPy5GagrG5gTvkkZxEC AbNUR2mfrMxWAdewWceAjjOYbIS7PiVuKOk3euPDkGZ4TcxbEuV7KNxdC3u7GX2YUH9C t6lQ== X-Gm-Message-State: AOUpUlEQ7Ul51omN+2q6xQ19JIlZGd23831lu7q+APS04uVo65de2KvP EAzP/NvE00XHyma8X4NUO3TtQZ+8Kzo= X-Received: by 2002:a62:9f16:: with SMTP id g22-v6mr3853543pfe.207.1531896268411; Tue, 17 Jul 2018 23:44:28 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id d132-v6sm4905676pgc.93.2018.07.17.23.44.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 23:44:27 -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 7/7] arm64: dts: sdm845: Add tsens nodes Date: Wed, 18 Jul 2018 12:13:13 +0530 Message-Id: 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 Reviewed-by: Bjorn Andersson Tested-by: Matthias Kaehlcke Reviewed-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- 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..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>, -- 2.7.4