#
✕ nick:sven
#asahi · 2021-04-07 09:02
svenyou should be able to just create a signature-only (S) subkey on that yubikey and sign that with your C pgp parent key. I'd strongly recommend to try that on a separate yubikey before though since I managed to delete a key like that before :D
#asahi · 2021-04-07 08:43
svenmaz: I think that was the one I had in mind, thanks
#asahi · 2021-04-07 07:57
svenj`ey: I think it was simpler and didn't depend on some custom restruct thing. but that one should work as well, thanks!
#asahi · 2021-04-07 07:45
svendidn't someone have a simple python apple device tree parser? I can't seem to find that one anymore
#asahi · 2021-04-06 15:54
svenlooks like the ADT even tells us the topology for the gated clocks :) UART1 --> UART_P --> SIO --> SIO_BUSIF; I2C0 --> SIO --> SIO_BUSIF; etc.
#asahi · 2021-04-06 15:32
sven:-)
#asahi · 2021-04-06 14:40
sventrue. and if we wanted those we could first add support for those on the type c ports which doesn't require pcie bringup and then later just re-use that code.
#asahi · 2021-04-06 14:36
sventhat makes sense
#asahi · 2021-04-06 14:35
svennice :)
#asahi · 2021-04-06 14:34
svenu-boot already supports those with your patches, doesn't it?
#asahi · 2021-04-06 14:34
svennot sure what marcan's plans are but bringing in a full pcie + usb ethernet to m1n1 feels just a little bit overkill to me ;)
#asahi · 2021-04-06 14:32
sven(and a slightly different magic phy init sequence)
#asahi · 2021-04-06 14:32
svenbut usb host mode is just xhci
#asahi · 2021-04-06 14:31
svenmy code is only device-mode fwiw. it emulates a cdc acm serial device
#asahi · 2021-04-06 13:35
svenbut i'll have to take a closer look at those and see if they are known registers
#asahi · 2021-04-06 13:35
svenfwiw, i suspect that usb will also need quite a few tunables to get usb3 working. some of them for the PHY but i believe there are also quite some in the drd node
#asahi · 2021-04-03 11:48
svenhttps://github.com/AsahiLinux/docs/wiki/HW:-Clocks alright, i believe i understand how clock-ids maps to clock-frequencies now
#asahi · 2021-04-02 16:05
svenmarcan: also, can i just put you down as maintainer for the i2c stuff under the general apple entry? it's pretty much just the dt binding + 50 lines of code or so and doing anything else feels silly
#asahi · 2021-04-02 14:03
svenmarcan: does the pasemi i2c documentation mention the base clock frequency?
#asahi · 2021-04-02 11:23
sveni'll work on the i2c stuff in the meanwhile and probably on the ti chip and gpios after that
#asahi · 2021-04-02 11:22
svenand i'm definitely looking forward to mmiotrace
#asahi · 2021-04-02 11:22
sven*uploading
#asahi · 2021-04-02 11:22
svenyeah, the usb stuff is great. makes upload new kernels so much more fun :)
#asahi · 2021-04-02 11:20
svenheh, yeah. there are quite a lot of wip pull requests now. let me know if you want me to split them differently or make some of them not depend on each other
#asahi · 2021-04-01 11:25
svenright now i just have it one file but i can easily split that
#asahi · 2021-04-01 11:01
sveni guess it's fine to already have the interrupt in the binding but just not use it in the driver for now, isn't it?
#asahi · 2021-04-01 10:59
sveni'll look into cleaning up what i have for the pasemi one so far and c&p some simple i2c dt binding then
#asahi · 2021-04-01 10:59
svenyeah
#asahi · 2021-04-01 10:58
svenso the i2c needs one clock gate and probably one clock for the base frequency
#asahi · 2021-04-01 10:58
svenyeah, pretty much
#asahi · 2021-04-01 10:57
svennope
#asahi · 2021-04-01 10:57
svenbut at least the ti chip doesn't have much traffic
#asahi · 2021-04-01 10:57
svenyeah, pretty much :)
#asahi · 2021-04-01 10:57
svenfair enough
#asahi · 2021-04-01 10:56
svenbut that typec ti chip needs and irq and it gets that one from the gpio controller
#asahi · 2021-04-01 10:56
sveni'm not sure we need irq support for the i2c. it would just be nice to have
#asahi · 2021-04-01 10:56
svenhuh, interesting. i just stole the value that was pre-configured by iboot
#asahi · 2021-04-01 10:54
svenif we trust the ADT we can also just use two dummy clocks like the UART for now
#asahi · 2021-04-01 10:54
svenit did need a little bit of refactoring to split the PCI parts out fwiw
#asahi · 2021-04-01 10:52
sven0x800 in REG_CTL
#asahi · 2021-04-01 10:52
svenbut otherwise it's just the same thing
#asahi · 2021-04-01 10:52
svenand the one in the m1 needs a mystery bit set in the CTL register for transactions to work
#asahi · 2021-04-01 10:51
svenjust had to add a platform_device frontend on top of the current pci frontend
#asahi · 2021-04-01 10:51
svenpretty much
#asahi · 2021-04-01 10:51
sveni already have that pasemi one kinda working fwiw
#asahi · 2021-04-01 10:32
sveni don't want to touch clock registers except for the gating ones anyway because i might actually be able to break the hardware that way
#asahi · 2021-04-01 10:32
svenyeah
#asahi · 2021-04-01 10:31
sveni suspect the clock-ids in the ADT refers to it. i just don't what *exactly* that ids maps to. but maybe that's not even required. we could just have a dummy fixed-frequency clock for each of these ids
#asahi · 2021-04-01 10:28
svensounds like that, yes
#asahi · 2021-04-01 10:27
sventhose are the addresses of the ti usbc chips on that bus

plus ›