From 68eae1414ebd6e14d62a7b933f15e00907f57eb4 Mon Sep 17 00:00:00 2001 From: by-gnome Date: Thu, 12 Nov 2020 17:47:43 +0300 Subject: [PATCH] iMX6: use Bluetooth HCI UART driver in Wandboard C1 and CuBox-i 1.3 Patch: add bluetooth node to device tree so HCI UART driver can load patchram file to BCM4329/4330 chips. --- ...x6qdl-wandboard-revc1-dtsi-bluetooth.patch | 37 +++++++++++++++++++ ...1-imx6qdl-sr-som-brcm-dtsi-bluetooth.patch | 15 ++++++++ 2 files changed, 52 insertions(+) create mode 100644 projects/NXP/devices/iMX6/patches/linux/linux-001-imx6qdl-wandboard-revc1-dtsi-bluetooth.patch create mode 100644 projects/NXP/devices/iMX6/patches/linux/linux-011-imx6qdl-sr-som-brcm-dtsi-bluetooth.patch diff --git a/projects/NXP/devices/iMX6/patches/linux/linux-001-imx6qdl-wandboard-revc1-dtsi-bluetooth.patch b/projects/NXP/devices/iMX6/patches/linux/linux-001-imx6qdl-wandboard-revc1-dtsi-bluetooth.patch new file mode 100644 index 0000000000..d881166f30 --- /dev/null +++ b/projects/NXP/devices/iMX6/patches/linux/linux-001-imx6qdl-wandboard-revc1-dtsi-bluetooth.patch @@ -0,0 +1,37 @@ +Add MMC power sequence for usdhc2. +Add bluetooth node to uart3. + +--- a/arch/arm/boot/dts/imx6qdl-wandboard-revc1.dtsi ++++ b/arch/arm/boot/dts/imx6qdl-wandboard-revc1.dtsi +@@ -6,6 +6,15 @@ + + #include "imx6qdl-wandboard.dtsi" + ++/ { ++ pwrseq_usdhc2: usdhc2pwrseq { ++ compatible = "mmc-pwrseq-simple"; ++ reset-gpios = <&gpio1 26 GPIO_ACTIVE_LOW>, /* WL_REG_ON */ ++ <&gpio5 30 GPIO_ACTIVE_LOW>, /* BT_REG_ON */ ++ <&gpio5 21 GPIO_ACTIVE_LOW>; /* BT_RST_N */ ++ }; ++}; ++ + &iomuxc { + pinctrl-0 = <&pinctrl_hog>; + +@@ -28,8 +37,15 @@ + }; + }; + ++&uart3 { ++ bluetooth { ++ compatible = "brcm,bcm4330-bt"; ++ }; ++}; ++ + &usdhc2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2>; ++ mmc-pwrseq = <&pwrseq_usdhc2>; + status = "okay"; + }; diff --git a/projects/NXP/devices/iMX6/patches/linux/linux-011-imx6qdl-sr-som-brcm-dtsi-bluetooth.patch b/projects/NXP/devices/iMX6/patches/linux/linux-011-imx6qdl-sr-som-brcm-dtsi-bluetooth.patch new file mode 100644 index 0000000000..91f62bc157 --- /dev/null +++ b/projects/NXP/devices/iMX6/patches/linux/linux-011-imx6qdl-sr-som-brcm-dtsi-bluetooth.patch @@ -0,0 +1,15 @@ +Add bluetooth node to uart4. + +--- a/arch/arm/boot/dts/imx6qdl-sr-som-brcm.dtsi ++++ b/arch/arm/boot/dts/imx6qdl-sr-som-brcm.dtsi +@@ -128,6 +127,10 @@ + pinctrl-0 = <&pinctrl_microsom_brcm_bt &pinctrl_microsom_uart4>; + uart-has-rtscts; + status = "okay"; ++ ++ bluetooth { ++ compatible = "brcm,bcm4330-bt"; ++ }; + }; + + /* USDHC1 - Connected to optional BRCM Wifi/BT/FM */