ARM: dts: Add sdcard support for sdxprairie

Add sdcard support for sdxprairie.

Change-Id: Ia03c2d111f0f6c32b0e4c9b98a48d471ac61de9c
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
tirimbino
Pradeep P V K 6 years ago
parent 4443e50ca7
commit 5c9136d987
  1. 21
      arch/arm64/boot/dts/qcom/sdxprairie-cdp.dtsi
  2. 21
      arch/arm64/boot/dts/qcom/sdxprairie-mtp.dtsi
  3. 76
      arch/arm64/boot/dts/qcom/sdxprairie-pinctrl.dtsi
  4. 42
      arch/arm64/boot/dts/qcom/sdxprairie.dtsi

@ -183,3 +183,24 @@
"usb_in_current",
"chg_temp";
};
&sdhc_1 {
vdd-supply = <&vreg_sd_vdd>;
qcom,vdd-voltage-level = <2950000 2950000>;
qcom,vdd-current-level = <0 800000>;
vdd-io-supply = <&vreg_vddpx_2>;
qcom,vdd-io-voltage-level = <1800000 2850000>;
qcom,vdd-io-current-level = <0 10000>;
pinctrl-names = "active", "sleep";
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_cd_on>;
pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_cd_off>;
qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
200000000>;
qcom,devfreq,freq-table = <50000000 200000000>;
cd-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
status = "ok";
};

@ -215,3 +215,24 @@
qcom,fg-esr-cal-soc-thresh = <26 230>;
qcom,fg-esr-cal-temp-thresh = <10 40>;
};
&sdhc_1 {
vdd-supply = <&vreg_sd_vdd>;
qcom,vdd-voltage-level = <2950000 2950000>;
qcom,vdd-current-level = <0 800000>;
vdd-io-supply = <&vreg_vddpx_2>;
qcom,vdd-io-voltage-level = <1800000 2850000>;
qcom,vdd-io-current-level = <0 10000>;
pinctrl-names = "active", "sleep";
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_cd_on>;
pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_cd_off>;
qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
200000000>;
qcom,devfreq,freq-table = <50000000 200000000>;
cd-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
status = "ok";
};

@ -1358,5 +1358,81 @@
};
};
};
/* SDC pin type */
sdc1_clk_on: sdc1_clk_on {
config {
pins = "sdc1_clk";
bias-disable; /* NO pull */
drive-strength = <16>; /* 16 MA */
};
};
sdc1_clk_off: sdc1_clk_off {
config {
pins = "sdc1_clk";
bias-disable; /* NO pull */
drive-strength = <2>; /* 2 MA */
};
};
sdc1_cmd_on: sdc1_cmd_on {
config {
pins = "sdc1_cmd";
bias-pull-up; /* pull up */
drive-strength = <10>; /* 10 MA */
};
};
sdc1_cmd_off: sdc1_cmd_off {
config {
pins = "sdc1_cmd";
num-grp-pins = <1>;
bias-pull-up; /* pull up */
drive-strength = <2>; /* 2 MA */
};
};
sdc1_data_on: sdc1_data_on {
config {
pins = "sdc1_data";
bias-pull-up; /* pull up */
drive-strength = <10>; /* 10 MA */
};
};
sdc1_data_off: sdc1_data_off {
config {
pins = "sdc1_data";
bias-pull-up; /* pull up */
drive-strength = <2>; /* 2 MA */
};
};
sdc1_cd_on: cd_on {
mux {
pins = "gpio99";
function = "gpio";
};
config {
pins = "gpio99";
drive-strength = <2>;
bias-pull-up;
};
};
sdc1_cd_off: cd_off {
mux {
pins = "gpio99";
function = "gpio";
};
config {
pins = "gpio99";
drive-strength = <2>;
bias-disable;
};
};
};
};

@ -32,6 +32,7 @@
aliases {
pci-domain0 = &pcie0; /* PCIe0 domain */
sdhc1 = &sdhc_1; /* SDC1 eMMC/SD/SDIO slot */
};
reserved-memory {
@ -1109,6 +1110,47 @@
mhi_devices {
};
};
sdhc_1: sdhci@8804000 {
compatible = "qcom,sdhci-msm-v5";
reg = <0x8804000 0x1000>;
reg-names = "hc_mem";
interrupts = <GIC_SPI 210 IRQ_TYPE_NONE>,
<GIC_SPI 227 IRQ_TYPE_NONE>;
interrupt-names = "hc_irq", "pwr_irq";
qcom,bus-width = <4>;
qcom,msm-bus,name = "sdhc1";
qcom,msm-bus,num-cases = <8>;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps = <78 512 0 0>, /* No vote */
<78 512 1600 3200>, /* 400 KB/s*/
<78 512 80000 160000>, /* 20 MB/s */
<78 512 100000 200000>, /* 25 MB/s */
<78 512 200000 400000>, /* 50 MB/s */
<78 512 400000 800000>, /* 100 MB/s */
<78 512 400000 800000>, /* 200 MB/s */
<78 512 2048000 4096000>; /* Max. bandwidth */
qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
100000000 200000000 4294967295>;
/* PM QoS */
qcom,pm-qos-cpu-groups = <0x0>;
qcom,pm-qos-legacy-latency-us = <70 70>;
qcom,pm-qos-irq-type = "affine_cores";
qcom,pm-qos-irq-cpu = <0>;
qcom,pm-qos-irq-latency = <70 70>;
clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
<&clock_gcc GCC_SDCC1_APPS_CLK>;
clock-names = "iface_clk", "core_clk";
qcom,restore-after-cx-collapse;
status = "disabled";
};
};
#include "sdxprairie-pm.dtsi"

Loading…
Cancel
Save