From patchwork Tue Aug 28 13:38: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: 145318 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1203557ljw; Tue, 28 Aug 2018 06:39:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZJ0rVmYelYXMUkwSLWlNtMRYhIphjLYFIiXb/Fo8bmE0WIl4kq/ngPvTuzwQ0YdUMyZmQk X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr1677617plb.108.1535463542156; Tue, 28 Aug 2018 06:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463542; cv=none; d=google.com; s=arc-20160816; b=FPT18tPQLraldm/HWniZGtsaPQX5kuMbQAPQZ3VSue8b1VBDoS4U3iy2WZt09pTFw2 37sSNVu56JJwRnJPAFC29PlML7UOrQ63LJtgP0JAQ2vVepGZknOLb20rbimpmNNYGpPt Hc0R5FWh29Mi9vM7C0dxAAct8QCe6RJOccPw6Kk9ypdoKuX1ATvGfLWalpCjwpwX00N4 bwtBaIMI4O8XqMhQ7w2IVgB7oTBBSfeAg1PMW9EDJ5KfSQMWl4kz1fcx2V+LhJG11CIV uYwEk94hJLQnVWmLDKcE+V6ux32u42WFapedfCYyapLDcYecRAP51sv0DfyMRb5qSO2E cxZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9L2+wm4Vw+O3wK6PJcZeEwdHckNDeo9RTUumAVxVvrI=; b=zNcAbKmPGvtDmLCxSL5DaVT0gojz7vwjJAZXmycPYjVNXyB+95S3niiWf59VlRBFbT JzvslIhuZEnGIp6kC4WCMwnkO+HQ3X5JKCX+lA+qi6Ti0gb/uWcIMRvTADwPhlrcnr48 eOGR9ntqXhEZlDVKF5NrYfGEzzZ4l/7PR0xGTQ5yznG2GqCZgQLBGK/zOVDE/gK+ZK7W iwu9hBPK6JOuBKx2O44N0h+tOkXk//lOj9EcZtxBxCFhFrG/ccHEwhP9iXPDLn+iX3ow TcBFDVR0ZWIsv2vtji8Ko/tOHFE/qbt3irqUhUopzZ17Qxt7fhTFqHCuGkIUdMSv2PNq tAzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ElitlSXu; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 s3-v6si1131458plb.270.2018.08.28.06.39.01; Tue, 28 Aug 2018 06:39:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=ElitlSXu; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727111AbeH1Ram (ORCPT + 13 others); Tue, 28 Aug 2018 13:30:42 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:35500 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH1Ram (ORCPT ); Tue, 28 Aug 2018 13:30:42 -0400 Received: by mail-ed1-f68.google.com with SMTP id y20-v6so1407716edq.2 for ; Tue, 28 Aug 2018 06:39:00 -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; bh=9L2+wm4Vw+O3wK6PJcZeEwdHckNDeo9RTUumAVxVvrI=; b=ElitlSXut2yyFgsQXB7SKsy2WiREa31GaIxv1gBWjF5yAGUhKtvyKEYXZSHTnIZeMv 76yUOT3lD2wEVMb5mqvqvTZp8TR+B0LL8LAsCW80JPFJoWVoBkMMQwQIfyUlSDeNqd+r VZmk14gt/m8kmP2PLLqdZgm7lVH3WaV5GnbNQ= 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; bh=9L2+wm4Vw+O3wK6PJcZeEwdHckNDeo9RTUumAVxVvrI=; b=CsxggZiWeiAo4ZbH3biQ6n/twkkNu6bkagZh/f7dr+rdPLsnDXmDLUgZ/xfd0Pq7wb 1nnx7SdFvNDzkbkg1KrY/LaJLoSuzIdENz9BVODa6Nx+9mvcPA7jDnLCBVNGobJeq8AI G8EGS4mZyNjLJXefonoS52FKpT4RMs+HYjy/uzY8OPmt1r0zgIcFMQafJnX1WFKKkAg1 RQ6/K0Gqd1cC5s/0+9cCmGfag8Nsa6ow50q5cIorBDjOJ4mMQ/47VTf4A2wtF4km6ush D934LOivxKe2RYcfJWRcMShFbGvizKosHfbTPSZlsObN6ovtTUyhmcfaAi84myHyIAAa /5WA== X-Gm-Message-State: APzg51Ce2x+em1UkTPA6XKO3+Ltxvs49e+y0k8sLhg5Z8wza3XBRxvCo DCv2qCLFAFsXfPGl6F8VvvwbMw== X-Received: by 2002:a50:a3cb:: with SMTP id t11-v6mr2461246edb.238.1535463539269; Tue, 28 Aug 2018 06:38:59 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id o22-v6sm693563edc.90.2018.08.28.06.38.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:38:58 -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, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, "David S. Miller" , Andrew Morton , Arnd Bergmann , Daniel Lezcano , Greg Kroah-Hartman , Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v2 00/11] Another round of tsens cleanups Date: Tue, 28 Aug 2018 19:08:29 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This is another series of tsens cleanups before we add interrupt support. This applies on top of 4.19-rc1. In this series, we have the following: - splitup 8916 and 8974 register address spaces for SROT and TM - cleanups: move to spdx, dead code removal, removal of id field - Add support to map the SROT address space for DTs that list it separately - Check if TSENS IP is enabled in firmware by querying the SROT space - Add reg-names property to get more readable outputs in /proc/iomem - Add myself as maintainer of tsens Changes since v1: - Split up changes that split the address space and added qcom,sensors property into two separate patches - Remove brackets in typo correction patch Amit Kucheria (11): arm/arm64: dts: msm8974/msm8916: thermal: Split address space into two arm/arm64: dts: msm8974/msm8916: thermal: Add "qcom,sensors" property dt-bindings: thermal: Fix a typo in documentation thermal: tsens: Add SPDX license identifiers thermal: tsens: Get rid of dead code thermal: tsens: Rename map field in order to add a second address map thermal: tsens: Add the SROT address map thermal: tsens: Check if the IP is correctly enabled by firmware thermal: tsens: Get rid of 'id' field arm64: dts: qcom: Add reg-names for all tsens nodes MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers .../devicetree/bindings/thermal/thermal.txt | 2 +- MAINTAINERS | 7 +++ arch/arm/boot/dts/qcom-msm8974.dtsi | 7 ++- arch/arm64/boot/dts/qcom/msm8916.dtsi | 7 ++- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 + drivers/thermal/qcom/tsens-8916.c | 11 +--- drivers/thermal/qcom/tsens-8960.c | 41 +++++------- drivers/thermal/qcom/tsens-8974.c | 11 +--- drivers/thermal/qcom/tsens-common.c | 62 ++++++++++++------- drivers/thermal/qcom/tsens-v2.c | 6 +- drivers/thermal/qcom/tsens.c | 21 +------ drivers/thermal/qcom/tsens.h | 24 +++---- 13 files changed, 99 insertions(+), 104 deletions(-) -- 2.17.1 Reviewed-by: Bjorn Andersson