Skip to content

Commit ab24307

Browse files
committed
sunxi: enable bluetooth on Olimex T113
Include the required firmware as well. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
1 parent 9ab5636 commit ab24307

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

target/linux/sunxi/image/cortexa7.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ define Device/olimex_olinuxino
347347
$(call Device/FitImageGzip)
348348
DEVICE_VENDOR := Olimex
349349
DEVICE_MODEL := T113 Olinuxino
350-
DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-rtl8723bs wpad-basic-mbedtls
350+
DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-rtl8723bs wpad-basic-mbedtls \
351+
rtl8723bs-firmware kmod-btrtl kmod-hci-uart
351352
SOC := sun8i-t113s
352353
IMAGE/sdcard.img.gz := sunxi-sdcard | append-metadata | gzip
353354
endef

target/linux/sunxi/patches-6.18/554-dts-add-olimex-t113-olinuxino.patch

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
sun8i-t3-cqa3t-bv3.dtb \
1111
--- /dev/null
1212
+++ b/arch/arm/boot/dts/allwinner/sun8i-t113s-olinuxino.dts
13-
@@ -0,0 +1,223 @@
13+
@@ -0,0 +1,229 @@
1414
+// SPDX-License-Identifier: (GPL-2.0+ or MIT)
1515
+// Copyright (C) 2022 Arm Ltd.
1616
+
@@ -158,6 +158,11 @@
158158
+ vcc-pe-supply = <&reg_avdd2v8>;
159159
+ vcc-pf-supply = <&reg_3v3>;
160160
+ vcc-pg-supply = <&reg_3v3>;
161+
+
162+
+ uart1_pg8_rts_pin: uart1-pg8-rts-pin {
163+
+ pins = "PG8";
164+
+ function = "uart1";
165+
+ };
161166
+};
162167
+
163168
+&reg_usb1_vbus {
@@ -225,11 +230,12 @@
225230
+/* Used for RTL8723BS bluetooth */
226231
+&uart1 {
227232
+ pinctrl-names = "default";
228-
+ pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_cts_pins>;
233+
+ pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_pin>;
229234
+ status = "okay";
230235
+
231236
+ bluetooth {
232237
+ compatible = "realtek,rtl8723bs-bt";
238+
+ reset-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* PD15 */
233239
+ device-wake-gpios = <&pio 6 15 GPIO_ACTIVE_HIGH>; /* PG15 */
234240
+ host-wake-gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>; /* PG9 */
235241
+ };

0 commit comments

Comments
 (0)