• Elaine Zhang's avatar
    thermal: rockchip: fix up the tsadc pinctrl setting error · 28694e00
    Elaine Zhang authored
    Explicitly use the pinctrl to set/unset the right mode
    instead of relying on the pinctrl init mode.
    And it requires setting the tshut polarity before select pinctrl.
    
    When the temperature sensor mode is set to 0, it will automatically
    reset the board via the Clock-Reset-Unit (CRU) if the over temperature
    threshold is reached. However, when the pinctrl initializes, it does a
    transition to "otp_out" which may lead the SoC restart all the time.
    
    "otp_out" IO may be connected to the RESET circuit on the hardware.
    If the IO is in the wrong state, it will trigger RESET.
    (similar to the effect of pressing the RESET button)
    which will cause the soc to restart all the time.
    Signed-off-by: default avatarElaine Zhang <zhangqing@rock-chips.com>
    Reviewed-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
    28694e00
rockchip_thermal.c 37.5 KB