ARM: dts: udoo_neo: Add Bluetooth support
authorBreno Lima <breno.lima@nxp.com>
Mon, 23 Jan 2017 20:26:54 +0000 (18:26 -0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 29 Jan 2017 02:04:06 +0000 (10:04 +0800)
Udoo Neo has a TI WL1831 Bluetooth chip connected to the UART3 port.

Add support for it.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6sx-udoo-neo.dtsi

index efdfd85..49f466f 100644 (file)
                startup-delay-us = <70000>;
                enable-active-high;
        };
+
+       reg_bt: regulator-bt {
+               compatible = "regulator-fixed";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_bt_reg>;
+               enable-active-high;
+               gpio = <&gpio2 17 GPIO_ACTIVE_HIGH>;
+               regulator-name = "bt_reg";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-always-on;
+       };
 };
 
 &cpu0 {
 };
 
 &iomuxc {
+       pinctrl_bt_reg: btreggrp {
+               fsl,pins =
+                       <MX6SX_PAD_KEY_ROW2__GPIO2_IO_17        0x15059>;
+       };
+
        pinctrl_enet1: enet1grp {
                fsl,pins =
                        <MX6SX_PAD_ENET1_CRS__GPIO2_IO_1        0xa0b1>,
                        <MX6SX_PAD_GPIO1_IO07__UART2_RX         0x1b0b1>;
        };
 
+       pinctrl_uart3: uart3grp {
+               fsl,pins =
+                       <MX6SX_PAD_SD3_DATA4__UART3_RX          0x13059>,
+                       <MX6SX_PAD_SD3_DATA5__UART3_TX          0x13059>,
+                       <MX6SX_PAD_SD3_DATA6__UART3_RTS_B       0x13059>,
+                       <MX6SX_PAD_SD3_DATA7__UART3_CTS_B       0x13059>;
+       };
+
        pinctrl_uart5: uart5grp {
                fsl,pins =
                        <MX6SX_PAD_SD4_DATA4__UART5_RX          0x1b0b1>,
        status = "disabled";
 };
 
+&uart3 { /* Bluetooth */
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart3>;
+       uart-has-rtscts;
+       status = "okay";
+};
+
 /* Arduino serial */
 &uart5 {
        pinctrl-names = "default";