Merge "ARM: dts: msm: Add SD card support"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
1b13ee85bc
@@ -44,4 +44,56 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sdc2_on: sdc2_on {
|
||||||
|
clk {
|
||||||
|
pins = "sdc2_clk";
|
||||||
|
bias-disable;
|
||||||
|
drive-strength = <16>;
|
||||||
|
};
|
||||||
|
|
||||||
|
cmd {
|
||||||
|
pins = "sdc2_cmd";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <10>;
|
||||||
|
};
|
||||||
|
|
||||||
|
data {
|
||||||
|
pins = "sdc2_data";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <10>;
|
||||||
|
};
|
||||||
|
|
||||||
|
sd-cd {
|
||||||
|
pins = "gpio55";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sdc2_off: sdc2_off {
|
||||||
|
clk {
|
||||||
|
pins = "sdc2_clk";
|
||||||
|
bias-disable;
|
||||||
|
drive-strength = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
cmd {
|
||||||
|
pins = "sdc2_cmd";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
data {
|
||||||
|
pins = "sdc2_data";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
sd-cd {
|
||||||
|
pins = "gpio55";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@@ -3,6 +3,9 @@
|
|||||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/clock/qcom,gcc-pineapple.h>
|
||||||
|
|
||||||
&reserved_memory {
|
&reserved_memory {
|
||||||
spintable: spintable_region@90000000 {
|
spintable: spintable_region@90000000 {
|
||||||
no-map;
|
no-map;
|
||||||
@@ -99,3 +102,23 @@
|
|||||||
|
|
||||||
status = "ok";
|
status = "ok";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&sdhc_2 {
|
||||||
|
status = "ok";
|
||||||
|
vdd-supply = <&pm_humu_l9>;
|
||||||
|
qcom,vdd-voltage-level = <2950000 2960000>;
|
||||||
|
qcom,vdd-current-level = <0 800000>;
|
||||||
|
|
||||||
|
vdd-io-supply = <&pm_humu_l8>;
|
||||||
|
qcom,vdd-io-voltage-level = <1800000 2960000>;
|
||||||
|
qcom,vdd-io-current-level = <0 5600>;
|
||||||
|
|
||||||
|
pinctrl-names = "default", "sleep";
|
||||||
|
pinctrl-0 = <&sdc2_on>;
|
||||||
|
pinctrl-1 = <&sdc2_off>;
|
||||||
|
|
||||||
|
cd-gpios = <&tlmm 55 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
|
resets = <&gcc GCC_SDCC2_BCR>;
|
||||||
|
reset-names = "core_reset";
|
||||||
|
};
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
aliases {
|
aliases {
|
||||||
serial0 = &qupv3_se7_2uart;
|
serial0 = &qupv3_se7_2uart;
|
||||||
ufshc1 = &ufshc_mem; /* Embedded UFS Slot */
|
ufshc1 = &ufshc_mem; /* Embedded UFS Slot */
|
||||||
|
sdhc2 = &sdhc_2;
|
||||||
};
|
};
|
||||||
|
|
||||||
firmware: firmware { };
|
firmware: firmware { };
|
||||||
@@ -925,6 +926,71 @@
|
|||||||
cpu_freq_vote = <0>;
|
cpu_freq_vote = <0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sdhc2_opp_table: sdhc2-opp-table {
|
||||||
|
compatible = "operating-points-v2";
|
||||||
|
|
||||||
|
opp-100000000 {
|
||||||
|
opp-hz = /bits/ 64 <100000000>;
|
||||||
|
opp-peak-kBps = <160000 100000>;
|
||||||
|
opp-avg-kBps = <80000 50000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
opp-202000000 {
|
||||||
|
opp-hz = /bits/ 64 <202000000>;
|
||||||
|
opp-peak-kBps = <200000 120000>;
|
||||||
|
opp-avg-kBps = <80000 50000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sdhc_2: sdhci@8804000 {
|
||||||
|
status = "disabled";
|
||||||
|
|
||||||
|
compatible = "qcom,sdhci-msm-v5";
|
||||||
|
reg = <0x08804000 0x1000>;
|
||||||
|
reg-names = "hc_mem";
|
||||||
|
|
||||||
|
interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
|
||||||
|
<GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
interrupt-names = "hc_irq", "pwr_irq";
|
||||||
|
|
||||||
|
bus-width = <4>;
|
||||||
|
no-sdio;
|
||||||
|
no-mmc;
|
||||||
|
qcom,restore-after-cx-collapse;
|
||||||
|
|
||||||
|
clocks = <&gcc GCC_SDCC2_AHB_CLK>,
|
||||||
|
<&gcc GCC_SDCC2_APPS_CLK>;
|
||||||
|
clock-names = "iface", "core";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DLL HSR settings. Refer go/hsr - <Target> DLL settings.
|
||||||
|
* Note that the DLL_CONFIG_2 value is not passed from the
|
||||||
|
* device tree, but it is calculated in the driver.
|
||||||
|
*/
|
||||||
|
qcom,dll-hsr-list = <0x0007442C 0x0 0x10
|
||||||
|
0x090106C0 0x80040868>;
|
||||||
|
|
||||||
|
iommus = <&apps_smmu 0x540 0x0>;
|
||||||
|
qcom,iommu-dma = "fastmap";
|
||||||
|
dma-coherent;
|
||||||
|
|
||||||
|
interconnects = <&aggre2_noc MASTER_SDCC_2 &mc_virt SLAVE_EBI1>,
|
||||||
|
<&gem_noc MASTER_APPSS_PROC &config_noc
|
||||||
|
SLAVE_SDCC_2>;
|
||||||
|
interconnect-names = "sdhc-ddr","cpu-sdhc";
|
||||||
|
operating-points-v2 = <&sdhc2_opp_table>;
|
||||||
|
|
||||||
|
qos0 {
|
||||||
|
mask = <0xf0>;
|
||||||
|
vote = <44>;
|
||||||
|
};
|
||||||
|
|
||||||
|
qos1 {
|
||||||
|
mask = <0x0f>;
|
||||||
|
vote = <44>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&reserved_memory {
|
&reserved_memory {
|
||||||
|
Reference in New Issue
Block a user