summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIskander Amara <iskander.amara@theobroma-systems.com>2024-03-08 09:52:42 +0100
committerHeiko Stuebner <heiko@sntech.de>2024-03-24 23:21:45 +0100
commit0ac417b8f124427c90ec8c2ef4f632b821d924cc (patch)
treece3033348c90b91d68f1f3c430b553bb9f79fe77
parenta2ac2a1b02590a22a236c43c455f421cdede45f5 (diff)
downloadlinux-stable-0ac417b8f124427c90ec8c2ef4f632b821d924cc.tar.gz
linux-stable-0ac417b8f124427c90ec8c2ef4f632b821d924cc.tar.bz2
linux-stable-0ac417b8f124427c90ec8c2ef4f632b821d924cc.zip
arm64: dts: rockchip: enable internal pull-up for Q7_THRM# on RK3399 Puma
Q7_THRM# pin is connected to a diode on the module which is used as a level shifter, and the pin have a pull-down enabled by default. We need to configure it to internal pull-up, other- wise whenever the pin is configured as INPUT and we try to control it externally the value will always remain zero. Signed-off-by: Iskander Amara <iskander.amara@theobroma-systems.com> Fixes: 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM") Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240308085243.69903-1-iskander.amara@theobroma-systems.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
index c08e69391c01..06f3e97af7cd 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
@@ -426,6 +426,16 @@
};
&pinctrl {
+ pinctrl-names = "default";
+ pinctrl-0 = <&q7_thermal_pin>;
+
+ gpios {
+ q7_thermal_pin: q7-thermal-pin {
+ rockchip,pins =
+ <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
i2c8 {
i2c8_xfer_a: i2c8-xfer {
rockchip,pins =