From 84038fdc0ce47e229eabf8e030ce6d3e1cf45874 Mon Sep 17 00:00:00 2001 From: JohnTheCoolingFan Date: Thu, 5 Dec 2024 10:07:41 +0300 Subject: [PATCH] BigTreeTech CB2: fix pcie reset gpios --- .../archive/rockchip64-6.12/dt/rk3566-bigtreetech-cb2.dts | 8 +++++++- .../archive/rockchip64-6.6/dt/rk3566-bigtreetech-cb2.dts | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/dt/rk3566-bigtreetech-cb2.dts b/patch/kernel/archive/rockchip64-6.12/dt/rk3566-bigtreetech-cb2.dts index 9d6c690c3a03..2e3333a2a12e 100644 --- a/patch/kernel/archive/rockchip64-6.12/dt/rk3566-bigtreetech-cb2.dts +++ b/patch/kernel/archive/rockchip64-6.12/dt/rk3566-bigtreetech-cb2.dts @@ -677,7 +677,9 @@ }; &pcie2x1 { - reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_reset_h>; vpcie3v3-supply = <&vcc3v3_pcie>; status = "okay"; }; @@ -780,6 +782,10 @@ pcie_drv: pcie-drv { rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; }; + + pcie_reset_h: pcie-reset-h { + rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; edp { diff --git a/patch/kernel/archive/rockchip64-6.6/dt/rk3566-bigtreetech-cb2.dts b/patch/kernel/archive/rockchip64-6.6/dt/rk3566-bigtreetech-cb2.dts index 0a2338f6ec42..9df0470b9fa1 100644 --- a/patch/kernel/archive/rockchip64-6.6/dt/rk3566-bigtreetech-cb2.dts +++ b/patch/kernel/archive/rockchip64-6.6/dt/rk3566-bigtreetech-cb2.dts @@ -677,7 +677,9 @@ }; &pcie2x1 { - reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_reset_h>; vpcie3v3-supply = <&vcc3v3_pcie>; status = "okay"; }; @@ -780,6 +782,10 @@ pcie_drv: pcie-drv { rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; }; + + pcie_reset_h: pcie-reset-h { + rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; edp {