Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1053355yba; Thu, 4 Apr 2019 03:19:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkTWNwkTEQRKMNJA3V6Q/S7yS2pKzyOt5NqQg8Xcuz5JA12Kx2kh9LojDmSh0Ha+AmSCyg X-Received: by 2002:a65:5202:: with SMTP id o2mr4774963pgp.402.1554373166344; Thu, 04 Apr 2019 03:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554373166; cv=none; d=google.com; s=arc-20160816; b=z+GsD7KaTITXQJgMFtahFP/afz9SjSkvkLkYntNl0wdnwPqKUyBk7uARgygSFvUMB/ pGvmxIoPU0pEgc+1Psw/dVNx5msoxEG84N47xkzwbbZM3Y2u+L7uSLGv88mgK4QGYBu+ ceJJk7clqsmDJQHfXBd0vXK1+koPdRQvvtL0q3i38okJ2Uf+BOw1J175Ked7EUO77W1u 6V3vSV0AUsNE7vnR1r8JZlXuUADOjG0+VxEyN0B18eDK9H2Ppl7JP0tbpmZkiO5HXOwd 6s7uMDqcu8thVWeB9ACYYGWH65SUJsv0DHt5f5ID1Linhku8r61OKC0TynmUxv2Nfo/X JxOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from:dkim-signature; bh=I4CCV6KLI97RKKOs9+G0QaWvIxWlVqRP7fbiAEF/Xhw=; b=Djip+ZQ7ZR1jPVsrmW7Bw202+YZS+QkwG/HVx71BC30yrdwLo6oVjsbEnK6jqnJTWO lp3qT/NEacm58Kml7H00ZKkrFDJl5pChnkus8xJ1Q5+x5sMAlbxlnC9m6KkIL6uNEcOi eDDNE9QcWiQf2HwgfsTFi7UQsqMR1JGoB8WwFqhNaqFINicbEoMBoPHCwkHv8tZq2W02 gTE3luZjoIJZMwvlA2GNNn3c0S+LM+qN9U87Hj8zNw19ZL2VRQRCuvuFGm9QoeFK0tWa sUnE2TXu22OvAz6Fimrl0HKBMuaB3gFHkqKpUI1Rua/MuFveUxQnb2+P+FUZBvdyPF3E 3c5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=tNZ4iHzr; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si16450551plb.396.2019.04.04.03.19.11; Thu, 04 Apr 2019 03:19:26 -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=@amazon.com header.s=amazon201209 header.b=tNZ4iHzr; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729116AbfDDKRV (ORCPT + 99 others); Thu, 4 Apr 2019 06:17:21 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:6768 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbfDDKRV (ORCPT ); Thu, 4 Apr 2019 06:17:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1554373040; x=1585909040; h=from:to:subject:date:message-id:mime-version; bh=I4CCV6KLI97RKKOs9+G0QaWvIxWlVqRP7fbiAEF/Xhw=; b=tNZ4iHzrGRAkfjaCBtSObMYrZTB9c7uBFuhfhnqaLbPPrSgr9ECHFjPK BsUDDPRG3I80sUNMolgDQsSysWrCOz1t179HMfkdUwVdvKedhXgLn6hvZ 09r+ajhfqNZZDRh3zCQJdx1HdrVUAA6Co0+S+3fxzMScHmoy/+UUKItzr E=; X-IronPort-AV: E=Sophos;i="5.60,308,1549929600"; d="scan'208";a="725984684" Received: from iad6-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2c-168cbb73.us-west-2.amazon.com) ([10.124.125.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Apr 2019 10:17:18 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2c-168cbb73.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id x34AHEgp057459 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 4 Apr 2019 10:17:15 GMT Received: from EX13D01EUB001.ant.amazon.com (10.43.166.194) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 4 Apr 2019 10:17:14 +0000 Received: from udc4a3e82dbc15a031435.hfa14.amazon.com (10.43.160.69) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 4 Apr 2019 10:17:08 +0000 From: Talel Shenhar To: , , , , , , , , , , , , Subject: [PATCH v2 0/2] Amazon's Annapurna Labs Thermal Sensor Driver Date: Thu, 4 Apr 2019 13:16:54 +0300 Message-ID: <1554373016-1442-1-git-send-email-talel@amazon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.69] X-ClientProxiedBy: EX13D25UWC003.ant.amazon.com (10.43.162.129) To EX13D01EUB001.ant.amazon.com (10.43.166.194) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series introduces support for Amazon's Annapurna Labs Thermal Sensor based on a new simple MMIO thermal driver. This driver is intended to be used by other devices as well, which require just a simple MMIO access to read temperature. Changes since v1: ================== - removed the "thermal_mmio" compatible string. With v2 version, only specific hardware can bound - add initialization function that is mapped based on the specific binding string - removed thermal_mmio_readl and thermal_readw, but kept mmio reads in callback function. Left only thermal_mmio_reab which is used by al-thermal - removed divider, bias, width which are not needed for al-thermal. Talel Shenhar (2): dt-bindings: thermal: al-thermal: Add binding documentation thermal: Introduce Amazon's Annapurna Labs Thermal Driver .../bindings/thermal/amazon,al-thermal.txt | 33 ++++++ MAINTAINERS | 6 + drivers/thermal/Kconfig | 10 ++ drivers/thermal/Makefile | 1 + drivers/thermal/thermal_mmio.c | 129 +++++++++++++++++++++ 5 files changed, 179 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/amazon,al-thermal.txt create mode 100644 drivers/thermal/thermal_mmio.c -- 2.7.4