imx6: refresh and update target kernel configs
[openwrt/openwrt.git] / target / linux / imx6 / patches-5.4 / 009-v5.8-ARM-dts-imx6qdl-gw5910-add-support-for-bcm4330-bt.patch
1 From d40edafe80569c5b4d8893c1cdd1060c54ef433c Mon Sep 17 00:00:00 2001
2 From: Tim Harvey <tharvey@gateworks.com>
3 Date: Tue, 12 May 2020 14:54:15 -0700
4 Subject: [PATCH 07/20] ARM: dts: imx6qdl-gw5910: add support for bcm4330-bt
5
6 The Sterling-LWB has a BCM4330 which has a UART based bluetooth
7 HCI. Add support for binding to the bcm_hci driver to take care
8 of handling the shutdown gpio and loading firmware.
9
10 Because the shutdown gpio is more of an enable than a regulator
11 go ahead and replace the regulator with a shutdown-gpio.
12
13 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
14 Signed-off-by: Shawn Guo <shawnguo@kernel.org>
15 ---
16 arch/arm/boot/dts/imx6qdl-gw5910.dtsi | 32 ++++++++++++--------------------
17 1 file changed, 12 insertions(+), 20 deletions(-)
18
19 --- a/arch/arm/boot/dts/imx6qdl-gw5910.dtsi
20 +++ b/arch/arm/boot/dts/imx6qdl-gw5910.dtsi
21 @@ -81,19 +81,6 @@
22 regulator-max-microvolt = <3300000>;
23 regulator-always-on;
24 };
25 -
26 - reg_bt: regulator-bt {
27 - pinctrl-names = "default";
28 - pinctrl-0 = <&pinctrl_reg_bt>;
29 - compatible = "regulator-fixed";
30 - regulator-name = "bt";
31 - gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
32 - startup-delay-us = <100>;
33 - enable-active-high;
34 - regulator-min-microvolt = <3300000>;
35 - regulator-max-microvolt = <3300000>;
36 - regulator-always-on;
37 - };
38 };
39
40
41 @@ -229,9 +216,14 @@
42 /* Sterling-LWB Bluetooth */
43 &uart4 {
44 pinctrl-names = "default";
45 - pinctrl-0 = <&pinctrl_uart4>;
46 + pinctrl-0 = <&pinctrl_uart4>,<&pinctrl_bten>;
47 uart-has-rtscts;
48 status = "okay";
49 +
50 + bluetooth {
51 + compatible = "brcm,bcm4330-bt";
52 + shutdown-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
53 + };
54 };
55
56 /* GPS */
57 @@ -286,6 +278,12 @@
58 >;
59 };
60
61 + pinctrl_bten: btengrp {
62 + fsl,pins = <
63 + MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b1
64 + >;
65 + };
66 +
67 pinctrl_ecspi3: escpi3grp {
68 fsl,pins = <
69 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
70 @@ -391,12 +389,6 @@
71 >;
72 };
73
74 - pinctrl_reg_bt: regbtgrp {
75 - fsl,pins = <
76 - MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b1
77 - >;
78 - };
79 -
80 pinctrl_reg_wl: regwlgrp {
81 fsl,pins = <
82 MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b1