From b0da2145adfed0a756725d7c173379d69757ebd6 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Wed, 24 Dec 2025 01:04:17 +0100 Subject: [PATCH] rockchip64-6.18: mekotronics-r58-4x4: pcie2x1l0 (wifi) and pcie2x1l1 (rtl8169) - wifi doesn't come up; guess I'll have to add bus-range later - rtl8169 works --- .../dt/rk3588-blueberry-r58-4x4.dts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/patch/kernel/archive/rockchip64-6.18/dt/rk3588-blueberry-r58-4x4.dts b/patch/kernel/archive/rockchip64-6.18/dt/rk3588-blueberry-r58-4x4.dts index f7d852cb14..7f3bd4da17 100644 --- a/patch/kernel/archive/rockchip64-6.18/dt/rk3588-blueberry-r58-4x4.dts +++ b/patch/kernel/archive/rockchip64-6.18/dt/rk3588-blueberry-r58-4x4.dts @@ -99,6 +99,16 @@ vin-supply = <&vcc12v_dcin>; }; + vcc3v3_pcie2x1l1: vcc3v3-pcie2x1l1{ + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pcie2x1l1"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; + startup-delay-us = <10000>; + vin-supply = <&vcc12v_dcin>; + }; }; &cpu_b0 { @@ -197,6 +207,27 @@ status = "okay"; }; +// wifi BCM43752 +&pcie2x1l0 { + reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&combphy1_ps { // for &pcie2x1l0 (wifi) + status = "okay"; +}; + +/*for RTL8125B(S)_BG(S)_BI*/ +&pcie2x1l1 { + reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie2x1l1>; + status = "okay"; +}; + +&combphy2_psu { // for &pcie2x1l1 (rtl8125b) + status = "okay"; +}; + &pinctrl { vdd_sd { @@ -211,6 +242,12 @@ rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>; }; }; + + RTL8125B { + RTL8125B_isolate: RTL8125B-isolate { + rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; }; &sdhci {