From 1ccd57c4b028ff3fdf84a9a50d0394bc9dffcd74 Mon Sep 17 00:00:00 2001 From: Xu Xuehui Date: Fri, 28 Jul 2023 12:03:43 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3588-vehicle-s66-v10 support wifi/bt Change-Id: I40ee7f85aebc7400e745cda9c7f20b14aded9d09 Signed-off-by: Xu Xuehui --- .../dts/rockchip/rk3588-vehicle-s66-v10.dtsi | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-vehicle-s66-v10.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-vehicle-s66-v10.dtsi index 5080e20b8c44..6cd0f027bacc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-vehicle-s66-v10.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-vehicle-s66-v10.dtsi @@ -48,6 +48,18 @@ vin-supply = <&avcc_1v8_s0>; }; + vcc3v3_pcie_wifi: vcc3v3-pcie-wifi { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pcie_wifi"; + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; + startup-delay-us = <5000>; + vin-supply = <&vcc_3v3_s0>; + }; + vcc5v0_host: vcc5v0-host { compatible = "regulator-fixed"; regulator-name = "vcc5v0_host"; @@ -62,6 +74,19 @@ //pinctrl-0 = <&vcc5v0_host_en>; //TODO: should powered by MCU }; + + wireless_bluetooth: wireless-bluetooth { + compatible = "bluetooth-platdata"; + BT,reset_gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + + wireless_wlan: wireless-wlan { + compatible = "wlan-platdata"; + wifi_chip_type = "ap6398s"; + WIFI,poweren_gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; }; &combphy0_ps { @@ -142,7 +167,10 @@ }; &pcie2x1l2 { + reset-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>; rockchip,skip-scan-in-resume; + rockchip,perst-inactive-ms = <500>; + vpcie3v3-supply = <&vcc3v3_pcie_wifi>; status = "okay"; }; @@ -164,6 +192,12 @@ status = "disabled"; }; +&uart1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart1m1_xfer &uart1m1_ctsn &uart1m1_rtsn>; +}; + &u2phy1_otg { phy-supply = <&vcc5v0_host>; };