devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] Enable firmware-managed USB resources on Qcom targets
@ 2024-03-05 16:57 Sriram Dash
  2024-03-05 16:57 ` [RFC 1/3] dt-bindings: usb: qcom,dwc3: Add support for multiple power-domains Sriram Dash
                   ` (6 more replies)
  0 siblings, 7 replies; 29+ messages in thread
From: Sriram Dash @ 2024-03-05 16:57 UTC (permalink / raw)
  To: andersson, konrad.dybcio, vkoul, kishon, robh,
	krzysztof.kozlowski+dt, conor+dt, gregkh, quic_wcheng,
	Thinh.Nguyen, p.zabel, linux-arm-msm, linux-phy, devicetree,
	linux-kernel, linux-usb, quic_psodagud, quic_nkela,
	manivannan.sadhasivam, ulf.hansson, sudeep.holla, quic_shazhuss

Some target systems allow multiple resources to be managed by firmware.
On these targets, tasks related to clocks, regulators, resets, and
interconnects can be delegated to the firmware, while the remaining
responsibilities are handled by Linux.

To support the management of partial resources in Linux and leave the rest
to firmware, multiple power domains are introduced. Each power domain can
manage one or more resources, depending on the specific use case.

These power domains handle SCMI calls to the firmware, enabling the
activation and deactivation of firmware-managed resources.

The driver is responsible for managing multiple power domains and
linking them to consumers as needed. Incase there is only single
power domain, it is considered to be a standard GDSC hooked on to
the qcom dt node which is read and assigned to device structure
(by genpd framework) before the driver probe even begins.

fw-managed dt property allows the driver to determine whether
device resources are managed by Linux or firmware, ensuring
backward compatibility.

Establish the channel and domain mapping for the power domains to connect
with firmware, enabling the firmware to handle the assigned resources.
Since these delegated resources will remain invisible to the operating
system, ensure that any references to them are removed.

Sriram Dash (3):
  dt-bindings: usb: qcom,dwc3: Add support for multiple power-domains
  USB: dwc3: qcom: Add support for firmware managed resources
  arm64: dts: qcom: sa8775p-ride: Enable support for firmware managed
    resources

 .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml        |  74 ++++--
 .../bindings/phy/qcom,usb-snps-femto-v2.yaml       |  49 +++-
 .../devicetree/bindings/usb/qcom,dwc3.yaml         |  37 ++-
 arch/arm64/boot/dts/qcom/sa8775p-ride.dts          |  96 +++++--
 drivers/phy/qualcomm/phy-qcom-qmp-usb.c            | 290 ++++++++++++++++-----
 drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c      | 213 ++++++++++++---
 drivers/usb/dwc3/dwc3-qcom.c                       | 259 +++++++++++++-----
 7 files changed, 801 insertions(+), 217 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2024-03-19 15:38 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-05 16:57 [RFC 0/3] Enable firmware-managed USB resources on Qcom targets Sriram Dash
2024-03-05 16:57 ` [RFC 1/3] dt-bindings: usb: qcom,dwc3: Add support for multiple power-domains Sriram Dash
2024-03-05 17:07   ` Krzysztof Kozlowski
2024-03-05 18:03     ` Sriram Dash
2024-03-06  7:03       ` Krzysztof Kozlowski
2024-03-06  7:33         ` Krishna Kurapati PSSNV
2024-03-06 15:49           ` Sriram Dash
2024-03-05 19:03   ` Dmitry Baryshkov
2024-03-06 15:51     ` Sriram Dash
2024-03-06 19:51       ` Dmitry Baryshkov
2024-03-05 16:57 ` [RFC 2/3] USB: dwc3: qcom: Add support for firmware managed resources Sriram Dash
2024-03-05 19:22   ` Bjorn Andersson
2024-03-06 16:21     ` Sriram Dash
2024-03-06  8:45   ` Dmitry Baryshkov
2024-03-06 16:52     ` Sriram Dash
2024-03-06 19:05       ` Dmitry Baryshkov
2024-03-05 16:57 ` [RFC 3/3] arm64: dts: qcom: sa8775p-ride: Enable " Sriram Dash
2024-03-05 17:08   ` Krzysztof Kozlowski
     [not found]     ` <399555e8-d8fa-46b7-8b15-3d3a4a30809b@quicinc.com>
2024-03-05 18:25       ` Sriram Dash
2024-03-05 21:07         ` Konrad Dybcio
2024-03-06 16:03           ` Sriram Dash
2024-03-05 17:12 ` [RFC 0/3] Enable firmware-managed USB resources on Qcom targets Krzysztof Kozlowski
2024-03-05 18:04   ` Sriram Dash
2024-03-06  7:04     ` Krzysztof Kozlowski
2024-03-06 16:00       ` Sriram Dash
2024-03-05 21:09 ` Konrad Dybcio
2024-03-06 16:03   ` Sriram Dash
2024-03-12 15:56 ` Trilok Soni
2024-03-19 15:38 ` Sudeep Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).