Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-xiaoxun-jz02-v30.dts
Original file line number Diff line number Diff line change
@@ -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;
};
};
};