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 7f04494bfa..60d78ed49f 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 @@ -122,6 +122,18 @@ vin-supply = <&vcc12v_dcin>; }; + vcc3v3_wlan: regulator-vcc3v3-wlan { + compatible = "regulator-fixed"; + regulator-name = "wlan-en"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_pwren>; + vin-supply = <&vcc12v_dcin>; + }; + hdmi0-con { compatible = "hdmi-connector"; type = "a"; @@ -305,7 +317,7 @@ status = "okay"; }; -&combphy0_ps { // @TODO: not in vendor, unused? +&combphy0_ps { status = "okay"; }; @@ -320,17 +332,36 @@ status = "okay"; }; -// wifi BCM43752 +// wifi BCM43752 [14e4:449d] &pcie2x1l0 { - reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_irq>; + reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_wlan>; status = "okay"; + + pcie@0,0 { + reg = <0x200000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + device_type = "pci"; + bus-range = <0x20 0x2f>; + + wifi: wifi@0,0 { + compatible = "pci14e4,449d"; + reg = <0x210000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &combphy1_ps { // for &pcie2x1l0 (wifi) status = "okay"; }; -/*for RTL8125B(S)_BG(S)_BI*/ +// RTL8125B(S)_BG(S)_BI [10ec:8125] &pcie2x1l1 { reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie2x1l1>; @@ -378,6 +409,16 @@ rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; }; }; + + wlan { + wifi_host_wake_irq: wifi-host-wake-irq { + rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + wifi_pwren: wifi-pwren { + rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; }; &saradc {