From patchwork Mon Jul 2 12:44:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 937875 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="U4xqT7sz"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41K6TF4zXyz9s3q for ; Mon, 2 Jul 2018 22:46:57 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752193AbeGBMq4 (ORCPT ); Mon, 2 Jul 2018 08:46:56 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:43105 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752882AbeGBMo3 (ORCPT ); Mon, 2 Jul 2018 08:44:29 -0400 Received: by mail-pl0-f65.google.com with SMTP id c41-v6so7909731plj.10 for ; Mon, 02 Jul 2018 05:44:28 -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=D291gaejtIl2creVuc3NXahXRTkldLGc9ZtgwAjGAws=; b=U4xqT7sz8/i00vW7ZN9zV4C4AFfKw9d4xKlp1kXcQ5i+GAr58QKuQ8P+0zo+TbHZeQ bQtu6xu4HrhRLPjEndKv2Qm6ojQM+SZkfYFO4DtbLeCR3hFVnYcMSwP3WrAQIgahXeOq 7Kl3vubrdN6yGE2NYlvarV1MIHEChH83xZFBo= 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=D291gaejtIl2creVuc3NXahXRTkldLGc9ZtgwAjGAws=; b=SCjUzZBQQWd74Ym2DnkB2IfhF6ANJn2MJhAxVujNaT8tMg6EyZwowR+ZCjNYpUjWsn 3HPbPga6UNhkxTGiIm99uFsVzLRxFk4IILT9RFaHU0RzZyXqjaQBrahH5vI5UjFX98rD xO9TAWdzIQGFXBh0K9MF/OnwcTm/vXbqxTaByGrT+rbWJWKdHUhdnfB/yQrw+Ufd0xum kpXSVKzvl1B13yuYx4RzDP0MxN4NDeFqj1abBHS2+TEc2kLCcNgBTnGMjXYyr/jjbwdF JwO+TRnVi3zvJzmatvV0Df+bN+kOin5z/KCDCzJADeD6sSiFz90OHWiP/OU5e1K/++vI QVXA== X-Gm-Message-State: APt69E2FxtJYClNeb8KxXEIJraMkZsvxBySOFVKnTzHMPctvoggvO2n6 vSImfRk6MInxzwkCTgfUXnjfKA== X-Google-Smtp-Source: ADUXVKLeVLItPQEexUyDRfX5goXCtbBGJIgadJzu0dtdNSyyfKy5Tt2KeAJwTCacaYnxirN22lsSmA== X-Received: by 2002:a17:902:9344:: with SMTP id g4-v6mr25810646plp.10.1530535468244; Mon, 02 Jul 2018 05:44:28 -0700 (PDT) Received: from localhost ([49.248.63.129]) by smtp.gmail.com with ESMTPSA id n6-v6sm52782591pfk.36.2018.07.02.05.44.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 05: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, Kees Cook , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v4 0/6] thermal: tsens: Refactoring for TSENSv2 IP Date: Mon, 2 Jul 2018 18:14:03 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series is a mixed bag: - Some code moves to allow code sharing between various v2.x.y versions of the TSENS IP, - new qcom,tsens-v2.4.0 DT property for SDM845 and a generic qcom,tsens-v2 property as a fallback compatible for all v2.x.y platforms, - new platform support (sdm845) - a cleanup patch and - a DT change to have a common way to deal with the SROT and TM registers despite slightly different features across the IP family and different register offsets. Rob mentioned offline that we should expose the full version string of the TSENS IP (x.y.z) and have a fallback compatible. I hope patch 4 does what you were looking for. Regards, Amit Amit Kucheria (6): thermal: tsens: Get rid of unused fields in structure dt: qcom: 8996: thermal: Move to DT initialisation thermal: tsens: Rename tsens-8996 to tsens-v2 for reuse thermal: tsens: Add support for SDM845 thermal: tsens: Check if we have valid data before reading arm64: dts: sdm845: Add tsens nodes .../devicetree/bindings/thermal/qcom-tsens.txt | 2 ++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 ++++++- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 +++++++++ drivers/thermal/qcom/Makefile | 2 +- drivers/thermal/qcom/{tsens-8996.c => tsens-v2.c} | 39 ++++++++++++---------- drivers/thermal/qcom/tsens.c | 6 ++++ drivers/thermal/qcom/tsens.h | 7 ++-- 7 files changed, 62 insertions(+), 22 deletions(-) rename drivers/thermal/qcom/{tsens-8996.c => tsens-v2.c} (66%) Reviewed-by: Bjorn Andersson Reviewed-by: Bjorn Andersson