* [PATCH 0/2] dt-bindings: usb: genesys,gl850g: describe downstream facing ports
@ 2025-06-08 16:07 Dmitry Baryshkov
2025-06-08 16:07 ` [PATCH 1/2] dt-bindings: usb: genesys,gl850g: use usb-hub.yaml Dmitry Baryshkov
2025-06-08 16:07 ` [PATCH 2/2] dt-bindings: usb: genesys,gl850g: add downstream facing ports Dmitry Baryshkov
0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2025-06-08 16:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Icenowy Zheng
Cc: linux-usb, devicetree, linux-kernel
In order to describe connections between Genesys GL850G hub and
corresponding Type-C connectors on some of laptops (e.g. Lenovo Yoga
C630), follow example of RTS5411 and describe downstream facing ports.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Dmitry Baryshkov (2):
dt-bindings: usb: genesys,gl850g: use usb-hub.yaml
dt-bindings: usb: genesys,gl850g: add downstream facing ports
.../devicetree/bindings/usb/genesys,gl850g.yaml | 28 +++++++++++-----------
1 file changed, 14 insertions(+), 14 deletions(-)
---
base-commit: 4f27f06ec12190c7c62c722e99ab6243dea81a94
change-id: 20250608-genesys-ports-09407ab555ad
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: usb: genesys,gl850g: use usb-hub.yaml
2025-06-08 16:07 [PATCH 0/2] dt-bindings: usb: genesys,gl850g: describe downstream facing ports Dmitry Baryshkov
@ 2025-06-08 16:07 ` Dmitry Baryshkov
2025-06-25 19:18 ` Rob Herring (Arm)
2025-06-08 16:07 ` [PATCH 2/2] dt-bindings: usb: genesys,gl850g: add downstream facing ports Dmitry Baryshkov
1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2025-06-08 16:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Icenowy Zheng
Cc: linux-usb, devicetree, linux-kernel
In order to reduce duplication, switch GL850G to use USB hub bindings
instead of using simple usb-device.yaml
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
.../devicetree/bindings/usb/genesys,gl850g.yaml | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml
index 6fe2d356dcbdec20dd47e09c36174e1f0244e642..7f74f181b75c5924f18d3a1b09f713ca03cf9d8c 100644
--- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml
+++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml
@@ -26,19 +26,14 @@ properties:
description:
The regulator that provides 3.3V or 5.0V core power to the hub.
- peer-hub:
- $ref: /schemas/types.yaml#/definitions/phandle
- description:
- For onboard hub controllers that support USB 3.x and USB 2.0 hubs
- with shared resets and power supplies, this property is used to identify
- the hubs with which these are shared.
+ peer-hub: true
required:
- compatible
- reg
allOf:
- - $ref: usb-device.yaml#
+ - $ref: usb-hub.yaml#
- if:
properties:
compatible:
@@ -62,13 +57,6 @@ allOf:
peer-hub: true
vdd-supply: true
-patternProperties:
- "^.*@[0-9a-f]{1,2}$":
- description: The hard wired USB devices
- type: object
- $ref: /schemas/usb/usb-device.yaml
- additionalProperties: true
-
unevaluatedProperties: false
examples:
--
2.39.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: usb: genesys,gl850g: add downstream facing ports
2025-06-08 16:07 [PATCH 0/2] dt-bindings: usb: genesys,gl850g: describe downstream facing ports Dmitry Baryshkov
2025-06-08 16:07 ` [PATCH 1/2] dt-bindings: usb: genesys,gl850g: use usb-hub.yaml Dmitry Baryshkov
@ 2025-06-08 16:07 ` Dmitry Baryshkov
2025-06-25 19:20 ` Rob Herring (Arm)
1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2025-06-08 16:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Icenowy Zheng
Cc: linux-usb, devicetree, linux-kernel
In order to describe connections between Genesys GL850G hub and
corresponding Type-C connectors, follow example of RTS5411 and describe
downstream facing ports. Unline normal case of ports being connected to
a USB device, hotplug ports use OF graph representation.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml
index 7f74f181b75c5924f18d3a1b09f713ca03cf9d8c..9a94b2a74a1eb26025a183583702e9ea02372a74 100644
--- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml
+++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml
@@ -28,6 +28,18 @@ properties:
peer-hub: true
+ ports:
+ $ref: /schemas/graph.yaml#/properties/ports
+
+ patternProperties:
+ '^port@':
+ $ref: /schemas/graph.yaml#/properties/port
+
+ properties:
+ reg:
+ minimum: 1
+ maximum: 4
+
required:
- compatible
- reg
--
2.39.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: genesys,gl850g: use usb-hub.yaml
2025-06-08 16:07 ` [PATCH 1/2] dt-bindings: usb: genesys,gl850g: use usb-hub.yaml Dmitry Baryshkov
@ 2025-06-25 19:18 ` Rob Herring (Arm)
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2025-06-25 19:18 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Conor Dooley, Icenowy Zheng, linux-kernel, Krzysztof Kozlowski,
linux-usb, Greg Kroah-Hartman, devicetree
On Sun, 08 Jun 2025 19:07:30 +0300, Dmitry Baryshkov wrote:
> In order to reduce duplication, switch GL850G to use USB hub bindings
> instead of using simple usb-device.yaml
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> .../devicetree/bindings/usb/genesys,gl850g.yaml | 16 ++--------------
> 1 file changed, 2 insertions(+), 14 deletions(-)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: genesys,gl850g: add downstream facing ports
2025-06-08 16:07 ` [PATCH 2/2] dt-bindings: usb: genesys,gl850g: add downstream facing ports Dmitry Baryshkov
@ 2025-06-25 19:20 ` Rob Herring (Arm)
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2025-06-25 19:20 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Icenowy Zheng, linux-kernel, Greg Kroah-Hartman, devicetree,
Conor Dooley, linux-usb, Krzysztof Kozlowski
On Sun, 08 Jun 2025 19:07:31 +0300, Dmitry Baryshkov wrote:
> In order to describe connections between Genesys GL850G hub and
> corresponding Type-C connectors, follow example of RTS5411 and describe
> downstream facing ports. Unline normal case of ports being connected to
> a USB device, hotplug ports use OF graph representation.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-25 19:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-08 16:07 [PATCH 0/2] dt-bindings: usb: genesys,gl850g: describe downstream facing ports Dmitry Baryshkov
2025-06-08 16:07 ` [PATCH 1/2] dt-bindings: usb: genesys,gl850g: use usb-hub.yaml Dmitry Baryshkov
2025-06-25 19:18 ` Rob Herring (Arm)
2025-06-08 16:07 ` [PATCH 2/2] dt-bindings: usb: genesys,gl850g: add downstream facing ports Dmitry Baryshkov
2025-06-25 19:20 ` Rob Herring (Arm)
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).