From: Faisal Hassan <faisal.hassan@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Mathias Nyman <mathias.nyman@intel.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Wesley Cheng <wesley.cheng@oss.qualcomm.com>,
Sriram Dash <sriram.dash@oss.qualcomm.com>,
Jack Pham <jack.pham@oss.qualcomm.com>,
Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>,
Shazad Hussain <shazad.hussain@oss.qualcomm.com>,
linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/7] dt-bindings: usb: Add qcom,sa8255p-dwc3 for firmware-managed resources
Date: Wed, 16 Sep 2026 16:48:14 +0530 [thread overview]
Message-ID: <a3ff5fd1-9801-4a3d-b663-0ee338816bb8@oss.qualcomm.com> (raw)
In-Reply-To: <20260907-arcane-spicy-parrot-6da5ed@quoll>
On 07-09-2026 02:38 pm, Krzysztof Kozlowski wrote:
> On Thu, Sep 03, 2026 at 09:08:23PM +0530, Faisal Hassan wrote:
>> On Qualcomm automotive SoC sa8255p, platform resources like clocks,
>> interconnects, resets, regulators and GDSC are abstracted and managed
>> collectively by firmware.
>>
>> Add a new binding file for firmware-managed USB controllers where
>> access to these resources is exposed as two power domains:
>> - Power domain: Controls power supply (GDSC) to the USB controller
>> - Bus domain: Controls clocks and interconnects for data transfer
>>
>> The binding makes power-domains and power-domain-names properties mandatory
>> for firmware-managed platforms, while excluding the clocks property since
>> clocks are managed through the power domains.
>>
>> Co-developed-by: Sriram Dash <sriram.dash@oss.qualcomm.com>
>> Signed-off-by: Sriram Dash <sriram.dash@oss.qualcomm.com>
>> Signed-off-by: Faisal Hassan <faisal.hassan@oss.qualcomm.com>
>> ---
>> .../bindings/usb/qcom,sa8255p-dwc3.yaml | 123 ++++++++++++++++++
>> 1 file changed, 123 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml
>> new file mode 100644
>> index 000000000000..c6db7bcf4981
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml
>> @@ -0,0 +1,123 @@
>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/usb/qcom,sa8255p-dwc3.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Qualcomm SA8255P USB3 Controller with Firmware-Managed Resources
>> +
>> +maintainers:
>> + - Wesley Cheng <wesley.cheng@oss.qualcomm.com>
>> + - Faisal Hassan <faisal.hassan@oss.qualcomm.com>
>> +
>> +description:
>> + USB controller on Qualcomm SA8255P automotive SoC where platform resources
>> + such as clocks, interconnects, resets, regulators and the GDSC are
>> + abstracted and managed collectively by firmware through SCMI (System
>> + Control and Management Interface).
>> +
>> + Access to these firmware-managed resources is exposed as two power
>> + domains, one gating the power supply (GDSC) to the controller, and one
>> + gating the clocks and interconnects used for data transfer.
>> +
>> +properties:
>> + compatible:
>> + const: qcom,sa8255p-dwc3
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + interrupts:
>> + minItems: 1
>> + maxItems: 6
> Why is this flexible?
>
>> +
>> + interrupt-names:
>> + minItems: 1
>> + maxItems: 6
> Why is this flexible even more, allowing completely random names?
>
>> +
>> + power-domains:
>> + description: |
>> + Power domains are provided by SCMI (System Control and Management
>> + Interface). See Documentation/devicetree/bindings/firmware/arm,scmi.yaml
>> + for details.
>> +
>> + Exactly two power domains must be specified:
>> + - "power": controls power supply (GDSC) to the USB controller
>> + - "bus": controls clocks and interconnects used for data transfer
> Look at other bindings how they do it.
>
> I finished here, because you would avoid all above questions if you just
> copied recently added or reviewed on the list SA8xxx binding. You did
> not, so basically I expect more of unexpected code, which is pointless
> to review. Just open existing files...
>
> Best regards,
> Krzysztof
Hi Krzysztof,
You're right, I should have checked the existing sa8255p bindings before
sending this. I went back and matched it against
qcom,sa8255p-geni-uart.yaml. Will fix in v3:
- interrupts/interrupt-names: replaced the open range with a concrete
items: list, minItems: 5/maxItems: 6.
- power-domains/power-domain-names and resets: dropped the extra
per-property descriptions, now just bare minItems/maxItems/items like
qcom,sa8255p-geni-uart.yaml, with the explanation kept in the top-level
description.
Thanks,
Faisal
next prev parent reply other threads:[~2026-09-16 11:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 15:38 [PATCH v2 0/7] usb: dwc3: qcom: Add firmware-managed resource support for SA8255P Faisal Hassan
2026-09-03 15:38 ` [PATCH v2 1/7] usb: dwc3: qcom: re-enable wakeup interrupts on failed resume Faisal Hassan
2026-09-11 23:48 ` Thinh Nguyen
2026-09-03 15:38 ` [PATCH v2 2/7] usb: dwc3: qcom: Distinguish PM and runtime suspend/resume paths Faisal Hassan
2026-09-11 23:51 ` Thinh Nguyen
2026-09-03 15:38 ` [PATCH v2 3/7] dt-bindings: usb: Add qcom,sa8255p-dwc3 for firmware-managed resources Faisal Hassan
2026-09-07 9:08 ` Krzysztof Kozlowski
2026-09-16 11:18 ` Faisal Hassan [this message]
2026-09-03 15:38 ` [PATCH v2 4/7] usb: host: xhci-plat: Support XHCI_RESET_ON_RESUME via device property Faisal Hassan
2026-09-03 15:38 ` [PATCH v2 5/7] usb: dwc3: add xhci-reset-on-resume property for power-loss resume Faisal Hassan
2026-09-04 6:09 ` Krishna Kurapati
2026-09-16 13:29 ` Faisal Hassan
2026-09-12 1:03 ` Thinh Nguyen
2026-09-16 13:33 ` Faisal Hassan
2026-09-03 15:38 ` [PATCH v2 6/7] usb: dwc3: qcom: Support broken suspend for SA8255P Faisal Hassan
2026-09-12 1:24 ` Thinh Nguyen
2026-09-03 15:38 ` [PATCH v2 7/7] usb: dwc3: qcom: Support firmware-managed resource states for power management Faisal Hassan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a3ff5fd1-9801-4a3d-b663-0ee338816bb8@oss.qualcomm.com \
--to=faisal.hassan@oss.qualcomm.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jack.pham@oss.qualcomm.com \
--cc=krishna.kurapati@oss.qualcomm.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=shazad.hussain@oss.qualcomm.com \
--cc=sriram.dash@oss.qualcomm.com \
--cc=wesley.cheng@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®