Skip to content

Commit

Permalink
z8102ax-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerr authored Oct 22, 2024
1 parent c7b8162 commit 36ec385
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
24 changes: 12 additions & 12 deletions target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@
function = LED_FUNCTION_STATUS;
};

led_status_modem1: modem1 {
label = "modem1:status";
led_status_5g1: 5g1 {
label = "5g1:status";
gpios = <&pio 8 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_USB;
function-enumerator = <0>;
};

led_status_modem2: modem2 {
label = "modem2:status";
led_status_5g2: 5g2 {
label = "5g2:status";
gpios = <&pio 13 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_USB;
Expand All @@ -99,14 +99,14 @@
gpios = <&pio 3 GPIO_ACTIVE_HIGH>;
};

modem1 {
gpio-export,name = "modem1";
5g1 {
gpio-export,name = "5g1";
gpio-export,output = <1>;
gpios = <&pio 4 GPIO_ACTIVE_HIGH>;
};

modem2 {
gpio-export,name = "modem2";
5g2 {
gpio-export,name = "5g2";
gpio-export,output = <1>;
gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
};
Expand Down Expand Up @@ -273,16 +273,16 @@
"reset",
"watchdog",
"pcie",
"modem1",
"modem2",
"5g1",
"5g2",
"sim1",
"sim2",
"modem1_status",
"5g1_status",
"red_status",
"green_status",
"blue_status",
"",
"modem2_status";
"5g2_status";

spi0_flash_pins: spi0-pins {
mux {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ board_config_update
board=$(board_name)

case "$board" in
zbtlink,zbt-z8102ax)
zbtlink,zbt-z8102ax|\
zbtlink,zbt-z8102ax-v2)
ucidef_add_gpio_switch "5g1" "Power 1st modem" "5g1" "1"
ucidef_add_gpio_switch "5g2" "Power 2nd modem" "5g2" "1"
ucidef_add_gpio_switch "pcie" "Power PCIe port" "pcie" "1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ case "$board" in
;;
routerich,ax3000|\
zbtlink,zbt-z8102ax|\
zbtlink,zbt-z8102ax-v2|\
zbtlink,zbt-z8103ax|\
zyxel,ex5601-t0|\
zyxel,ex5601-t0-ubootmod)
Expand Down

0 comments on commit 36ec385

Please sign in to comment.