#asahi-dev · 2022-03-07 15:20
marcan#115: 900000000 0 0xa0/0x23b0400e0: regval: 0x88100100#asahi-dev · 2022-03-07 15:20
marcan#113: 900000000 0 0xa0/0x23b0400d8: regval: 0x86100000#asahi-dev · 2022-03-07 15:20
marcan#112: 900000000 0 0xa0/0x23b0400d4: regval: 0x85100100#asahi-dev · 2022-03-07 15:18
marcanbut it's the same freq for both /1 /2 there#asahi-dev · 2022-03-07 15:17
marcanyeah#asahi-dev · 2022-03-07 15:17
marcanso indeed setting the NCO input to that /2 seems correct#asahi-dev · 2022-03-07 15:17
marcanand those have the divider set to /2#asahi-dev · 2022-03-07 15:17
marcan User: /device-tree/arm-io/nco.clk[1]#asahi-dev · 2022-03-07 15:17
marcan# 85: 1068000000 0 0xa4/0x28e03802c: regval: 0x85100100#asahi-dev · 2022-03-07 15:17
marcan User: /device-tree/arm-io/nco.clk[0]#asahi-dev · 2022-03-07 15:17
marcan# 84: 1068000000 0 0xa4/0x28e038028: regval: 0x85100100#asahi-dev · 2022-03-07 15:16
marcanso the freq seems to be pre-divider#asahi-dev · 2022-03-07 15:16
marcanI think those are actually using /1 /2 /1 /2 dividers#asahi-dev · 2022-03-07 15:16
marcan User: /device-tree/arm-io/nco.clk[3]#asahi-dev · 2022-03-07 15:16
marcan# 75: 200000000 0 0xa0/0x23b040038: regval: 0x85100100#asahi-dev · 2022-03-07 15:16
marcan User: /device-tree/arm-io/nco.clk[2]#asahi-dev · 2022-03-07 15:16
marcan# 74: 200000000 0 0xa0/0x23b040034: regval: 0x85100000#asahi-dev · 2022-03-07 15:16
marcan User: /device-tree/arm-io/nco.clk[1]#asahi-dev · 2022-03-07 15:16
marcan# 73: 900000000 0 0xa0/0x23b040030: regval: 0x86100100#asahi-dev · 2022-03-07 15:16
marcan User: /device-tree/arm-io/nco.clk[0]#asahi-dev · 2022-03-07 15:16
marcan# 72: 900000000 0 0xa0/0x23b04002c: regval: 0x86100000#asahi-dev · 2022-03-07 15:16
marcanthe NCOs have 4 input clocks but we only use the first one, right?#asahi-dev · 2022-03-07 15:13
marcandoes macOS do the same thing?#asahi-dev · 2022-03-07 15:12
marcan*too#asahi-dev · 2022-03-07 15:12
marcanI think some are hardcoded to#asahi-dev · 2022-03-07 15:12
marcanhave you tried clearing the lower bits?#asahi-dev · 2022-03-07 15:12
marcanthe mux regs have a divider setting#asahi-dev · 2022-03-07 15:11
marcanclock muxes are part of PMGR and that definitely stays alive during sleep#asahi-dev · 2022-03-07 15:11
marcandoubt that will be necessary#asahi-dev · 2022-03-07 15:11
marcanactually I'd be surprised#asahi-dev · 2022-03-07 15:11
marcanyeah#asahi-dev · 2022-03-07 15:07
marcanhard to imagine a reason why we'd need to make these dynamic though...#asahi-dev · 2022-03-07 15:05
marcanbut I'd say if we end up needing to do this "properly", it'll be in a new machine anyway, at which point we just need a minimum kernel for that one to get audio (which, shrug)#asahi-dev · 2022-03-07 15:04
marcanthe problem is we don't really know anything about the clock tree until apple uses it anyway#asahi-dev · 2022-03-07 15:02
marcanso anything beyond 5 will repeat 9#asahi-dev · 2022-03-07 15:02
marcanI initialize all muxes, but clamp the mux values to 5..9#asahi-dev · 2022-03-07 15:02
marcanpovik: pushed#asahi-dev · 2022-03-07 15:00
marcanah, I'll do the same then I guess#asahi-dev · 2022-03-07 14:48
marcandoes it make sense to have all the settings for t8103 too? and I guess the 6th doesn't make sense since we don't have a dedicated NCO for it?#asahi-dev · 2022-03-07 14:48
marcanalright, let me implement that#asahi-dev · 2022-03-07 14:47
marcanright#asahi-dev · 2022-03-07 14:47
marcan(e.g. the two die thing is in m1pro AIC even though obviously it can't use it)#asahi-dev · 2022-03-07 14:47
marcanthey have some of those#asahi-dev · 2022-03-07 14:47
marcanmaybe it's just a leftover then#asahi-dev · 2022-03-07 14:46
marcanthere is also AOP_MCA0/1, is it possible it's those?#asahi-dev · 2022-03-07 14:44
marcanheh#asahi-dev · 2022-03-07 14:43
marcancool, is it always reg[2]?#asahi-dev · 2022-03-07 14:34
marcanthanks!#asahi-dev · 2022-03-07 14:33
marcanalso, even if the kernel part isn't ready, if the DT bits are and I add the m1n1 thing we can ship that and then people just have to upgrade their kernel package to get it later#asahi-dev · 2022-03-07 14:32
marcanthis week :)