#
✕ nick:marcan
#asahi-dev · 2022-02-09 10:37
marcanlooks like rtc, alarm being consecutive at least is consistent
#asahi-dev · 2022-02-09 10:36
marcankettenis: https://mrcn.st/p/XgcR64lQ the ADT nodes, parsed a bit less horribly
#asahi-dev · 2022-02-09 09:54
marcanas for the SPMI driver, it's kind of barebones at the moment and I want to whether it makes sense to make it interrupt-driven or not; it could use a bit of reverse engineering to narrow things down
#asahi-dev · 2022-02-09 09:52
marcanthe RTC and power control stuff will have to change to use reg properties to know where things are, since it changes from PMU to PMU
#asahi-dev · 2022-02-09 09:52
marcanfor the SPMI MFD driver I'm outright making a generic one a la simple-mfd-i2c, because it's silly having what is basically an empty driver for just apple
#asahi-dev · 2022-02-09 09:51
marcanjeffmiw: I want to get it wrapped up this week, but I think at this point it's going to be a bit of a rewrite given what we found out about how the different PMUs should be unified
#asahi-dev · 2022-02-08 13:12
marcankettenis: incidentally, I should be putting out a progress report soon, so if you want to write up a blurb on u-boot/openbsd... :)
#asahi-dev · 2022-02-08 13:10
marcanwell that certainly looks reasonable
#asahi-dev · 2022-02-08 13:09
marcannice
#asahi-dev · 2022-02-08 13:09
marcanha
#asahi-dev · 2022-02-08 13:09
marcansince for new machine support / old distros you definitely want whatever version is installed initially to stay until the distro catches up
#asahi-dev · 2022-02-08 13:09
marcanbecause if we start chainloading m1n1 so that distro packages can update it, we also need to make sure distro packages don't *downgrade* it
#asahi-dev · 2022-02-08 13:09
marcantangentially, I was also thinking about m1n1 chainloads, and how we might need to shave a versioning yak there
#asahi-dev · 2022-02-08 13:07
marcanright
#asahi-dev · 2022-02-08 13:05
marcanand it could wrap it in EFI
#asahi-dev · 2022-02-08 13:05
marcanthen ultimately it'd just be something like passing a PSCI entrypoint and some description of reserved memory ranges to u-boot
#asahi-dev · 2022-02-08 13:05
marcanbut we could silo off a chunk of resident code that could have fewer requirements
#asahi-dev · 2022-02-08 13:04
marcanand m1n1 can run with the MMU off or otherwise expects a 1:1 mapping of its code
#asahi-dev · 2022-02-08 13:04
marcanm1n1 doesn't use them at all
#asahi-dev · 2022-02-08 13:04
marcanwe don't need interrupts I think
#asahi-dev · 2022-02-08 13:04
marcanyeah
#asahi-dev · 2022-02-08 13:02
marcanwe could do that, yeah
#asahi-dev · 2022-02-08 13:02
marcanyou mean like having the actual code live in m1n1?
#asahi-dev · 2022-02-08 13:02
marcandirect boot is more for testing
#asahi-dev · 2022-02-08 13:01
marcanI expect users to use u-boot anyway
#asahi-dev · 2022-02-08 13:01
marcanyeah, though if this is just for sleep and CPU power control I think I can live with that
#asahi-dev · 2022-02-08 13:00
marcannot that that would be a showstopper
#asahi-dev · 2022-02-08 12:59
marcanthat works except it means then this logic needs to be in u-boot, not m1n1, or we need yet another interface there
#asahi-dev · 2022-02-08 12:59
marcanah
#asahi-dev · 2022-02-08 12:58
marcanIIRC the story was that every other ARM platform uses PSCI
#asahi-dev · 2022-02-08 12:54
marcanyeah... we need PSCI but without privilege mode changes for one... which is a whole bike shed to paint with the kernel folks too
#asahi-dev · 2022-02-08 12:52
marcan:)
#asahi-dev · 2022-02-08 12:51
marcancool
#asahi-dev · 2022-02-08 12:50
marcanI think we're pretty much on the same page here; tomorrow I'll clean up the existing code and bindings and see how that goes?
#asahi-dev · 2022-02-08 12:50
marcanso it would be two reg spans
#asahi-dev · 2022-02-08 12:50
marcanyes
#asahi-dev · 2022-02-08 12:49
marcanso that would be two reg blocks
#asahi-dev · 2022-02-08 12:49
marcanthere's the rtc and the scratchpad, as separate sections
#asahi-dev · 2022-02-08 12:49
marcanon the two machines?
#asahi-dev · 2022-02-08 12:42
marcanboth have it though
#asahi-dev · 2022-02-08 12:42
marcanoh, indeed
#asahi-dev · 2022-02-08 12:28
marcanthere's CLWK which is presumably the wakeup alarm
#asahi-dev · 2022-02-08 12:27
marcanisn't the RTC counter 6 bytes too?
#asahi-dev · 2022-02-08 12:26
marcan#400: CLKM = (hex_, 0x94) 9e 0d 63 11 00 00
#asahi-dev · 2022-02-08 12:25
marcanall the PMU voltage measurements are, and all the temperatures/etc connected to the PMUs
#asahi-dev · 2022-02-08 12:25
marcanand actually I have some suspicion the RTC is also accessible via SMC? not sure
#asahi-dev · 2022-02-08 12:25
marcanyeah
#asahi-dev · 2022-02-08 12:23
marcanI think iBoot1 loads that on startup
#asahi-dev · 2022-02-08 12:23
marcanthey have a cortex-m0 or something
#asahi-dev · 2022-02-08 12:23
marcanoh also, these things run firmware

plus ›