#asahi-dev · 2022-09-06 09:27
marcanaside: confirmed that btcoex is reproducibly terrible with my Sony earbuds, and the code I wrote yesterday doesn't fix it (maybe helps a bit?)#asahi-dev · 2022-09-06 09:02
marcan)#asahi-dev · 2022-09-06 09:02
marcan(that fb dep will go away once DCP is in and we stop supporting/depending on dumb GPIO backlight support#asahi-dev · 2022-09-06 09:02
marcanI made a point to build everything practical as modules on our arch images (though macsmc-gpio and deps aren't because that's a hard dep of the framebuffer via backlight-gpios, but all the other smc sub-drivers are)#asahi-dev · 2022-09-06 09:01
marcan(and that approach works on x86 too)#asahi-dev · 2022-09-06 09:00
marcanthat was how I designed it :)#asahi-dev · 2022-09-06 09:00
marcanyup, that all works with mfd already without compatibles#asahi-dev · 2022-09-06 08:58
marcanheh#asahi-dev · 2022-09-06 08:55
marcanas long as we can hard-code a list of compatibles (or some similar logic) to trigger probing on non-OF platforms that works for me#asahi-dev · 2022-09-06 08:54
marcanright now the idea is that the services shared with x86 machines (e.g. hwmon) wouldn't have a hard requirement on a DT node, and we just check at probe time whether they exist in the SMC#asahi-dev · 2022-09-06 08:54
marcanrmk: re compatibles, one thing to consider is how this will probe on non-OF platforms#asahi-dev · 2022-09-06 08:51
marcan(apple terminology fwiw)#asahi-dev · 2022-09-06 08:51
marcangP?? is MPMU, gp?? is SPMU#asahi-dev · 2022-09-06 08:51
marcan#1206: gp0e = (ui32, 0xf0) 862549252#asahi-dev · 2022-09-06 08:51
marcan#1204: gp08 = (ui32, 0xf0) 862549252#asahi-dev · 2022-09-06 08:51
marcan#1205: gp0b = (ui32, 0xf0) 862549252#asahi-dev · 2022-09-06 08:51
marcan#1203: gP1a = (ui32, 0xf0) 862549252#asahi-dev · 2022-09-06 08:51
marcan#1202: gP19 = (ui32, 0xf0) 862549252#asahi-dev · 2022-09-06 08:51
marcan#1201: gP18 = (ui32, 0xf0) 862549252#asahi-dev · 2022-09-06 08:50
marcannot going to bother until we need it, but we have to consider the possibility#asahi-dev · 2022-09-06 08:50
marcaninstead of trying to add a dimension or something#asahi-dev · 2022-09-06 08:50
marcandifferent key prefix, so different driver instance makes sense IMO#asahi-dev · 2022-09-06 08:49
marcanyup, that's the second PMU#asahi-dev · 2022-09-06 08:49
marcanyeah, I even have some empty nodes IIRC in the MTP binding since they describe HID interfaces#asahi-dev · 2022-09-06 08:49
marcanand then we have two gpio nodes#asahi-dev · 2022-09-06 08:49
marcanthe slave PMU also has GPIO and SMC exposes a couple pins there. we don't implement that since I don't think we'll ever need it on current machines, but if we ever do, that should be a separate gpio node#asahi-dev · 2022-09-06 08:48
marcangpio right now is master PMU GPIO#asahi-dev · 2022-09-06 08:48
marcanalso, there *is* a hardware angle#asahi-dev · 2022-09-06 08:47
marcanso I would very much prefer subnodes + compatibles over just merging everything#asahi-dev · 2022-09-06 08:47
marcanalso, there is one extra detail: node absence can be used to gate probing, for things where that makes sense#asahi-dev · 2022-09-06 08:46
marcanbut they have that arbitrary function call mechanism that lets them hack around stuff instead of thinking about how to provide proper bindings#asahi-dev · 2022-09-06 08:46
marcanworth noting that macos *doesn't* do this and their device tree is a mess ;)#asahi-dev · 2022-09-06 08:45
marcanthink of it as "firmware services"#asahi-dev · 2022-09-06 08:45
marcanwhile it's true that it's all "the same hardware", it is an mfd after all, and it makes sense to split off individual pieces of functionality into individual nodes in my opinion#asahi-dev · 2022-09-06 08:45
marcanyeah, I don't like the idea of merging everything into one node#asahi-dev · 2022-09-06 08:10
marcanmacsmc works#asahi-dev · 2022-09-06 08:10
marcanof course, just commenting :)#asahi-dev · 2022-09-06 08:07
marcaneven though it's kind of backwards, since "applesmc" only works on Macs while macsmc could hypothetically work on iOS devices#asahi-dev · 2022-09-06 08:07
marcanincidentally, I'm not a super fan of the name, but "applesmc" was taken and I couldn't come up with anything better#asahi-dev · 2022-09-06 08:07
marcanoof#asahi-dev · 2022-09-06 07:51
marcanqueuing up some local system maintenance to run while I go into kernel merge mode#asahi-dev · 2022-09-06 07:51
marcangood morning :)#asahi-dev · 2022-09-06 07:50
marcanrmk: good catch#asahi-dev · 2022-09-06 03:20
marcanblazra[m]: excellent! it's not useful for a keyboard, but documenting bits is important since it means our understanding of the hardware is more complete and we avoid magic numbers :)#asahi-dev · 2022-09-05 17:16
marcananyway, good night!#asahi-dev · 2022-09-05 17:16
marcanyup, though not before smoke and melting :)#asahi-dev · 2022-09-05 17:15
marcanI imagine if something pinched that thing you'd get a nice little smoke fest#asahi-dev · 2022-09-05 17:15
marcanjust a cable physical integrity thing, not about the diameter#asahi-dev · 2022-09-05 17:14
marcanmight want to have the fuse closer to the battery :D#asahi-dev · 2022-09-05 17:14
marcanthat little dinky brown wire on the + terminal running next to sheet metal is... scaring me a bit