From patchwork Thu Jul 25 22:18:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169752 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182166ilk; Thu, 25 Jul 2019 15:19:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFNxynz1AvPb3ww5eLYg/7cP4v8vpU9roNPk5S6TplBHpd7Em8NcmDuunQtO8LFo0qQp4A X-Received: by 2002:a17:902:543:: with SMTP id 61mr92868562plf.20.1564093140081; Thu, 25 Jul 2019 15:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093140; cv=none; d=google.com; s=arc-20160816; b=h/n4IsWm0NTQPSs4OivmJFRI+F3wEvYL0eOPEOhwaBBHtN5NwfJSOArEinoX5ijY7J 46P52wquM/SPoiroFj2LF92IA5wHKnl5Vgcpjb/QlLqZ6kOr13WLSpc0LVOuzkEzWMLH mqLkjz5J/c1iAXtowuh8RiIV+v2pb/VV2S/+vQIhaFZ5dqGWrquI5TtDcr+5gDP7R+rE ptGae+nl5YEci9DStoEuFTq7fa0kMOpAHkxwEdMTYoTIEsfn6+sMOVmgRCOeXLRclka4 +XUqD+A8pQuS4lZQV+WChVe/T3GZNHo40PN++M4NtUqvGSMasAG9irIsHBwldObmoJ1n Uzog== 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; bh=NVLzievBgAW2kTNQ4IEdhARg8wdn1fX0hhOxE5e3+74=; b=Rj4gh/CJQNaj41fQ0iXgOJUQ8Ykd/mp7RC9EBUNNMFbJYG3BE26IHYlOnum6JVZs+o qy4sAORwHoKJVyq6VyY5Q5DzlBF6ta5VrUT6odRg/FfoUpuLif1OTPDUqku8bFizxB+n 2/BcYdMF6mldp7bBCsdwCVli3ZhwkThNisIbJ+JnYbhpYpK8+YgckOfnfZaFmsEcreS1 UTdadKHskkLF1tSMx7RGhtesLi6APSuk+3UAI60jKftbMzING2EbFwSYYsJsIE/UOfoV LgH9lWyJ3dPEkbcrlfhWNVyCr33ueEY1ukTl86MKtASLHZlx0LnAEJ+CkHovtQT8dhoT y9uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cLqjJ6Tz; 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 70si16731314plc.253.2019.07.25.15.18.59; Thu, 25 Jul 2019 15:19:00 -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=cLqjJ6Tz; 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 S1726766AbfGYWS7 (ORCPT + 15 others); Thu, 25 Jul 2019 18:18:59 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44240 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbfGYWS6 (ORCPT ); Thu, 25 Jul 2019 18:18:58 -0400 Received: by mail-pg1-f194.google.com with SMTP id i18so23712747pgl.11 for ; Thu, 25 Jul 2019 15:18:58 -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=NVLzievBgAW2kTNQ4IEdhARg8wdn1fX0hhOxE5e3+74=; b=cLqjJ6TzLW3C14g++C0UiRgOWuPiD4AbxAy1kd/QqmjjrhPahabScD3tUJEHzOnzhd AUnfZmiZ2LhPk9mYrmJiXd/1yiieI+xtf9NvDs3w93GfM++Hu/DWkgFjOZoBp3Ij9Xra JIhFOf2u4fmlaSnfUGzcNbLephleyNk1l+EkL+ZVE+KT9uYkRb4mfBBlaugUGMGCEQwx UD0U6exjKJQS78zmA9TB8GeWX4JNO29747mR5z179rz2OgTgdaoHwAo+66L6AOMa+Zej AKrKfqM7jyBXxK7f97ZjLAoagykpYBUur+nnUWql5k4LpxNdYe6M3XNMGxKgUkkDp4Fz SAnw== 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=NVLzievBgAW2kTNQ4IEdhARg8wdn1fX0hhOxE5e3+74=; b=SqleUnVNcJoM451pZRItyIfCV0wU7z74QUSPrV1OxgJZSPEr5Oc5YwuzhIhD7l8IQZ WB4q0oKzM59oLyqtk1WErm/Wx3qqp1j3FjbEU2lGsoBPX47XkHm68ssIZRvaeBbyJrai QxqsW0OszyuvElpGhLo5Ksa/hENDr7jfBTpBLDTgYM6PPUdkyvLOx+BF/c+1/N8nQV5p 5geRb5zFYMtguidG8FfkQAxrP5pb4SXcaKd9qwmAUQVcVqGDtWndkhVwrD9wt97Hs5VN fmWPG63hQemkQYQPLna2BNC8GW0vM/XpS/pUZFFDx5HwxJcjpRsIExuy6lOu2moQRxTI nbdQ== X-Gm-Message-State: APjAAAVNw/q+CgwTx6/qmV40eAQVr+jl35y9AFSlWHi7PsCy5KZ+1HfY WkJp11+0Bci7iwQzpDNn3cFVlg== X-Received: by 2002:aa7:93bb:: with SMTP id x27mr19445645pff.10.1564093138071; Thu, 25 Jul 2019 15:18:58 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id c130sm49074069pfc.184.2019.07.25.15.18.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:18:57 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Andy Gross , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: marc.w.gonzalez@free.fr, masneyb@onstation.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support Date: Fri, 26 Jul 2019 03:48:35 +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 Add interrupt support to TSENS. The first 6 patches are general fixes and cleanups to the driver before interrupt support is introduced. This series has been developed against qcs404 and sdm845 and then tested on msm8916. Testing on msm8998 and msm8974 would be appreciated since I don't have hardware handy. Further, I plan to test on msm8996 and also submit to kernelci. I'm sending this out for more review to get help with testing. Amit Kucheria (15): drivers: thermal: tsens: Get rid of id field in tsens_sensor drivers: thermal: tsens: Simplify code flow in tsens_probe drivers: thermal: tsens: Add __func__ identifier to debug statements drivers: thermal: tsens: Add debugfs support arm: dts: msm8974: thermal: Add thermal zones for each sensor arm64: dts: msm8916: thermal: Fixup HW ids for cpu sensors dt: thermal: tsens: Document interrupt support in tsens driver arm64: dts: sdm845: thermal: Add interrupt support arm64: dts: msm8996: thermal: Add interrupt support arm64: dts: msm8998: thermal: Add interrupt support arm64: dts: qcs404: thermal: Add interrupt support arm64: dts: msm8974: thermal: Add interrupt support arm64: dts: msm8916: thermal: Add interrupt support drivers: thermal: tsens: Create function to return sign-extended temperature drivers: thermal: tsens: Add interrupt support .../bindings/thermal/qcom-tsens.txt | 5 + arch/arm/boot/dts/qcom-msm8974.dtsi | 108 +++- arch/arm64/boot/dts/qcom/msm8916.dtsi | 26 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 60 +- arch/arm64/boot/dts/qcom/msm8998.dtsi | 82 +-- arch/arm64/boot/dts/qcom/qcs404.dtsi | 42 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 88 +-- drivers/thermal/qcom/tsens-8960.c | 4 +- drivers/thermal/qcom/tsens-common.c | 610 +++++++++++++++++- drivers/thermal/qcom/tsens-v0_1.c | 11 + drivers/thermal/qcom/tsens-v1.c | 29 + drivers/thermal/qcom/tsens-v2.c | 18 + drivers/thermal/qcom/tsens.c | 52 +- drivers/thermal/qcom/tsens.h | 285 +++++++- 14 files changed, 1214 insertions(+), 206 deletions(-) -- 2.17.1 Reviewed-by: Stephen Boyd Reviewed-by: Stephen Boyd Reviewed-by: Stephen Boyd Reviewed-by: Daniel Lezcano Reviewed-by: Daniel Lezcano