mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-07 14:19:35 +00:00
arm64: dts: qcom: sa8155p-adp: Add support for uSD card
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
This commit is contained in:
parent
876644c760
commit
0deb2624e2
@ -317,6 +317,20 @@ &remoteproc_cdsp {
|
|||||||
firmware-name = "qcom/sa8155p/cdsp.mdt";
|
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 {
|
&uart2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -405,6 +419,60 @@ &pcie1_phy {
|
|||||||
&tlmm {
|
&tlmm {
|
||||||
gpio-reserved-ranges = <0 4>;
|
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 {
|
usb2phy_ac_en1_default: usb2phy_ac_en1_default {
|
||||||
mux {
|
mux {
|
||||||
pins = "gpio113";
|
pins = "gpio113";
|
||||||
|
Loading…
Reference in New Issue
Block a user