aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2016-06-21 13:22:49 -0400
committerAndy Gross <andy.gross@linaro.org>2016-08-25 11:29:00 -0400
commit69713756f4ae908efddd2a304a29ef52a513b2dd (patch)
tree8bb585546125e9ae776072ecfb5584e864d3b210
parent74578565d8c91b1ab36ce3ad513fcd5f37da24c6 (diff)
arm64: dts: db820c: add support to external sd card.
This patch adds support to external sd card. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
-rw-r--r--arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi39
-rw-r--r--arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi10
2 files changed, 49 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi
new file mode 100644
index 000000000000..24552f19b3fa
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi
@@ -0,0 +1,39 @@
1/*
2 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13&msmgpio {
14 sdc2_cd_on: sdc2_cd_on {
15 mux {
16 pins = "gpio38";
17 function = "gpio";
18 };
19
20 config {
21 pins = "gpio38";
22 bias-pull-up; /* pull up */
23 drive-strength = <16>; /* 16 MA */
24 };
25 };
26
27 sdc2_cd_off: sdc2_cd_off {
28 mux {
29 pins = "gpio38";
30 function = "gpio";
31 };
32
33 config {
34 pins = "gpio38";
35 bias-pull-up; /* pull up */
36 drive-strength = <2>; /* 2 MA */
37 };
38 };
39};
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index adf7602b7c23..afb218cffc60 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -12,6 +12,7 @@
12 */ 12 */
13 13
14#include "msm8996.dtsi" 14#include "msm8996.dtsi"
15#include "apq8096-db820c-pins.dtsi"
15 16
16/ { 17/ {
17 aliases { 18 aliases {
@@ -74,5 +75,14 @@
74 label = "HS-SPI1"; 75 label = "HS-SPI1";
75 status = "okay"; 76 status = "okay";
76 }; 77 };
78
79 sdhci@74a4900 {
80 /* External SD card */
81 pinctrl-names = "default", "sleep";
82 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
83 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
84 cd-gpios = <&msmgpio 38 0x1>;
85 status = "okay";
86 };
77 }; 87 };
78}; 88};