Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7192455ybp; Wed, 16 Oct 2019 05:16:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwB+3RNX4OVGMDX4y+dlNeP+CcRKZgj2Ird3BLPpfv/FPR0kxcTqbzmF0xe5YbQHQ5iLkm X-Received: by 2002:a17:906:3582:: with SMTP id o2mr17433478ejb.54.1571228211856; Wed, 16 Oct 2019 05:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571228211; cv=none; d=google.com; s=arc-20160816; b=NPhYuOUXIkxNroMN9xGDVKcYLzwrGzOVKkRWaBjzk1VL4bO33Wklk8xZ+0Sf2l0kA5 iWPd86LH1+wNeXAUX7TD7XEy6Ww2FW89tHSQhHSPZlHH/pEmldVK635VOnYqhBDL2o8P iR33ufA80rcgB6F/I+5UiJsZGJbmdwI2lLl6jgPYCVXguGnN7ucA4piY73JXHuBIrzTk ziD/mCsjHlNAxGxFwgDxqJ/FP+LrCjKWddWoIk7+aA9uzmQ8gnpnI/DeZ5Q63aaCuIj0 0yNJrSGJhD/21yjdil5mzjWCo7yDCcPQy9iT7XzHvMckDh4piAR05+BwZv84TqRbzbpE XXVA== 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=oaPZpMWVpeTaXyczMAyADaVhWo958LDrNtPNnm45k+8=; b=bbQfKMdRDK0GCxJLXM25PE79Sm8c4Srcu/1VDshC7bUB7mQi427V5T9ZB4rB7IKi3U ZiGicIUTL2FsviOIAQ28EVMmHlfTWagsGCPgx9Hmq8PwOWuOQloXf5J2Oca5V18fU/1v Bw7pKM26llX6rfffVwK2BWnCDDceheYDdF4X3bSht+5ePgl4M/ONrEp+RQLQvHMXmw7a r8ffwBIkaoF2fMA0bLCXN+pRHlG2jjze2OjjQw/6t55A3un7UhhMQ5zUA2VeJkvEG/jn fubClWQqDd5WENtSwokwVCKcEWYUyZwQk4Gqq1Foo4SbQ/i2/l35/21TXvkJWdb68g55 bY5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LHH658wb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 s17si15166970ejz.148.2019.10.16.05.16.28; Wed, 16 Oct 2019 05:16:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=LHH658wb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1731881AbfJPHeY (ORCPT + 99 others); Wed, 16 Oct 2019 03:34:24 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35492 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731730AbfJPHeY (ORCPT ); Wed, 16 Oct 2019 03:34:24 -0400 Received: by mail-pg1-f195.google.com with SMTP id p30so13767283pgl.2 for ; Wed, 16 Oct 2019 00:34:23 -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=oaPZpMWVpeTaXyczMAyADaVhWo958LDrNtPNnm45k+8=; b=LHH658wbM0k+Va6D68qeWuqW0Y4HISxQ7+Chb07DJVuuyyRkDwj6wXRYQz323X9V84 W+ep2amIpCgm+BTuNFr6j+z7O/l/hOaTEqmNiKMWVk10CCWWCwVADl8+rCTeZ8JRjiSf 7fQ8eOOOxw+q1xg8IvQ9NGaUH3AqD2WoA5I1e2+8QB18aG8IbsfBBL0demeKmfDKx4cG cXZaE5tau0Kn00F91zB/bU1iBBsfHtpPeFc3tiSwRq1HlEAGE9vRzkzNW7HfCx5cuT/9 bP9D3oK2xsBa9Vl9LMeSPi2mT2h5mWTZuMXzpphvQp0CTHIJUSIAxjMfIUxPiG+y06Ku XWIg== 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=oaPZpMWVpeTaXyczMAyADaVhWo958LDrNtPNnm45k+8=; b=preVKq7IqzJETjPQ32wJIgVjFl8clvTPRazVLGwPlWsOQVN8D9mUQ+EfhJ/itRBq18 JsK+6kcmE+UtyDucfQoEIJSy1xjBq8vaVpXFEOD+m8G7jMPSjQcn4Elzqnc1373EgJ5H Uw0hhhgaG66tRyP9HgmdF3az6g2FP3gxBrAB2TvGq7pASGchgfIVZKjRDh07bopowd7m qC4HqDK25M1qI34jeNYTdOeK1nkVTwzojvYcvr+IR7wim0lpAm4zxEGRMnN9RUFs5kEy n8+x0iyCpKtGWz6Kn/x5gZe1MhFC5VAJViGlBlL6WvOuLt3GiLMkRzqJbDRM+l5ANy/A DWcQ== X-Gm-Message-State: APjAAAWO4AMleT6e7EJdiyCb3vfHe742yXBSCzuO30RjPyipNg2wYJtS JZXo/30iVlRB4JW+h5nu5XVdPcxeDhcFNQ== X-Received: by 2002:a63:1042:: with SMTP id 2mr44558827pgq.59.1571211262784; Wed, 16 Oct 2019 00:34:22 -0700 (PDT) Received: from localhost ([49.248.175.127]) by smtp.gmail.com with ESMTPSA id x125sm25026657pfb.93.2019.10.16.00.34.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Oct 2019 00:34:21 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, masneyb@onstation.org, swboyd@chromium.org, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support Date: Wed, 16 Oct 2019 13:03:59 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thermal and MSM maintainers, I believe this series is now ready to be merged. The DT bindings and driver changes should go through the thermal tree and the changes to the DT files themselves should go through the MSM tree. There is no hard ordering dependency because we're adding a new property to the driver. It would help to soak in linux-next for a few weeks to catch anything on kernelci.org. Regards, Amit Changes since v4: - Change to of-thermal core[1] to force interrupts w/o changing polling-delay DT parameter - Corresponding changes to DT files to remove the hunks setting the values to 0 - Collected reviews and acks Changes since v3: - Fix up the YAML definitions based on Rob's review Changes since v2: - Addressed Stephen's review comment - Moved the dt-bindings to yaml (This throws up some new warnings in various QCOM devicetrees. I'll send out a separate series to fix them up) - Collected reviews and acks - Added the dt-bindings to MAINTAINERS Changes since v1: - Collected reviews and acks - Addressed Stephen's review comments (hopefully I got them all). - Completely removed critical interrupt infrastructure from this series. Will post that separately. - Fixed a bug in sign-extension of temperature. - Fixed DT bindings to use the name of the interrupt e.g. "uplow" and use platform_get_irq_byname(). Add interrupt support to TSENS. The first 6 patches are general fixes and cleanups to the driver before interrupt support is introduced. [1] https://lore.kernel.org/linux-arm-msm/1b53ef537203e629328285b4597a09e4a586d688.1571181041.git.amit.kucheria@linaro.org/ 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-bindings: thermal: tsens: Convert over to a yaml schema 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 arm: 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 | 55 -- .../bindings/thermal/qcom-tsens.yaml | 168 ++++++ MAINTAINERS | 1 + arch/arm/boot/dts/qcom-msm8974.dtsi | 92 +++ arch/arm64/boot/dts/qcom/msm8916.dtsi | 6 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 + arch/arm64/boot/dts/qcom/msm8998.dtsi | 6 +- arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 + drivers/thermal/qcom/tsens-8960.c | 4 +- drivers/thermal/qcom/tsens-common.c | 529 ++++++++++++++++-- drivers/thermal/qcom/tsens-v0_1.c | 11 + drivers/thermal/qcom/tsens-v1.c | 29 + drivers/thermal/qcom/tsens-v2.c | 13 + drivers/thermal/qcom/tsens.c | 58 +- drivers/thermal/qcom/tsens.h | 286 ++++++++-- 16 files changed, 1102 insertions(+), 166 deletions(-) delete mode 100644 Documentation/devicetree/bindings/thermal/qcom-tsens.txt create mode 100644 Documentation/devicetree/bindings/thermal/qcom-tsens.yaml -- 2.17.1