arm64: dts: qcom: sm8350-hdk: add USB-C orientation GPIO
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 9 Apr 2024 14:28:12 +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 GPIO so that the USB-C port 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-2-658efd993987@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8350-hdk.dts

index b43d264ed42b1c78e40fb7930501f49ae2af1a14..4c25ab2f5670ef51f212280bb7a503aae9803a78 100644 (file)
@@ -42,6 +42,7 @@
                compatible = "qcom,sm8350-pmic-glink", "qcom,pmic-glink";
                #address-cells = <1>;
                #size-cells = <0>;
+               orientation-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
 
                connector@0 {
                        compatible = "usb-c-connector";