Content-Type: multipart/mixed; boundary="===============4624099176003578923==" MIME-Version: 1.0 From: Paul Cercueil To: kbuild-all@lists.01.org Subject: Re: [PATCH 7/8] serial: 8250/ingenic: Add support for the JZ4750/JZ4755 SoCs Date: Mon, 17 Oct 2022 10:31:53 +0100 Message-ID: <555WJR.ESJD0KDHOG3S@crapouillou.net> In-Reply-To: List-Id: --===============4624099176003578923== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Siarhei, Le dim., oct. 16 2022 at 21:39:48 +0300, Siarhei Volkau = a =C3=A9crit : > =D1=87=D1=82, 13 =D0=BE=D0=BA=D1=82. 2022 =D0=B3. =D0=B2 21:56, Siarhei V= olkau = > : > = >> > Just disable the divider in ingenic_fixup_fdt() in > = >> I'll check that. > = > I checked that approach: serial seems to be working as expected, > but not all the time: there's a time period when the CGU driver > started but serial console driver is still early one. > In my case UART produces garbage at that period since CGU > needs to enable clock divider back: ext is 24MHz but 12MHz > required for audio codec and USB to function properly. What I'd do, is just force-enable it to 12 MHz in ingenic_fixup_fdt(), = since the programming manual basically says that 24 MHz does not work = properly. Then in the earlycon setup code hardcode the /2 divider with a big fat = comment about why it's there. Cheers, -Paul > So I think Arnd's approach: > = >> the hardware should already be in a working state, >> with no need to touch it during early boot. > = > shall resolve the problem, although I can't check it on all supported > hardware. > = > BR, > Siarhei --===============4624099176003578923==--