#
✕ nick:kettenis
#asahi · 2021-11-26 22:04
kettenisand sending the command to turn the LED on/of probably interferes with receiving reports from the keyboard and/or touchpad
#asahi · 2021-11-26 22:03
kettenislike it is on a USB keyboard
#asahi · 2021-11-26 22:03
kettenisthe LED on the caps lock key is software controlled
#asahi · 2021-11-26 22:02
kettenisunlikely
#asahi · 2021-11-26 19:58
kettenistouchbar is a completely different device
#asahi · 2021-11-26 19:57
kettenisyes, applespi.c should have been written as a spi hid transport driver
#asahi · 2021-11-26 19:55
kettenisalmst certainly
#asahi · 2021-11-26 19:55
kettenisdrivers/hid/hid-apple.c handles the function keys
#asahi · 2021-11-26 19:54
kettenisapplespi.c was written by someone who didn't rrealize that this is a standard apple HID keyboard
#asahi · 2021-11-26 16:38
kettenistx is what you write from, rx is what you read from ;)
#asahi · 2021-11-26 16:17
kettenisthe apple-m1-m1n1-nvme branch is what you want
#asahi · 2021-11-26 15:46
kettenis(no surprise there)
#asahi · 2021-11-26 15:46
kettenisthat suggests that the corellium keyboard driver has bugs
#asahi · 2021-11-25 15:39
kettenisthe driver matches on apple,pinctrl
#asahi · 2021-11-25 15:39
kettenissure
#asahi · 2021-11-25 15:15
kettenisshould use apple,t6000-pinctrl instead of apple,t8103-pinctrl
#asahi · 2021-11-25 14:05
kettenisdifficult to diagnose problems when people combine random trees with random DTs
#asahi · 2021-11-25 12:45
kettenismaybe the register needs a better name
#asahi · 2021-11-25 12:44
kettenisthe "AVAIL" register actually contains the FIFO levels
#asahi · 2021-11-25 12:35
kettenisthe CLKCFG and CLKIDLE bits are maybe a bit questionable
#asahi · 2021-11-25 12:32
kettenissince that saves me renaming things in the OpenBSD driver ;)
#asahi · 2021-11-25 12:31
kettenishttps://github.com/AsahiLinux/docs/wiki/SW:-DT-bindings
#asahi · 2021-11-25 12:31
kettenisif possible, the same as I mention in
#asahi · 2021-11-25 12:31
kettenisplease switch to a compatible that follows our naming scheme before submitting this
#asahi · 2021-11-25 12:24
kettenisI don't think there is a point in making it more complicated than necessary
#asahi · 2021-11-25 12:23
kettenisthat might actually be a legacy from how this worked in the T2
#asahi · 2021-11-25 12:19
kettenisand msybe properties describibg the keyboard layout/language
#asahi · 2021-11-25 12:18
kettenissince it seems those vary between models
#asahi · 2021-11-25 12:18
kettenisit may make sense to add the min/max coordinates for the touchpad in the device tree
#asahi · 2021-11-25 12:11
kettenismarcan will undoubtly tell you they need cleaning up (and I'd agree with him)
#asahi · 2021-11-25 11:42
kettenishttps://github.com/kettenis/u-boot/blob/b64821d05f4a4e59e3c7c618d894831ab17621f3/arch/arm/dts/t8103.dtsi#L588
#asahi · 2021-11-25 11:42
kettenisit would indeed:
#asahi · 2021-11-22 12:45
kettenisapparently cool kids use systemd now to boot linux
#asahi · 2021-11-22 12:44
kettenis(I don't do Linux and I am baffled by the infinity ways to boot Linux)
#asahi · 2021-11-22 12:44
kettenisyes
#asahi · 2021-11-22 12:28
kettenisand u-boot will still allow "legacy" distroboot, where it looks for a config file
#asahi · 2021-11-22 12:27
kettenisof course in Linux-land there several ways to do this
#asahi · 2021-11-22 12:27
kettenisthe way this is intended to work is that you have an EFI System Partition (ESP) with an EFI bootloader on it
#asahi · 2021-11-22 11:59
kettenisyes
#asahi · 2021-11-22 10:53
kettenisI've been told netbooting already works in u-boot if you use a supported usb dongle
#asahi · 2021-11-22 10:49
kettenisI'm not really planning to add support for the RTC to u-boot since it would only work at boot time
#asahi · 2021-11-22 10:47
kettenisthe t6000 seems to have a different SPMI PMU, but I think the RTC component works in the same way
#asahi · 2021-11-22 10:45
kettenisShouldn't be too hard to write a clean Linux driver based on that
#asahi · 2021-11-22 10:44
kettenisThose are the OpenBSD drivers I wrote based on my understanding of how the hardware works
#asahi · 2021-11-22 10:43
kettenishttps://github.com/openbsd/src/blob/master/sys/arch/arm64/dev/aplpmu.c
#asahi · 2021-11-22 10:43
kettenishttps://github.com/openbsd/src/blob/master/sys/arch/arm64/dev/aplspmi.c
#asahi · 2021-11-22 10:42
kettenisSPMI is fairly simple, and so is the RTC component of Apple's SPMI PMU
#asahi · 2021-11-22 09:48
kettenisbut my apple keyboard works fine with the 13" macbook pro
#asahi · 2021-11-22 09:48
kettenisnot all usb keyboards work in u-boot
#asahi · 2021-11-21 20:52
kettenisthe driver probably needs code to read the mac address from the device tree

plus ›