Enable WCN6855 Bluetooth on lemans-evk via PCIe M.2 Key E connector
Subsystems (6)
cover Enable WCN6855 Bluetooth on lemans-evk via PCIe M.2 Key E connector
This series enables WCN6855 Bluetooth on the lemans EVK through the PCIe M.2 Key E connector + pwrseq-pcie-m2 path.
It depends on the "Fixes/improvements for the PCI M.2 power sequencing driver" series (V3):
https://lore.kernel.org/r/[email protected]
Patch 1 adds 0x1103 (WCN6855) to pwrseq_m2_pci_ids[] alongside the existing 0x1107 (WCN7850) entry, with compatible "qcom,wcn6855-bt".
Patch 2 describes the M.2 Key E connector on lemans-evk:
- pcie-m2-e-connector node, port@0 -> pcieport0,
port@3 -> uart17 (BT serdev path)
- vreg_dcin_12v (12V) + vreg_wcn_3p3 (3.3V, vin-supply 12V), both always-on/boot-on, as required by the binding
- compatible = "pciclass,0604" on pcieport0 in lemans.dtsi so the PCI subsystem can match the DT node to the PCI-to-PCI bridge
- serial1 = &uart17 alias
Wei Deng (2):
power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth
arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
arch/arm64/boot/dts/qcom/lemans-evk.dts | 75 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/lemans.dtsi | 1 + drivers/power/sequencing/pwrseq-pcie-m2.c | 2 + 3 files changed, 78 insertions(+)
Signature · 1 line
2.34.1
PATCH 1/2 power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth
WCN6855 is a Qualcomm Wi-Fi/BT combo chip that uses PCI device ID 0x1103. Add it to pwrseq_m2_pci_ids[] alongside the existing 0x1107 (WCN7850) entry, so that the pwrseq-pcie-m2 driver creates a Bluetooth serdev device for WCN6855 cards inserted into PCIe M.2 Key E connectors.
--- drivers/power/sequencing/pwrseq-pcie-m2.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/power/sequencing/pwrseq-pcie-m2.c +2 -0
@@ -188,6 +188,8 @@ static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq,static const struct pci_device_id pwrseq_m2_pci_ids[] = { {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, + {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1103 ), + .driver_data = (kernel_ulong_t )"qcom,wcn6855-bt" }, { }/* Sentinel */ };
Signature · 1 line
2.34.1
Re: [PATCH 1/2] power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth
Quoted 6 lines · Wei Deng
WCN6855 is a Qualcomm Wi-Fi/BT combo chip that uses PCI device ID
0x1103. Add it to pwrseq_m2_pci_ids[] alongside the existing0x1107(WCN7850) entry, so that the pwrseq-pcie-m2 driver creates a Bluetooth serdev device for WCN6855 cards inserted into PCIe M.2 Key E connectors.Signed-off-by Wei Deng <[email protected]>
- Mani
Quoted 18 lines
--- drivers/power/sequencing/pwrseq-pcie-m2.c | 2 ++ 1 file changed, 2 insertions(+)drivers/power/sequencing/pwrseq-pcie-m2.c +2
-1@@ -188,6 +188,8 @@ static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq,static const struct pci_device_id pwrseq_m2_pci_ids[] = { {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, + {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1103 ), + .driver_data = (kernel_ulong_t )"qcom,wcn6855-bt" }, { }/* Sentinel */ }; --
Quoted 3 lines
2.34.1
--
மணிவண்ணன் சதாசிவம்
PATCH v2 1/1 arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
In reply to Wei DengThe lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in lemans.dtsi to allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.
The M.2 Key E connector is powered by a 3.3V fixed regulator (vreg_wcn_3p3) which is sourced from the board's 12V DC input rail (vreg_dcin_12v). Both regulators are always-on and are required by the pcie-m2-e-connector binding.
Also add the serial1 = &uart17 alias, which is required for the Bluetooth serdev device to be enumerated on the UART17 interface.
---
Changes in v2:
- Collected Reviewed-by tag and reorganized the patch
arch/arm64/boot/dts/qcom/lemans-evk.dts | 75 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/lemans.dtsi | 1 + 2 files changed, 76 insertions(+)
arch/arm64/boot/dts/qcom/lemans-evk.dts +75 -0
@@ -21,6 +21,7 @@ aliases { ethernet0 = ðernet0; mmc1 = &sdhc; serial0 = &uart10; + serial1 = &uart17; serial2 = &uart0; };
@@ -88,6 +89,38 @@ usb2_con_hs_ep: endpoint { }; }; + connector-3 { + compatible = "pcie-m2-e-connector"; + vpcie3v3-supply = <&vreg_wcn_3p3>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_pcie_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&pcieport0_ep>; + }; + }; + + port@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_uart_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&uart17_ep>; + }; + }; + }; + }; + edp0-connector { compatible = "dp-connector"; label = "EDP0";
@@ -178,6 +211,17 @@ vmmc_sdc: regulator-vmmc-sdc { regulator-max-microvolt = <2950000>; }; + vreg_dcin_12v: regulator-dcin-12v { + compatible = "regulator-fixed"; + + regulator-name = "VREG_DCIN_12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + + regulator-always-on; + regulator-boot-on; + }; + vreg_sdc: regulator-vreg-sdc { compatible = "regulator-gpio";
@@ -191,6 +235,19 @@ vreg_sdc: regulator-vreg-sdc { startup-delay-us = <100>; }; + + vreg_wcn_3p3: regulator-wcn-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + vin-supply = <&vreg_dcin_12v>; + + regulator-always-on; + regulator-boot-on; + }; }; &apps_rsc {
@@ -742,6 +799,14 @@ &pcie1_phy { status = "okay"; }; +&pcieport0 { + port { + pcieport0_ep: endpoint { + remote-endpoint = <&m2_e_pcie_ep>; + }; + }; +}; + &pmm8654au_0_pon_resin { linux,code = <KEY_VOLUMEDOWN>; status = "okay";
@@ -970,6 +1035,16 @@ &uart10 { status = "okay"; }; +&uart17 { + status = "okay"; + + port { + uart17_ep: endpoint { + remote-endpoint = <&m2_e_uart_ep>; + }; + }; +}; + &ufs_mem_hc { reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; vcc-supply = <&vreg_l8a>;
arch/arm64/boot/dts/qcom/lemans.dtsi +1 -0
@@ -2779,6 +2779,7 @@ pcie0: pcie@1c00000 { status = "disabled"; pcieport0: pcie@0 { + compatible = "pciclass,0604"; device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>;
Signature · 1 line
2.34.1
Re: [PATCH v2] arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
Quoted 14 lines · Wei Deng
The lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in
lemans.dtsito allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.The M.2 Key E connector is powered by a 3.3V fixed regulator (
vreg_wcn_3p3) which is sourced from the board's 12V DC input rail (vreg_dcin_12v). Both regulators are always-on and are required by the pcie-m2-e-connector binding.
Quoted 8 lines
Also add the serial1 = &uart17 alias, which is required for the Bluetooth serdev device to be enumerated on the UART17 interface.
Signed-off-by Wei Deng <[email protected]>Reviewed-by Bartosz Golaszewski <[email protected]>---
Changes in v2:
- Collected Reviewed-by tag and reorganized the patch
Please don't send the patches as replies to the previous iterations. Each new revision should be in a separate thread.
Quoted 7 lines
arch/arm64/boot/dts/qcom/lemans-evk.dts | 75 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/lemans.dtsi | 1 + 2 files changed, 76 insertions(+)
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2] arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
Hi Dmitry,
Quoted 18 lines · Dmitry Baryshkov
Quoted 17 lines · Wei Deng
The lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in
lemans.dtsito allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.The M.2 Key E connector is powered by a 3.3V fixed regulator (
vreg_wcn_3p3) which is sourced from the board's 12V DC input rail (vreg_dcin_12v). Both regulators are always-on and are required by the pcie-m2-e-connector binding.Also add the serial1 = &uart17 alias, which is required for the Bluetooth serdev device to be enumerated on the UART17 interface.
Quoted 8 lines
Quoted 5 lines
Signed-off-by Wei Deng <[email protected]>Reviewed-by Bartosz Golaszewski <[email protected]>---
Changes in v2:
- Collected Reviewed-by tag and reorganized the patchPlease don't send the patches as replies to the previous iterations. Each new revision should be in a separate thread.
Thanks for the feedback. I will make sure to start a new thread for each new revision going forward.
Quoted 8 lines
Quoted 7 lines
arch/arm64/boot/dts/qcom/lemans-evk.dts | 75 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/lemans.dtsi | 1 + 2 files changed, 76 insertions(+)
Quoted 6 lines
Reviewed-by Dmitry Baryshkov <[email protected]>--
With best wishes
Dmitry
--
Best Regards,
Wei Deng
Re: [PATCH 1/2] power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth
In reply to Wei DengQuoted 15 lines · Wei Deng
WCN6855 is a Qualcomm Wi-Fi/BT combo chip that uses PCI device ID
0x1103. Add it to pwrseq_m2_pci_ids[] alongside the existing0x1107(WCN7850) entry, so that the pwrseq-pcie-m2 driver creates a Bluetooth serdev device for WCN6855 cards inserted into PCIe M.2 Key E connectors.Signed-off-by Wei Deng <[email protected]>--- drivers/power/sequencing/pwrseq-pcie-m2.c | 2 ++ 1 file changed, 2 insertions(+)drivers/power/sequencing/pwrseq-pcie-m2.c +0
-0
drivers/power/sequencing/pwrseq-pcie-m2.c static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq, · line 193
Quoted 6 lines
drivers/power/sequencing/pwrseq-pcie-m2.c +2
-0@@ -188,6 +188,8 @@ static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq,static const struct pci_device_id pwrseq_m2_pci_ids[] = { {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, + {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1103 ), + .driver_data = (kernel_ulong_t )"qcom,wcn6855-bt" }, { }/* Sentinel */
Please keep the list sorted. I saw that Bartosz has applied the patch. Would you please send a followup?
Quoted 5 lines
drivers/power/sequencing/pwrseq-pcie-m2.c +0
-0};Signature · 1 line
2.34.1
Signature · 2 lines
With best wishes Dmitry
PATCH 1/1 power: sequencing: pcie-m2: Sort PCI device IDs in ascending order
Sort the entries in pwrseq_m2_pci_ids[] by device ID in ascending order:0x1103 (WCN6855) before 0x1107 (WCN7850).
--- drivers/power/sequencing/pwrseq-pcie-m2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/power/sequencing/pwrseq-pcie-m2.c +2 -2
@@ -186,10 +186,10 @@ static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq, }static const struct pci_device_id pwrseq_m2_pci_ids[] = { - {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), - .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1103 ), .driver_data = (kernel_ulong_t )"qcom,wcn6855-bt" }, + {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), + .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, { }/* Sentinel */ };
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH] power: sequencing: pcie-m2: Sort PCI device IDs in ascending order
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines
Sort the entries in pwrseq_m2_pci_ids[] by device ID in ascending order:
0x1103(WCN6855) before0x1107(WCN7850).Fixes 2abcfdd91e6a ("power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth")Signed-off-by Wei Deng <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH] power: sequencing: pcie-m2: Sort PCI device IDs in ascending order
In reply to Wei DengQuoted 5 lines · Wei Deng
Sort the entries in pwrseq_m2_pci_ids[] by device ID in ascending order:
0x1103(WCN6855) before0x1107(WCN7850).Fixes 2abcfdd91e6a ("power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth")Signed-off-by Wei Deng <[email protected]>
Don't send patches as a reply to other patches. You should send them separately.
- Mani
Quoted 24 lines
--- drivers/power/sequencing/pwrseq-pcie-m2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/power/sequencing/pwrseq-pcie-m2.c +2
-2@@ -186,10 +186,10 @@ static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq, }static const struct pci_device_id pwrseq_m2_pci_ids[] = { - {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), - .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1103 ), .driver_data = (kernel_ulong_t )"qcom,wcn6855-bt" }, + {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), + .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, { }/* Sentinel */ };Signature · 1 line
2.34.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Re: [PATCH 1/2] power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth
In reply to Dmitry BaryshkovHi Dmitry,
Quoted 11 lines · Dmitry Baryshkov
Quoted 10 lines · Wei Deng
WCN6855 is a Qualcomm Wi-Fi/BT combo chip that uses PCI device ID
0x1103. Add it to pwrseq_m2_pci_ids[] alongside the existing0x1107(WCN7850) entry, so that the pwrseq-pcie-m2 driver creates a Bluetooth serdev device for WCN6855 cards inserted into PCIe M.2 Key E connectors.Signed-off-by Wei Deng <[email protected]>--- drivers/power/sequencing/pwrseq-pcie-m2.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 14 lines
drivers/power/sequencing/pwrseq-pcie-m2.c static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq, · line 193
Quoted 11 lines
drivers/power/sequencing/pwrseq-pcie-m2.c +2
-0@@ -188,6 +188,8 @@ static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq,static const struct pci_device_id pwrseq_m2_pci_ids[] = { {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1107 ), .driver_data = (kernel_ulong_t )"qcom,wcn7850-bt" }, + {PCI_DEVICE (PCI_VENDOR_ID_QCOM ,0x1103 ), + .driver_data = (kernel_ulong_t )"qcom,wcn6855-bt" }, { }/* Sentinel */ Please keep the list sorted. I saw that Bartosz has applied the patch. Would you please send a followup?
Thanks for the feedback. I have sent a followup patch to sort the list:
Quoted 5 lines
Quoted 5 lines
drivers/power/sequencing/pwrseq-pcie-m2.c +0
-1}; --2.34.1
--
Best Regards,
Wei Deng
PATCH 2/2 arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
In reply to Wei DengThe lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in lemans.dtsi to allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.
The M.2 Key E connector is powered by a 3.3V fixed regulator (vreg_wcn_3p3) which is sourced from the board's 12V DC input rail (vreg_dcin_12v). Both regulators are always-on and are required by the pcie-m2-e-connector binding.
Also add the serial1 = &uart17 alias, which is required for the Bluetooth serdev device to be enumerated on the UART17 interface.
--- arch/arm64/boot/dts/qcom/lemans-evk.dts | 75 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/lemans.dtsi | 1 + 2 files changed, 76 insertions(+)
arch/arm64/boot/dts/qcom/lemans-evk.dts +75 -0
@@ -21,6 +21,7 @@ aliases { ethernet0 = ðernet0; mmc1 = &sdhc; serial0 = &uart10; + serial1 = &uart17; serial2 = &uart0; };
@@ -88,6 +89,38 @@ usb2_con_hs_ep: endpoint { }; }; + connector-3 { + compatible = "pcie-m2-e-connector"; + vpcie3v3-supply = <&vreg_wcn_3p3>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_pcie_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&pcieport0_ep>; + }; + }; + + port@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_uart_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&uart17_ep>; + }; + }; + }; + }; + edp0-connector { compatible = "dp-connector"; label = "EDP0";
@@ -178,6 +211,17 @@ vmmc_sdc: regulator-vmmc-sdc { regulator-max-microvolt = <2950000>; }; + vreg_dcin_12v: regulator-dcin-12v { + compatible = "regulator-fixed"; + + regulator-name = "VREG_DCIN_12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + + regulator-always-on; + regulator-boot-on; + }; + vreg_sdc: regulator-vreg-sdc { compatible = "regulator-gpio";
@@ -191,6 +235,19 @@ vreg_sdc: regulator-vreg-sdc { startup-delay-us = <100>; }; + + vreg_wcn_3p3: regulator-wcn-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + vin-supply = <&vreg_dcin_12v>; + + regulator-always-on; + regulator-boot-on; + }; }; &apps_rsc {
@@ -742,6 +799,14 @@ &pcie1_phy { status = "okay"; }; +&pcieport0 { + port { + pcieport0_ep: endpoint { + remote-endpoint = <&m2_e_pcie_ep>; + }; + }; +}; + &pmm8654au_0_pon_resin { linux,code = <KEY_VOLUMEDOWN>; status = "okay";
@@ -970,6 +1035,16 @@ &uart10 { status = "okay"; }; +&uart17 { + status = "okay"; + + port { + uart17_ep: endpoint { + remote-endpoint = <&m2_e_uart_ep>; + }; + }; +}; + &ufs_mem_hc { reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; vcc-supply = <&vreg_l8a>;
arch/arm64/boot/dts/qcom/lemans.dtsi +1 -0
@@ -2779,6 +2779,7 @@ pcie0: pcie@1c00000 { status = "disabled"; pcieport0: pcie@0 { + compatible = "pciclass,0604"; device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>;
Signature · 1 line
2.34.1
Re: [PATCH 2/2] arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
Quoted 14 lines · Wei Deng
The lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in
lemans.dtsito allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.The M.2 Key E connector is powered by a 3.3V fixed regulator (
vreg_wcn_3p3) which is sourced from the board's 12V DC input rail (vreg_dcin_12v). Both regulators are always-on and are required by the pcie-m2-e-connector binding.
Quoted 5 lines
Also add the serial1 = &uart17 alias, which is required for the Bluetooth serdev device to be enumerated on the UART17 interface.
Signed-off-by Wei Deng <[email protected]>---
Re: [PATCH 2/2] arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
In reply to Wei DengQuoted 8 lines · Wei Deng
The lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in
lemans.dtsito allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.
Ideally this would be a separate change
Also, b4 can't grab this patch since there's something wrong with the threading (multiple series in a single thread) - please switch to using b4 for submissions yourself to avoid such mistakes.
https://b4.docs.kernel.org/en/latest/
Konrad
Re: [PATCH 2/2] arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
Hi Konrad,
Quoted 12 lines · Konrad Dybcio
Quoted 8 lines · Wei Deng
The lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in
lemans.dtsito allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.Ideally this would be a separate change
Quoted 7 lines
Also, b4 can't grab this patch since there's something wrong with the threading (multiple series in a single thread) - please switch to using b4 for submissions yourself to avoid such mistakes.
https://b4.docs.kernel.org/en/latest/
Konrad
Thanks for the review. Agreed. Posting shortly.
--
Best Regards,
Wei Deng
Re: [PATCH 2/2] arm64: dts: qcom: lemans-evk: Describe the PCIe M.2 Key E connector
In reply to Wei DengQuoted 14 lines · Wei Deng
The lemans EVK has the PCIe M.2 Mechanical Key E connector to connect wireless connectivity cards over PCIe and UART interfaces. Hence, describe the connector node and link it with the PCIe 0 Root Port and UART17 nodes through graph port/endpoint.
Also add 'compatible = "pciclass,0604"' to the pcieport0 node in
lemans.dtsito allow the PCI subsystem to associate the DT node with the PCI-to-PCI bridge device.The M.2 Key E connector is powered by a 3.3V fixed regulator (
vreg_wcn_3p3) which is sourced from the board's 12V DC input rail (vreg_dcin_12v). Both regulators are always-on and are required by the pcie-m2-e-connector binding.
Quoted 4 lines
Also add the serial1 = &uart17 alias, which is required for the Bluetooth serdev device to be enumerated on the UART17 interface.
Signed-off-by Wei Deng <[email protected]>
- Mani
Quoted 141 lines
--- arch/arm64/boot/dts/qcom/lemans-evk.dts | 75 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/lemans.dtsi | 1 + 2 files changed, 76 insertions(+)arch/arm64/boot/dts/qcom/lemans-evk.dts +75
-0@@ -21,6 +21,7 @@ aliases { ethernet0 = ðernet0; mmc1 = &sdhc; serial0 = &uart10; + serial1 = &uart17; serial2 = &uart0; };@@ -88,6 +89,38 @@ usb2_con_hs_ep: endpoint { }; }; + connector-3 { + compatible = "pcie-m2-e-connector"; + vpcie3v3-supply = <&vreg_wcn_3p3>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_pcie_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&pcieport0_ep>; + }; + }; + + port@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_uart_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&uart17_ep>; + }; + }; + }; + }; + edp0-connector { compatible = "dp-connector"; label = "EDP0";@@ -178,6 +211,17 @@ vmmc_sdc: regulator-vmmc-sdc { regulator-max-microvolt = <2950000>; }; + vreg_dcin_12v: regulator-dcin-12v { + compatible = "regulator-fixed"; + + regulator-name = "VREG_DCIN_12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + + regulator-always-on; + regulator-boot-on; + }; + vreg_sdc: regulator-vreg-sdc { compatible = "regulator-gpio";@@ -191,6 +235,19 @@ vreg_sdc: regulator-vreg-sdc { startup-delay-us = <100>; }; + + vreg_wcn_3p3: regulator-wcn-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + vin-supply = <&vreg_dcin_12v>; + + regulator-always-on; + regulator-boot-on; + }; }; &apps_rsc {@@ -742,6 +799,14 @@ &pcie1_phy { status = "okay"; }; +&pcieport0 { + port { + pcieport0_ep: endpoint { + remote-endpoint = <&m2_e_pcie_ep>; + }; + }; +}; + &pmm8654au_0_pon_resin { linux,code = <KEY_VOLUMEDOWN>; status = "okay";@@ -970,6 +1035,16 @@ &uart10 { status = "okay"; }; +&uart17 { + status = "okay"; + + port { + uart17_ep: endpoint { + remote-endpoint = <&m2_e_uart_ep>; + }; + }; +}; + &ufs_mem_hc { reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; vcc-supply = <&vreg_l8a>;arch/arm64/boot/dts/qcom/lemans.dtsi +1
-0@@ -2779,6 +2779,7 @@ pcie0: pcie@1c00000 { status = "disabled"; pcieport0: pcie@0 { + compatible = "pciclass,0604"; device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>;Signature · 1 line
2.34.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Bartosz Golaszewski
AppliedRe: (subset) [PATCH 0/2] Enable WCN6855 Bluetooth on lemans-evk via PCIe M.2 Key E connector
In reply to Wei DengQuoted 9 lines · Wei Deng
This series enables WCN6855 Bluetooth on the lemans EVK through the PCIe M.2 Key E connector + pwrseq-pcie-m2 path.
It depends on the "Fixes/improvements for the PCI M.2 power sequencing driver" series (V3):
https://lore.kernel.org/r/[email protected]
[...]
Applied, thanks!
[1/2] power: sequencing: pcie-m2: Add PCI ID 0x1103 for WCN6855 Bluetooth
https://git.kernel.org/brgl/c/bde2202a2fffd3137df9a0b4b8ffd8a44ef316f6
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>