From: Rob Herring <robh@kernel.org>
To: Alexander Stein <alexander.stein@ew.tq-group.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Peter Chen <peter.chen@kernel.org>,
Pawel Laszczak <pawell@cadence.com>,
Roger Quadros <rogerq@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Magnus Damm <magnus.damm@gmail.com>, Marek Vasut <marex@denx.de>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org,
linux-usb@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com
Subject: Re: [PATCH 2/6] dt-bindings: usb: cdns,usb3: support USB devices in DT
Date: Mon, 29 Dec 2025 17:35:12 -0600 [thread overview]
Message-ID: <20251229233512.GA2785770-robh@kernel.org> (raw)
In-Reply-To: <20251218152058.1521806-3-alexander.stein@ew.tq-group.com>
On Thu, Dec 18, 2025 at 04:20:49PM +0100, Alexander Stein wrote:
> Reference usb-hxci.yaml in host mode in order to support on-board USB
> hubs.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> Documentation/devicetree/bindings/usb/cdns,usb3.yaml | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml
> index f454ddd9bbaa6..1f7f0adc3b1ed 100644
> --- a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml
> +++ b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml
> @@ -85,6 +85,17 @@ required:
>
> allOf:
> - $ref: usb-drd.yaml#
> + - if:
> + properties:
> + dr_mode:
> + const: peripheral
> +
> + required:
> + - dr_mode
> + then:
> + $ref: usb.yaml#
> + else:
> + $ref: usb-xhci.yaml#
I would just do:
allOf:
- $ref: usb-drd.yaml#
- $ref: usb-xhci.yaml# (includes usb.yaml)
2 reasons:
As I remember, 'dr_mode' is at least typically what the default mode is
rather than the only mode the h/w supports.
Even if you are peripheral only, I don't think it is too important to
disallow otherwise valid properties. (It's random, unspecified
properties I care about.)
Rob
next prev parent reply other threads:[~2025-12-29 23:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-18 15:20 [PATCH 0/6] Support TQMa8QM Alexander Stein
2025-12-18 15:20 ` [PATCH 1/6] dt-bindings: clk: rs9: add clock-output-names property Alexander Stein
2025-12-18 15:26 ` Geert Uytterhoeven
2025-12-18 15:49 ` Krzysztof Kozlowski
2025-12-19 8:09 ` Alexander Stein
2025-12-20 2:04 ` Rob Herring
2025-12-18 15:20 ` [PATCH 2/6] dt-bindings: usb: cdns,usb3: support USB devices in DT Alexander Stein
2025-12-19 8:55 ` Alexander Stein
2025-12-29 23:35 ` Rob Herring [this message]
2025-12-18 15:20 ` [PATCH 3/6] arm64: dts: imx8qm-ss-hsio: Wire up DMA IRQ for PCIe Alexander Stein
2025-12-19 8:55 ` Alexander Stein
2025-12-18 15:20 ` [PATCH 4/6] dt-bindings: arm: fsl: add bindings for TQMa8x Alexander Stein
2025-12-20 2:06 ` Rob Herring (Arm)
2025-12-18 15:28 ` [PATCH 0/6] Support TQMa8QM Geert Uytterhoeven
2025-12-19 8:52 ` Alexander Stein
2025-12-18 15:44 ` [PATCH 5/6] arm64: dts: Add TQ imx8qm based board Alexander Stein
2025-12-18 15:47 ` Fabio Estevam
2025-12-19 8:52 ` Alexander Stein
2025-12-18 15:49 ` Greg Kroah-Hartman
2025-12-18 16:24 ` Andrew Lunn
2025-12-18 15:44 ` [PATCH 6/6] arm64: dts: imx8qm-tqma8qm-mba8x: Disable Cortex-A72 cluster Alexander Stein
2025-12-19 16:49 ` [PATCH 0/6] Support TQMa8QM Rob Herring
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=20251229233512.GA2785770-robh@kernel.org \
--to=robh@kernel.org \
--cc=alexander.stein@ew.tq-group.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=geert+renesas@glider.be \
--cc=gregkh@linuxfoundation.org \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@ew.tq-group.com \
--cc=magnus.damm@gmail.com \
--cc=marex@denx.de \
--cc=mturquette@baylibre.com \
--cc=pawell@cadence.com \
--cc=peter.chen@kernel.org \
--cc=rogerq@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sboyd@kernel.org \
--cc=shawnguo@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).