Skip to contentSkip to conversation

SDM670 USB 2.0 support

PATCH Superseded Richard Acayan 3 participants 9 messages Sep 20, 2022 – Sep 22, 2022

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover SDM670 USB 2.0 support

This adds compatible strings for USB 2.0 on the Qualcomm Snapdragon 670. I have no way to test USB 3.0 because my SDM670 device doesn't have USB 3.

 Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml | 1 +
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml      | 1 +
 drivers/usb/dwc3/dwc3-qcom.c                              | 1 +
 3 files changed, 3 insertions(+)
#1 lore raw

PATCH 1/3 dt-bindings: phy: qcom,qusb2: document sdm670 compatible

The Snapdragon 670 uses the QUSB driver for USB 2.0. Document the compatible used in the device tree.

---
 Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +1 -0
index d68ab49345b8..636ea430fbff 100644
@@ -30,6 +30,7 @@ properties:
       - items:
           - enum:
               - qcom,sc7180-qusb2-phy
+              - qcom,sdm670-qusb2-phy
               - qcom,sdm845-qusb2-phy
               - qcom,sm6350-qusb2-phy
           - const: qcom,qusb2-v2-phy
Signature · 1 line
2.37.3
#3 lore raw

PATCH 2/3 dt-bindings: usb: dwc3: add sdm670 compatible

In reply to Richard Acayan

The Snapdragon 670 has DWC3 USB support. Add a compatible to reflect that.

---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +1 -0
index cd2f7cb6745a..021bd9ba4261 100644
@@ -26,6 +26,7 @@ properties:
           - qcom,sc7280-dwc3
           - qcom,sc8280xp-dwc3
           - qcom,sdm660-dwc3
+          - qcom,sdm670-dwc3
           - qcom,sdm845-dwc3
           - qcom,sdx55-dwc3
           - qcom,sdx65-dwc3
Signature · 7 lines
2.37.3


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
#6 lore raw

PATCH 3/3 usb: dwc3: qcom: add sdm670 compatible

In reply to Richard Acayan

The Snapdragon 670 has DWC3 USB support. Add a compatible for device tree semantics.

---
 drivers/usb/dwc3/dwc3-qcom.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/dwc3-qcom.c +1 -0
index 9a94b1ab8f7a..34b70c3c2f70 100644
@@ -1010,6 +1010,7 @@ static const struct of_device_id dwc3_qcom_of_match[] = {
 	{ .compatible = "qcom,msm8996-dwc3" },
 	{ .compatible = "qcom,msm8998-dwc3" },
 	{ .compatible = "qcom,sdm660-dwc3" },
+	{ .compatible = "qcom,sdm670-dwc3" },
 	{ .compatible = "qcom,sdm845-dwc3" },
 	{ }
 };
Signature · 1 line
2.37.3
Reviewed-by on v1 3/3
#7 lore raw

Re: [PATCH 3/3] usb: dwc3: qcom: add sdm670 compatible

Quoted 5 lines · Richard Acayan

The Snapdragon 670 has DWC3 USB support. Add a compatible for device tree semantics.

---

Konrad

Quoted 15 lines
 drivers/usb/dwc3/dwc3-qcom.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/dwc3-qcom.c +1 -0
index 9a94b1ab8f7a..34b70c3c2f70 100644
@@ -1010,6 +1010,7 @@ static const struct of_device_id dwc3_qcom_of_match[] = {
 	{ .compatible = "qcom,msm8996-dwc3" },
 	{ .compatible = "qcom,msm8998-dwc3" },
 	{ .compatible = "qcom,sdm660-dwc3" },
+	{ .compatible = "qcom,sdm670-dwc3" },
 	{ .compatible = "qcom,sdm845-dwc3" },
 	{ }
 };
#8 lore raw

Re: [PATCH 3/3] usb: dwc3: qcom: add sdm670 compatible

In reply to Richard Acayan
Quoted 13 lines · Richard Acayan

The Snapdragon 670 has DWC3 USB support. Add a compatible for device tree semantics.

---
 drivers/usb/dwc3/dwc3-qcom.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/dwc3-qcom.c +0 -0
index 9a94b1ab8f7a..34b70c3c2f70 100644

drivers/usb/dwc3/dwc3-qcom.c static const struct of_device_id dwc3_qcom_of_match[] = { · line 1014

Quoted 5 lines
drivers/usb/dwc3/dwc3-qcom.c +1 -0
@@ -1010,6 +1010,7 @@ static const struct of_device_id dwc3_qcom_of_match[] = {
 	{ .compatible = "qcom,msm8996-dwc3" },
 	{ .compatible = "qcom,msm8998-dwc3" },
 	{ .compatible = "qcom,sdm660-dwc3" },
+	{ .compatible = "qcom,sdm670-dwc3" },
 	{ .compatible = "qcom,sdm845-dwc3" },

No. This does not make sense. You already have fallback.

Best regards,
Krzysztof