SDM670 USB 2.0 support
Subsystems (5)
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(+)
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
@@ -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
PATCH 2/3 dt-bindings: usb: dwc3: add sdm670 compatible
In reply to Richard AcayanThe 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
@@ -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
PATCH 3/3 usb: dwc3: qcom: add sdm670 compatible
In reply to Richard AcayanThe 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
@@ -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
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.
Signed-off-by Richard Acayan <[email protected]>---
Konrad
Quoted 15 lines
drivers/usb/dwc3/dwc3-qcom.c | 1 + 1 file changed, 1 insertion(+)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" }, { } };
Re: [PATCH 1/3] dt-bindings: phy: qcom,qusb2: document sdm670 compatible
In reply to Richard AcayanQuoted 4 lines · Richard Acayan
The Snapdragon 670 uses the QUSB driver for USB 2.0. Document the compatible used in the device tree.
Signed-off-by Richard Acayan <[email protected]>
Best regards,
Krzysztof
Re: [PATCH 2/3] dt-bindings: usb: dwc3: add sdm670 compatible
In reply to Richard AcayanQuoted 5 lines · Richard Acayan
The Snapdragon 670 has DWC3 USB support. Add a compatible to reflect that.
Signed-off-by Richard Acayan <[email protected]>---
Missing changes in allOf?
Best regards,
Krzysztof
Re: [PATCH 3/3] usb: dwc3: qcom: add sdm670 compatible
In reply to Richard AcayanQuoted 13 lines · Richard Acayan
The Snapdragon 670 has DWC3 USB support. Add a compatible for device tree semantics.
Signed-off-by Richard Acayan <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 1 + 1 file changed, 1 insertion(+)drivers/usb/dwc3/dwc3-qcom.c +0
-0
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
Re: [PATCH 2/3] dt-bindings: usb: dwc3: add sdm670 compatible
In reply to Krzysztof KozlowskiQuoted 8 lines · Richard Acayan
Quoted 5 lines
The Snapdragon 670 has DWC3 USB support. Add a compatible to reflect that.
Signed-off-by Richard Acayan <[email protected]>---
Missing changes in allOf?
Oh, I didn't see that. Nice catch!
Quoted 4 lines
Best regards,
Krzysztof