From 27f262aa1c2df046e20338f36551412c6736651e Mon Sep 17 00:00:00 2001 From: Wesley Cheng Date: Thu, 12 Aug 2021 16:40:26 -0700 Subject: [PATCH 1/2] ARM: dts: msm: Set USB disconnect core clock rate for waipio Due to DWC3 GKI changes on Waipio, we need a new DT property, which defines the frequency to run when the cable is disconnected. Set to 133MHz to allow for SVS when cable is disconnected. This will keep VDD CX at SVS during PM resume w/ USB cable disconnected situations. Change-Id: I41c8e442136fb36f7a4dcbca16854ae71e261c92 --- qcom/waipio-usb.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/waipio-usb.dtsi b/qcom/waipio-usb.dtsi index 979e3379..71297f26 100644 --- a/qcom/waipio-usb.dtsi +++ b/qcom/waipio-usb.dtsi @@ -33,6 +33,7 @@ qcom,use-pdc-interrupts; qcom,core-clk-rate = <200000000>; + qcom,core-clk-rate-disconnected = <133333333>; qcom,core-clk-rate-hs = <66666667>; qcom,num-gsi-evt-buffs = <0x3>; qcom,gsi-reg-offset = From 6b257d481f1d6585affa8384ff8acc248571a564 Mon Sep 17 00:00:00 2001 From: Wesley Cheng Date: Tue, 17 Aug 2021 23:19:39 -0700 Subject: [PATCH 2/2] dt-bindings: usb: Document qcom,core-clk-rate-disconnected Add description for the newly added qcom,core-clk-rate-disconnected property. Change-Id: Id5e4642d93db5a63e4d9f903f55f0c3853feac68 --- bindings/usb/msm-ssusb.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/usb/msm-ssusb.txt b/bindings/usb/msm-ssusb.txt index e4f788e6..538216c2 100644 --- a/bindings/usb/msm-ssusb.txt +++ b/bindings/usb/msm-ssusb.txt @@ -56,6 +56,9 @@ Optional properties : - qcom,lpm-to-suspend-delay-ms: Indicates timeout (in milliseconds) to release wakeup source after USB is kept into LPM. - qcom,disable-dev-mode-pm: If present, it disables PM runtime functionality for device mode. +- qcom,core-clk-rate-disconnected: If present, then this dictates the default core_clk rate + when DWC3 doesn't have host or peripheral mode active. This is to help ensure lower VDD + profiles can be voted for during PM resume w/ no USB cable connected. - qcom,core-clk-rate: If present, indicates clock frequency to be set for USB master clock. - qcom,core-clk-rate-hs: If present, indicates min core clock frequency required to support hs speed.