#
✕ nick:kettenis
#asahi-dev · 2021-12-13 07:46
kettenisouch, the smc on the j293 has 1435 keys
#asahi-dev · 2021-12-12 20:58
kettenisANS is needed to load firmware from NVMe
#asahi-dev · 2021-12-12 20:21
kettenisso the numbers are decoded as two 13-bit numbers encoded in 4 bytes
#asahi-dev · 2021-12-12 20:14
kettenisyup, so that's the variant of the packet that works
#asahi-dev · 2021-12-12 20:11
kettenisunrelentingtech: so the touchpad on the M1 macbook pro has 0x96, 0xd7, 0x06
#asahi-dev · 2021-12-12 19:18
kettenisthe bcm5974 driver looked cleaner to me
#asahi-dev · 2021-12-12 19:14
ketteniswhich probably uses the same hardware as the laptops
#asahi-dev · 2021-12-12 19:14
kettenisi believe that code supports the apple magick trackpad
#asahi-dev · 2021-12-12 19:12
kettenisah, yes, there's that one as well
#asahi-dev · 2021-12-12 16:36
kettenisbut it is getting frequent forced pushes, so maybe it isn't useful to rebase on
#asahi-dev · 2021-12-12 16:34
kettenisalyssa: the asahi branch in https://github.com/AsahiLinux/linux/ now has all the diffs that marcan deems (close to) upstreamable
#asahi-dev · 2021-12-12 15:47
kettenisso, yes
#asahi-dev · 2021-12-12 15:46
kettenisevent_name-bit8 = lid
#asahi-dev · 2021-12-12 15:44
ketteniswon't it automatically blank the screen after a little while?
#asahi-dev · 2021-12-11 13:11
kettenisjannau: cool, I'll change it on my end
#asahi-dev · 2021-12-11 11:44
kettenisif we agree on that one, I'll change the OpenBSD driver accordingly
#asahi-dev · 2021-12-11 11:44
kettenisjannau, my proposed DT compatible is currently "apple,spi-hid-transport"
#asahi-dev · 2021-12-11 10:51
kettenisdevice tree bindings for this should be trivial to write
#asahi-dev · 2021-12-11 10:49
kettenisother than that, the driver looks really good to me
#asahi-dev · 2021-12-11 10:43
kettenisbytes_per_word would be clearest
#asahi-dev · 2021-12-11 10:42
kettenisrenaming would probably be good
#asahi-dev · 2021-12-11 10:42
ketteniswith the meaning of bits_per_word
#asahi-dev · 2021-12-11 10:42
kettenisyeah, I have seen bpw used in SPI context
#asahi-dev · 2021-12-11 10:40
kettenisyour driver seems to interpret it as "bytes per word"
#asahi-dev · 2021-12-11 10:39
kettenismarcan: isn't bpw "bits per word"?
#asahi-dev · 2021-12-11 10:36
kettenis(we already know that 49 is CS#)
#asahi-dev · 2021-12-11 10:36
kettenisif I set any one of 46, 47 or 48 to 0, it breaks the keyboard
#asahi-dev · 2021-12-11 10:36
kettenisok, confirmed
#asahi-dev · 2021-12-11 10:31
kettenisj'ey: the file was split out from spi-controller.yaml
#asahi-dev · 2021-12-11 10:29
kettenishow confident are you about the t8103 spi3 pin number assignments?
#asahi-dev · 2021-12-11 10:28
kettenisyup, that's what I did ;)
#asahi-dev · 2021-12-11 10:21
kettenisso we can just go ahead with using that config in the device trees
#asahi-dev · 2021-12-11 10:20
kettenismarcan: I have a diff for the OpenBSD SPI controller driver such that it controls CS# directly instead of through a GPIO
#asahi-dev · 2021-12-10 16:02
kettenisfwiw, 120MHz base clock and 8MHz bus clock seems to work fine with my OpenBSD drivers
#asahi-dev · 2021-12-10 15:12
kettenismwahaha
#asahi-dev · 2021-12-10 15:11
kettenisunless you provide the set_cs_timing() callback in your driver
#asahi-dev · 2021-12-10 15:09
kettenisspi_set_cs() handles all that isn't it?
#asahi-dev · 2021-12-10 15:07
kettenisit is a fairly recent addition
#asahi-dev · 2021-12-10 15:06
kettenishmm, there are fields in struct spi_device now
#asahi-dev · 2021-12-10 14:19
kettenisah for spi3
#asahi-dev · 2021-12-10 14:16
kettenisso you end up with 200000000 / CLKDIV on the t6000?
#asahi-dev · 2021-12-10 09:27
kettenisno real surprise that the descriptors are contained in the firmware
#asahi-dev · 2021-12-10 09:09
kettenisso the descriptors don't tell us very much
#asahi-dev · 2021-12-10 09:08
kettenisinterface 3 and 4 only provide vendor-specific stuff
#asahi-dev · 2021-12-10 08:55
kettenisdo you have the output for that handy?
#asahi-dev · 2021-12-10 08:48
kettenisin the end, all that matters is that you end up with a divider that "works"
#asahi-dev · 2021-12-10 08:39
kettenisI think that is just a packet with a different layout that isn't handled by the current code
#asahi-dev · 2021-12-10 08:24
kettenisi've not checked that
#asahi-dev · 2021-12-10 08:24
kettenisbut maybe the hardware will assert the GPIO that is used for interrupts when it is ready
#asahi-dev · 2021-12-10 08:22
kettenisand you need to keep CS# asserted

plus ›