Skip to content

Commit eaba416

Browse files
185264646andersson
authored andcommitted
arm64: dts: qcom: msm8916-ufi: Fix sim card selection pinctrl
The previous commit mistakenly introduced sim_ctrl_default as pinctrl, this is incorrect, the interface for sim card selection varies between different devices and should not be placed in the dtsi. This commit selects external SIM card slot for ufi001c as default. uf896 selects the correct SIM card slot automatically, thus does not need this pinctrl node. Fixes: faf6943 ("arm64: dts: qcom: msm8916-thwc: Add initial device trees") Signed-off-by: Yang Xiwen <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 052750a commit eaba416

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

arch/arm64/boot/dts/qcom/msm8916-thwc-uf896.dts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@
3333
&gpio_leds_default {
3434
pins = "gpio81", "gpio82", "gpio83";
3535
};
36-
37-
&sim_ctrl_default {
38-
pins = "gpio1", "gpio2";
39-
};

arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
gpios = <&msmgpio 20 GPIO_ACTIVE_HIGH>;
2626
};
2727

28+
&mpss {
29+
pinctrl-0 = <&sim_ctrl_default>;
30+
pinctrl-names = "default";
31+
};
32+
2833
&button_default {
2934
pins = "gpio37";
3035
bias-pull-down;
@@ -34,6 +39,25 @@
3439
pins = "gpio20", "gpio21", "gpio22";
3540
};
3641

37-
&sim_ctrl_default {
38-
pins = "gpio1", "gpio2";
42+
/* This selects the external SIM card slot by default */
43+
&msmgpio {
44+
sim_ctrl_default: sim-ctrl-default-state {
45+
esim-sel-pins {
46+
pins = "gpio0", "gpio3";
47+
bias-disable;
48+
output-low;
49+
};
50+
51+
sim-en-pins {
52+
pins = "gpio1";
53+
bias-disable;
54+
output-low;
55+
};
56+
57+
sim-sel-pins {
58+
pins = "gpio2";
59+
bias-disable;
60+
output-high;
61+
};
62+
};
3963
};

arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@
9292
};
9393

9494
&mpss {
95-
pinctrl-0 = <&sim_ctrl_default>;
96-
pinctrl-names = "default";
97-
9895
status = "okay";
9996
};
10097

@@ -240,11 +237,4 @@
240237
drive-strength = <2>;
241238
bias-disable;
242239
};
243-
244-
sim_ctrl_default: sim-ctrl-default-state {
245-
function = "gpio";
246-
drive-strength = <2>;
247-
bias-disable;
248-
output-low;
249-
};
250240
};

0 commit comments

Comments
 (0)