#
✕ nick:kettenis
#asahi-dev · 2022-02-07 23:02
kettenisyou too
#asahi-dev · 2022-02-07 23:01
kettenisok, well, it's zzz time here
#asahi-dev · 2022-02-07 22:46
ketteniscan you try the patch I just pushed to the t6000 branch?
#asahi-dev · 2022-02-07 22:34
kettenisso the spien-gpio isn't found and the keyboard probe fails
#asahi-dev · 2022-02-07 22:34
kettenisthat probably doesn't happen because none of the pins are referenced
#asahi-dev · 2022-02-07 22:33
kettenisthe apple_gpio driver is only bound when the "parent" apple_pinctrl is probed
#asahi-dev · 2022-02-07 22:33
kettenisah, yes, I think I understand
#asahi-dev · 2022-02-07 22:21
kettenis(but shouldn't be a problem)
#asahi-dev · 2022-02-07 22:20
kettenisthat's not quite right
#asahi-dev · 2022-02-07 22:20
kettenishmm, one of the pinctrl has "apple,t8103-pinctrl" as a compatible for the t6000
#asahi-dev · 2022-02-07 22:13
kettenisah, that means they're not bound
#asahi-dev · 2022-02-07 22:12
kettenisso that means the compatible strings match
#asahi-dev · 2022-02-07 22:10
kettenisah then you can use "dm tree" and scroll back and see if the apple_spi and apple_spi_kbd drivers are listed and probed
#asahi-dev · 2022-02-07 22:07
kettenis(on the 13" mbp that is)
#asahi-dev · 2022-02-07 22:06
kettenisbtw, serial console definitely works when running u-boot under the hypervisor here
#asahi-dev · 2022-02-07 21:48
kettenisyeah, those are annoying since there are too many of them :(
#asahi-dev · 2022-02-07 21:45
kettenisso maybe it is just a device tree thing?
#asahi-dev · 2022-02-07 21:39
kettenisI know it isn't perfect; perhaps the timings are just a bit off
#asahi-dev · 2022-02-07 21:37
kettenisand if you look at the spi stuff, you can review my pending diffs ;)
#asahi-dev · 2022-02-07 21:36
kettenisbut if usb works, you can use an external keyboard ;)
#asahi-dev · 2022-02-07 21:36
kettenisI have a 14" m1 pro coming, but it'll be a while until it gets delivered
#asahi-dev · 2022-02-07 21:34
kettenisyou saw my reply to the dynamic memory diff?
#asahi-dev · 2022-02-07 21:33
ketteniscool, that means the t6000 dart supports bypass the same way
#asahi-dev · 2022-02-06 17:39
kettenisnot sure if folks will be happy if I remove the non-efi boot commands
#asahi-dev · 2022-02-06 17:37
kettenisI can probably take a look next week
#asahi-dev · 2022-02-06 17:37
kettenisthe set of variables that needs to be set is a bit of a mess though
#asahi-dev · 2022-02-06 17:36
kettenisactually probably needs env_set_hex()
#asahi-dev · 2022-02-06 17:35
kettenisjannau: there is an env_set() function that sets these variables
#asahi-dev · 2022-02-06 17:04
kettenislots of stuff in the Open Firmware device trees of the PowerPC macs that didn't make a lot of sense either
#asahi-dev · 2022-02-06 17:04
kettenissven: apple has a long tradition doing that
#asahi-dev · 2022-02-06 17:01
kettenisI tried to make some sense out of the apple DT stuff for the spmi pmu but it all looks very ad-hoc and hackish
#asahi-dev · 2022-02-06 17:00
ketteniswell if the first smc is the wifi gpio then that should probably be initiated by the pcie driver
#asahi-dev · 2022-02-06 16:59
kettenisyou probably want subnodes there as well (jeffmiw added one for the rtc already)
#asahi-dev · 2022-02-06 16:58
kettenisthe spmi stuff needs some thought
#asahi-dev · 2022-02-06 16:58
kettenisso you can do what you want there
#asahi-dev · 2022-02-06 16:58
kettenisI get away with no reference from pmu to smu the way the reboot/reset code in OpenBSD/arm64 is structured
#asahi-dev · 2022-02-06 16:57
kettenisbut iboot might turn it off
#asahi-dev · 2022-02-06 16:56
kettenisit certainly isn't still turned on when I boot up the machine again
#asahi-dev · 2022-02-06 16:55
kettenisnot measured power consumption in the powered down state
#asahi-dev · 2022-02-06 16:55
kettenisI'm using the smc though since it might do some more magic
#asahi-dev · 2022-02-06 16:55
ketteniswdt works too
#asahi-dev · 2022-02-06 16:54
kettenismust admit I haven't tried the hypervisor for this
#asahi-dev · 2022-02-06 16:54
ketteniscorellium did more writes, but those some to not be neccessary
#asahi-dev · 2022-02-06 16:53
ketteniswriting 0x8 to byte 0x9f0f in the spmi pmu address before triggering a reset is enough to make it shut down
#asahi-dev · 2022-02-06 16:51
kettenismarcan: that matches my experience
#asahi-dev · 2022-02-06 16:03
kettenisI wonder why I didn't run into this issue...
#asahi-dev · 2022-02-06 16:03
kettenisyou're fast!
#asahi-dev · 2022-02-06 15:59
kettenisu-boot ignores the SART ;)
#asahi-dev · 2022-02-06 15:58
ketteniss/work/works/
#asahi-dev · 2022-02-06 15:58
ketteniscool; and the keyboard work as well at the u-boot prompt?

plus ›