devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Talel Shenhar <talel@amazon.com>
To: edubezval@gmail.com, rui.zhang@intel.com,
	linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	robh+dt@kernel.org, mark.rutland@arm.com,
	devicetree@vger.kernel.org, talel@amazon.com, hhhawa@amazon.com,
	jonnyc@amazon.com, ronenk@amazon.com, hanochu@amazon.com
Subject: [PATCH 0/2] Thermal MMIO Driver
Date: Sun, 3 Mar 2019 10:49:24 +0200	[thread overview]
Message-ID: <1551602966-2334-1-git-send-email-talel@amazon.com> (raw)

This series introduces the generic thermal MMIO driver that will use
memory mapped reads to get the temperature.  Any HW/System that
allows temperature reading by a single memory-mapped reading, be it
register or shared memory, is a potential candidate to work with this
driver.

This driver is most suitable for cases such as the following:
- The entire thermal HW setup is done by another SW entity (e.g.
  bootloader) and all that is left is to read the current temperature from
  a register.
- The thermal HW setup is done via an external CPU (e.g. micro-controller)
  and that CPU has is using shared memory that can be memory-mapped to this
  driver.
- The thermal HW setup and reading is done via CPLD, which exports the
  current temperature to the system via a register.
- The thermal HW is working out-of-the-box and only reports temperature via
  a single register access.



Talel Shenhar (2):
  dt-bindings: thermal: thermal_mmio: Add binding documentation
  thermal: Introduce thermal MMIO

 .../devicetree/bindings/thermal/thermal_mmio.txt   | 173 +++++++++++++++++
 drivers/thermal/Kconfig                            |  11 ++
 drivers/thermal/Makefile                           |   3 +
 drivers/thermal/thermal_mmio.c                     | 214 +++++++++++++++++++++
 4 files changed, 401 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/thermal/thermal_mmio.txt
 create mode 100644 drivers/thermal/thermal_mmio.c

-- 
2.7.4

             reply	other threads:[~2019-03-03  8:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-03  8:49 Talel Shenhar [this message]
2019-03-03  8:49 ` [PATCH 1/2] dt-bindings: thermal: thermal_mmio: Add binding documentation Talel Shenhar
2019-03-27 19:59   ` Rob Herring
2019-03-03  8:49 ` [PATCH 2/2] thermal: Introduce thermal MMIO Talel Shenhar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1551602966-2334-1-git-send-email-talel@amazon.com \
    --to=talel@amazon.com \
    --cc=devicetree@vger.kernel.org \
    --cc=edubezval@gmail.com \
    --cc=hanochu@amazon.com \
    --cc=hhhawa@amazon.com \
    --cc=jonnyc@amazon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=ronenk@amazon.com \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).