arm64: dts: qcom: qcm6490-fairphone-fp5: Add USB-C orientation GPIO
authorLuca Weiss <luca.weiss@fairphone.com>
Thu, 11 Apr 2024 07:06:11 +0000 (09:06 +0200)
committerBjorn Andersson <andersson@kernel.org>
Sat, 20 Apr 2024 17:59:38 +0000 (12:59 -0500)
Define the USB-C orientation GPIOs so that the USB-C ports orientation
is known without having to resort to the altmode notifications.

On PCB level this is the signal from PM7250B (pin CC_OUT) which is
called USB_PHY_PS.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20240411-fp5-usb-c-gpio-v1-1-78f11deb940a@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts

index 4ff9fc24e50e120f51e840191881d22c59aed874..f3432701945f7f35713e05945a6b116ea85ceef6 100644 (file)
@@ -77,6 +77,8 @@
                #address-cells = <1>;
                #size-cells = <0>;
 
+               orientation-gpios = <&tlmm 140 GPIO_ACTIVE_HIGH>;
+
                connector@0 {
                        compatible = "usb-c-connector";
                        reg = <0>;