arm64: dts: rockchip: enable internal pull-up on PCIE_WAKE# for RK3399 Puma
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Fri, 8 Mar 2024 15:46:08 +0000 (16:46 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 24 Mar 2024 22:24:08 +0000 (23:24 +0100)
The PCIE_WAKE# has a diode used as a level-shifter, and is used as an
input pin. While the SoC default is to enable the pull-up, the core
rk3399 pinconf for this pin opted for pull-none. So as to not disturb
the behaviour of other boards which may rely on pull-none instead of
pull-up, set the needed pull-up only for RK3399 Puma.

Fixes: 60fd9f72ce8a ("arm64: dts: rockchip: add Haikou baseboard with RK3399-Q7 SoM")
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Link: https://lore.kernel.org/r/20240308-puma-diode-pu-v2-2-309f83da110a@theobroma-systems.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi

index a51ebb8f8b80f55b29ecde990898cd96fe67cb1b..2484ad2bd86fcbbe9321f14f2ee10aebc7732c1b 100644 (file)
        gpio1830-supply = <&vcc_1v8>;
 };
 
+&pcie_clkreqn_cpm {
+       rockchip,pins =
+               <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
+};
+
 &pinctrl {
        pinctrl-names = "default";
        pinctrl-0 = <&q7_thermal_pin>;