From patchwork Tue Aug 1 08:04:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 109112 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1193678qge; Tue, 1 Aug 2017 01:05:08 -0700 (PDT) X-Received: by 10.84.143.100 with SMTP id 91mr20009519ply.32.1501574708666; Tue, 01 Aug 2017 01:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501574708; cv=none; d=google.com; s=arc-20160816; b=NjJJsr1AhlBKTXO0nWCEe30iX3xBgYi1xufxnOs1Cb9yQnMrmIbTwbh0DRPZrhsgpC J6RR22jEtxl6kuy52KHk4kXb3tiP/qIsz9TmF8ZWXbrKL/WJlga3GIiXD8q/3v5eoYac bAYlTeokQCB6zCP8eyD7/Q4VHfqOK3nGjq48IDUaQs2CmRbaVXDhvbLUINfdx5W11Fw5 mVXh1t4FvyRRcVzCmywU2fYs5Zk7RFFoHQe6DuhU/RHVWozPuwHz+YWFjldo01QDIQxF CbpgcRTOEgeAjt/LKaIhYDqjodX0zeJ6aIQZ3Nco54Ok8u4F05W+F1KU5JJfQunX5eI8 Jg5g== 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=dCgryL7UjiR2/URLiBhDjDKy/ADQRn9OsxmHsxQ1p1Y=; b=ItKqZ7eopwDq0npsvKLnKxlWFvsNLX5kZzdH5R1QkI5A7Fsd1IaD7TOAhZmEthLGbY faqmOsee2q8aJQSzAl7O095kokdhqEYvgeLctc34f3ojVJcIIjOBWZxc41DB2DNSyI4t eexKNnj/qR0SB1JhdA+9GKG0qj8PNxC4lgAz9sp1Y8j5oh9PthvdbLAUSsvh3bkDg1tP MrLOVct5PY90inSDQdMju5BEv24zkGTi7G3U7G5Sf7QbpqmJB8oT4FysFqTq7x6/ZwDw l6aBMoLK7n/2mJyTlu0x07wocegzdfOigrXVXpE2W3EwAnPTFBZ5JSgvIdi4Icu3AoSR 8RZg== 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 88si14670104pla.211.2017.08.01.01.05.08; Tue, 01 Aug 2017 01:05:08 -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 S1751913AbdHAIFF (ORCPT + 13 others); Tue, 1 Aug 2017 04:05:05 -0400 Received: from mx.socionext.com ([202.248.49.38]:56876 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751904AbdHAIFE (ORCPT ); Tue, 1 Aug 2017 04:05:04 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 01 Aug 2017 17:05:02 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 67C6760088; Tue, 1 Aug 2017 17:05:02 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 1 Aug 2017 17:05:02 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 8BD6D1A16FD; Tue, 1 Aug 2017 17:05:01 +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 v6 0/2] add UniPhier thermal support Date: Tue, 1 Aug 2017 17:04:49 +0900 Message-Id: <1501574691-8961-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 since v5: - replace of_get_property() with of_property_get_u32_array() - get the cariblation value in DT after failure to get the value from register Changes since v4: - fix warnings from sparse by replacing u32 with __be32 Changes since v3: - remove TMOD_MASK and use TMOD_WIDTH representing the bit width of TMOD Changes since v2: - add nsleep after starting and stopping PVT - replace temperature calculation with sign_extend32() Changes since 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 | 384 +++++++++++++++++++++ 4 files changed, 457 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/uniphier-thermal.txt create mode 100644 drivers/thermal/uniphier_thermal.c -- 2.7.4