* [PATCH 0/2] dt-bindings: usb: richtek,rt1711h: remove .txt binding and fix schema
@ 2026-05-18 14:28 Akash Sukhavasi
2026-05-18 14:29 ` [PATCH 1/2] dt-bindings: usb: richtek,rt1711h: remove deprecated .txt file Akash Sukhavasi
2026-05-18 14:29 ` [PATCH 2/2] dt-bindings: usb: richtek,rt1711h: add missing 'port' property Akash Sukhavasi
0 siblings, 2 replies; 5+ messages in thread
From: Akash Sukhavasi @ 2026-05-18 14:28 UTC (permalink / raw)
To: krzk+dt
Cc: robh, conor+dt, gregkh, gene_chen, linux-usb, devicetree,
linux-kernel
The richtek,rt1711h binding has a legacy plain-text file that was
superseded by the YAML schema. Remove it.
The YAML schema also declares 'additionalProperties: false' but
omits the top-level 'port' property used by hi3660-hikey960.dts
to describe the role-switch graph endpoint, causing dtbs_check
to emit:
hi3660-hikey960.dtb: rt1711h@4e (richtek,rt1711h): 'port' does
not match any of the regexes: '^pinctrl-[0-9]+$'
Add the missing property referencing /schemas/graph.yaml.
A separate dtbs_check warning on the same node is out of scope
for this series:
hi3660-hikey960.dtb: rt1711h@4e (richtek,rt1711h):
connector:ports: 'port@0' is a required property
That one is in the connector subnode and is governed by
usb-connector.yaml, not this binding.
Akash Sukhavasi (2):
dt-bindings: usb: richtek,rt1711h: remove deprecated .txt file
dt-bindings: usb: richtek,rt1711h: add missing 'port' property
.../bindings/usb/richtek,rt1711h.txt | 44 -------------------
.../bindings/usb/richtek,rt1711h.yaml | 13 ++++++
2 files changed, 13 insertions(+), 44 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
--
2.54.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: usb: richtek,rt1711h: remove deprecated .txt file
2026-05-18 14:28 [PATCH 0/2] dt-bindings: usb: richtek,rt1711h: remove .txt binding and fix schema Akash Sukhavasi
@ 2026-05-18 14:29 ` Akash Sukhavasi
2026-05-18 14:29 ` [PATCH 2/2] dt-bindings: usb: richtek,rt1711h: add missing 'port' property Akash Sukhavasi
1 sibling, 0 replies; 5+ messages in thread
From: Akash Sukhavasi @ 2026-05-18 14:29 UTC (permalink / raw)
To: krzk+dt
Cc: robh, conor+dt, gregkh, gene_chen, linux-usb, devicetree,
linux-kernel
Remove the deprecated .txt binding for richtek,rt1711h. It was
superseded by the YAML schema added in commit a72095ed8e65
("dt-bindings usb: typec: rt1711h: Add binding for Richtek RT1711H").
Signed-off-by: Akash Sukhavasi <akash.sukhavasi@gmail.com>
---
.../bindings/usb/richtek,rt1711h.txt | 44 -------------------
1 file changed, 44 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
deleted file mode 100644
index 6f8115db2..000000000
--- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-Richtek RT1711H TypeC PD Controller.
-
-Required properties:
- - compatible : Must be "richtek,rt1711h".
- - reg : Must be 0x4e, it's slave address of RT1711H.
- - interrupts : <a b> where a is the interrupt number and b represents an
- encoding of the sense and level information for the interrupt.
-
-Required sub-node:
-- connector: The "usb-c-connector" attached to the tcpci chip, the bindings
- of connector node are specified in
- Documentation/devicetree/bindings/connector/usb-connector.yaml
-
-Example :
-rt1711h@4e {
- compatible = "richtek,rt1711h";
- reg = <0x4e>;
- interrupt-parent = <&gpio26>;
- interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
-
- usb_con: connector {
- compatible = "usb-c-connector";
- label = "USB-C";
- data-role = "dual";
- power-role = "dual";
- try-power-role = "sink";
- source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
- sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
- PDO_VAR(5000, 12000, 2000)>;
- op-sink-microwatt = <10000000>;
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- port@1 {
- reg = <1>;
- usb_con_ss: endpoint {
- remote-endpoint = <&usb3_data_ss>;
- };
- };
- };
- };
-};
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: usb: richtek,rt1711h: add missing 'port' property
2026-05-18 14:28 [PATCH 0/2] dt-bindings: usb: richtek,rt1711h: remove .txt binding and fix schema Akash Sukhavasi
2026-05-18 14:29 ` [PATCH 1/2] dt-bindings: usb: richtek,rt1711h: remove deprecated .txt file Akash Sukhavasi
@ 2026-05-18 14:29 ` Akash Sukhavasi
2026-05-18 14:45 ` sashiko-bot
1 sibling, 1 reply; 5+ messages in thread
From: Akash Sukhavasi @ 2026-05-18 14:29 UTC (permalink / raw)
To: krzk+dt
Cc: robh, conor+dt, gregkh, gene_chen, linux-usb, devicetree,
linux-kernel
The schema declares 'additionalProperties: false' but omits the
top-level 'port' property, which hi3660-hikey960.dts uses to
describe the role-switch graph endpoint. This causes dtbs_check
to emit:
hi3660-hikey960.dtb: rt1711h@4e (richtek,rt1711h): 'port' does
not match any of the regexes: '^pinctrl-[0-9]+$'
Add the missing property using /schemas/graph.yaml#/properties/port,
following the pattern used by realtek,rts5411.yaml and other USB
controller bindings.
Update the example accordingly.
Signed-off-by: Akash Sukhavasi <akash.sukhavasi@gmail.com>
---
.../devicetree/bindings/usb/richtek,rt1711h.yaml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
index 7ded36384..fd7f29179 100644
--- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
+++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
@@ -52,6 +52,13 @@ properties:
description:
Properties for usb c connector.
+ port:
+ $ref: /schemas/graph.yaml#/properties/port
+ description:
+ OF graph port describing the connection to the USB role switch
+ consumer (e.g., a dwc3 controller with usb-role-switch), used to
+ convey type-C data-role changes signaled by the TCPC.
+
additionalProperties: false
required:
@@ -107,6 +114,12 @@ examples:
};
};
};
+
+ port {
+ endpoint {
+ remote-endpoint = <&usb_role_switch>;
+ };
+ };
};
};
};
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: richtek,rt1711h: add missing 'port' property
2026-05-18 14:29 ` [PATCH 2/2] dt-bindings: usb: richtek,rt1711h: add missing 'port' property Akash Sukhavasi
@ 2026-05-18 14:45 ` sashiko-bot
2026-05-18 16:12 ` Akash Sukhavasi
0 siblings, 1 reply; 5+ messages in thread
From: sashiko-bot @ 2026-05-18 14:45 UTC (permalink / raw)
To: Akash Sukhavasi; +Cc: robh, conor+dt, devicetree
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `port` node in the device tree example is incorrectly nested inside the `connector` node instead of being at the top level of the `rt1711h@4e` node.
--
commit 18a1ecff9551deb9d653752f739ababa33eb01fd
Author: Akash Sukhavasi <akash.sukhavasi@gmail.com>
dt-bindings: usb: richtek,rt1711h: add missing 'port' property
This commit adds the missing top-level port property to the
richtek,rt1711h schema to describe the role-switch graph endpoint. It also
updates the example to include this new port configuration.
> diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
> --- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
> +++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
[ ... ]
> @@ -107,6 +114,12 @@ examples:
> };
> };
> };
> +
> + port {
> + endpoint {
> + remote-endpoint = <&usb_role_switch>;
> + };
> + };
> };
> };
> };
Is this port node indented correctly in the example?
It looks like the 10-space indentation places it inside the connector node
rather than as a top-level property of the rt1711h@4e node as intended by
the schema update.
Should it be aligned with fewer spaces to be a sibling of the connector node
instead?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260518142901.1747-1-akash.sukhavasi@gmail.com?part=2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: richtek,rt1711h: add missing 'port' property
2026-05-18 14:45 ` sashiko-bot
@ 2026-05-18 16:12 ` Akash Sukhavasi
0 siblings, 0 replies; 5+ messages in thread
From: Akash Sukhavasi @ 2026-05-18 16:12 UTC (permalink / raw)
To: sashiko-bot; +Cc: akash.sukhavasi, conor+dt, devicetree, robh, sashiko-reviews
> Is this port node indented correctly in the example?
>
> It looks like the 10-space indentation places it inside the connector node
> rather than as a top-level property of the rt1711h@4e node as intended by
> the schema update.
>
> Should it be aligned with fewer spaces to be a sibling of the connector node
> instead?
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260518142901.1747-1-akash.sukhavasi@gmail.com?part=2
Thanks for catching this. The port node was incorrectly nested inside
the connector, moved it to be a sibling and fixed the indentation.
Will send v2.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-05-18 16:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-18 14:28 [PATCH 0/2] dt-bindings: usb: richtek,rt1711h: remove .txt binding and fix schema Akash Sukhavasi
2026-05-18 14:29 ` [PATCH 1/2] dt-bindings: usb: richtek,rt1711h: remove deprecated .txt file Akash Sukhavasi
2026-05-18 14:29 ` [PATCH 2/2] dt-bindings: usb: richtek,rt1711h: add missing 'port' property Akash Sukhavasi
2026-05-18 14:45 ` sashiko-bot
2026-05-18 16:12 ` Akash Sukhavasi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox