Justin Vreeland 794d92
From b86516452cfd94321900abe7c8ac843c146a8c53 Mon Sep 17 00:00:00 2001
Justin Vreeland 794d92
From: "H. Nikolaus Schaller" <hns@goldelico.com>
Justin Vreeland 794d92
Date: Sat, 3 Oct 2020 16:10:01 +0200
Justin Vreeland 794d92
Subject: ARM: dts: pandaboard es: add bluetooth uart for HCI
Justin Vreeland 794d92
Justin Vreeland 794d92
The wl271 bluetooth uart is connected to uart2.
Justin Vreeland 794d92
Setup a serdev uart child and separate bluetooth and uart2 pinmux
Justin Vreeland 794d92
from wl12xx pinmux to better group the pins and muxes.
Justin Vreeland 794d92
Justin Vreeland 794d92
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Justin Vreeland 794d92
Signed-off-by: Tony Lindgren <tony@atomide.com>
Justin Vreeland 794d92
---
Justin Vreeland 794d92
 arch/arm/boot/dts/omap4-panda-es.dts | 32 ++++++++++++++++++++++++++++++++
Justin Vreeland 794d92
 1 file changed, 32 insertions(+)
Justin Vreeland 794d92
Justin Vreeland 794d92
diff --git a/arch/arm/boot/dts/omap4-panda-es.dts b/arch/arm/boot/dts/omap4-panda-es.dts
Justin Vreeland 794d92
index 6afa8fd7c412d..7c6886cd738f0 100644
Justin Vreeland 794d92
--- a/arch/arm/boot/dts/omap4-panda-es.dts
Justin Vreeland 794d92
+++ b/arch/arm/boot/dts/omap4-panda-es.dts
Justin Vreeland 794d92
@@ -49,6 +49,22 @@
Justin Vreeland 794d92
 			OMAP4_IOPAD(0x0fc, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_113 */
Justin Vreeland 794d92
 		>;
Justin Vreeland 794d92
 	};
Justin Vreeland 794d92
+
Justin Vreeland 794d92
+	bt_pins: pinmux_bt_pins {
Justin Vreeland 794d92
+		pinctrl-single,pins = <
Justin Vreeland 794d92
+			OMAP4_IOPAD(0x06c, PIN_OUTPUT | MUX_MODE3)		/* gpmc_a22.gpio_46 - BTEN */
Justin Vreeland 794d92
+			OMAP4_IOPAD(0x072, PIN_OUTPUT_PULLUP | MUX_MODE3)	/* gpmc_a25.gpio_49 - BTWAKEUP */
Justin Vreeland 794d92
+		>;
Justin Vreeland 794d92
+	};
Justin Vreeland 794d92
+
Justin Vreeland 794d92
+	uart2_pins: pinmux_uart2_pins {
Justin Vreeland 794d92
+		pinctrl-single,pins = <
Justin Vreeland 794d92
+			OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0)	/* uart2_cts.uart2_cts - HCI */
Justin Vreeland 794d92
+			OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0)		/* uart2_rts.uart2_rts */
Justin Vreeland 794d92
+			OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0)	/* uart2_rx.uart2_rx */
Justin Vreeland 794d92
+			OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0)		/* uart2_tx.uart2_tx */
Justin Vreeland 794d92
+		>;
Justin Vreeland 794d92
+	};
Justin Vreeland 794d92
 };
Justin Vreeland 794d92
 
Justin Vreeland 794d92
 &led_wkgpio_pins {
Justin Vreeland 794d92
@@ -80,3 +96,19 @@
Justin Vreeland 794d92
 &gpio1_target {
Justin Vreeland 794d92
 	 ti,no-reset-on-init;
Justin Vreeland 794d92
 };
Justin Vreeland 794d92
+
Justin Vreeland 794d92
+&wl12xx_gpio {
Justin Vreeland 794d92
+	pinctrl-single,pins = <
Justin Vreeland 794d92
+		OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3)		/* gpmc_a19.gpio_43 */
Justin Vreeland 794d92
+		OMAP4_IOPAD(0x070, PIN_OUTPUT_PULLUP | MUX_MODE3)	/* gpmc_a24.gpio_48 */
Justin Vreeland 794d92
+	>;
Justin Vreeland 794d92
+};
Justin Vreeland 794d92
+
Justin Vreeland 794d92
+&uart2 {
Justin Vreeland 794d92
+	pinctrl-names = "default";
Justin Vreeland 794d92
+	pinctrl-0 = <&uart2_pins &bt_pins>;
Justin Vreeland 794d92
+	bluetooth: tiwi {
Justin Vreeland 794d92
+		compatible = "ti,wl1271-st";
Justin Vreeland 794d92
+		enable-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;	/* GPIO_46 */
Justin Vreeland 794d92
+	};
Justin Vreeland 794d92
+};
Justin Vreeland 794d92
-- 
Justin Vreeland 794d92
cgit 1.2.3-1.el7