summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorElaine Zhang <zhangqing@rock-chips.com>2018-12-28 19:48:32 +0800
committerElaine Zhang <zhangqing@rock-chips.com>2018-12-29 10:18:46 +0800
commit35ae31482a56c6975a9884c2220982eb9b678eb4 (patch)
tree297c12d13e7f75d9e7a90417c7c9da63f8d63ebe /Documentation
parent75b880e190a6446e219ba1aab9fc28898774b69a (diff)
thermal: rockchip: add pinctrl control
Based on the TSADC Tshut mode to select pinctrl, instead of setting pinctrl based on architecture (Not depends on pinctrl setting by "init" or "default"). And it requires setting the tshut polarity before select pinctrl. Change-Id: Iac9ca05073b0181ee13b0048d0c2a54204f82bca Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/thermal/rockchip-thermal.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt b/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt
index 0523e433b82d..5d256ebd6870 100644
--- a/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt
+++ b/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt
@@ -23,10 +23,10 @@ Required properties:
See ../reset/reset.txt for details.
- reset-names : Must include the name "tsadc-apb".
- pinctrl-names : The pin control state names;
-- pinctrl-0 : The "init" pinctrl state, it will be set before device probe.
-- pinctrl-1 : The "default" pinctrl state, it will be set after reset the
- TSADC controller.
-- pinctrl-2 : The "sleep" pinctrl state, it will be in for suspend.
+- pinctrl-0 : The "gpio" pinctrl state, it will be set if tsadc via reset
+ CRU when tshut.
+- pinctrl-1 : The "otpout" pinctrl state, it will be set if tsadc via set
+ otpout_gpio when tshut.
- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description.
Optional properties:
@@ -45,10 +45,9 @@ tsadc: tsadc@ff280000 {
clock-names = "tsadc", "apb_pclk";
resets = <&cru SRST_TSADC>;
reset-names = "tsadc-apb";
- pinctrl-names = "init", "default", "sleep";
+ pinctrl-names = "gpio", "otpout";
pinctrl-0 = <&otp_gpio>;
pinctrl-1 = <&otp_out>;
- pinctrl-2 = <&otp_gpio>;
#thermal-sensor-cells = <1>;
rockchip,hw-tshut-temp = <95000>;
rockchip,hw-tshut-mode = <0>;