Commit Graph

791 Commits

Author SHA1 Message Date
6340a35fb9 hal: pinephone-pro: remove CMA 2024-12-03 03:33:45 +00:00
fc239cfa34 modules/programs: support mime.priority when handling duplicated env keys 2024-12-03 02:18:48 +00:00
84aa332cdb hal: aarch64: disable firefox/browserpass-extension 2024-12-02 19:29:00 +00:00
56b58d3506 moby: switch back to mainline rt5640 driver
camera and audio still work
2024-12-01 06:53:11 +00:00
983e2043bc hal: pinephone-pro-camera: cleanup
this doesn't change any functionality; just shuffling things around and better documenting the bits
2024-11-29 18:41:37 +00:00
86dec329f1 moby: ship megis rt5640 sound driver (experimental. it still boots, but pipewire/wireplumber still crash-loops) 2024-11-29 05:19:12 +00:00
58894a7f9b moby: enable rear camera
this works with megapixels-next (at least, with sandboxing disabled). however it breaks pipewire: will investigate
2024-11-29 03:40:26 +00:00
65243100f2 moby: speculatively increase the CMA pool size 2024-11-27 20:53:40 +00:00
04315d35b8 pinephone-pro: WIP support for camera
i can't get images out of it, but the ov8858 appears to be detected by media-ctl (?)
2024-11-25 21:32:55 +00:00
db2137d756 ccache: disable 2024-11-15 05:22:54 +00:00
2684b3c1aa wg-home: re-enable keepalives
this should fix some of the flakiness i've seen when deploying moby?
2024-11-10 16:19:07 +00:00
a36c1a6818 wg-home: simplify the server side 2024-11-10 16:05:53 +00:00
2ed633cfe8 wg-ovpns/doof: port from networking.wireguard -> sane.netns 2024-11-10 15:48:43 +00:00
243ae05a68 dasht: ship 2024-11-03 17:25:55 +00:00
089a379d54 moby: actually, just disable the debug uart pull resistor 2024-10-20 08:17:49 +00:00
9d1770f6db moby: HACK: switch UART2_RX to pull down to silence sysrqs from headphone detection
i haven't tested the uart mode with this: hopefully it still works with that.

even with this, i get several hp-detect interrupts, which comes with its
own problem (i.e. pipewire restarts every second).
2024-10-20 06:27:15 +00:00
3f22ac89a1 moby: enable camera flash (for use as a torch) 2024-10-20 06:25:16 +00:00
92fa2d4776 moby: import the remainder of the sound config from pine64-org DTS
i didn't check the routing on those, but after applying this in full, 3.5mm-attached mic has way more volume, and i *think* this patch is what fixed that (mic bias)
2024-10-19 05:55:33 +00:00
dba22fdb39 moby: ship alsa w/o the "voice call" configs, since they dont produce any audio 2024-10-19 05:45:18 +00:00
921786de9f moby: sound: add Internal Earpiece node (does it work? idk, but it doesnt break anything!) 2024-10-19 01:53:15 +00:00
65e8e6bf1c pinephone-pro: plumb backlight through to swaync (though apparently i still disable this, in favor of nwg-panel) 2024-10-19 00:09:09 +00:00
35d349a73e moby: re-enable gps-share by lifting it out of HAL 2024-10-19 00:08:07 +00:00
4822cc1ecb moby: enable the modem
the USB PHY which links RK3399 to the modem needed to be enabled, then the rest works OOTB

eg25-control works; modem-manager sees the modem, i haven't actually tried to get an IP address yet though
2024-10-15 07:27:16 +00:00
00aa9530bb moby: *try* to enable the modem
it might be getting further in the setup than before, but it's still not complete

eg25-control --power-on does show it sending the STATUS signal, but /dev/ttyUSB2 does not appear and modem-manager sees nothing.

eg25-manager likewise does not work

