arm64: dts: qcom: msm8998: Add SDC2 control pins
authorJeffrey Hugo <jhugo@codeaurora.org>
Thu, 15 Nov 2018 17:18:10 +0000 (10:18 -0700)
committerAndy Gross <andy.gross@linaro.org>
Fri, 30 Nov 2018 01:31:00 +0000 (19:31 -0600)
The SDC2 control pins are typically used to manage sleep.

Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8998-pins.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/qcom/msm8998.dtsi

diff --git a/arch/arm64/boot/dts/qcom/msm8998-pins.dtsi b/arch/arm64/boot/dts/qcom/msm8998-pins.dtsi
new file mode 100644 (file)
index 0000000..6db70ac
--- /dev/null
@@ -0,0 +1,78 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2018, The Linux Foundation. All rights reserved. */
+
+&tlmm {
+       sdc2_clk_on: sdc2_clk_on {
+               config {
+                       pins = "sdc2_clk";
+                       bias-disable;           /* NO pull */
+                       drive-strength = <16>;  /* 16 mA */
+               };
+       };
+
+       sdc2_clk_off: sdc2_clk_off {
+               config {
+                       pins = "sdc2_clk";
+                       bias-disable;           /* NO pull */
+                       drive-strength = <2>;   /* 2 mA */
+               };
+       };
+
+       sdc2_cmd_on: sdc2_cmd_on {
+               config {
+                       pins = "sdc2_cmd";
+                       bias-pull-up;           /* pull up */
+                       drive-strength = <10>;  /* 10 mA */
+               };
+       };
+
+       sdc2_cmd_off: sdc2_cmd_off {
+               config {
+                       pins = "sdc2_cmd";
+                       bias-pull-up;           /* pull up */
+                       drive-strength = <2>;   /* 2 mA */
+               };
+       };
+
+       sdc2_data_on: sdc2_data_on {
+               config {
+                       pins = "sdc2_data";
+                       bias-pull-up;           /* pull up */
+                       drive-strength = <10>;  /* 10 mA */
+               };
+       };
+
+       sdc2_data_off: sdc2_data_off {
+               config {
+                       pins = "sdc2_data";
+                       bias-pull-up;           /* pull up */
+                       drive-strength = <2>;   /* 2 mA */
+               };
+       };
+
+       sdc2_cd_on: sdc2_cd_on {
+               mux {
+                       pins = "gpio95";
+                       function = "gpio";
+               };
+
+               config {
+                       pins = "gpio95";
+                       bias-pull-up;           /* pull up */
+                       drive-strength = <2>;   /* 2 mA */
+               };
+       };
+
+       sdc2_cd_off: sdc2_cd_off {
+               mux {
+                       pins = "gpio95";
+                       function = "gpio";
+               };
+
+               config {
+                       pins = "gpio95";
+                       bias-pull-up;           /* pull up */
+                       drive-strength = <2>;   /* 2 mA */
+               };
+       };
+};
index 82f6472..8e7d788 100644 (file)
                };
        };
 };
+
+#include "msm8998-pins.dtsi"