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.
This commit is contained in:
by-gnome 2020-11-12 17:47:43 +03:00
parent bfced7f6bb
commit 68eae1414e
2 changed files with 52 additions and 0 deletions

View File

@ -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";
};

View File

@ -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 */