arm64: dts: msm8996: Use dwc3-qcom glue driver for USB
PATCH 1/1 arm64: dts: msm8996: Use dwc3-qcom glue driver for USB
Move from dwc3-of-simple to dwc3-qcom glue driver to support peripheral mode which requires qscratch wrapper programming on VBUS event.
--- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 2 ++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +2 -0
@@ -108,6 +108,7 @@ usb@6a00000 { status = "okay"; + extcon = <&usb3_id>; dwc3@6a00000 { extcon = <&usb3_id>;
@@ -124,6 +125,7 @@ usb@7600000 { status = "okay"; + extcon = <&usb2_id>; dwc3@7600000 { extcon = <&usb2_id>;
arch/arm64/boot/dts/qcom/msm8996.dtsi +4 -2
@@ -777,7 +777,8 @@ }; usb2: usb@7600000 { - compatible = "qcom,dwc3"; + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0x76f8800 0x400>; #address-cells = <1>; #size-cells = <1>; ranges;
@@ -805,7 +806,8 @@ }; usb3: usb@6a00000 { - compatible = "qcom,dwc3"; + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0x6af8800 0x400>; #address-cells = <1>; #size-cells = <1>; ranges;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Hi,
Quoted 3 lines · Manu Gautam
Move from dwc3-of-simple to dwc3-qcom glue driver to support peripheral mode which requires qscratch wrapper programming on VBUS event.
Quoted 31 lines
Signed-off-by Manu Gautam <[email protected]>--- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 2 ++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-)arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +2
-0@@ -108,6 +108,7 @@ usb@6a00000 { status = "okay"; + extcon = <&usb3_id>; dwc3@6a00000 { extcon = <&usb3_id>;@@ -124,6 +125,7 @@ usb@7600000 { status = "okay"; + extcon = <&usb2_id>; dwc3@7600000 { extcon = <&usb2_id>;arch/arm64/boot/dts/qcom/msm8996.dtsi +0
-0
arch/arm64/boot/dts/qcom/msm8996.dtsi line 779
Quoted 3 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +0
-0@@ -777,7 +777,8 @@ }; usb2: usb@7600000 {
Please update the unit address, which should match the new value for the "reg".
Quoted 7 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +2
-1- compatible = "qcom,dwc3"; + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0x76f8800 0x400>; #address-cells = <1>; #size-cells = <1>; ranges;
arch/arm64/boot/dts/qcom/msm8996.dtsi line 813
Quoted 9 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +2
-1@@ -805,7 +806,8 @@ }; usb3: usb@6a00000 { - compatible = "qcom,dwc3"; + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0x6af8800 0x400>; #address-cells = <1>; #size-cells = <1>; ranges;
This patch is a little bit unfortunate since it demonstrates that a patch that already landed (specifically commit a4333c3a6ba9 ("usb:
dwc3: Add Qualcomm DWC3 glue driver")) broke device tree backward compatibility. Specifically if you get a kernel with that commit in it but not this device tree change then you'll end up with broken USB. Also if anyone happened to have a device tree stored somewhere out of tree based on the old binding then they will of course be broken.
I will leave it to people more familiar with msm8996 to decide if this issue is important to them and if we need to change the bindings to maintain backward compatibility or if we should instead just land this patch ASAP.
-Doug