lkml.org 
[lkml]   [2018]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] meson-saradc: temperature sensor support for Meson8b/Meson8m2
Date
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

\
 
 \ /
  Last update: 2018-12-27 22:51    [W:0.054 / U:167.576 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site