arm64: dts: qcom: sc8180x-lenovo-flex-5g: add USB-C orientation GPIOs
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 9 Apr 2024 14:28:15 +0000 (17:28 +0300)
committerBjorn Andersson <andersson@kernel.org>
Sat, 20 Apr 2024 18:00:20 +0000 (13:00 -0500)
Define the USB-C orientation GPIOs so that the USB-C ports orientation
is known without having to resort to the altmode notifications.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240409-hdk-orientation-gpios-v2-5-658efd993987@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts

index 6f2e1c732ed367d19135d4c53a3300de7cbb5070..6af99116c7158d77e5d68ca2e9025d536afbe143 100644 (file)
@@ -51,6 +51,8 @@
 
                #address-cells = <1>;
                #size-cells = <0>;
+               orientation-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>,
+                                   <&tlmm 58 GPIO_ACTIVE_HIGH>;
 
                connector@0 {
                        compatible = "usb-c-connector";