arm64: dts: rockchip: enable DC charger detection pullup on Pinebook Pro
authorTobias Schramm <t.schramm@manjaro.org>
Tue, 14 Apr 2020 16:39:52 +0000 (18:39 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 19 Apr 2020 10:39:03 +0000 (12:39 +0200)
On the Pinebook Pro the DC charger is detected via an open collector
transistor attached to a GPIO. This GPIO requires its pullup to be
enabled for the detection to work reliably.

Fixes: 5a65505a6988 ("arm64: dts: rockchip: Add initial support for Pinebook Pro")
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
Link: https://lore.kernel.org/r/20200414163952.1093784-3-t.schramm@manjaro.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts

index c3f15f5..294d21b 100644 (file)
 
        dc-charger {
                dc_det_gpio: dc-det-gpio {
-                       rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
+                       rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
                };
        };