]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm6350: Add q6usbdai node
authorLuca Weiss <luca.weiss@fairphone.com>
Thu, 1 May 2025 06:48:50 +0000 (08:48 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 11 Aug 2025 18:22:43 +0000 (13:22 -0500)
Add a node for q6usb which handles USB audio offloading, allowing to
play audio via a USB-C headset with lower power consumption and enabling
some other features.

We also need to set num-hc-interrupters for the dwc3 for the q6usb to be
able to use its sideband interrupter.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250501-fp4-usb-audio-offload-v2-4-30f4596281cd@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6350.dtsi

index ff1eb2c53e7b865350d00ffbfa82d7d1e3cc5aa0..c7230cdcf7142ebd002904151ff9aa85a98923fa 100644 (file)
                                                        compatible = "qcom,q6afe-clocks";
                                                        #clock-cells = <2>;
                                                };
+
+                                               q6usbdai: usbd {
+                                                       compatible = "qcom,q6usb";
+                                                       iommus = <&apps_smmu 0x100f 0x0>;
+                                                       #sound-dai-cells = <1>;
+                                                       qcom,usb-audio-intr-idx = /bits/ 16 <2>;
+                                               };
                                        };
 
                                        q6asm: service@7 {
                                reg = <0x0 0x0a600000 0x0 0xcd00>;
                                interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
                                iommus = <&apps_smmu 0x540 0x0>;
+                               num-hc-interrupters = /bits/ 16 <3>;
                                snps,dis_u2_susphy_quirk;
                                snps,dis_enblslpm_quirk;
                                snps,has-lpm-erratum;