Jump to content

unlock UART1 and UART2


AlexNVZ

Recommended Posts

  • Werner changed the title to unlock UART1 and UART2

"Providing logs with"

https://paste.armbian.com/oyesahujur

 

Thanks for the tip.

 

I added sun50i-h616-uart2.dtbo and sun50i-h616-uart5.dtbo to the overlay. 

uart2 works, uart5 does not work.

Цитата

U-Boot 2023.07-rc2-armbian (Aug 22 2023 - 14:52:37 +0000) Allwinner Technology

CPU:   Allwinner H616 (SUN50I)
Model: BigTreeTech CB1
DRAM:  1 GiB
Core:  52 devices, 18 uclasses, devicetree: separate
WDT:   Not starting watchdog@30090a0
MMC:   mmc@4020000: 0, mmc@4021000: 2, mmc@4022000: 1
Loading Environment from FAT... Unable to use mmc 1:1...
In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
3259 bytes read in 2 ms (1.6 MiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
288 bytes read in 1 ms (281.3 KiB/s)
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
38722 bytes read in 10 ms (3.7 MiB/s)
Working FDT set to 4fa00000
808 bytes read in 3 ms (262.7 KiB/s)
Applying kernel provided DT overlay sun50i-h616-spi-spidev.dtbo
509 bytes read in 3 ms (165 KiB/s)
Applying kernel provided DT overlay sun50i-h616-uart5.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
Error applying DT overlays, restoring original DT
38722 bytes read in 10 ms (3.7 MiB/s)
18197188 bytes read in 3231 ms (5.4 MiB/s)

 

Цитата

/dts-v1/;
/plugin/;

/ {
    compatible = "allwinner,sun50i-h616";

    fragment@0 {
        target-path = "/aliases";
        __overlay__ {
            serial5 = "/soc/serial@5001400";
        };
    };

    fragment@1 {
        target = <&uart5>;
         __overlay__ {
            pinctrl-names = "default";
            pinctrl-0 = <&uart5_ph_pins>;
            status = "okay";
        };
    };
};

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines