From patchwork Tue Oct 10 18:02:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 115433 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4040362qgn; Tue, 10 Oct 2017 11:06:24 -0700 (PDT) X-Received: by 10.159.218.9 with SMTP id v9mr2917154plp.92.1507658783903; Tue, 10 Oct 2017 11:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507658783; cv=none; d=google.com; s=arc-20160816; b=jKVzZklj5y/y1SqI8wfgq5wTK6/CjKWzubC+SIqYIvNgmflR5+fUw84sD7deqSytsw FimnU8feTBhPtiLq/x+Qt8+PowjJbbcu5PLpCljDbd2Hq8/xUGWQg6irCoPtLiNhWnez 0NGBtDcwn4key8r8rdNWUqKAhF4weyVATFM1UytsgMO1UQHP9DWvFnxmWnA1xLpFwbth qywm64wHa79MNX7CDRlUFQ0GpavSCGcwRJ8RTc8+cc8ZgZ8IUwg/Y1N5IL7D7WvKX+Ed hTnMEeuYrTuBblFiaFijQzoNyZEkGKXOv4lNN+GD7Dbf5ZYLd9WnizUXL6IOBAETci9F CPDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=bcflMul2zzWYzBMPwbitdnRZF0XK0H8pDK/EGgwgGc4=; b=P/I+KnsdZu6qGWUH1203kEzQ0hUqaK6cHHAZwL7WN2/7lLFRJwW72klGI+YgmGyyIC 8jewDKrsdgRWLxT3ZpaHhxFShyqOB/Zr0BE3S+chDkN0r36/XxfuIYNSqfPt7tnaB8dl qY2AyMFxxAUuH6LA/E8ieAblGq+tWkbY1DBLfig0gvUOQzV1jGdRNbp1YJtSxzWZN8mo 52z5fHEU4jDoS8/xV19JFzaXxTE4T+BLqJYgyQKx1Jw7XFLuoZB/nvFGuHVr8PH0z/Wh uoIY3kw4XEsHwZTyvMtLlozGyYxu/vG1XAjvrvbl0T5my/0r49jgtxLd6J6k3e/vFa7I X52A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=i8bFPfr9; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 m1si1401557pgq.230.2017.10.10.11.06.23; Tue, 10 Oct 2017 11:06:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=i8bFPfr9; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932682AbdJJSGW (ORCPT + 6 others); Tue, 10 Oct 2017 14:06:22 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:50844 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932697AbdJJSFY (ORCPT ); Tue, 10 Oct 2017 14:05:24 -0400 Received: by mail-wm0-f49.google.com with SMTP id u138so7494747wmu.5 for ; Tue, 10 Oct 2017 11:05:24 -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:in-reply-to:references; bh=Gtu5WXxl2+ypItHhwGcwnAKHma/PHRYbdv7XnwK9BXI=; b=i8bFPfr9d8CZWVK0JRaioY1NBxyxN9mNHWh2VoKimUUmlDR9dbDIzpn8WHAkwn5Qnc VcqU8bNdYFKvcYtNVPWZ9LUFEVREKVDu/D3uUxB9kuuB2T+KnShmmSAR5vlUYtZjBop4 ww2bt81FZk6SC2bkLvM2ahEAWy3JvD5iOn9RU= 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:in-reply-to :references; bh=Gtu5WXxl2+ypItHhwGcwnAKHma/PHRYbdv7XnwK9BXI=; b=Wi+AMxec2/+VH9T+AIxGr0KD/KBtTHlItcZhVXj98y8Fh7Y7VIMBX/9udP0+obwCi+ 6bTYRCfTKrgwEeiBX8cUBf5zuqxOFU5S4uIEeFdLXZ6w/6QDt6YecPcrXTcBeplx9WhK xccD27DqEi3wF0k7rqIIMMS7yM4DUfHk3muzHAXeLS5g9RvA+3KjDB2M6mQEB3z1EYjY SLBx0Nn+cG6ZrQjr/PJOZtAF1xd2eIz9AsMxiIptxvwQW3CkwbinA7PVEEGGOlJVr/sv eNn0J9mDPEwD5DVH+Sp+pZMnDeVeN5p7Odt9bKYoZJ0Jj33ZHYbnxFmQv/LDEahV9yNP pgJw== X-Gm-Message-State: AMCzsaXrzMsKp0bRKQTq9cnkAa3EBFivRppKXCuSa8JTsJSHLPXzbThQ jxASFdkSoBiYf3l2nAaJKWtY4g== X-Google-Smtp-Source: AOwi7QDCQU40ol+QMsHoMT3dXubqNMPvtDRxZqCZdGXwD8NRKubPrNnuX1qAd3Of4fmKMSWQnJNKIA== X-Received: by 10.223.153.130 with SMTP id y2mr12585538wrb.165.1507658723423; Tue, 10 Oct 2017 11:05:23 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:4f9:3ae1:43d2:31ae]) by smtp.gmail.com with ESMTPSA id l73sm12513428wmd.47.2017.10.10.11.05.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Oct 2017 11:05:22 -0700 (PDT) From: Daniel Lezcano To: edubezval@gmail.com, rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kevin.wangtao@linaro.org, Rob Herring , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH 23/25] dt-bindings: Document the hi3660 thermal sensor binding Date: Tue, 10 Oct 2017 20:02:48 +0200 Message-Id: <1507658570-32675-23-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507658570-32675-1-git-send-email-daniel.lezcano@linaro.org> References: <79a5f10c-0fb7-3e4f-caac-c1625904b137@linaro.org> <1507658570-32675-1-git-send-email-daniel.lezcano@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Kevin Wangtao This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Kevin Wangtao Signed-off-by: Daniel Lezcano Acked-by: Rob Herring --- Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt b/Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt index d48fc52..cef716a 100644 --- a/Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt +++ b/Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt @@ -13,6 +13,7 @@ Example : +for Hi6220: tsensor: tsensor@0,f7030700 { compatible = "hisilicon,tsensor"; reg = <0x0 0xf7030700 0x0 0x1000>; @@ -21,3 +22,11 @@ Example : clock-names = "thermal_clk"; #thermal-sensor-cells = <1>; } + +for Hi3660: + tsensor: tsensor@fff30000 { + compatible = "hisilicon,hi3660-tsensor"; + reg = <0x0 0xfff30000 0x0 0x1000>; + interrupts = ; + #thermal-sensor-cells = <1>; + }; From patchwork Tue Oct 10 18:02:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 115430 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4039429qgn; Tue, 10 Oct 2017 11:05:32 -0700 (PDT) X-Received: by 10.98.150.149 with SMTP id s21mr7818538pfk.151.1507658731900; Tue, 10 Oct 2017 11:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507658731; cv=none; d=google.com; s=arc-20160816; b=1Iu9qemI7d5oHzy+QKimDpcKgugC9lqT19+B0E7N+DS7t9GloTXMsNhKVqu27TKMEc 9Rs/b9khQM6kRgWA5IToA0MQP4x2lSt+w2ZK/Nc173bKPni2gpZw4qp6mukOrJkiript MuvrK3zsjc46jT/b64769A1YNHofHUdH8CoUymQeoYmqnSKxWWPzpTAG4jM20OpmDEbZ A2Jko4W5AwbhSQRnJEkBJgaFGfLoS/A/5KaAi6IxuFnVPl6Rz4DmWy1L9dt1QR/4kOC2 P08TCs6Apl9+gU8uanRyFEyLmM3p+Q8vZUuhRaPArZBSEPswZojAa7VUSgS3D41h7Gd2 akGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=2sqNZdCseFDCqiq4WalbHLir3+U9XbJv1Gju/SNqs84=; b=dama8622xXpnUHn2X/10xeiBnubbUFnFFjaOU3zcbRw38D7y5Z6RQJtVaZpxNiG/Fi Kstgm+ukRe55FbXXvwnfJwEN5Jm2XAIU0/Cc9Sikh5AvjEbq7ueueU+m/At17y3OB1sO 8hHqVj8rj4aUg1OmEP7mBSFVFp9acyYQ9IZPBt6sagY6Hn3cO4ZMC2GSWrwkXqxa35ay H54yWyeXiPm4t8UToY8rn28ABktMb5JTEfaOKjyzdJn0K/QdffWp/0YjB4980vX97EAD cMApryvZPfwDvCJQudyMznVlJf/QgwRjE0Kn0EGLoGZq6Bkd/ljYzLK3DVgDlJCh8hJb w25w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QG5fq58G; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 s4si8828206plp.584.2017.10.10.11.05.31; Tue, 10 Oct 2017 11:05:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QG5fq58G; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932689AbdJJSFa (ORCPT + 6 others); Tue, 10 Oct 2017 14:05:30 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:54135 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932718AbdJJSF2 (ORCPT ); Tue, 10 Oct 2017 14:05:28 -0400 Received: by mail-wm0-f41.google.com with SMTP id q132so7699192wmd.2 for ; Tue, 10 Oct 2017 11:05:27 -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:in-reply-to:references; bh=1uurYO0YVisRgMkg9/Kf/SAQixleqdEDuaDKZaoL+aE=; b=QG5fq58GvGJSHYXMcZUcFKGe4mfdyJ+/OcwKToCaB1qDJ+6ZhT/Snh0AjAn7Xj/dHA bgTOv/BkJpVcxUdjtdVkQtRsflvO8sqtsKAsw1pDtKpSjEcmVTul5TS1pnDQUR8Qyk/B wJfMIup169QB0V4cKLmy28nKMPiHpYlE+QvFg= 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:in-reply-to :references; bh=1uurYO0YVisRgMkg9/Kf/SAQixleqdEDuaDKZaoL+aE=; b=CXe/1tmEiAAv5jprDXDFHds3k5XKAVhNSCvYVcFfITF2r84F6KEZzs5FFojjqnSP0T hhxmXhAenWb6+8GMQEeWjD1pIs4JVF2m6Awh4BEf1zNChgolI1LOtxnnzJiTHfpKN75R dghZ9xIXdzoiTpICxnAByivnHxfksX4gus8sHqylhXMxw54g+7gN+rJv/q7CirSzLXPU 6t01qN2NDqZSfPlaL2stUn8SfT/DL1imDxpg/TCGkTzEouzXaHP2RMq63pwqJ+0qkRUA m2BM4CHXYspSADe7MTwIjTn9bYe208H7LgPGdDLpgmlbkZvFs3cv1fw6A6Y5dozistz/ wlXQ== X-Gm-Message-State: AMCzsaV/5FxhAFdwHDO0kqfVRbK0nD9OOmyeRfLprZz1mTa9UTYMyBlk /ZQ5ZwFxninEhs2K05vDdTAndA== X-Google-Smtp-Source: AOwi7QC77/E5zSV3m032Cb8pJPKQNsCjBXbpdcOe1NgpYpHupIuOKAFSKyf9emEJLp9nod5PVuXugg== X-Received: by 10.28.169.21 with SMTP id s21mr11032735wme.87.1507658726724; Tue, 10 Oct 2017 11:05:26 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:4f9:3ae1:43d2:31ae]) by smtp.gmail.com with ESMTPSA id l73sm12513428wmd.47.2017.10.10.11.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Oct 2017 11:05:26 -0700 (PDT) From: Daniel Lezcano To: edubezval@gmail.com, rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kevin.wangtao@linaro.org, Wei Xu , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org (moderated list:ARM/HISILICON SOC SUPPORT), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH 25/25] arm64: dts: Register Hi3660's thermal sensor Date: Tue, 10 Oct 2017 20:02:50 +0200 Message-Id: <1507658570-32675-25-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507658570-32675-1-git-send-email-daniel.lezcano@linaro.org> References: <79a5f10c-0fb7-3e4f-caac-c1625904b137@linaro.org> <1507658570-32675-1-git-send-email-daniel.lezcano@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Kevin Wangtao Add binding for tsensor on H3660, this tsensor is used for SoC thermal control, it supports alarm interrupt. Signed-off-by: Kevin Wangtao Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index c6a1961..d9c0cf3 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -848,5 +848,13 @@ &sdio_cfg_func>; status = "disabled"; }; + + tsensor: tsensor@fff30000 { + compatible = "hisilicon,hi3660-tsensor"; + reg = <0x0 0xfff30000 0x0 0x1000>; + interrupts = ; + #thermal-sensor-cells = <1>; + }; + }; };