Skip to content

Commit 0ac417b

Browse files
Iskander Amarammind
authored andcommitted
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 <[email protected]> Fixes: 2c66fc3 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM") Reviewed-by: Quentin Schulz <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent a2ac2a1 commit 0ac417b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,16 @@
426426
};
427427

428428
&pinctrl {
429+
pinctrl-names = "default";
430+
pinctrl-0 = <&q7_thermal_pin>;
431+
432+
gpios {
433+
q7_thermal_pin: q7-thermal-pin {
434+
rockchip,pins =
435+
<0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
436+
};
437+
};
438+
429439
i2c8 {
430440
i2c8_xfer_a: i2c8-xfer {
431441
rockchip,pins =

0 commit comments

Comments
 (0)