From patchwork Thu Aug 9 12:32:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 955521 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=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="O2CoElr2"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41mSMY5h6Zz9s1c for ; Thu, 9 Aug 2018 22:32:57 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731506AbeHIO5h (ORCPT ); Thu, 9 Aug 2018 10:57:37 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38483 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731252AbeHIO5h (ORCPT ); Thu, 9 Aug 2018 10:57:37 -0400 Received: by mail-pl0-f65.google.com with SMTP id u11-v6so2506803plq.5 for ; Thu, 09 Aug 2018 05:32:55 -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=MGYrx0uZNDgVFHPX1cqi8GQIfy0CW578H1zRnv2sLks=; b=O2CoElr2tyWllOC9VwoU7wUpp+y8qZRFuhoZv/TCXA0fNCE773DM9VV4fJZY5ZG0Y4 TmwigVpo/QVrAgGgHszkG1skLqxWmjOXdOSyt4JLewtZQcKFHoXS7vlJG0UtfuFK23mj EGiHzD1Z47oYqeIFWnr4ygZN8aUhuV5tjO0uw= 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=MGYrx0uZNDgVFHPX1cqi8GQIfy0CW578H1zRnv2sLks=; b=K+i6ch5H3aXxDUz6/2Cf0tH1rGXp+tL2O40KD08mUqxSqYcizduYKC+nhTJ3lhG1gQ NjJwIIiRLufrsWkYBddR8TOrL+6UJKx/GtrZiAEPzzXbm3daE7EX/5wb76ZQsuXHKkZ/ QX6GGGf55EHIK5D1uF7E9fZ/iw+KrPIwK279pOPkD+oWvnZOV0SabDSTD3B2m0xaeE87 XMVGhmEzs6+hmHYmu7DDIhmH3t1V4r9CaqlLSEarcJ62nQNRNcnVVc10v18zqTiC7vaZ 6nj7WDlAHAIYBnGu4hMmhMNsFNl/Jjlmg2giza27ZCffyIsUlXsUhS+T57g+LwIwSKBl jyRQ== X-Gm-Message-State: AOUpUlESm0Q0V3z6Y2vuMuOIgfUjYwQRlBidbLX5xXOzk9nhuEfNuXAT Fs4QOwVWA2nd/TffM7ik4wV9qQ== X-Google-Smtp-Source: AA+uWPwvZuz6w8Pf9SiG/wD2DOQDLubUtHxP6r1TPVLRsFDZFHpAiYR0yB+l2wuQL7cmXZAdEvxK+Q== X-Received: by 2002:a17:902:7793:: with SMTP id o19-v6mr1975430pll.306.1533817975531; Thu, 09 Aug 2018 05:32:55 -0700 (PDT) Received: from localhost ([45.113.251.134]) by smtp.gmail.com with ESMTPSA id u69-v6sm8979964pgd.43.2018.08.09.05.32.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Aug 2018 05:32:54 -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 , Greg Kroah-Hartman , Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v1 00/10] Another round of tsens cleanups Date: Thu, 9 Aug 2018 18:02:32 +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 the earlier two series[1][2] that have already been accepted for 4.19. 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 Regards, Amit [1] https://lore.kernel.org/lkml/cover.1531895128.git.amit.kucheria@linaro.org/ [2] https://lore.kernel.org/lkml/cover.1532600791.git.amit.kucheria@linaro.org/ Amit Kucheria (10): arm/arm64: dts: msm8974/msm8916: thermal: Split address space into two 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: Matthias Kaehlcke Reviewed-by: Matthias Kaehlcke