<div>Hello Paul,</div><div> </div><div>If UART is disabled in DTS, its' clock is disabled in SCU0C (Clock stop control register).</div><div>After enabling clocks, everything works fine with UART routing.</div><div> </div><div>Thank you!</div><div>P.S. So root cause of my pains with SOL is global worming as probably the reason to disable UART clock is to save power.</div><div> </div><div>27.07.2021, 12:30, "Paul Fertser" <fercerpav@gmail.com>:</div><blockquote><p>On Tue, Jul 27, 2021 at 11:53:57AM +0300, Konstantin Klubnichkin wrote:</p><blockquote> SIRQ polarity is something I didn't try, will do it. And yes, SIRQ bit is zero,<br /> but all other bits are also zero in that register, that confuses me.</blockquote><p><br />I was also able to manually export the SIRQ pin via sysfs and when<br />manually toggling it the host was seeing UART interrupts and getting<br />data to and from VUART. That lead nowhere though, so we resorted to<br />hardware routing in ast2500 between "real UARTs".<br /> </p><blockquote> Instead I configure UART routing by direct writing to registers via /dev/mem<br /> (yes, I know that it's a bad practive, but it's development).</blockquote><p><br />Should work the same.<br /> </p><blockquote> With the routing I have absolutely no data in BMC UARTs neither during POST nor<br /> is OS.<br /> What I'm missing is how that routing works. Is it on-crystal or UART need to be<br /> routed to SoC pins thus TX/RX are connected via pins?</blockquote><p><br />With the configuration as shown the host is sending data to and from<br />"COM1" (0x3f8,4) and any program on BMC is able to interact with it<br />via /dev/ttyS2, without any additional hardware connections, all<br />purely in software, the routing happens inside aspeed. Do not forget<br />to enable ttyS2 in your board's DTS. VUART is not involved at all.<br /> </p>--<br />Be free, use free (<a href="http://www.gnu.org/philosophy/free-sw.html" rel="noopener noreferrer">http://www.gnu.org/philosophy/free-sw.html</a>) software!<br /><a href="mailto:fercerpav@gmail.com" rel="noopener noreferrer">mailto:fercerpav@gmail.com</a></blockquote><div> </div><div> </div><div>-- </div><div>Best regards,</div><div>Konstantin Klubnichkin,</div><div>lead firmware engineer,</div><div>server hardware R&D group,</div><div>Yandex Moscow office.</div><div>tel: +7-903-510-33-33</div><div> </div>