• Martin Blumenstingl's avatar
    ARM: dts: meson8: add the temperature calibration data for the SAR ADC · f4c6e8e2
    Martin Blumenstingl authored
    The SAR ADC can measure the chip temperature of the SoC. This only
    works if the chip is calibrated and if the calibration data is written
    to the correct registers. The calibration data is stored in the upper
    two bytes of eFuse offset 0x1f4.
    
    This adds the eFuse cell for the temperature calibration data and
    passes it to the SAR ADC. We also need to pass the HHI sysctrl node to
    the SAR ADC because the 4th TSC (temperature sensor calibration
    coefficient) bit is stored in the HHI region (unlike bits [3:0] which
    are stored directly inside the SAR ADC's register area).
    
    On boards that have the SAR ADC enabled channel 8 can be used to
    measure the chip temperature.
    Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
    Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
    f4c6e8e2
meson8.dtsi 14.6 KB