|
AP6335 蓝牙打开出错
发表于 2015-1-16 11:44:14
浏览:34681
|
回复:14
打印
只看该作者
[复制链接]
楼主
AP6335的wifi是OK的,但打开蓝牙时出错,串口的信息如下:
[62482.764031] rk_spdif:Entered spdif_snd_txctrl
[62482.764050] rk_spdif:off xfer=0x0,opr=0x10
[62483.262204] [BT_RFKILL]: Enter rfkill_rk_set_power
[62483.262237] [BT_RFKILL]: Set blocked:1
[62483.287849] [BT_RFKILL]: bt shut off power
[62483.299683] rk_hdmi_spdif:spdif:Entered rk_hw_params
[62483.299710] rk_spdif:Entered spdif_set_syclk, freq: 11289600
[62483.299723] rk_spdif:Entered spdif_hw_params
[62483.300168] rk_spdif:Entered spdif_trigger
[62483.300182] rk_spdif:Entered spdif_snd_txctrl
[62483.300192] rk_spdif:on xfer=0x0,opr=0x30
[62483.780106] [BT_RFKILL]: Enter rfkill_rk_set_power
[62483.780144] [BT_RFKILL]: Set blocked:0
[62483.780160] [BT_RFKILL]: Enter rfkill_rk_sleep_bt
[62483.780177] [BT_RFKILL]: *** bt sleep: 0 ***
[62483.838856] [BT_RFKILL]: ENABLE UART_RTS
[62483.947130] [BT_RFKILL]: DISABLE UART_RTS
[62483.947201] [BT_RFKILL]: bt turn on power
shell@rk3288:/ #
shell@rk3288:/ # [62486.215053] [BT_RFKILL]: Enter rfkill_rk_set_power
[62486.215138] [BT_RFKILL]: Set blocked:1
[62486.239843] [BT_RFKILL]: bt shut off power
[62487.138535] rk_spdif:Entered spdif_trigger
[62487.138604] rk_spdif:Entered spdif_snd_txctrl
[62487.138640] rk_spdif:off xfer=0x0,opr=0x10
初始化AP6335时,看到的串口信息如下:
[ 1.003292] [BT_RFKILL]: Enter rfkill_rk_init
[ 1.003394] [BT_RFKILL]: Enter rfkill_rk_probe
[ 1.003413] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 147.
[ 1.003430] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,power_gpio = 157.
[ 1.003453] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 154.
[ 1.003468] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 159.
[ 1.003498] [BT_RFKILL]: init gpio
[ 1.003518] [BT_RFKILL]: Request irq for bt wakeup host
[ 1.003604] [BT_RFKILL]: ** disable irq
[ 1.003614] [BT_RFKILL]: setup rfkill
[ 1.003686] [BT_RFKILL]: ap6335 device registered.
从上面的信息看,AP6335的蓝牙初始化是正常的,各位帮忙看看问题出在什么地方。
dts的配置如下:
wireless-bluetooth {
compatible = "bluetooth-platdata";
uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
pinctrl-names = "default","rts_gpio";
pinctrl-0 = <&uart0_rts>;
pinctrl-1 = <&uart0_rts_gpio>;
BT,power_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
status = "okay";
};
|
|