#asahi-dev · 2021-12-10 08:22
kettenisthe delay between command and status is defenitely necessary#asahi-dev · 2021-12-10 08:20
kettenisso my driver has some weird delays in it; it would be nice to get a better understanding of those#asahi-dev · 2021-12-10 08:17
kettenisthe usb hid group never properly standardized multi-touch#asahi-dev · 2021-12-10 08:14
kettenisso I just copied code ;)#asahi-dev · 2021-12-10 08:14
kettenisyes, same issue on the OpenBSD side#asahi-dev · 2021-12-10 08:13
kettenisit matches the linux drivers/input/bcm5974.c behaviour#asahi-dev · 2021-12-10 08:11
kettenisindeed#asahi-dev · 2021-12-10 08:09
kettenisthe previous revision uses HID mode which just emulates a mouse#asahi-dev · 2021-12-10 08:09
kettenisthis version uses "raw" mode to support the touchpad#asahi-dev · 2021-12-10 08:08
kettenishopefully that gives you some hints on how I think the HID stuff works#asahi-dev · 2021-12-10 08:08
kettenisjannau: that is the current version of my OpenBSD driver#asahi-dev · 2021-12-10 08:08
kettenisI'll give that a go with OpenBSD#asahi-dev · 2021-12-10 08:07
kettenishttps://github.com/openbsd/src/blob/master/sys/arch/arm64/dev/aplhidev.c#asahi-dev · 2021-12-10 08:05
kettenisso the 24/120MHz difference suggests that we can actually use a 10MHz spi-max-frequency on t8103-j293#asahi-dev · 2021-12-10 07:56
kettenisright#asahi-dev · 2021-12-10 07:55
kettenisI think we should not add cs-gpios if we want to use hardware cs control#asahi-dev · 2021-12-10 07:46
kettenisare you tracing macos?#asahi-dev · 2021-12-10 07:32
kettenisthe adt doesn't actually provide the equivalent of spi-max-frequency for the spi devices isn't it?#asahi-dev · 2021-12-10 07:28
kettenisalso, how did you figure out which gpio pins are used?#asahi-dev · 2021-12-10 07:27
kettenisI'll need to fugure out how to use it ;)#asahi-dev · 2021-12-10 07:23
kettenisyour gpiola.py stuff can actually measure the clock frequency?#asahi-dev · 2021-12-10 07:20
kettenisthat is what I have#asahi-dev · 2021-12-10 07:20
kettenisspi-max-frequency = <2000000>;#asahi-dev · 2021-12-10 07:20
kettenisspi-max-frequency is the max frequency the spi device can run at if my understanding is correct#asahi-dev · 2021-12-10 07:19
kettenisof course I copied the spi-max-frequency property from corellium#asahi-dev · 2021-12-10 07:18
ketteniswell, if the input frequency isn't 24MHz but 200MHz the actual SPI clock frequency won't be what I think it is#asahi-dev · 2021-12-10 07:11
kettenis User: /device-tree/arm-io/spi1.clk[0]#asahi-dev · 2021-12-10 07:11
kettenis#121: 200000000 2 0xa0/0x23b0400f8: regval: 0x85100000#asahi-dev · 2021-12-10 07:09
kettenis User: /device-tree/arm-io/spi3.clk[0]#asahi-dev · 2021-12-10 07:08
kettenis#123: 120000000 2 0xa0/0x23b040100: regval: 0x85100000#asahi-dev · 2021-12-10 07:05
kettenishmm, dump_pmgr.py suggests spi3 uses a 120MHz clock on j293#asahi-dev · 2021-12-10 06:56
kettenisso is it correct that the M1 models use the 24MHz refclk and the M1 Pro/Max models a 200MHz clock?#asahi-dev · 2021-12-10 06:51
kettenisjannau: almost certainly the case#asahi-dev · 2021-12-10 06:51
kettenisbtw, how did you determine the input clock for the spi controller?#asahi-dev · 2021-12-10 06:33
kettenisthere are some packets that get sent early one that I haven't been able to give a meaning to#asahi-dev · 2021-12-09 22:46
kettenismwahaha#asahi-dev · 2021-12-09 22:45
kettenisbut having three proper mouse buttons is nice#asahi-dev · 2021-12-09 22:45
kettenishad to get used to the one on my x395#asahi-dev · 2021-12-09 22:41
kettenisso quite good#asahi-dev · 2021-12-09 22:41
kettenisit feels like an apple trackpad#asahi-dev · 2021-12-09 22:30
ketteniswonder if there is a register that indicates the actual fifo size#asahi-dev · 2021-12-09 22:29
kettenisAPPLE_SPI_FIFO_DEPTH instead of 16 of course#asahi-dev · 2021-12-09 22:28
kettenisor at least it should have the min_t that jannau suggests#asahi-dev · 2021-12-09 22:28
kettenisI think so#asahi-dev · 2021-12-09 22:27
kettenisah, yes, the fifo size is only 16#asahi-dev · 2021-12-09 22:25
kettenissorry, cs_setup#asahi-dev · 2021-12-09 22:20
kettenisthat seems to be a relatively recent addition though#asahi-dev · 2021-12-09 22:18
kettenisprobably should set the cs_delay member of struct spi_device appropriately#asahi-dev · 2021-12-09 18:05
kettenisotherwise the corellium spi driver wouldn't work#asahi-dev · 2021-12-09 18:04
kettenisthe clk, mosi and miso pins should already be set correctly