All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: Add Baikal-T1 SoC Process, Voltage and Temp sensor support
@ 2020-03-06 13:26 Sergey.Semin
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey.Semin @ 2020-03-06 13:26 UTC (permalink / raw)
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Maxim Kaurkin,
	Pavel Parkhomenko, Ramil Zaripov, Ekaterina Skachko,
	Vadim Vlasov, Thomas Bogendoerfer, Paul Burton, Ralf Baechle,
	Jean Delvare, Guenter Roeck, Rob Herring, Mark Rutland,
	linux-hwmon, devicetree, linux-kernel

From: Serge Semin <fancer.lancer@gmail.com>

In order to keep track of Baikal-T1 SoC power consumption and make sure
the chip heating is within the normal temperature limits, there is
a dedicated hardware monitor sensor embedded into the SoC. It is based
on the Analog Bits PVT sensor but equipped with a vendor-specific control
wrapper, which ease an access to the sensors functionality. Fist of all it
provides an accessed to the sampled Temperature, Voltage and
Low/Standard/High Voltage thresholds. In addition the wrapper generates
an interrupt in case if one enabled for alarm thresholds or data ready
event. All of these functionality is implemented in the Baikal-T1 PVT
driver submitted within this patchset. Naturally there is also a patch,
which creates a corresponding yaml-based dt-binding file for the sensor.

This patchset is rebased and tested on the mainline Linux kernel 5.6-rc4:
commit 98d54f81e36b ("Linux 5.6-rc4").

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Signed-off-by: Maxim Kaurkin <Maxim.Kaurkin@baikalelectronics.ru>
Cc: Pavel Parkhomenko <Pavel.Parkhomenko@baikalelectronics.ru>
Cc: Ramil Zaripov <Ramil.Zaripov@baikalelectronics.ru>
Cc: Ekaterina Skachko <Ekaterina.Skachko@baikalelectronics.ru>
Cc: Vadim Vlasov <V.Vlasov@baikalelectronics.ru>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-hwmon@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

Serge Semin (2):
  dt-bindings: hwmon: Add Baikal-T1 PVT sensor bindings
  hwmon: Add Baikal-T1 PVT sensor driver

 .../devicetree/bindings/hwmon/be,bt1-pvt.yaml |  100 ++
 Documentation/hwmon/bt1-pvt.rst               |  113 ++
 drivers/hwmon/Kconfig                         |   29 +
 drivers/hwmon/Makefile                        |    1 +
 drivers/hwmon/bt1-pvt.c                       | 1147 +++++++++++++++++
 drivers/hwmon/bt1-pvt.h                       |  266 ++++
 6 files changed, 1656 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/be,bt1-pvt.yaml
 create mode 100644 Documentation/hwmon/bt1-pvt.rst
 create mode 100644 drivers/hwmon/bt1-pvt.c
 create mode 100644 drivers/hwmon/bt1-pvt.h

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-13 21:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200306132604.14312-1-Sergey.Semin@baikalelectronics.ru>
2020-03-06 13:26 ` [PATCH 1/2] dt-bindings: hwmon: Add Baikal-T1 PVT sensor bindings Sergey.Semin
2020-03-12 22:13   ` Rob Herring
2020-03-13 21:36     ` Sergey Semin
2020-03-06 13:26 ` [PATCH 2/2] hwmon: Add Baikal-T1 PVT sensor driver Sergey.Semin
2020-03-10  0:25 ` [PATCH 0/2] hwmon: Add Baikal-T1 SoC Process, Voltage and Temp sensor support Sergey Semin
2020-03-06 13:26 Sergey.Semin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.