TODO: try lsusb?
2024-10-15 05:22:24 +00:00
9fbe040ea5 moby: limit i2c1 frequency to 400 kHz 2024-10-15 03:48:28 +00:00
2edce8e6c8 refactor: use mkEnableOption,mkPackageOption where applicable 2024-10-12 19:36:50 +00:00
11b706b132 refactor: use lib.getExe where applicable 2024-10-12 19:34:42 +00:00
2803afc8e6 moby: sound: remove some configs borrowed from megi which arent needed in practice 2024-10-10 07:46:21 +00:00
312fba89e4 moby: define the audio/amplifier
combined with an out-of-tree ucm file, the audio device can actually make noise. no setup needed -- just run speaker-test after boot

this patch probably changes more than is strictly required: i can maybe reduce it over time
2024-10-10 06:50:46 +00:00
966a29dff3 ship pine64-alsa-ucm, more likely to work with PinePhonePro 2024-10-10 01:58:39 +00:00
2833832b79 moby: define the i2s bus
this is enough for the sound card to come online, visible in /dev/snd and also pipewire

however i don't *hear* anything. speaker-test -c 2 does not work
2024-10-08 23:01:53 +00:00
ad0465456b moby: experimental device tree overlay to define the audio codec
the codec is probed, and i think enumerated over i2c,
but `aplay -l` shows empty.

earlier version omitted one of the power supplies and the kernel driver
complained:
```
[   33.506926] rt5640 1-001c: Device with ID register 0x0 is not rt5640/39
```

since this version of the patch doesn't have that error, i *think* the
driver read the device's id register over i2c, at least.

the device shows up at:
```
/sys/bus/platform/drivers/rk3x-i2c/ff110000.i2c/i2c-1/1-001c
```
but this is a static definition; it doesn't seem to say anything about
the runtime status of the device.
2024-10-08 22:23:36 +00:00
974cf4a5a7 moby: use stock NixOS linux kernel, and apply config changes strictly through the boot.kernelPatches module
this is more composable, in case i want to make a kernel that's bootable on multiple devices, e.g.
2024-10-06 07:50:25 +00:00
37ceb63444 moby: initrd: remove extraneous sdhci_of_arasan module 2024-10-06 07:50:25 +00:00
be94ff4ab9 moby: initrd: remove extraneous spi_rockchip,dw_wdt modules 2024-10-06 07:50:25 +00:00
a2eb2c2cec moby: remove from initrd unnecessary rk8xx_spi module 2024-10-05 21:27:29 +00:00
cb003b2307 moby: remove from initrd: ofpart,nvmem_rockchip_efuse 2024-10-05 20:48:47 +00:00
41620b790b moby: remove unneeded gpu_sched module from initrd 2024-10-05 20:33:55 +00:00
f33212ef75 moby: remove panfrost from the initrd
it's actually not needed for framebuffer graphics
2024-10-05 20:15:51 +00:00
a45c0c0976 moby: ship fewer modules in the initrd 2024-10-05 18:34:16 +00:00
1e6123b32d moby: ship fewer modules in the initrd 2024-10-05 17:48:18 +00:00
f7a9311c9a moby: ship fewer modules in the initrd 2024-10-05 17:23:27 +00:00
3442d4488f moby: ship fewer modules in the initrd 2024-10-05 17:02:59 +00:00
e07ed5fe02 moby: build the kernel with everything as a module 2024-10-05 16:47:34 +00:00
d0cd8ed691 moby: kernel: build the in-tree MFD_RK8XX, just plumb it so nixos doesnt complain about conflicting module suppliers 2024-10-02 11:51:07 +00:00
69ae2df933 moby: add rk818_{battery,charger} to boot.kernelModules
with this they're loaded on boot and now i actually do get capacity info
2024-10-02 08:22:54 +00:00
80b3016363 moby: deploy my rk818-charger kernel module
it needs to be manually probed, but after that i *do* get current measurement, just no capacity
2024-10-02 01:29:04 +00:00
936b197d03 moby: fix kernel/modules to be in a bootable state
probably i actually can enable myt rk818-charger now that i have the right modules in initrd, but this commit serves as a known-good checkpoint
2024-10-02 00:44:25 +00:00
d00e26c044 plumb rk818-charger module into the moby config 2024-10-01 15:08:56 +00:00
6f38c7847f SPECULATIVE: moby: build kernel with MFD_RK8XXX_* as a module instead of as builtin 2024-10-01 13:06:10 +00:00