All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: extcon: ptn5150: Document the 'port' node
@ 2024-04-04  2:29 Fabio Estevam
  2024-04-04  4:06 ` Frank Li
  2024-04-05  9:24 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 7+ messages in thread
From: Fabio Estevam @ 2024-04-04  2:29 UTC (permalink / raw)
  To: cw00.choi
  Cc: krzk, myungjoo.ham, robh, conor+dt, devicetree, marex,
	Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

Doument the port node to link the PTN5150 to a TypeC controller.

This fixes the following dt-schema warnings:

imx8mp-dhcom-pdk3.dtb: typec@3d: 'port' does not match any of the regexes: 'pinctrl-[0-9]+'
	from schema $id: http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml#

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 .../devicetree/bindings/extcon/extcon-ptn5150.yaml    | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml b/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
index d5cfa32ea52d..3472c69056ac 100644
--- a/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
+++ b/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
@@ -36,6 +36,11 @@ properties:
     description:
       GPIO pin (output) used to control VBUS. If skipped, no such control
       takes place.
+  port:
+    $ref: /schemas/graph.yaml#/$defs/port-base
+    description:
+      A port node to link the PTN5150 to a TypeC controller.
+    unevaluatedProperties: false
 
 required:
   - compatible
@@ -58,5 +63,11 @@ examples:
             interrupt-parent = <&msmgpio>;
             interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;
             vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>;
+
+            port {
+              ptn5150_out_ep: endpoint {
+                 remote-endpoint = <&dwc3_0_ep>;
+              };
+           };
         };
     };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-04-12 13:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04  2:29 [PATCH] dt-bindings: extcon: ptn5150: Document the 'port' node Fabio Estevam
2024-04-04  4:06 ` Frank Li
2024-04-05  9:24 ` Krzysztof Kozlowski
2024-04-05 19:58   ` Fabio Estevam
2024-04-06 11:26     ` Krzysztof Kozlowski
2024-04-08 11:58       ` Fabio Estevam
2024-04-12 11:48         ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.