Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5675694yba; Thu, 11 Apr 2019 03:24:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt5RRbbuBrHaRdzqgQL/D1Nus1sjhsDJzlyxhiWZ6vGDV5fBO8ohAiMLWesUflkqJWgkNT X-Received: by 2002:a17:902:b210:: with SMTP id t16mr44507717plr.84.1554978241016; Thu, 11 Apr 2019 03:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554978241; cv=none; d=google.com; s=arc-20160816; b=ue/9nWlId2bfxroAk1CynZT7R667DfDtJu+SXyAzEPdSYf33pbVsveFLHfvCcNwwnm /iY3HljE5sEzfFYPfbFA5IJ+nJKRzQERQ/DkWCyBqimTmqsdJzKu0R6N/pkF5XYJ4zkh X0My2CnxGMi1vFVLZ3egm0DVnUybcfgvRAIzWPEg9Uz3f0CG3uEQeln+/n4GzkNMZC3C 4f0Bom+pWp6eQDtLSCYywP3+UwvEJXjuy8Ktyj9EFeQS5SwCw+fBBrOjl6AxPGg66f0e 5fnXjZIF5m7sGpVVfcYOB3G+sLW7pZRnBnjw3FD+EyGrc720oirrPwnjYMg70+D/pDDf ZdnA== 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=ZdwRQPKamKRhDq4hZZRT4OqvNsRINrDHac1Ji29q3kM=; b=GtuMinjnQhejZ2i5trTkCSqz5H+cL1wdIMrDezqeuUUPag7QiAYENZc3fIRpG6X36e HY2jrBj9k50kNoACBAoNeWHlZUQ1RB0g5oorMwZBP6hDDUeSN1C1mRn59i5clth4hot1 CmUo4+pq1z3tYMZeQKc6ptgK/gNQmgsDRgzQaLSFPzn00s927zhDOeM8miRicviMg/7i 1Z1GdcjDUKyUr8uw/gxRa/9yMooADkhXHlDCXEw47+AKMCdqCzBH1LhVi7ZJFooZISAH PRVkePgiS+JFMRufBfMgenXkwGp/OMI/4Tb6lW1nGrwlnPh0EUO+TUjLSHI49yGjI/z/ ttUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=BFe4Euni; 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 g127si12837696pgc.135.2019.04.11.03.23.45; Thu, 11 Apr 2019 03:24:00 -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=BFe4Euni; 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 S1726678AbfDKKXL (ORCPT + 99 others); Thu, 11 Apr 2019 06:23:11 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:32476 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbfDKKXL (ORCPT ); Thu, 11 Apr 2019 06:23:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1554978190; x=1586514190; h=from:to:subject:date:message-id:mime-version; bh=ZdwRQPKamKRhDq4hZZRT4OqvNsRINrDHac1Ji29q3kM=; b=BFe4EunidO+S6/DoqdcbX2wQwsfhRZkBifVzTKn3AVVtGsoZoWK2nmuY bJkWWgIcBhhsLYVKtjaebo4b8y6cowr7xQ8Ns+YKKwoGMlEjE/mwoVSyQ ZJQbjbacotZLyIFrq/Wac91JBHbSf3SH4ouI2OtElhbRVA+jh4/pVtNo7 g=; X-IronPort-AV: E=Sophos;i="5.60,337,1549929600"; d="scan'208";a="727378066" Received: from iad6-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1e-c7c08562.us-east-1.amazon.com) ([10.124.125.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Apr 2019 10:23:08 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-c7c08562.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id x3BAN6k2067872 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 11 Apr 2019 10:23:06 GMT Received: from EX13D01EUB001.ant.amazon.com (10.43.166.194) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 11 Apr 2019 10:23:05 +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, 11 Apr 2019 10:22:58 +0000 From: Talel Shenhar To: , , , , , , , , , , , , Subject: [PATCH v3 0/2] Amazon's Annapurna Labs Thermal Sensor Driver Date: Thu, 11 Apr 2019 13:22:46 +0300 Message-ID: <1554978168-17369-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: EX13D15UWB001.ant.amazon.com (10.43.161.254) 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 v2: ================= - dt-binding: changed node name from "thermal_z0" to "thermal-z0" - dt-binding: changed node name from thermalz0_crit to "critical" 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