diff --git a/arch/arm64/boot/dts/qcom/msm8916-xiaoxun-jz02-v30.dts b/arch/arm64/boot/dts/qcom/msm8916-xiaoxun-jz02-v30.dts new file mode 100644 index 00000000000000..dfc09c043dbcbb --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-xiaoxun-jz02-v30.dts @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-ufi.dtsi" + +/ { + model = "JZ02 v30 4G Modem Stick"; + compatible = "xiaoxun,jz02-v30", "qcom,msm8916"; +}; + +&button_restart { + gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>; +}; + +&led_b { + gpios = <&tlmm 7 GPIO_ACTIVE_HIGH>; +}; + +&led_g { + gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; +}; + +&led_r { + gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; +}; + +&mpss { + pinctrl-0 = <&sim_ctrl_default>; + pinctrl-names = "default"; +}; + +&button_default { + pins = "gpio37"; + bias-pull-down; +}; + +&gpio_leds_default { + pins = "gpio6", "gpio7", "gpio8"; +}; + +/* This selects the external SIM card slot by default */ +&tlmm { + sim_ctrl_default: sim-ctrl-default-state { + esim-sel-pins { + pins = "gpio22", "gpio23"; + function = "gpio"; + bias-disable; + output-low; + }; + + sim-en-pins { + pins = "gpio1"; + function = "gpio"; + bias-disable; + output-high; + }; + + sim-sel-pins { + pins = "gpio20"; + function = "gpio"; + bias-disable; + output-low; + }; + }; +};