提交 a5683471 编写于 作者: L Luca Weiss 提交者: Bjorn Andersson

ARM: dts: qcom: msm8226: Add pinctrl for sdhci nodes

Also remove the pinctrl from qcom-apq8026-lg-lenok as it is the same
value as the generic pinctrl.
Signed-off-by: NLuca Weiss <luca@z3ntu.xyz>
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220216212433.1373903-4-luca@z3ntu.xyz
上级 c8a8f755
...@@ -204,9 +204,6 @@ ...@@ -204,9 +204,6 @@
bus-width = <8>; bus-width = <8>;
non-removable; non-removable;
pinctrl-names = "default";
pinctrl-0 = <&sdhc1_pin_a>;
}; };
&smbb { &smbb {
...@@ -219,20 +216,6 @@ ...@@ -219,20 +216,6 @@
}; };
&tlmm { &tlmm {
sdhc1_pin_a: sdhc1-pin-active {
clk {
pins = "sdc1_clk";
drive-strength = <10>;
bias-disable;
};
cmd-data {
pins = "sdc1_cmd", "sdc1_data";
drive-strength = <10>;
bias-pull-up;
};
};
touch_pins: touch { touch_pins: touch {
irq { irq {
pins = "gpio17"; pins = "gpio17";
......
...@@ -116,6 +116,8 @@ ...@@ -116,6 +116,8 @@
<&gcc GCC_SDCC1_AHB_CLK>, <&gcc GCC_SDCC1_AHB_CLK>,
<&xo_board>; <&xo_board>;
clock-names = "core", "iface", "xo"; clock-names = "core", "iface", "xo";
pinctrl-names = "default";
pinctrl-0 = <&sdhc1_default_state>;
status = "disabled"; status = "disabled";
}; };
...@@ -130,6 +132,8 @@ ...@@ -130,6 +132,8 @@
<&gcc GCC_SDCC2_AHB_CLK>, <&gcc GCC_SDCC2_AHB_CLK>,
<&xo_board>; <&xo_board>;
clock-names = "core", "iface", "xo"; clock-names = "core", "iface", "xo";
pinctrl-names = "default";
pinctrl-0 = <&sdhc2_default_state>;
status = "disabled"; status = "disabled";
}; };
...@@ -144,6 +148,8 @@ ...@@ -144,6 +148,8 @@
<&gcc GCC_SDCC3_AHB_CLK>, <&gcc GCC_SDCC3_AHB_CLK>,
<&xo_board>; <&xo_board>;
clock-names = "core", "iface", "xo"; clock-names = "core", "iface", "xo";
pinctrl-names = "default";
pinctrl-0 = <&sdhc3_default_state>;
status = "disabled"; status = "disabled";
}; };
...@@ -320,6 +326,57 @@ ...@@ -320,6 +326,57 @@
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
sdhc1_default_state: sdhc1-default-state {
clk {
pins = "sdc1_clk";
drive-strength = <10>;
bias-disable;
};
cmd-data {
pins = "sdc1_cmd", "sdc1_data";
drive-strength = <10>;
bias-pull-up;
};
};
sdhc2_default_state: sdhc2-default-state {
clk {
pins = "sdc2_clk";
drive-strength = <10>;
bias-disable;
};
cmd-data {
pins = "sdc2_cmd", "sdc2_data";
drive-strength = <10>;
bias-pull-up;
};
};
sdhc3_default_state: sdhc3-default-state {
clk {
pins = "gpio44";
function = "sdc3";
drive-strength = <8>;
bias-disable;
};
cmd {
pins = "gpio43";
function = "sdc3";
drive-strength = <8>;
bias-pull-up;
};
data {
pins = "gpio39", "gpio40", "gpio41", "gpio42";
function = "sdc3";
drive-strength = <8>;
bias-pull-up;
};
};
}; };
restart@fc4ab000 { restart@fc4ab000 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册