arm64: dts: qcom: qcs404-evb: Define USB ID pin
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 11 Mar 2020 19:15:14 +0000 (19:15 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 14 Apr 2020 05:04:41 +0000 (22:04 -0700)
The USB ID pin is used to tell if a system is a Host or a Device. For our
purposes we will bind this pin into gpio-usb-conn later.

For now define the pin with its pinmux.

Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20200311191517.8221-4-bryan.odonoghue@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/qcs404-evb.dtsi

index f878028..2d4e9db 100644 (file)
                        bias-pull-down;
                };
        };
+
+       usb3_id_pin: usb3-id-pin {
+               pinmux {
+                       pins = "gpio116";
+                       function = "gpio";
+               };
+
+               pinconf {
+                       pins = "gpio116";
+                       drive-strength = <2>;
+                       bias-pull-up;
+                       input-enable;
+               };
+       };
 };
 
 &pms405_gpios {