summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-04-26 08:28:11 +0000
committermrg <mrg@NetBSD.org>2019-04-26 08:28:11 +0000
commit5caf8943ac45ff0468d91e473a4935bd3597cd30 (patch)
tree9b75ed5ea5df4935d13b29cad41249f3ddd1d2a1 /sys/dev
parent70c27caa3e2679adba3ceba5fee8079064830a0a (diff)
implement TSADC driver for rockchip RK3328 and RK3399. so far, only
tested on RK3399 but the RK3328 looks mostly the same and has a good chance of working too. add clock entries for "clk_tsadc" and "pclk_tsadc" to cru. exports "CPU" and "GPU" temp sensors. these currently limited to 5 degC resolution but can be reduced to sub 1 degC resolution with some interpolation. todo list: - handle setting various temp values - add interpolation between the 5degC intervals in sample data - handle DT trips/temp value defaults - interrupts aren't triggered (test by lowering warn/crit values), and once they work, make the interrupt do something - test on RK3328, and port to other rockchips (will require moving some part into per-chipset sections, such as code<->temp tables) thanks to jmcneill for help.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions