From: Pin-yen Lin <treapking@chromium.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Kaehlcke <mka@chromium.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Pin-yen Lin <treapking@chromium.org>,
Stephen Boyd <swboyd@chromium.org>,
linux-usb@vger.kernel.org
Subject: [PATCH v3 3/4] dt-bindings: usb: realtek,rts5411: Adapt usb-hub.yaml
Date: Tue, 22 Apr 2025 16:28:29 +0800 [thread overview]
Message-ID: <20250422082957.2058229-4-treapking@chromium.org> (raw)
In-Reply-To: <20250422082957.2058229-1-treapking@chromium.org>
Inherit usb-hub.yaml and remove duplicated schemas.
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
---
Changes in v3:
- Remove redundant schemas
- Update the schema for downstream ports and devices
Changes in v2:
- New in v2
.../bindings/usb/realtek,rts5411.yaml | 52 +++++--------------
1 file changed, 13 insertions(+), 39 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml b/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml
index 6577a61cc07531..a020afaf2d6e7a 100644
--- a/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml
+++ b/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml
@@ -10,7 +10,7 @@ maintainers:
- Matthias Kaehlcke <mka@chromium.org>
allOf:
- - $ref: usb-device.yaml#
+ - $ref: usb-hub.yaml#
properties:
compatible:
@@ -19,61 +19,35 @@ properties:
- usbbda,5411
- usbbda,411
- reg: true
-
- '#address-cells':
- const: 1
-
- '#size-cells':
- const: 0
-
vdd-supply:
description:
phandle to the regulator that provides power to the hub.
- peer-hub:
- $ref: /schemas/types.yaml#/definitions/phandle
- description:
- phandle to the peer hub on the controller.
+ peer-hub: true
ports:
$ref: /schemas/graph.yaml#/properties/ports
- properties:
- port@1:
- $ref: /schemas/graph.yaml#/properties/port
- description:
- 1st downstream facing USB port
-
- port@2:
+ patternProperties:
+ '^port@':
$ref: /schemas/graph.yaml#/properties/port
- description:
- 2nd downstream facing USB port
- port@3:
- $ref: /schemas/graph.yaml#/properties/port
- description:
- 3rd downstream facing USB port
+ properties:
+ reg:
+ minimum: 1
+ maximum: 4
- port@4:
- $ref: /schemas/graph.yaml#/properties/port
- description:
- 4th downstream facing USB port
-
-patternProperties:
- '^.*@[1-4]$':
- description: The hard wired USB devices
- type: object
- $ref: /schemas/usb/usb-device.yaml
- additionalProperties: true
+additionalProperties:
+ properties:
+ reg:
+ minimum: 1
+ maximum: 4
required:
- peer-hub
- compatible
- reg
-additionalProperties: false
-
examples:
- |
usb {
--
2.49.0.805.g082f7c87e0-goog
next prev parent reply other threads:[~2025-04-22 8:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-22 8:28 [PATCH v3 0/4] Introduce usb-hub.yaml binding and add support for Parade PS5511 Pin-yen Lin
2025-04-22 8:28 ` [PATCH v3 1/4] dt-bindings: usb: Introduce usb-hub.yaml Pin-yen Lin
2025-04-25 20:04 ` Rob Herring (Arm)
2025-04-28 23:47 ` Stephen Boyd
2025-04-29 4:58 ` Pin-yen Lin
2025-04-22 8:28 ` [PATCH v3 2/4] dt-bindings: usb: Add binding for PS5511 hub controller Pin-yen Lin
2025-04-25 20:05 ` Rob Herring (Arm)
2025-04-22 8:28 ` Pin-yen Lin [this message]
2025-04-25 20:05 ` [PATCH v3 3/4] dt-bindings: usb: realtek,rts5411: Adapt usb-hub.yaml Rob Herring (Arm)
2025-04-28 23:45 ` Stephen Boyd
2025-04-29 4:57 ` Pin-yen Lin
2025-04-29 18:24 ` Stephen Boyd
2025-04-30 13:17 ` Pin-yen Lin
2025-04-22 8:28 ` [PATCH v3 4/4] usb: misc: onboard_usb_dev: Add Parade PS5511 hub support Pin-yen Lin
2025-04-28 23:36 ` Stephen Boyd
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=20250422082957.2058229-4-treapking@chromium.org \
--to=treapking@chromium.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mka@chromium.org \
--cc=robh@kernel.org \
--cc=swboyd@chromium.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
all inboxes | Powered by JetHome®