radxa / apt

radxa debian packages repository
http://radxa.com/Rabian
35 stars 6 forks source link

Add support for UART5 & UART6 on radxa-cm3-io #52

Open black-device opened 1 year ago

black-device commented 1 year ago

Hello, I'm trying to get UART6 to work correctly in CM3-io Everything apparently works, but this error is recorded in the system log:

[ 8459.681893] ttyS6 set divisor fail, quot:13 != dll,dlh:0 [8605.569865] dw-apb-uart fe6a0000.serial: got rx and tx dma channels [ 8605.569936] ttyS6 set divisor fail, quot:13 != dll,dlh:0

Here the DTS for the Uart6:

rk3568-uart6-m1.dts

` /dts-v1/; /plugin/;

/ { metadata { title = "Enable UART6"; compatible = "rockchip,rk3568,radxa,cm3-io"; category = "misc"; exclusive = "GPIO1_D5", "GPIO1_D6"; description = "Enable UART6.\nOn Radxa CM3."; };

fragment@0 {
    target = <&uart6>;

    __overlay__ {
        status = "okay";
        rockchip,serial-id = <6>;
        pinctrl-names = "default";
        pinctrl-0 = <&uart6m1_xfer>;
    };
};

fragment@1 {
    target = <&uart6>;

    __overlay__ {
        status = "okay";
    };
};

}; `

config.txt

`

dtoverlay=rk3568-fiq-debugger-uart2m0

dtoverlay=rk3568-uart2-m0 dtoverlay=rk3568-uart6-m1 dtoverlay=rk3568-disable-npu dtoverlay=rk3568-i2c2-m1 dtoverlay=rk3568-dwc3-host intfc: i2c2=on intfc: uart6=on intfc: uart2=on `

Where is the problem?