arm64: dts: imx8mp-dhcom-pdk3: Describe the USB-C connector
authorFabio Estevam <festevam@denx.de>
Tue, 12 Dec 2023 17:48:47 +0000 (14:48 -0300)
committerShawn Guo <shawnguo@kernel.org>
Thu, 14 Dec 2023 03:06:33 +0000 (11:06 +0800)
Describe the PTN5150 USB-C connector to improve the devicetree description
and fix the following dt-schema warning:

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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-dhcom-pdk3.dts

index b749e28e5ede5cf85f309f2f7903ebee44b41f98..fea67a9282f033121323ef2c86e200deac9463d4 100644 (file)
                                pinctrl-names = "default";
                                pinctrl-0 = <&pinctrl_ptn5150>;
 
-                               port {
-
-                                       ptn5150_out_ep: endpoint {
-                                               remote-endpoint = <&dwc3_0_ep>;
+                               connector {
+                                       compatible = "usb-c-connector";
+                                       label = "USB-C";
+
+                                       port {
+                                               ptn5150_out_ep: endpoint {
+                                                       remote-endpoint = <&dwc3_0_ep>;
+                                               };
                                        };
                                };
                        };