Re: [PATCH 01/14] ARM: dts: LogicPD Torpedo: Add WiLink UART node

From: Adam Ford
Date: Fri Dec 21 2018 - 15:06:15 EST


On Thu, Dec 20, 2018 at 7:18 PM Sebastian Reichel <sre@xxxxxxxxxx> wrote:
>
> From: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
>
> Add a node for the UART part of WiLink chip.
>
> Cc: Adam Ford <aford173@xxxxxxxxx>
> Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
> ---
> This is compile tested only!


I have tried this a few times, unfortunately, I cannot get the wl1283
to load the BT Firmware without timing out. The btwilink driver is
the only option that works for me.

[ 22.809600] Bluetooth: hci0: command 0xfd1c tx timeout
[ 31.206390] Bluetooth: hci0: send command failed
[ 31.211334] Bluetooth: hci0: download firmware failed, retrying...
[ 31.367767] Bluetooth: hci0: change remote baud rate command in firmware
[ 38.166351] Bluetooth: hci0: command 0xfd1c tx timeout
[ 46.566375] Bluetooth: hci0: send command failed
[ 46.571289] Bluetooth: hci0: download firmware failed, retrying...
[ 46.738250] Bluetooth: hci0: change remote baud rate command in firmware
[ 53.526336] Bluetooth: hci0: command 0xfd1c tx timeout

It times out, and tries again....and again....

Unless there is a driver fix to the BT UART, I don't think this should
be applied since I don't know what will happen if/when I try to use
the btwilink driver.

Having said that, I have no issues with the wl18xx and a wl127x on
other boards who don't need the btwilink driver. I think it's somehow
related to the wl1283

adam

> ---
> arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
> index 9d5d53fbe9c0..2699da12dc2d 100644
> --- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
> +++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
> @@ -54,6 +54,14 @@
> };
> };
>
> +&uart2 {
> + bluetooth {
> + compatible = "ti,wl1283-st";
> + enable-gpios = <&gpio6 2 GPIO_ACTIVE_HIGH>; /* gpio 162 */
> + max-speed = <3000000>;
> + };
> +};
> +
> &omap3_pmx_core {
> mmc3_pins: pinmux_mm3_pins {
> pinctrl-single,pins = <
> --
> 2.19.2
>