From b4c9a5b4587397456e137d1a1d54b6225c673980 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Fri, 27 Jan 2017 12:50:06 +0100 Subject: [PATCH] arm64: zynqmp: Wire BT part of wl1831 BT requires flow control wired via PL runs at 3M. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu100.dts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/zynqmp-zcu100.dts b/arch/arm/dts/zynqmp-zcu100.dts index ec4d220a8b5..53f96b16a92 100644 --- a/arch/arm/dts/zynqmp-zcu100.dts +++ b/arch/arm/dts/zynqmp-zcu100.dts @@ -26,7 +26,8 @@ i2c0 = &i2c1; rtc0 = &rtc; serial0 = &uart1; - serial1 = &dcc; + serial1 = &uart0; + serial2 = &dcc; spi0 = &spi0; spi1 = &spi1; usb0 = &usb0; @@ -119,6 +120,32 @@ compatible = "mmc-pwrseq-simple"; reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>; /* WIFI_EN */ }; + + kim { /* Bluetooth driver for connection */ + compatible = "kim"; + status = "okay"; + /* + * FIXME: The following is complete CRAP since + * the vendor driver doesn't follow the gpio + * binding. Passing in a magic Linux gpio number + * here until we fix the vendor driver. + */ + /* FIXME BT_EN*/ + /* nshutdown_gpio = <&gpio 8 GPIO_ACTIVE_HIGH>; */ + nshutdown_gpio = <346>; /* 338 base + MIO8 */ + dev_name = "/dev/ttyPS1"; /* MIO2/3 */ + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + /* + * CONFIG_BT_WILINK - depends on + * btwilink: add minimal device tree support + * commit b3ef820a9310743d62cf50341f529ca17319dd77 + */ + btwilink { /* Bluetooth driver itself */ + status = "okay"; + compatible = "btwilink"; + }; }; &dcc { @@ -396,6 +423,10 @@ status = "okay"; }; +&uart0 { + status = "okay"; +}; + &uart1 { status = "okay"; }; -- 2.47.3