diff options
author | Elaine Zhang <zhangqing@rock-chips.com> | 2019-04-30 18:09:44 +0800 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2019-05-14 07:00:38 -0700 |
commit | 28694e009e512451ead5519dd801f9869acb1f60 (patch) | |
tree | 48c4ffc2ecf7deaed0f37d854e1be8187d6a87be /init | |
parent | fcc6d4cadadcc977911c6bfcdd95d379f4082c74 (diff) | |
download | linux-28694e009e512451ead5519dd801f9869acb1f60.tar.gz linux-28694e009e512451ead5519dd801f9869acb1f60.tar.bz2 linux-28694e009e512451ead5519dd801f9869acb1f60.zip |
thermal: rockchip: fix up the tsadc pinctrl setting error
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: Elaine Zhang <zhangqing@rock-chips.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions