Skip to content

Commit 784359b

Browse files
Caesar-githubmmind
authored andcommitted
ARM: dts: rockchip: Add OTP gpio pinctrl to rk3288 tsadc node
Add the "init" anf "sleep" pinctrl as the OTP gpio state. We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. "init" pinctrl property is defined by Doug's Patch[0]. Patch[0]: https://patchwork.kernel.org/patch/7454311/ Signed-off-by: Caesar Wang <wxt@rock-chips.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 9849267 commit 784359b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

arch/arm/boot/dts/rk3288.dtsi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,10 @@
452452
clock-names = "tsadc", "apb_pclk";
453453
resets = <&cru SRST_TSADC>;
454454
reset-names = "tsadc-apb";
455-
pinctrl-names = "default";
456-
pinctrl-0 = <&otp_out>;
455+
pinctrl-names = "init", "default", "sleep";
456+
pinctrl-0 = <&otp_gpio>;
457+
pinctrl-1 = <&otp_out>;
458+
pinctrl-2 = <&otp_gpio>;
457459
#thermal-sensor-cells = <1>;
458460
rockchip,hw-tshut-temp = <95000>;
459461
status = "disabled";
@@ -1395,6 +1397,10 @@
13951397
};
13961398

13971399
tsadc {
1400+
otp_gpio: otp-gpio {
1401+
rockchip,pins = <0 10 RK_FUNC_GPIO &pcfg_pull_none>;
1402+
};
1403+
13981404
otp_out: otp-out {
13991405
rockchip,pins = <0 10 RK_FUNC_1 &pcfg_pull_none>;
14001406
};

0 commit comments

Comments
 (0)