diff options
author | Yang Xiwen <forbidden405@foxmail.com> | 2023-03-01 11:53:50 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-03-07 07:14:09 +0300 |
commit | eaba416688f4f074ea3bf2ef975c9e2dbb06712b (patch) | |
tree | 7105744ceee4748745457c9745eed838ce5dd2c4 /arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts | |
parent | 052750a4444577e6067bdf73dd5ff92876f59ef6 (diff) | |
download | linux-eaba416688f4f074ea3bf2ef975c9e2dbb06712b.tar.xz |
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: faf69431464b ("arm64: dts: qcom: msm8916-thwc: Add initial device trees")
Signed-off-by: Yang Xiwen <forbidden405@foxmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/tencent_7036BCA256055D05F8C49D86DF7F0E2D1A05@qq.com
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts')
-rw-r--r-- | arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts b/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts index 700cf81cbf8c..8433c9710b1c 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts @@ -25,6 +25,11 @@ gpios = <&msmgpio 20 GPIO_ACTIVE_HIGH>; }; +&mpss { + pinctrl-0 = <&sim_ctrl_default>; + pinctrl-names = "default"; +}; + &button_default { pins = "gpio37"; bias-pull-down; @@ -34,6 +39,25 @@ pins = "gpio20", "gpio21", "gpio22"; }; -&sim_ctrl_default { - pins = "gpio1", "gpio2"; +/* This selects the external SIM card slot by default */ +&msmgpio { + sim_ctrl_default: sim-ctrl-default-state { + esim-sel-pins { + pins = "gpio0", "gpio3"; + bias-disable; + output-low; + }; + + sim-en-pins { + pins = "gpio1"; + bias-disable; + output-low; + }; + + sim-sel-pins { + pins = "gpio2"; + bias-disable; + output-high; + }; + }; }; |