ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
zumi_ has joined #asahi-dev
Calandracas has quit [Remote host closed the connection]
chrisl has joined #asahi-dev
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
pb17 has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
BlueMatt_ has quit [Ping timeout: 480 seconds]
BlueMatt has joined #asahi-dev
Drago has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
Drago has joined #asahi-dev
Calandracas has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
tobhe_ has joined #asahi-dev
hexdump02 has joined #asahi-dev
hexdump01 has quit [Ping timeout: 480 seconds]
tobhe has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
pthariensflame has joined #asahi-dev
chrisl has joined #asahi-dev
pb17 has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
nora_ has joined #asahi-dev
nora has quit [Ping timeout: 480 seconds]
halloy-user has joined #asahi-dev
halloy-user has quit []
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
Larwive has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
Pokemod97 has quit []
Pokemod97 has joined #asahi-dev
john-cabaj has quit [Ping timeout: 480 seconds]
BlueMatt has quit []
BlueMatt has joined #asahi-dev
halloy-user has joined #asahi-dev
halloy-user has quit []
Drago has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
Drago has joined #asahi-dev
mripard has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
Drago has quit [Ping timeout: 480 seconds]
zumi_ has joined #asahi-dev
zumi has quit [Ping timeout: 480 seconds]
Drago has joined #asahi-dev
zumi_ is now known as zumi
pb17 has quit [Ping timeout: 480 seconds]
Larwive has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
Drago has quit [Ping timeout: 480 seconds]
vimproved has quit [Ping timeout: 480 seconds]
vimproved has joined #asahi-dev
Drago has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
ravikant_ has joined #asahi-dev
Drago has quit [Ping timeout: 480 seconds]
midou has quit [Ping timeout: 480 seconds]
midou has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
kraem has quit [Remote host closed the connection]
kraem has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
chrisl has joined #asahi-dev
<fl0_id> still have to test it though ...
<nickchan> fl0_id: #size-cells should be 2 under chosen
<fl0_id> nickchan thx.
<nickchan> normally i would recommend running dtbs_check but the downstream tree doesn't adhere to that so i can't recommend that here
chrisl has quit [Ping timeout: 480 seconds]
<fl0_id> nickchan I did that
<fl0_id> I didn't give any errors after adding the bindings
<fl0_id> I at least have some inconsistency still where sometimes I have j514 but in other places like the bindings I use j514c
<fl0_id> not sure how important those small differences are. I have the c, but supposedly there is also an m variant
<nickchan> fl0_id: also the 24 mhz clock should be named differently check t8103.dtsi
<chadmed> its important in compatible strings that they are consistent
<chadmed> its also just important in general because the dt maintainers are (rightfully) fastidious about that stuff
<nickchan> some of the address also look suspicious - make sure that you considered ADT's ranges property when computing addresses
<nickchan> and t6031 aic is most definitely not compatible with "apple,aic" which refers to s5l8960x's aic
<chadmed> the addresses probably all need offsetting by 0x200000000 or something like that
<nickchan> chadmed: that's what the ranges property do
<nickchan> ranges in ADT I mean
<chadmed> once a bunch more bindings find their way upstream it would be nice for m1n1 to generate them from the ADT where possible
<nickchan> the plan was in fact to generate parts of fdt from adt offline and then add the generated results to repo
<nickchan> But over the years for the most part the only thing that materalized is pmgr_adt2dt
<nickchan> everything else is still manual
<chadmed> yeah
<chadmed> theres very little point to expending the engineering effort until the bindings are upstream because they _will_ change
<chadmed> even if theyre perfect
<chadmed> stuff like aic and the serial port can probably happen
<nickchan> <https://github.com/AsahiLinux/linux/commit/d23457abac1e2f309404e63c7a390d9a32bce9e6> this is what a minimal device tree would look like and id get rid of pinctrl for initial bringup even
<nickchan> wdt is probably fine to be in first device tree
<nickchan> i guess i can think about auto generate adt cause doing it for 69 (this is the actual number of pre-M1 skus supported in linux) skus is not fun
<fl0_id> thx I will take a look again later. I'm very aware that there are still issues, likely I did not conisder the ranges property
<fl0_id> though I adapted a bit to fit newer style, f.e. using cpu-map
<fl0_id> and clusters
<nickchan> that one's style is too old and the one i showed should be fine aside from pinctrl
<nickchan> Which can be ignored and removed in bringup
<chadmed> dont we need the 1ghz clock too for m3+?
<fl0_id> sure. I think I looked at that one too. and very little if anything should be extra. I only though about adding the display, as it's a laptop, but hopfeully framebuffer works without as this needs DART or sth I think
<chadmed> m1n1 should fill that with the iboot framebuffer which will work with simpledrm
<nickchan> /chosen/framebuffer should be enough for display
<nickchan> wdt and serial would help bringup too
Tramtris1 has joined #asahi-dev
Tramtrist has quit [Ping timeout: 480 seconds]
ravikant_ has quit [Ping timeout: 480 seconds]
<jannau> ahdeb[mds]: the `mv -f "$TARGET" "${TARGET}.old"` is unchanged in that commit. using `cp --preserve=timestamps -f` should make the switch atomic. feel free to create a PR
ravikant_ has joined #asahi-dev
<jannau> #address-cells / #size-cells specify the layout of the "reg" property. address-cells = 1, #size-cells = 0 is perfectly valid in some places, for example for i2c devices
zumi_ has joined #asahi-dev
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
<fl0_id> nickchan thx, good to know that's what I was hoping. I have serial I think. not sure about wdt
<fl0_id> jannau thx for explaining
<fl0_id> nickchan are you sure that "apple,aic" cannot be compatible? while the adt has compatible = [aic,3] for the aic, the wdt has compatible = [wdt,t8101, wdt,s5l8960x]
<fl0_id> so I assume the s5l8960x is still there
<fl0_id> (this is from the adt)
<sven> it’s at least v2 for m3, maybe even v3
<sven> really, don’t trust the ADT for stuff like compatibles
<sven> they work differently there
<fl0_id> ok
<sven> the adt node e.g. has a version property somewhere
<sven> I know that v3 introduced some more properties for register offsets but they seems similar to v2
chrisl has joined #asahi-dev
<jannau> Daniel and I followed Apple's v3 in m1n1 and linux https://github.com/jannau/linux/commit/3daf98a7eac1ba8ee972c2d9d381c1aba39cd7b2
<jannau> I plan to send that (and the dt-bindings change) after 6.16-rc1\
<jannau> I would read "aic,3" as "aic3"
<jannau> iirc the offsets specified in the ADT differ from the aic2 values
chrisl has quit [Ping timeout: 480 seconds]
<fl0_id> makes sense
<fl0_id> sth else - if there is not just one address and size for a register, is just the first one used for the dt, or is there a more complicated calculation e.g. how a set of five address / size pairs for a reg entry are transcribed?
john-cabaj has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
mildsunrise31 has joined #asahi-dev
mildsunrise3 has quit [Remote host closed the connection]
mildsunrise31 is now known as mildsunrise3
marcusr has quit [Ping timeout: 480 seconds]
cyrinux94907 has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
agraf has quit [Ping timeout: 480 seconds]
agraf has joined #asahi-dev
zkrx has quit [Ping timeout: 480 seconds]
zkrx has joined #asahi-dev
mattia013_ has joined #asahi-dev
marcusr has joined #asahi-dev
mattia013_ has quit [Ping timeout: 480 seconds]
Larwive has quit [Ping timeout: 480 seconds]
ravikant_ has quit []
Larwive has joined #asahi-dev
chrisl has joined #asahi-dev
Larwive has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
malfunction54 has quit [Remote host closed the connection]
malfunction54 has joined #asahi-dev
Drago has joined #asahi-dev
iyes has joined #asahi-dev
chrisl has joined #asahi-dev
WindowPain1 has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
WindowPain has quit [Ping timeout: 480 seconds]
WindowPain1 is now known as WindowPain
cylm has joined #asahi-dev
zumi_ has joined #asahi-dev
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
ellyq_ has quit []
Drago has quit [Ping timeout: 480 seconds]
iyes has quit [Quit: Leaving]
ellyq has joined #asahi-dev
chrisl has joined #asahi-dev
Drago has joined #asahi-dev
cylm_ has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
cylm has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
Drago has quit [Ping timeout: 480 seconds]
cylm has joined #asahi-dev
cylm_ has quit [Ping timeout: 480 seconds]
leah2 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
ol0ck has joined #asahi-dev
leah2 has joined #asahi-dev
iyes has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
iyes has quit [Quit: Leaving]
Larwive has quit [Ping timeout: 480 seconds]
ddxtanx_ has quit [Remote host closed the connection]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
ddxtanx has joined #asahi-dev
lion328 has quit [Quit: Leaving]
chrisl has joined #asahi-dev
lion328 has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
pthariensflame has joined #asahi-dev
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
master91122 has quit [Quit: Connection closed for inactivity]
cylm has quit [Quit: WeeChat 4.6.3]
chrisl has joined #asahi-dev
phire_ has joined #asahi-dev
phire is now known as Guest17267
phire_ is now known as phire
Guest17267 has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]