[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181227215020.9803-1-martin.blumenstingl@googlemail.com>
Date: Thu, 27 Dec 2018 22:50:18 +0100
From: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
To: linux-amlogic@...ts.infradead.org, devicetree@...r.kernel.org,
linux-iio@...r.kernel.org, jic23@...nel.org, lars@...afoo.de,
pmeerw@...erw.net, robh+dt@...nel.org, mark.rutland@....com
Cc: balbes-150@...dex.ru, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Subject: [PATCH 0/2] meson-saradc: temperature sensor support for Meson8b/Meson8m2
This adds support for the temperature sensor on Meson8b and Meson8m2
(both are sharing the same logic).
These SoCs can use most of the existing infrastructure that we already
have for Meson8:
- parsing the TSC (calibration data) from an nvmem-cell
- the math to calculate millicelsius from the register values
What this series adds on top of the existing infrastructure:
- The TSC data is 5-bit wide instead of 4-bit. The upper-most bit has t
be written into a register in the HHI area (which is outside the ADC
register space). Thus this adds a new device tree property to pass the
HHI syscon to the SAR ADC and we set up this register during SAR ADC
driver initialization
- the multiplier and divider values (to convert the raw register value
to celsius / millicelsius) are different compared to Meson8
This was successfully tested on multiple boards:
- Meson8b Odroid-C1 (me)
- Meson8b EC-100 (me)
- Meson8m2 M8S (not upstream yet, me)
- Meson8m2 MXIII-Plus (an earlier version of this series, Oleg Ivanov)
Martin Blumenstingl (2):
dt-bindings: iio: adc: meson-saradc: update temperature sensor support
iio: adc: meson-saradc: enable the temperature sensor two more SoCs
.../bindings/iio/adc/amlogic,meson-saradc.txt | 4 +++
drivers/iio/adc/meson_saradc.c | 33 +++++++++++++++++++
2 files changed, 37 insertions(+)
--
2.20.1
Powered by blists - more mailing lists