mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-08 15:29:54 +00:00
arm64: dts: qcom: rb5: Add support for uSD card
Add support for uSD card on RB5 using the SDHC2 interface. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> [DB: disabled 1.8V support to get SDHC to work] Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20201028190955.1264526-2-dmitry.baryshkov@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
c4cf0300be
commit
53a8ccf1c7
@ -18,6 +18,7 @@ / {
|
|||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
serial0 = &uart12;
|
serial0 = &uart12;
|
||||||
|
sdhc2 = &sdhc_2;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -475,6 +476,20 @@ &qupv3_id_2 {
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&sdhc_2 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
|
||||||
|
vmmc-supply = <&vreg_l9c_2p96>;
|
||||||
|
vqmmc-supply = <&vreg_l6c_2p96>;
|
||||||
|
cd-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
|
||||||
|
bus-width = <4>;
|
||||||
|
/* there seem to be issues with HS400-1.8V mode, so disable it */
|
||||||
|
no-1-8-v;
|
||||||
|
no-sdio;
|
||||||
|
no-emmc;
|
||||||
|
};
|
||||||
|
|
||||||
/* CAN */
|
/* CAN */
|
||||||
&spi0 {
|
&spi0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
@ -663,6 +678,32 @@ &tlmm {
|
|||||||
"HST_BLE_SNS_UART_RX",
|
"HST_BLE_SNS_UART_RX",
|
||||||
"HST_WLAN_UART_TX",
|
"HST_WLAN_UART_TX",
|
||||||
"HST_WLAN_UART_RX";
|
"HST_WLAN_UART_RX";
|
||||||
|
|
||||||
|
sdc2_default_state: sdc2-default {
|
||||||
|
clk {
|
||||||
|
pins = "sdc2_clk";
|
||||||
|
bias-disable;
|
||||||
|
drive-strength = <16>;
|
||||||
|
};
|
||||||
|
|
||||||
|
cmd {
|
||||||
|
pins = "sdc2_cmd";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <16>;
|
||||||
|
};
|
||||||
|
|
||||||
|
data {
|
||||||
|
pins = "sdc2_data";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <16>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sdc2_card_det_n: sd-card-det-n {
|
||||||
|
pins = "gpio77";
|
||||||
|
function = "gpio";
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&uart12 {
|
&uart12 {
|
||||||
|
Loading…
Reference in New Issue
Block a user