diff --git a/device/main/device-pine64-pinephone/APKBUILD b/device/main/device-pine64-pinephone/APKBUILD index 76b76b951..6bfc24260 100644 --- a/device/main/device-pine64-pinephone/APKBUILD +++ b/device/main/device-pine64-pinephone/APKBUILD @@ -4,7 +4,7 @@ # Co-Maintainer: Bart Ribbers # Co-Maintainer: Clayton Craft pkgname=device-pine64-pinephone -pkgver=0.22 +pkgver=0.23 pkgrel=0 pkgdesc="PINE64 PinePhone" url="https://postmarketos.org" @@ -48,6 +48,9 @@ source=" modemmanager.conf setup-modem.sh setup-modem.sh.ofono + eg25-pinephone-1.0.toml + eg25-pinephone-1.1.toml + eg25-pinephone-1.2.toml sysrq.conf uboot-script.cmd ucm/HiFi.conf @@ -114,6 +117,12 @@ package() { "$pkgdir"/usr/lib/udev/rules.d/ install -Dm644 "$srcdir"/modemmanager.conf \ "$pkgdir"/etc/conf.d/modemmanager + install -Dm644 "$srcdir"/eg25-pinephone-1.0.toml \ + "$pkgdir"/etc/eg25-manager/pine64,pinephone-1.0.toml + install -Dm644 "$srcdir"/eg25-pinephone-1.1.toml \ + "$pkgdir"/etc/eg25-manager/pine64,pinephone-1.1.toml + install -Dm644 "$srcdir"/eg25-pinephone-1.2.toml \ + "$pkgdir"/etc/eg25-manager/pine64,pinephone-1.2.toml # Wifi / PM install -Dm644 "$srcdir"/70-wifi-pm.rules -t \ @@ -171,6 +180,9 @@ ccbc83b84b5028bc2c8e526759004ce71b50b2675ecffee98f5676c70a3332197a231ff9d2fd4644 3d6e9030125afc1dc3b654d1ce5d124ddd3ef3ad1a4d3e46c8168cf3f8a3762ffd0c75427759740ae26bd5c4f32b6704b7cf7e5806434884560fa704b7e72921 modemmanager.conf fa063e2863afc48e627acc1a5b213a81499ba1dd30325f74f118a44e3964aec7e597b1f4bd318b7cf5bf14f27daf88e6ad9fc277ab106cbbe1189fdcc650d5c1 setup-modem.sh 0c81d758e1bcb56ed2cdaf91124121ebbd4dd7a5e25f02a7685b837faf660949d05f6b07b39a1c6a9ca22a7029cdcf3c6dac8f1038e37c8a34cb7c5702e9df51 setup-modem.sh.ofono +f9386dfd902028988c9659bd6e001ba46ea87b35f5dce7723dd4cfbe971928c75f6fef9d706201d62cc24cca2d499a39c8c0fed58a3403e2cb848eb1aece0e19 eg25-pinephone-1.0.toml +cf7d4a611701745762f19746e40d87b6df14a6b24f2d466c4177b7ab5ee87a048bab719a6c66722198020e1aa73d3e12d3715b5588bc33bf207f3e86040dcc44 eg25-pinephone-1.1.toml +8adeca98002ff8ee850512f72f2e126348cfa817a1aefdd77d103aee76a6b2e6a024deffcbeef1235ee2fcc766003f55b67cedb3eb06ca92a58d5b81f2bf6848 eg25-pinephone-1.2.toml f4b5509fd6a8b23f3667f5e7262b3a19c607a37cb9eaf7d0e93eb826d45c26ec12df4810879bacb8e4042bb83cc80b2b436224c8d47b6d67361369a724bbf7ee sysrq.conf b20d4fb9f08a1bbc1c12ce6940e438a00f5c8d400fbc5071e951ffc69f77d2421204472e86f1a7df0488d250f3ec16205b75d4eac8c3cb5521fe9a02ea24865a uboot-script.cmd de88fc198c11637d9c6465f8a6fb4deab3d0802bdb52ffaa9a08833aa0ef63689b674b12b44cb314f3870d9d21fc3ae55f8db03c9a838860301be60a88e48835 HiFi.conf diff --git a/device/main/device-pine64-pinephone/eg25-pinephone-1.0.toml b/device/main/device-pine64-pinephone/eg25-pinephone-1.0.toml new file mode 100644 index 000000000..8a3cf4590 --- /dev/null +++ b/device/main/device-pine64-pinephone/eg25-pinephone-1.0.toml @@ -0,0 +1,49 @@ +[manager] +need_libusb = true +usb_vid = 0x2c7c +usb_pid = 0x0125 + +# 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 = "QSCLK", value = "1" }, +] +suspend = [ +] +resume = [ +] +reset = [ { cmd = "CFUN", value = "1,1" } ] diff --git a/device/main/device-pine64-pinephone/eg25-pinephone-1.1.toml b/device/main/device-pine64-pinephone/eg25-pinephone-1.1.toml new file mode 100644 index 000000000..559ba9110 --- /dev/null +++ b/device/main/device-pine64-pinephone/eg25-pinephone-1.1.toml @@ -0,0 +1,50 @@ +[manager] +need_libusb = true +usb_vid = 0x2c7c +usb_pid = 0x0125 + +# 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 = "QSCLK", value = "1" }, +] +suspend = [ +] +resume = [ +] +reset = [ { cmd = "CFUN", value = "1,1" } ] + diff --git a/device/main/device-pine64-pinephone/eg25-pinephone-1.2.toml b/device/main/device-pine64-pinephone/eg25-pinephone-1.2.toml new file mode 100644 index 000000000..109e46892 --- /dev/null +++ b/device/main/device-pine64-pinephone/eg25-pinephone-1.2.toml @@ -0,0 +1,42 @@ +# 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 = 34 +pwrkey = 35 +reset = 68 +apready = 231 +disable = 232 +status = 233 + +[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 = "apready", expect = "1,0,500" }, + { cmd = "QURCCFG", subcmd = "urcport", expect = "\"usbat\"" }, + { cmd = "QSCLK", value = "1" }, +] +suspend = [ +] +resume = [ +] +reset = [ { cmd = "CFUN", value = "1,1" } ]