ARM: dts: sun8i: h3: Enable AP6212 BT on uart3 on Nanopi M1 Plus
authorPhilipp Rossak <embed3d@gmail.com>
Wed, 30 Aug 2017 03:01:10 +0000 (05:01 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 17 Sep 2017 10:04:27 +0000 (12:04 +0200)
The BT side of the AP6212 WiFi/BT combo module is connected to
uart3.

Enable BT on this board by enabling uart3 with using additionally
the cts and rts pins.

Signed-off-by: Philipp Rossak <embed3d@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts

index ece275b..04800d3 100644 (file)
 / {
        model = "FriendlyArm NanoPi M1 Plus";
        compatible = "friendlyarm,nanopi-m1-plus", "allwinner,sun8i-h3";
+
+       aliases {
+               serial1 = &uart3;
+       };
 };
 
 &ehci1 {
@@ -68,3 +72,9 @@
 &ohci2 {
        status = "okay";
 };
+
+&uart3 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart3_pins>, <&uart3_rts_cts_pins>;
+       status = "okay";
+};