arm64: dts: mt8183: kukui: Add Type C node
authorPrashant Malani <pmalani@chromium.org>
Thu, 9 Dec 2021 19:51:12 +0000 (11:51 -0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 15 Dec 2021 20:02:27 +0000 (21:02 +0100)
Add a node describing the USB Type C connector, in order to utilize the
Chromium OS USB Type-C driver that enumerates Type-C ports and connected
cables/peripherals and makes them visible to userspace.

Cc: Alexandru M Stan <amstan@chromium.org>
Cc: Benson Leung <bleung@chromium.org>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20211209195112.366176-1-pmalani@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi

index 94c13c4..0f9480f 100644 (file)
                cbas {
                        compatible = "google,cros-cbas";
                };
+
+               typec {
+                       compatible = "google,cros-ec-typec";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       usb_c0: connector@0 {
+                               compatible = "usb-c-connector";
+                               reg = <0>;
+                               power-role = "dual";
+                               data-role = "host";
+                               try-power-role = "sink";
+                       };
+               };
        };
 };