Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp438580imm; Mon, 9 Jul 2018 04:46:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpctBIkohuOIIGgmadOqDgshG2cteuijGGqElU+gx297Q5Ec3doc1/uKEe/GRQKD8gxOchto X-Received: by 2002:a63:af14:: with SMTP id w20-v6mr13083664pge.47.1531136792010; Mon, 09 Jul 2018 04:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531136791; cv=none; d=google.com; s=arc-20160816; b=dfOlpomLenDS3PasYkCsGJ26BjBBvIcSaerBlj6gfslbHZGSQnjwv1wktGOst/kHN6 YMOQo5ac0Wto85g2QAtb8qvwzGVW2N6R81cD2REVss4qPOz07CT+IZen/pqvv1GRFSAK VpAir8344bDTJdeescrq/0eHbSkEof/O404hPjN0W32uHRzCIk97vFZSTDJKxenZZ6jA 1Lq4k2XiG2Ugvc8FVANato40CrAuU+/MXuCYN/skfqPZ4KARQYssmglfcyndZ1tGGv/S RdknMFH578ntf50uRbEGQBk/jIco2M+j4RgJuw/dfB2RZpAIdWhgcvHCEfOzAMLZCsT3 veag== 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=LboO0m9tdUv5OClL5JGmFqiWh7zVC6d1MgWg2XNw1k8=; b=ZIXkhSQlc5hk6i6zcoJvEuUJCbxl2se6nPB/D7yt5ykkpSj4AqDY+xL/OTPXj+WUHj j/p8S7Ab9c26ZuPQ/aKl1BzzqnzyxDMymcoFWSWiAeNuyGouqnsQhenw+GGzOszZJzbm PACZEto3ofhDKP1GjL9toCcs9nQ7UKOZsY6xEnBcL2yRtJZj4e/4LxCD3J8NMZFOWCys 05kOwWQRKrpV25Mhe818JO1PGUJoXdbYe0vaGokz08PmC8ACGtW3rMQyaOsYoqVvxqcB xdYnWqBZOrT76g3Tqet6HtDfcCunB3pLRKl4XPRSaydBAznH3VykrpVu7VUqC0CtvK8U cBQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V7gEpZZm; 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 z21-v6si13779035pgn.365.2018.07.09.04.46.17; Mon, 09 Jul 2018 04:46:31 -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=V7gEpZZm; 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 S1754541AbeGILoS (ORCPT + 99 others); Mon, 9 Jul 2018 07:44:18 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:37540 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932628AbeGILoL (ORCPT ); Mon, 9 Jul 2018 07:44:11 -0400 Received: by mail-pl0-f66.google.com with SMTP id 31-v6so5928047plc.4 for ; Mon, 09 Jul 2018 04:44:10 -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=LboO0m9tdUv5OClL5JGmFqiWh7zVC6d1MgWg2XNw1k8=; b=V7gEpZZm0OGwpFFvpwBpwBmb9UDv7dab6XKaeNfVwWvuULotqtXmUVnd6Cx1QJb14L KFf2iT8oeypZjV0SDMx8Ni9OkfXQgylDhsN6ci/nkTFJbnoUs7C3Mt5j5d5mg/arfpbx 6Ez+8u+PUijBrREBbLITH9OkmcCZNgNX1p1Tc= 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=LboO0m9tdUv5OClL5JGmFqiWh7zVC6d1MgWg2XNw1k8=; b=TnOCQiKZExidTdal3P0PSMA7i3wjvrEsyqdGEy7HbmDQ6KdPG0W6zPnkmQ8rvU8M+E EbdekdfuY7nt2u8UFYYF8Hu3pH1JKFCu6vieVALO8fxTBzKT3VUHaCX3e6EbqPQdbojp RDpuTR51gvQOnrtr0M5b9Lk67Icp+Yea342/Rjz2vOyjkmLCm3cXwe6xd2E1NvW+N2Q5 NVIeJUYXOilVCLmLwnf8G7EjLJEGfZvI57FpveFJlj2Aq39oRhASt0K3iGnl+w6vJmys gqMKX2iYwqt4OYAoxet2qV3GPw+y2cYfJYK/yWHe0zz+LM/hjx1kFcsiOhqWalULQEAi 0UDw== X-Gm-Message-State: APt69E0zSOAyv3b/l6a99UBlN4ucy5tszRQbonTH2zNK70ZXzwVrMF/n vhI1U/cz3Z/BCo+7cTfApB0N6LMzg1E= X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr20713741pll.165.1531136650294; Mon, 09 Jul 2018 04:44:10 -0700 (PDT) Received: from localhost ([103.249.91.93]) by smtp.gmail.com with ESMTPSA id g124-v6sm24269175pfb.5.2018.07.09.04.44.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 04:44:09 -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 3/7] dt: qcom: 8996: thermal: Move to DT initialisation Date: Mon, 9 Jul 2018 17:13:25 +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 We also split up the regmap address space into two, one for the TM registers, the other for the SROT registers. This was required to deal with different address offsets for the TM and SROT registers across different SoC families. Since tsens-common.c/init_common() currently only registers one address space, the order is important (TM before SROT). This is OK since the code doesn't really use the SROT functionality yet. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 8c7f9ca..6c8a857 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -461,7 +461,17 @@ tsens0: thermal-sensor@4a8000 { compatible = "qcom,msm8996-tsens"; - reg = <0x4a8000 0x2000>; + reg = <0x4a9000 0x1000>, /* TM */ + <0x4a8000 0x1000>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: thermal-sensor@4ac000 { + compatible = "qcom,msm8996-tsens"; + reg = <0x4ad000 0x1000>, /* TM */ + <0x4ac000 0x1000>; /* SROT */ + #qcom,sensors = <8>; #thermal-sensor-cells = <1>; }; -- 2.7.4