Skip to content

Commit

Permalink
ath79: teltonika-rut230: fully support digital output lines
Browse files Browse the repository at this point in the history
Remove GPIO hog for modem power, as well as define userspace GPIO
switches for enabling and resetting the modem. While at that, define a
switch for the external GPIO available on the power connector.

Signed-off-by: Lech Perczak <[email protected]>
Link: openwrt/openwrt#17503
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
Leo-PL authored and hauke committed Jan 12, 2025
1 parent 46a6f49 commit 852911a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 0 additions & 9 deletions target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,6 @@
status = "okay";
};

&gpio {
modem-power {
gpio-hog;
output-low;
gpios = <18 GPIO_ACTIVE_HIGH>;
line-name = "modem-power";
};
};

&usb_phy {
status = "okay";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ dlink,dir-835-a1)
librerouter,librerouter-v1)
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "513" "0"
;;
teltonika,rut230-v1)
ucidef_add_gpio_switch "DOUT" "DOUT" "524" "0"
ucidef_add_gpio_switch "modem_pwr" "Modem power" "531" "1"
ucidef_add_gpio_switch "modem_rst" "Modem reset" "530" "0"
;;
teltonika,rut955)
ucidef_add_gpio_switch "sim_sel" "SIM select" "542" "1"
ucidef_add_gpio_switch "DOUT1" "DOUT1 (OC)" "543" "0"
Expand Down

0 comments on commit 852911a

Please sign in to comment.