#asahi · 2022-10-16 17:02
marcannot exactly hard to find#asahi · 2022-10-16 17:02
marcandrivers/gpu/drm/asahi#asahi · 2022-10-16 17:01
marcanwhich you clearly missed :p#asahi · 2022-10-16 17:00
marcanno, there is an actual driver in the kernel#asahi · 2022-10-16 17:00
marcanpretty sure those kconfig options won't show up until you have Rust support enabled, which requires the proper toolchain to be installed in the first place#asahi · 2022-10-15 15:05
marcannp!#asahi · 2022-10-15 15:03
marcanI should get some sleep#asahi · 2022-10-15 15:03
marcannope, thanks :)#asahi · 2022-10-15 14:53
marcanyes, the question is do they run :)#asahi · 2022-10-15 14:39
marcanborisk: drop the GPIO_PULL_UP if it complains, just replace it with 0#asahi · 2022-10-15 14:39
marcanwait, I think we don't support pull modes yet at all..#asahi · 2022-10-15 14:35
marcan(if it doesn't work, check your dmesg for gpio related stuff; this is completely untested, I might well have screwed it up!)#asahi · 2022-10-15 14:33
marcanI *think* I got the polarity for rst right, but you can also try "output-high" (in principle output-low + GPIO_ACTIVE_LOW is the same thing as the 1 you wrote earlier, and the correct semantics for an active-low reset pin)#asahi · 2022-10-15 14:32
marcanmake sure you do a full cold boot so that we don't get confused in case the firmware sticks in SRAM#asahi · 2022-10-15 14:31
marcanborisk: https://mrcn.st/p/BUq7PmNH try that#asahi · 2022-10-15 14:27
marcanwouldn't that just be the needing a cold boot issue?#asahi · 2022-10-15 14:24
marcanI just need to check that the GPIOs get set in the right order#asahi · 2022-10-15 14:24
marcanI didn't remember gpio-hog was a thing#asahi · 2022-10-15 14:24
marcanI think we're actually putting it in the DT#asahi · 2022-10-15 14:21
marcanbecause before it was running on ROM boot code, not real firmware#asahi · 2022-10-15 14:20
marcanyeah, makes sense#asahi · 2022-10-15 14:17
marcanand I'm guessing you didn't get that the previous time?#asahi · 2022-10-15 14:17
marcanI guess I might just set it to pull-up mode in m1n1, that seems safest#asahi · 2022-10-15 14:17
marcanbut if direction in works, it probably has a pull-up...#asahi · 2022-10-15 14:17
marcanin that case we should actually set it to 1#asahi · 2022-10-15 14:16
marcanit could also be OE for an explicit bus switch between the GL and the flash#asahi · 2022-10-15 14:15
marcansome strings, serial, version, or something#asahi · 2022-10-15 14:15
marcanalso, you probably got somewhat different USB IDs? (something about the hub enumeration is probably different than it was the previous time, though it may or may not show up in dmesg)#asahi · 2022-10-15 14:14
marcaneither way, seems like we found the right sequence :)#asahi · 2022-10-15 14:14
marcanI don't know what they mean by "OE" - if it's CS, then having that as output would definitely wedge it. if it's some kind of "tristate control" for the GL then that too, but I don't see any obvious such pin in the pinout for the GL chip#asahi · 2022-10-15 14:14
marcannah#asahi · 2022-10-15 14:13
marcanokay, so it probably wasn't actually loading the firmware, and I'm guessing 1850 was wedging the flash#asahi · 2022-10-15 14:13
marcan\o/#asahi · 2022-10-15 14:10
marcanno, echo in > direction#asahi · 2022-10-15 14:07
marcanyou can also read 1852 after every test and see if it's still 1#asahi · 2022-10-15 14:07
marcanand then I guess both combinations again but having set 1849 to 1#asahi · 2022-10-15 14:06
marcanif that doesn't work, try output again but writing 1#asahi · 2022-10-15 14:06
marcantry resetting it (0 on 1851), 1850 to input, then unreset (1 on 1851)#asahi · 2022-10-15 14:01
marcanand 1849 for good measure#asahi · 2022-10-15 14:01
marcantry exporting 1850, should be out, see what value it has#asahi · 2022-10-15 14:00
marcanthat would probably kill the hub#asahi · 2022-10-15 13:59
marcanwell, I don't have any good ideas now, I looked through the ADT and I can't see anything that looks like a power control GPIO...#asahi · 2022-10-15 13:59
marcanthat looks right...#asahi · 2022-10-15 13:57
marcancan you export 1852 (it should be direction=in) and check the value?#asahi · 2022-10-15 13:54
marcanhm, wait#asahi · 2022-10-15 13:53
marcanor maybe something else turns power on to the ports?#asahi · 2022-10-15 13:53
marcanunless it failed to load the firmware due to some other GPIO being wrong?#asahi · 2022-10-15 13:52
marcanokay, that's weird now...#asahi · 2022-10-15 13:49
marcanputs it on the list for m1n1#asahi · 2022-10-15 13:49
marcanyour USB ports should work now