mirror_ubuntu-kernels/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts
Stephan Gerhold 41e22c2ff3 arm64: dts: qcom: msm8916: Rename &msmgpio -> &tlmm
MSM8916 is the only ARM64 Qualcomm SoC that is still using the old
&msmgpio name. Change this to &tlmm to avoid confusion.

Note that the node ordering does not change because the MSM8916 device
trees have pinctrl separated at the bottom (similar to sc7180).

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230525-msm8916-labels-v1-1-bec0f5fb46fb@gerhold.net
2023-05-29 14:37:01 -07:00

67 lines
1001 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
#include "msm8916-ufi.dtsi"
/ {
model = "ufi-001c/ufi-001b 4G Modem Stick";
compatible = "thwc,ufi001c", "qcom,msm8916";
};
&button_restart {
gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
};
&led_r {
gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
};
&led_g {
gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
};
&led_b {
gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
};
&mpss {
pinctrl-0 = <&sim_ctrl_default>;
pinctrl-names = "default";
};
&button_default {
pins = "gpio37";
bias-pull-down;
};
&gpio_leds_default {
pins = "gpio20", "gpio21", "gpio22";
};
/* This selects the external SIM card slot by default */
&tlmm {
sim_ctrl_default: sim-ctrl-default-state {
esim-sel-pins {
pins = "gpio0", "gpio3";
function = "gpio";
bias-disable;
output-low;
};
sim-en-pins {
pins = "gpio1";
function = "gpio";
bias-disable;
output-low;
};
sim-sel-pins {
pins = "gpio2";
function = "gpio";
bias-disable;
output-high;
};
};
};