Skip to content

Commit e746ed5

Browse files
sajattackandersson
authored andcommitted
arm64: dts: qcom: sdm845-lg: Add uarts and Bluetooth
uart9 is debug serial on USB SBU1/2 UART RX is SBU1 and UART TX is SBU2 of the USB-C port). 1.8V Logic Level Tested using pololu usb07a https://www.pololu.com/product/2585 and CH340 USB-UART uart6 is bluetooth Bluetooth: hci0: setting up wcn399x Bluetooth: hci0: QCA Product ID :0x0000000a Bluetooth: hci0: QCA SOC Version :0x40010214 Bluetooth: hci0: QCA ROM Version :0x00000201 Bluetooth: hci0: QCA Patch Version:0x00000001 Bluetooth: hci0: QCA controller version 0x02140201 Bluetooth: hci0: QCA Downloading qca/crbtfw21.tlv Bluetooth: hci0: QCA Downloading qca/judyln/crnv21.bin Bluetooth: hci0: QCA setup on UART is completed Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Paul Sajna <sajattack@postmarketos.org> Link: https://lore.kernel.org/r/20260331-judyln-dts-v7-6-87217b15fefb@postmarketos.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 4ec3045 commit e746ed5

3 files changed

Lines changed: 53 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,17 @@
2727
/delete-node/ &wlan_msa_mem;
2828

2929
/ {
30+
aliases {
31+
serial0 = &uart9;
32+
serial1 = &uart6;
33+
};
34+
3035
chosen {
3136
#address-cells = <2>;
3237
#size-cells = <2>;
3338
ranges;
39+
40+
stdout-path = "serial0:115200n8";
3441
};
3542

3643
reserved-memory {
@@ -498,6 +505,16 @@
498505
status = "okay";
499506
};
500507

508+
&qup_uart9_rx {
509+
drive-strength = <2>;
510+
bias-pull-up;
511+
};
512+
513+
&qup_uart9_tx {
514+
drive-strength = <2>;
515+
bias-disable;
516+
};
517+
501518
&sdhc_2 {
502519
cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
503520

@@ -548,6 +565,26 @@
548565
};
549566
};
550567

568+
&uart6 {
569+
pinctrl-0 = <&qup_uart6_4pin>;
570+
571+
status = "okay";
572+
573+
bluetooth: bluetooth {
574+
compatible = "qcom,wcn3990-bt";
575+
576+
vddio-supply = <&vreg_s4a_1p8>;
577+
vddxo-supply = <&vreg_l7a_1p8>;
578+
vddrf-supply = <&vreg_l17a_1p3>;
579+
vddch0-supply = <&vreg_l25a_3p3>;
580+
max-speed = <3200000>;
581+
};
582+
};
583+
584+
&uart9 {
585+
status = "okay";
586+
};
587+
551588
/*
552589
* UFS works partially and only with clk_ignore_unused.
553590
* Sometimes it crashes with I/O errors.

arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343
firmware-name = "qcom/sdm845/LG/judyln/adsp.mbn";
4444
};
4545

46+
&bluetooth {
47+
/*
48+
* This path is relative to the qca/
49+
* subdir under lib/firmware.
50+
*/
51+
firmware-name = "judyln/crnv21.bin";
52+
};
53+
4654
&cdsp_pas {
4755
firmware-name = "qcom/sdm845/LG/judyln/cdsp.mbn";
4856
};

arch/arm64/boot/dts/qcom/sdm845-lg-judyp.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
firmware-name = "qcom/sdm845/LG/judyp/adsp.mbn";
3030
};
3131

32+
&bluetooth {
33+
/*
34+
* This path is relative to the qca/
35+
* subdir under lib/firmware.
36+
*/
37+
firmware-name = "judyp/crnv21.bin";
38+
};
39+
3240
&cdsp_pas {
3341
firmware-name = "qcom/sdm845/LG/judyp/cdsp.mbn";
3442
};

0 commit comments

Comments
 (0)