Hello Chris, On 30.03.24 16:34, Chris Morgan wrote: > On Sat, Mar 30, 2024 at 02:13:05PM +0100, Ahmad Fatoum wrote: >> Hello Chris, >> >> On 18.10.23 17:33, Chris Morgan wrote: >>> From: Chris Morgan <macromorgan@xxxxxxxxxxx> >>> >>> The Powkiddy RGB30 has no onboard UART header, so remove the reference >>> to it in the device tree. This was left on by mistake in the initial >>> commit. >> >> Do you know if the UART is perhaps available over testpoints? > > There is not one as best I can tell on either the RGB30 or RK2023. The > Powkiddy X55 does have UART, however. I was able to exploit the fact > that the RGB30 is extremely similar to all of the Anbernic devices > (such as the RG353 series) for the purposes of low-level development. > Once I got a network connection I performed the rest of development > over SSH, but prior to that I just developed on a different device. Thanks for the info. AFAICS, it should be possible to get a console by changing the pinmux setting on the Game TF-Card: SDMMC1_D0/UART6_RX_M0/GPIO2_A3_u SDMMC1_D1/UART6_TX_M0/GPIO2_A4_u SDMMC1_D2/UART7_RX_M0/GPIO2_A5_u SDMMC1_D3/UART7_TX_M0/GPIO2_A6_u SDMMC1_CMD/UART9_RX_M0/GPIO2_A7_u SDMMC1_CLK/UART9_TX_M0/GPIO2_B0_d I will give that a try. Cheers, Ahmad > > Thank you, > Chris. > >> >> If yes, having a DT-overlay upstream enabling it along with documentation could be useful. >> If not, how do you do low-level debugging on the RBG30 in absence of the serial console? >> >> Thanks, >> Ahmad >> >>> >>> Signed-off-by: Chris Morgan <macromorgan@xxxxxxxxxxx> >>> --- >>> arch/arm64/boot/dts/rockchip/rk3566-powkiddy-rgb30.dts | 9 +++++++++ >>> 1 file changed, 9 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-powkiddy-rgb30.dts b/arch/arm64/boot/dts/rockchip/rk3566-powkiddy-rgb30.dts >>> index 3ebc21608213..1ead3c5c24b3 100644 >>> --- a/arch/arm64/boot/dts/rockchip/rk3566-powkiddy-rgb30.dts >>> +++ b/arch/arm64/boot/dts/rockchip/rk3566-powkiddy-rgb30.dts >>> @@ -64,6 +64,10 @@ simple-audio-card,cpu { >>> >>> /delete-node/ &adc_keys; >>> >>> +&chosen { >>> + /delete-property/ stdout-path; >>> +}; >>> + >>> &cru { >>> assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>, >>> <&pmucru PLL_PPLL>, <&cru PLL_VPLL>; >>> @@ -149,4 +153,9 @@ rk817_charger: charger { >>> }; >>> }; >>> >>> +/* There is no UART header visible on the board for this device. */ >>> +&uart2 { >>> + status = "disabled"; >>> +}; >>> + >>> /delete-node/ &vibrator; >> >> -- >> Pengutronix e.K. | | >> Steuerwalder Str. 21 | http://www.pengutronix.de/ | >> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | >> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | >> > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |