Skip to content

Commit 105560b

Browse files
0x011011110andersson
authored andcommitted
arm64: dts: qcom: sc8280xp-x13s: Add bluetooth
The Lenovo Thinkpad X13s has a WCN6855 Bluetooth controller on uart2, add this. Signed-off-by: Steev Klimaszewski <[email protected]> Reviewed-by: Johan Hovold <[email protected]> Tested-by: Johan Hovold <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9db28f2 commit 105560b

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
aliases {
2525
i2c4 = &i2c4;
2626
i2c21 = &i2c21;
27+
serial1 = &uart2;
2728
};
2829

2930
wcd938x: audio-codec {
@@ -1067,6 +1068,32 @@
10671068
status = "okay";
10681069
};
10691070

1071+
&uart2 {
1072+
pinctrl-0 = <&uart2_default>;
1073+
pinctrl-names = "default";
1074+
1075+
status = "okay";
1076+
1077+
bluetooth {
1078+
compatible = "qcom,wcn6855-bt";
1079+
1080+
vddio-supply = <&vreg_s10b>;
1081+
vddbtcxmx-supply = <&vreg_s12b>;
1082+
vddrfacmn-supply = <&vreg_s12b>;
1083+
vddrfa0p8-supply = <&vreg_s12b>;
1084+
vddrfa1p2-supply = <&vreg_s11b>;
1085+
vddrfa1p7-supply = <&vreg_s1c>;
1086+
1087+
max-speed = <3200000>;
1088+
1089+
enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
1090+
swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>;
1091+
1092+
pinctrl-0 = <&bt_default>;
1093+
pinctrl-names = "default";
1094+
};
1095+
};
1096+
10701097
&usb_0 {
10711098
status = "okay";
10721099
};
@@ -1187,6 +1214,21 @@
11871214
&tlmm {
11881215
gpio-reserved-ranges = <70 2>, <74 6>, <83 4>, <125 2>, <128 2>, <154 7>;
11891216

1217+
bt_default: bt-default-state {
1218+
hstp-bt-en-pins {
1219+
pins = "gpio133";
1220+
function = "gpio";
1221+
drive-strength = <16>;
1222+
bias-disable;
1223+
};
1224+
1225+
hstp-sw-ctrl-pins {
1226+
pins = "gpio132";
1227+
function = "gpio";
1228+
bias-pull-down;
1229+
};
1230+
};
1231+
11901232
edp_reg_en: edp-reg-en-state {
11911233
pins = "gpio25";
11921234
function = "gpio";
@@ -1353,6 +1395,34 @@
13531395
};
13541396
};
13551397

1398+
uart2_default: uart2-default-state {
1399+
cts-pins {
1400+
pins = "gpio121";
1401+
function = "qup2";
1402+
bias-bus-hold;
1403+
};
1404+
1405+
rts-pins {
1406+
pins = "gpio122";
1407+
function = "qup2";
1408+
drive-strength = <2>;
1409+
bias-disable;
1410+
};
1411+
1412+
rx-pins {
1413+
pins = "gpio124";
1414+
function = "qup2";
1415+
bias-pull-up;
1416+
};
1417+
1418+
tx-pins {
1419+
pins = "gpio123";
1420+
function = "qup2";
1421+
drive-strength = <2>;
1422+
bias-disable;
1423+
};
1424+
};
1425+
13561426
usb0_sbu_default: usb0-sbu-state {
13571427
oe-n-pins {
13581428
pins = "gpio101";

0 commit comments

Comments
 (0)