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: 962949 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ElitlSXu"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4208x56rJ4z9s2P for ; Tue, 28 Aug 2018 23:39:05 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727273AbeH1Ran (ORCPT ); Tue, 28 Aug 2018 13:30:43 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:34337 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbeH1Ran (ORCPT ); Tue, 28 Aug 2018 13:30:43 -0400 Received: by mail-ed1-f65.google.com with SMTP id u1-v6so1234586eds.1 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=FWbRBW6xj226uo0CnfcQ7MSQGpTcWD+rIowyrZMj6zMZRfTET8lVqzADS+2qmor5bu mkhIBqKRESSl6yxSjGADJtSyi6vXrWrNyhw/7MXSVOc4pkJCJu1g4JaMGAvc+46xA571 wgJc9w3H/Povmd+ZFwZFJi1HDtNsVx1PLphare2HHKACFtkc0+6X+N/K1buLun/yGO88 dPNMd1xPfYaNeymdMmK/AFTxEmi3Mv5uiCL5dzdZLZ0LIt0nD/mZJ835aQpd7jiWE2Bn 5Tq8z1T6fMK6OqzZaGD0U3DbIcajxmzS2svtYRffPO+YlcnTedtZWyIbShb1t7+Z4WbI 9hcg== X-Gm-Message-State: APzg51BCk1EtQ9dQs9atGPAKx6B8dHMDodPHuiI4yqrp660LLfX5pac/ dHUR7YUcqccMnzYV86HnxLaBrg== X-Google-Smtp-Source: ANB0Vdazvy5+Y9S+kMz1LU3d8oz16e/Q6biPuqLWAUcCNe6fOam6pWAG82hAtTOGD1hWtCJ1VlrkgQ== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) Reviewed-by: Bjorn Andersson