Add VTM thermal support. In the Voltage Thermal Management Module(VTM), K3 J72XX supplies a voltage reference and a temperature sensor feature that are gathered in the band gap voltage and temperature sensor (VBGAPTS) module. The band gap provides current and voltage reference for its internal circuits and other analog IP blocks. The analog-to-digital converter (ADC) produces an output value that is proportional to the silicon temperature. Currently reading temperatures only is supported. There are no active/passive cooling agent supported. J721e SoCs have errata i2128: https://www.ti.com/lit/pdf/sprz455 The series also incorporates workaround for Errata i2128. Changes in v9: * Fixed indentation in DT binding documentation * Added Rob's Reviewed-by Changes in v8: * Removed redundant items from compatible in the Documentation patch Changes in v7: * Separated the DT patches from this series. * Fixed description of reg property in the DT documentation patch. Changes in v6: * Fixed the DT comments that were missed in v5. * Changed the offsets, bit masks to 2-D array. * Clean up Changes in v5: * Simplified the computation of the table. * Removed unnecessary members in the structures. Changes in v4: * Fixed compilation warning with W=1. Changes in v3: * Removed static look up tables & added functions to dynamically generate them. Changes in v2: * Fixed DT binding errors. Keerthy (2): dt-bindings: thermal: k3-j72xx: Add VTM bindings documentation thermal: k3_j72xx_bandgap: Add the bandgap driver support .../bindings/thermal/ti,j72xx-thermal.yaml | 63 ++ drivers/thermal/Makefile | 2 +- drivers/thermal/k3_j72xx_bandgap.c | 566 ++++++++++++++++++ 3 files changed, 630 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml create mode 100644 drivers/thermal/k3_j72xx_bandgap.c -- 2.17.1