mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
This brings the power on sequence in line with the EG25-G Hardware Design datasheet, which states we need to wait at least 30 ms after VBAT becomes stable before pulling PWRKEY low (first action of the power on sequene). After this change the sequence becomes as follows: - Set RESET_N high - Wait 60 ms (double 30 ms) - Execute PWRKEY sequence 60 ms was choosen because we don't know when VBAT becomes stable, but it should be much less than an additional 30 ms. Empirical evidence suggests PinePhone units with a healthy battery do not see serious side effects from not doing this, while the modem will fail to boot and/or throw random errors on boot with a worn out battery.
59 lines
2.2 KiB
TOML
59 lines
2.2 KiB
TOML
[manager]
|
|
need_libusb = true
|
|
usb_vid = 0x2c7c
|
|
usb_pid = 0x0125
|
|
|
|
# Delay between setting GPIO and PWRKEY sequence, set in microseconds
|
|
poweron_delay = 100000
|
|
|
|
# Uncomment the following if you need to change the modem detection timeout on
|
|
# resume and/or the time during which suspend is blocked after modem boot
|
|
#[suspend]
|
|
#boot_timeout = 120
|
|
#recovery_timeout = 9
|
|
|
|
[gpio]
|
|
dtr = 358
|
|
pwrkey = 35
|
|
reset = 68
|
|
apready = 231
|
|
disable = 232
|
|
|
|
[at]
|
|
uart = "/dev/ttyS2"
|
|
configure = [
|
|
# Each command has 4 possible elements:
|
|
# * `cmd` : the AT command itself, which will be translated to "AT+`cmd`"
|
|
# * `subcmd`: the subcommand in case a single AT command can be used
|
|
# to change multiple parameters, such as QCFG (optional)
|
|
# * `value` : the commands, argument, usually used to set the value of
|
|
# a specific parameter (optional)
|
|
# * `expect`: the expected return value; the command is first executed
|
|
# without any value in order to query the current state. This
|
|
# state is then compared to the `expect` string; if they don't
|
|
# match, the command is then executed with value `expect` in
|
|
# order to set the parameter to the configured value (optional)
|
|
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
|
{ cmd = "QGMR" },
|
|
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
|
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
|
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
|
{ cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",2000,1000,5000,\"off\",1" },
|
|
{ cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",2000" },
|
|
{ cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1" },
|
|
{ cmd = "QCFG", subcmd = "urc/delay", expect = "1" },
|
|
{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"usbat\"" },
|
|
{ cmd = "QGPS", value = "1" },
|
|
{ cmd = "QSCLK", value = "1" },
|
|
{ cmd = "QCFG", subcmd = "urc/cache", value = "0" }
|
|
]
|
|
suspend = [
|
|
{ cmd = "QGPSEND" },
|
|
{ cmd = "QCFG", subcmd = "urc/cache", value = "1" }
|
|
]
|
|
resume = [
|
|
{ cmd = "QCFG", subcmd = "urc/cache", value = "0" },
|
|
{ cmd = "QGPS", value = "1" }
|
|
]
|
|
reset = [ { cmd = "CFUN", value = "1,1" } ]
|