Skip to content

Commit

Permalink
arm64: dts: qcom: sa8155p-adp: Add support for uSD card
Browse files Browse the repository at this point in the history
Add support for uSD card on SA8155p-ADP board using the SDHC2
interface.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220403144151.92572-3-bhupesh.sharma@linaro.org
  • Loading branch information
Bhupesh Sharma authored and Bjorn Andersson committed Apr 12, 2022
1 parent 876644c commit 0deb262
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions arch/arm64/boot/dts/qcom/sa8155p-adp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,20 @@
firmware-name = "qcom/sa8155p/cdsp.mdt";
};

&sdhc_2 {
status = "okay";

cd-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_on>;
pinctrl-1 = <&sdc2_off>;
vqmmc-supply = <&vreg_l13c_2p96>; /* IO line power */
vmmc-supply = <&vreg_l17a_2p96>; /* Card power line */
bus-width = <4>;
no-sdio;
no-emmc;
};

&uart2 {
status = "okay";
};
Expand Down Expand Up @@ -405,6 +419,60 @@
&tlmm {
gpio-reserved-ranges = <0 4>;

sdc2_on: sdc2_on {
clk {
pins = "sdc2_clk";
bias-disable; /* No pull */
drive-strength = <16>; /* 16 MA */
};

cmd {
pins = "sdc2_cmd";
bias-pull-up; /* pull up */
drive-strength = <16>; /* 16 MA */
};

data {
pins = "sdc2_data";
bias-pull-up; /* pull up */
drive-strength = <16>; /* 16 MA */
};

sd-cd {
pins = "gpio96";
function = "gpio";
bias-pull-up; /* pull up */
drive-strength = <2>; /* 2 MA */
};
};

sdc2_off: sdc2_off {
clk {
pins = "sdc2_clk";
bias-disable; /* No pull */
drive-strength = <2>; /* 2 MA */
};

cmd {
pins = "sdc2_cmd";
bias-pull-up; /* pull up */
drive-strength = <2>; /* 2 MA */
};

data {
pins = "sdc2_data";
bias-pull-up; /* pull up */
drive-strength = <2>; /* 2 MA */
};

sd-cd {
pins = "gpio96";
function = "gpio";
bias-pull-up; /* pull up */
drive-strength = <2>; /* 2 MA */
};
};

usb2phy_ac_en1_default: usb2phy_ac_en1_default {
mux {
pins = "gpio113";
Expand Down

0 comments on commit 0deb262

Please sign in to comment.