aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2020-04-22 12:46:07 +0200
committerAlexandre Torgue <[email protected]>2020-04-29 09:51:02 +0200
commit224771c947640613a822e7c8fa0d6d7d87fbd266 (patch)
treecbe313d0bf7e85f7a9e99cab8090e14cd6c351a2
parent077e0638fc8384c07d9647b9f73ec0d49b2f910e (diff)
ARM: dts: stm32: Enable Bluetooth on AV96
The WiFi/Bluetooth chip is attached to USART2 on AV96 as well, describe it in DT to make it available. Remove BT LED and turn it into a shutdown GPIO, because the GPIO line controls the BT_REG_ON signal. The LED is just an indicator connected to the same line, but not the primary function. Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Cc: Alexandre Torgue <[email protected]> Cc: Manivannan Sadhasivam <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: Patrice Chotard <[email protected]> Cc: Patrick Delaunay <[email protected]> Cc: [email protected] To: [email protected] Signed-off-by: Alexandre Torgue <[email protected]>
-rw-r--r--arch/arm/boot/dts/stm32mp157a-avenger96.dts23
1 files changed, 16 insertions, 7 deletions
diff --git a/arch/arm/boot/dts/stm32mp157a-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
index 310329a456ed..ebf34ae15185 100644
--- a/arch/arm/boot/dts/stm32mp157a-avenger96.dts
+++ b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
@@ -21,6 +21,7 @@
mmc0 = &sdmmc1;
serial0 = &uart4;
serial1 = &uart7;
+ serial2 = &usart2;
spi0 = &qspi;
};
@@ -63,13 +64,6 @@
default-state = "off";
panic-indicator;
};
-
- led5 {
- label = "blue:bt";
- gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
- linux,default-trigger = "bluetooth-power";
- default-state = "off";
- };
};
sd_switch: regulator-sd_switch {
@@ -419,3 +413,18 @@
pinctrl-0 = <&uart7_pins_a>;
status = "okay";
};
+
+/* Bluetooth */
+&usart2 {
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&usart2_pins_a>;
+ pinctrl-1 = <&usart2_sleep_pins_a>;
+ st,hw-flow-ctrl;
+ status = "okay";
+
+ bluetooth {
+ compatible = "brcm,bcm43438-bt";
+ max-speed = <3000000>;
+ shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
+ };
+};