Skip to contentSkip to conversation

arm64: dts: mt8183: kukui: Add Type C node

PATCH Applied Prashant Malani 4 participants 4 messages Dec 9, 2021 – Dec 15, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: mt8183: kukui: Add Type C node

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 <[email protected]>
Cc Benson Leung <[email protected]>

---

Changes in v2:
- Alexandru mentioned that HW specs suggest preferred power role for devices like kukui to be sink, so changed try-power-role to "sink".

 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +14 -0
index 94c13c459194..0f9480f91261 100644
@@ -886,6 +886,20 @@ usbc_extcon: extcon0 {
 		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";
+			};
+		};
 	};
 };
 
Signature · 1 line
2.34.1.173.g76aa8bc2d0-goog
Reviewed-by on v2 1/1
#1 lore raw
Quoted 43 lines · Prashant Malani

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 <[email protected]>
Cc Benson Leung <[email protected]>

---

Changes in v2:
- Alexandru mentioned that HW specs suggest preferred power role for devices like kukui to be sink, so changed try-power-role to "sink".

 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +14 -1
index 94c13c459194..0f9480f91261 100644
@@ -886,6 +886,20 @@ usbc_extcon: extcon0 {
                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";
+                       };
+               };
        };
 };
 
--
Quoted 2 lines

2.34.1.173.g76aa8bc2d0-goog

Thanks!

Reviewed-by on v2 1/1
#2 lore raw
In reply to Prashant Malani
Quoted 7 lines · Prashant Malani

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 <[email protected]>
Cc Benson Leung <[email protected]>
Quoted 37 lines

---

Changes in v2:
- Alexandru mentioned that HW specs suggest preferred power role for devices like kukui to be sink, so changed try-power-role to "sink".

 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +14 -0
index 94c13c459194..0f9480f91261 100644
@@ -886,6 +886,20 @@ usbc_extcon: extcon0 {
 		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";
+			};
+		};
 	};
 };
 
Signature · 1 line
2.34.1.173.g76aa8bc2d0-goog
Signature · 7 lines
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
[email protected]
Chromium OS Project
[email protected]
maintainer Applied
#3 lore raw
In reply to Prashant Malani
Quoted 7 lines · Prashant Malani

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 <[email protected]>
Cc Benson Leung <[email protected]>

Applied to v5.16-next/dts64

Thanks

Quoted 35 lines

---

Changes in v2:
- Alexandru mentioned that HW specs suggest preferred power role for devices like kukui to be sink, so changed try-power-role to "sink".

  arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +14 -0
index 94c13c459194..0f9480f91261 100644
@@ -886,6 +886,20 @@ usbc_extcon: extcon0 {
  		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";
+			};
+		};
  	};
  };