From patchwork Wed Jun 28 10:11:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 106502 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp825251qge; Wed, 28 Jun 2017 03:13:02 -0700 (PDT) X-Received: by 10.99.104.136 with SMTP id d130mr9573871pgc.236.1498644782166; Wed, 28 Jun 2017 03:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498644782; cv=none; d=google.com; s=arc-20160816; b=BXmZCqjEbhwV0plX6Cp1ZODebjuNxrZbLmJ4YScXJFLCBtkU8otUFhz+r9tl3l0BCH zRIZVeVcszRmxske/RegZCbTEeTE2byjprHt2AdjHxIRNt2ehQSQ7fEv87L3nzaPM6jH gxgC5X6l0UA1hGMFwdtZh+uOYnv1TLhuvNWP9NNHFPmpnkVldjdMgu2dDBgofhcJMrK4 1OfsBoZcqLWHO70uswjQ1/bNSTYmOsCKbOLwf08pdwmBqRiROIsieVDH/kug1kwjuB4v FXuAGyHFSlFgBrX8KC7sswyydg3qQ0Jl2hdo2aCWxAd4kaBX/6Z0R/8oDOfcrjgGgELp NwzA== 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 :arc-authentication-results; bh=b6XxstUKIFuuU5HNRHQXdVGj8iR3gqGr5za7iKWuQME=; b=YrKttr3L2zR5CTRc4jw1kezvYAZ8FetWFgFiFJ81PNM03cfaXc6rSsuqmmzsQeu4/a +cN6qT46C5GVfhDyY3Nhhww8Rt/R2tpLFcsfFbU900oxmE4a3BcdSYMS92iK3PLUZebm SdYWPkxqe+dno0hMBf+ylH9NWXaawaJ8KdcPsEzpmuXPBPzEsqrM6dhAh6fRv0924YMR 10vV0CL66yNKuq/6xIkUcBlACdHWcIasLvjraHyfQgadOtJJX4HgUYiwpB42O/a7Icih bOHDbQ59kw8jc0exTujyVd4I8XJcWSbI8fF70+1/4DMvZx588t+wAMz4PdNHpXAQa4+i fdZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si1424717plj.429.2017.06.28.03.13.01; Wed, 28 Jun 2017 03:13:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751501AbdF1KNA (ORCPT + 14 others); Wed, 28 Jun 2017 06:13:00 -0400 Received: from mx.socionext.com ([202.248.49.38]:16226 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498AbdF1KNA (ORCPT ); Wed, 28 Jun 2017 06:13:00 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 28 Jun 2017 19:12:59 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id BF80D6007B; Wed, 28 Jun 2017 19:12:58 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 28 Jun 2017 19:12:58 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 376021A0E89; Wed, 28 Jun 2017 19:12:58 +0900 (JST) From: Kunihiko Hayashi To: rui.zhang@intel.com, edubezval@gmail.com Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, yamada.masahiro@socionext.com, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, Kunihiko Hayashi Subject: [PATCH v2 0/2] add UniPhier thermal support Date: Wed, 28 Jun 2017 19:11:57 +0900 Message-Id: <1498644719-25611-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This series adds support for CPU temperature monitor modules implemented on UniPhier LD20 and PXs2 SoCs. This driver supports temperature monitoring and alert function on the module. Changes in v1: - separate dts from this patchset as another patchset - remove 'reg' description on the dt-bindings document - fix the order of calling initialization functions - replace mask bits to use GENMASK - fix calculation of temperature because of not considering a negative value - use devm_request_threaded_irq() instead of devm_request_irq() and separate a thread function from the interrupt handler - add dependency to Kconfig - set 120C to CRITICAL_TEMP_LIMIT as maximum temperature - shrink each line of parameters to save the number of lines - improve some comments and copyright description Kunihiko Hayashi (2): dt-bindings: thermal: add binding documentation for UniPhier thermal monitor thermal: uniphier: add UniPhier thermal driver .../bindings/thermal/uniphier-thermal.txt | 64 ++++ drivers/thermal/Kconfig | 8 + drivers/thermal/Makefile | 1 + drivers/thermal/uniphier_thermal.c | 391 +++++++++++++++++++++ 4 files changed, 464 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/uniphier-thermal.txt create mode 100644 drivers/thermal/uniphier_thermal.c -- 2.7.4