Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable UART #5

Open
matthewoots opened this issue Apr 10, 2022 · 1 comment
Open

How to enable UART #5

matthewoots opened this issue Apr 10, 2022 · 1 comment

Comments

@matthewoots
Copy link

Hi @avafinger wondering how do I enable UART on this guy, or is it enable already?

C7FB3D28-1F9D-469F-8EAB-CDCD591FDECF

Am I able to use debug console for normal UART or can I use the UART4

@avafinger
Copy link
Owner

I know it is possible to use debug uart as normal uart by editing the kernel boot argument but i have never done it. I think there is some info about this on the net.

I think for the UART4 is just to enable it like this:

uart4: serial@ff370000 {
compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
reg = <0x0 0xff370000 0x0 0x100>;
clocks = <&pmucru 6>, <&pmucru 34>;
clock-names = "baudclk", "apb_pclk";
interrupts = <0 102 4 0>;
reg-shift = <2>;
reg-io-width = <4>;
pinctrl-names = "default";
pinctrl-0 = <&uart4_xfer>;
status = "okay";
};

you have to decompile dtb, change it to:
status = "disabled";
and re-compile it.

Please, backup dtb before trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants