Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4387

Device Tree • CM4 failed to enable uart3 + 485 mode

$
0
0
Hello,
I'm trying to enable the uart3 (on gpio 4,5,6) with 485 mode and RTS line on gpio 7. I've sucessful did it on kernel 5.10 but when updated to 6.6, it no longer works (it compiles without errors, and the board boot up, but there is no HDMI and no uart3 :? )
Here is the dts file i made for it. Can somebody please tell me, what's wrong with it? Thank you.

Code:

/dts-v1/;/plugin/;/*   Habilita /dev/ttyAMA3 con modo 485, que incluye le manejo automaticode la linea RTS*//{compatible = "brcm,bcm2711";fragment@0 {target = <&uart3>;__overlay__ {status = "okay";rs485-rts-active-high;rs485-rts-delay = <0 0>;linux,rs485-enabled-at-boot-time;pinctrl-names = "default";pinctrl-0 = <&uart3_pins>, <&uart3_rts_gpio7>;};};fragment@1 {target = <&uart3_pins>;__dormant__ {brcm,pins = <4 5 6 7>;brcm,pull = <0 2 2 0>;};};fragment@2 {target = <&gpio>;__overlay__ {uart3_rts_gpio7: uart3_rts_gpio7 {brcm,pins = <7>;brcm,function = <3>;//alt4};};};};

Statistics: Posted by farias_automac — Thu Aug 01, 2024 4:07 pm — Replies 4 — Views 49



Viewing all articles
Browse latest Browse all 4387

Trending Articles