From b48a277602b8cb1d58f91dd054a796fe7138ff23 Mon Sep 17 00:00:00 2001 From: Alex Zhao Date: Thu, 25 Nov 2021 16:24:18 +0800 Subject: [PATCH] arm64: dts: rockchip: add WIFI/BT for rk3588s evb1 Signed-off-by: Alex Zhao Change-Id: Ifa836565dc7c7c1ef5a29e043d3289ca4a624e8b --- .../boot/dts/rockchip/rk3588s-evb1-lp4x.dtsi | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-evb1-lp4x.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-evb1-lp4x.dtsi index 939b6d21ba2e..7b76464aa59b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-evb1-lp4x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s-evb1-lp4x.dtsi @@ -164,6 +164,30 @@ pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; }; + + wireless_bluetooth: wireless-bluetooth { + compatible = "bluetooth-platdata"; + clocks = <&hym8563>; + clock-names = "ext_clock"; + uart_rts_gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "rts_gpio"; + pinctrl-0 = <&uart8m1_rtsn>, <&bt_gpio>; + pinctrl-1 = <&uart8_gpios>; + BT,reset_gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; + BT,wake_gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; + BT,wake_host_irq = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + + wireless_wlan: wireless-wlan { + compatible = "wlan-platdata"; + wifi_chip_type = "ap6275p"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_irq>, <&wifi_poweren_gpio>; + WIFI,host_wake_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; + WIFI,poweren_gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; }; &backlight { @@ -172,6 +196,10 @@ status = "okay"; }; +&combphy0_ps { + status = "okay"; +}; + &dp0 { status = "okay"; }; @@ -438,6 +466,29 @@ rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + wireless-bluetooth { + uart8_gpios: uart8-gpios { + rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_gpio: bt-gpio { + rockchip,pins = + <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>, + <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>, + <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + + wireless-wlan { + wifi_host_wake_irq: wifi-host-wake-irq { + rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + wifi_poweren_gpio: wifi-poweren-gpio { + rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; }; &pwm11 { @@ -472,6 +523,12 @@ phy-supply = <&vcc5v0_host>; }; +&uart8 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart8m1_xfer &uart8m1_ctsn>; +}; + &usbdp_phy0 { orientation-switch; svid = <0xff01>;