diff options
author | huweiguo <hwg@rock-chips.com> | 2017-06-23 10:04:24 +0800 |
---|---|---|
committer | Huang, Tao <huangtao@rock-chips.com> | 2017-06-23 15:53:21 +0800 |
commit | 0ee648d77c1b7a2d83c2950b2daf6cd20868b015 (patch) | |
tree | f23990d62c99b1bd4b7a361204a22e6e1dec3fab /arch/arm64/boot/dts/rockchip/rk3368-r88.dts | |
parent | e0da313aa4689dbe1c39046e246d4916abaa6e3f (diff) |
arm64: dts: rk3368-r88: wifi work up
Change-Id: I3b110916ac835be300253133a1977c7fd44bf332
Signed-off-by: huweiguo <hwg@rock-chips.com>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3368-r88.dts')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 51 |
1 files changed, 47 insertions, 4 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts index b70caccbf93c..9155e72d19aa 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts @@ -114,6 +114,47 @@ clock-output-names = "clkin_gmac"; #clock-cells = <0>; }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>; + + /* + * On the module itself this is one of these (depending + * on the actual card populated): + * - SDIO_RESET_L_WL_REG_ON + * - PDN (power down when low) + */ + reset-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; + }; + + wireless-wlan { + compatible = "wlan-platdata"; + rockchip,grf = <&grf>; + wifi_chip_type = "rtl8189es"; + sdio_vref = <1800>; + WIFI,host_wake_irq = <&gpio3 6 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + + wireless-bluetooth { + compatible = "bluetooth-platdata"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + /* wifi-bt-power-toggle; */ + uart_rts_gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "rts_gpio"; + pinctrl-0 = <&uart0_rts>; + pinctrl-1 = <&uart0_gpios>; + /* BT,power_gpio = <&gpio3 19 GPIO_ACTIVE_HIGH>; */ + BT,reset_gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>; + BT,wake_gpio = <&gpio3 2 GPIO_ACTIVE_HIGH>; + BT,wake_host_irq = <&gpio3 7 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; }; &emmc { @@ -448,13 +489,15 @@ }; }; - sdio { - wifi_reg_on: wifi-reg-on { + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { rockchip,pins = <3 4 RK_FUNC_GPIO &pcfg_pull_none>; }; + }; - bt_rst: bt-rst { - rockchip,pins = <3 5 RK_FUNC_GPIO &pcfg_pull_none>; + wireless-bluetooth { + uart0_gpios: uart0-gpios { + rockchip,pins = <2 27 RK_FUNC_GPIO &pcfg_pull_none>; }; }; |