diff mbox

ARM: dts: am3517-som: Add builtin Bluetooth

Message ID 20180608112736.27385-1-aford173@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Adam Ford June 8, 2018, 11:27 a.m. UTC
This enables the Bluetooth on the wl1271 available in some models
of the AM3517-SOM from Logic PD.

Signed-off-by: Adam Ford <aford173@gmail.com>

Comments

Tony Lindgren July 3, 2018, 7:21 a.m. UTC | #1
* Adam Ford <aford173@gmail.com> [180608 04:30]:
> This enables the Bluetooth on the wl1271 available in some models
> of the AM3517-SOM from Logic PD.

Applying into omap-for-v4.19/dt thanks.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/am3517-som.dtsi b/arch/arm/boot/dts/am3517-som.dtsi
index 9ec784746aab..5c109a587843 100644
--- a/arch/arm/boot/dts/am3517-som.dtsi
+++ b/arch/arm/boot/dts/am3517-som.dtsi
@@ -174,6 +174,16 @@ 
 	};
 };
 
+&uart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart2_pins>;
+
+	bluetooth {
+		compatible = "ti,wl1271-st";
+		enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; /* gpio 56 */
+		max-speed = <3000000>;
+	};
+};
 
 &omap3_pmx_core {
 
@@ -210,6 +220,16 @@ 
 			OMAP3_CORE1_IOPAD(0x20d2, PIN_INPUT | MUX_MODE4) /* gpmc_wait3.gpio_65 */
 		>;
 	};
+
+	uart2_pins: pinmux_uart2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT_PULLUP | MUX_MODE0)		/* uart2_cts */
+			OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT_PULLUP | MUX_MODE0)	/* uart2_rts */
+			OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)		/* uart2_tx */
+			OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)		/* uart2_rx */
+			OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT | MUX_MODE0)		/* gpio_56 */
+		>;
+	};
 };
 
 &omap3_pmx_wkup {