Skip to content

Commit d25df67

Browse files
authored
arm64: dts: qcom: monaco: Enable SDHCI storage support (#338)
arm64: dts: qcom: monaco: Enable SDHCI storage support
2 parents e66a601 + 0cec1e9 commit d25df67

5 files changed

Lines changed: 126 additions & 1 deletion

File tree

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-camera-imx577.dtb
6464
monaco-evk-ifp-mezzanine-dtbs := monaco-evk.dtb monaco-evk-ifp-mezzanine.dtbo
6565

6666
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-ifp-mezzanine.dtb
67+
68+
monaco-evk-sd-card-dtbs := monaco-evk.dtb monaco-evk-sd-card.dtbo
69+
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-sd-card.dtb
70+
71+
monaco-evk-emmc-dtbs := monaco-evk.dtb monaco-evk-emmc.dtbo
72+
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-emmc.dtb
73+
6774
dtb-$(CONFIG_ARCH_QCOM) += msm8216-samsung-fortuna3g.dtb
6875
dtb-$(CONFIG_ARCH_QCOM) += msm8916-acer-a1-724.dtb
6976
dtb-$(CONFIG_ARCH_QCOM) += msm8916-alcatel-idol347.dtb
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
vreg_s2s: regulator-vreg-s2s {
11+
compatible = "regulator-fixed";
12+
regulator-name = "regulator-s2s";
13+
14+
regulator-min-microvolt = <1800000>;
15+
regulator-max-microvolt = <1800000>;
16+
};
17+
};
18+
19+
&sdhc_1 {
20+
vmmc-supply = <&vreg_l8a>;
21+
vqmmc-supply = <&vreg_s2s>;
22+
23+
supports-cqe;
24+
25+
pinctrl-0 = <&sdc1_state_on>;
26+
pinctrl-1 = <&sdc1_state_off>;
27+
28+
pinctrl-names = "default", "sleep";
29+
30+
non-removable;
31+
32+
bus-width = <8>;
33+
no-sd;
34+
no-sdio;
35+
36+
status = "okay";
37+
};
38+
39+
&ufs_mem_hc {
40+
status = "disabled";
41+
};
42+
43+
&vreg_l8a {
44+
regulator-min-microvolt = <2960000>;
45+
regulator-max-microvolt = <2960000>;
46+
};
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
#include <dt-bindings/gpio/gpio.h>
10+
11+
/ {
12+
vmmc_sdc: regulator-dummy {
13+
compatible = "regulator-fixed";
14+
15+
regulator-name = "vmmc_sdc";
16+
regulator-min-microvolt = <2950000>;
17+
regulator-max-microvolt = <2950000>;
18+
};
19+
20+
vreg_sdc: regulator-sdc {
21+
compatible = "regulator-gpio";
22+
23+
regulator-name = "vreg_sdc";
24+
regulator-type = "voltage";
25+
regulator-min-microvolt = <1800000>;
26+
regulator-max-microvolt = <2950000>;
27+
28+
gpios = <&expander1 7 GPIO_ACTIVE_HIGH>;
29+
states = <1800000 1>, <2950000 0>;
30+
31+
startup-delay-us = <100>;
32+
};
33+
};
34+
35+
&sdhc_1 {
36+
vmmc-supply = <&vmmc_sdc>;
37+
vqmmc-supply = <&vreg_sdc>;
38+
39+
pinctrl-0 = <&sdc1_state_on>, <&sd_cd>;
40+
pinctrl-1 = <&sdc1_state_off>, <&sd_cd>;
41+
pinctrl-names = "default", "sleep";
42+
43+
cap-sd-highspeed;
44+
no-1-8-v;
45+
46+
bus-width = <4>;
47+
cd-gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
48+
no-mmc;
49+
no-sdio;
50+
51+
status = "okay";
52+
};
53+
54+
&sdhc1_opp_table {
55+
opp-100000000 {
56+
opp-hz = /bits/ 64 <100000000>;
57+
required-opps = <&rpmhpd_opp_low_svs>;
58+
};
59+
60+
opp-202000000 {
61+
opp-hz = /bits/ 64 <202000000>;
62+
required-opps = <&rpmhpd_opp_svs_l1>;
63+
};
64+
};
65+
66+
&tlmm {
67+
sd_cd: sd-cd-state {
68+
pins = "gpio11";
69+
function = "gpio";
70+
bias-pull-up;
71+
};
72+
};

arch/arm64/boot/dts/qcom/monaco.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4530,7 +4530,6 @@
45304530

45314531
qcom,dll-config = <0x000f64ee>;
45324532
qcom,ddr-config = <0x80040868>;
4533-
supports-cqe;
45344533
dma-coherent;
45354534

45364535
qcom,ice = <&sdhc_ice>;

arch/arm64/boot/dts/qcom/qcs8300-ride.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@
697697
vmmc-supply = <&vreg_l8a>;
698698
vqmmc-supply = <&vreg_s4a>;
699699

700+
supports-cqe;
700701
non-removable;
701702
no-sd;
702703
no-sdio;

0 commit comments

Comments
 (0)